Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2022-05-10 | drm/amdgpu/mes: fix format specifier for size_t | Alex Deucher | 1 | -1/+1 | |
To avoid a warning on 32 bit. Reported-by: kernel test robot <[email protected]> Reviewed-by: Guchun Chen <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2022-05-04 | drm/amdgpu: add mes unmap legacy queue routine | Jack Xiao | 1 | -123/+212 | |
For mes kiq has been taken over by mes sched, drv can't directly use mes kiq to unmap queues. drv has to use mes sched api to unmap legacy queue. Signed-off-by: Jack Xiao <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2022-05-04 | drm/amdgpu/mes: Update the doorbell function signatures | Mukul Joshi | 1 | -15/+22 | |
Update the function signatures for process doorbell allocations with MES enabled to make them more generic. KFD would need to access these functions to allocate/free doorbells when MES is enabled. Signed-off-by: Mukul Joshi <[email protected]> Acked-by: Oak Zeng <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Reviewed-by: Jack Xiao <[email protected]> Reviewed-by: Harish Kasiviswanathan <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2022-05-04 | drm/amdgpu/mes: disable mes sdma queue test | Jack Xiao | 1 | -0/+5 | |
Disable mes sdma queue test on sienna cichlid+, for fw hasn't supported to map sdma queue. The test can be enabled if fw supports. Signed-off-by: Jack Xiao <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2022-05-04 | drm/amdgpu/mes: fix vm csa update issue | Jack Xiao | 1 | -22/+59 | |
Need reserve VM buffers before update VM csa. v2: rebase fixes Signed-off-by: Jack Xiao <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2022-05-04 | drm/amdgpu/mes: implement mes self test | Jack Xiao | 1 | -0/+97 | |
Add mes self test to verify its fundamental functionality by running ring test and ib test of mes kernel queue. Signed-off-by: Jack Xiao <[email protected]> Acked-by: Christian König <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2022-05-04 | drm/amdgpu/mes: add ring/ib test for mes self test | Jack Xiao | 1 | -0/+32 | |
Run the ring test and ib test for mes self test. Signed-off-by: Jack Xiao <[email protected]> Acked-by: Christian König <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2022-05-04 | drm/amdgpu/mes: create gang and queues for mes self test | Jack Xiao | 1 | -0/+39 | |
Create gang and queues for mes self test. Signed-off-by: Jack Xiao <[email protected]> Acked-by: Christian König <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2022-05-04 | drm/amdgpu/mes: map ctx metadata for mes self test | Jack Xiao | 1 | -0/+37 | |
Map ctx metadata for mes self test. Signed-off-by: Jack Xiao <[email protected]> Acked-by: Christian König <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2022-05-04 | drm/amdgpu/mes: add helper functions to alloc/free ctx metadata | Jack Xiao | 1 | -0/+25 | |
Add the helper functions to allocate/free context metadata. Signed-off-by: Jack Xiao <[email protected]> Acked-by: Christian König <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2022-05-04 | drm/amdgpu/mes: implement removing mes ring | Jack Xiao | 1 | -0/+11 | |
Remove the mes ring and its resources. Signed-off-by: Jack Xiao <[email protected]> Acked-by: Christian König <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2022-05-04 | drm/amdgpu/mes: use ring for kernel queue submission | Jack Xiao | 1 | -0/+93 | |
Use ring as the front end for kernel queue submission. Signed-off-by: Jack Xiao <[email protected]> Acked-by: Christian König <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2022-05-04 | drm/amdgpu/mes: add helper function to get the ctx meta data offset | Jack Xiao | 1 | -0/+36 | |
Add the helper function to get the corresponding ctx meta data offset. Signed-off-by: Jack Xiao <[email protected]> Acked-by: Christian König <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2022-05-04 | drm/amdgpu/mes: add helper function to convert ring to queue property | Jack Xiao | 1 | -0/+17 | |
Add the helper function to convert ring to queue property. Signed-off-by: Jack Xiao <[email protected]> Acked-by: Christian König <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2022-05-04 | drm/amdgpu/mes: implement removing mes queue | Jack Xiao | 1 | -0/+45 | |
Remove the MES queue from MES scheduling and free its resources. Signed-off-by: Jack Xiao <[email protected]> Acked-by: Christian König <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2022-05-04 | drm/amdgpu/mes: implement adding mes queue | Jack Xiao | 1 | -0/+105 | |
Allocate related resources for the queue and add it to mes for scheduling. Signed-off-by: Jack Xiao <[email protected]> Acked-by: Christian König <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2022-05-04 | drm/amdgpu/mes: initialize mqd from queue properties | Jack Xiao | 1 | -0/+54 | |
Add helper function to initialize mqd from queue properties. Signed-off-by: Jack Xiao <[email protected]> Acked-by: Christian König <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2022-05-04 | drm/amdgpu/mes: implement resuming all gangs | Jack Xiao | 1 | -0/+25 | |
Implement resuming all gangs. Signed-off-by: Jack Xiao <[email protected]> Acked-by: Christian König <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2022-05-04 | drm/amdgpu/mes: implement suspending all gangs | Jack Xiao | 1 | -0/+25 | |
Implement suspending all gangs. Signed-off-by: Jack Xiao <[email protected]> Acked-by: Christian König <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2022-05-04 | drm/amdgpu/mes: implement removing mes gang | Jack Xiao | 1 | -0/+30 | |
Free the mes gang and its resources. Signed-off-by: Jack Xiao <[email protected]> Acked-by: Christian König <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2022-05-04 | drm/amdgpu/mes: implement adding mes gang | Jack Xiao | 1 | -0/+67 | |
Gang is a group of the same type queue, which is the scheduling unit of mes hardware scheduler. Signed-off-by: Jack Xiao <[email protected]> Acked-by: Christian König <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2022-05-04 | drm/amdgpu/mes: implement destroying mes process | Jack Xiao | 1 | -0/+58 | |
Destroy the mes process, which free resources of the process. Signed-off-by: Jack Xiao <[email protected]> Acked-by: Christian König <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2022-05-04 | drm/amdgpu/mes: implement creating mes process v2 | Jack Xiao | 1 | -0/+77 | |
Create a mes process which contains process-related resources, like vm, doorbell bitmap, process ctx bo and etc. v2: move the simple variable to the end Signed-off-by: Jack Xiao <[email protected]> Acked-by: Christian König <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2022-05-04 | drm/amdgpu/mes: relocate status_fence slot allocation | Jack Xiao | 1 | -0/+11 | |
Move the status_fence slot allocation from ip specific function to general mes function. Signed-off-by: Jack Xiao <[email protected]> Acked-by: Christian König <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2022-05-04 | drm/amdgpu/mes: initialize/finalize common mes structure v2 | Jack Xiao | 1 | -0/+72 | |
Initialize/finalize common mes structure. v2: add mutex_init for adev->mes.mutex Cc: Le Ma <[email protected]> Signed-off-by: Jack Xiao <[email protected]> Acked-by: Christian König <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2022-05-04 | drm/amdgpu/mes: manage mes doorbell allocation | Jack Xiao | 1 | -0/+133 | |
It is used to manage the doorbell allocation of mes processes and queues. Driver calls into process doorbell allocation to get the slice doorbell for the process, then the doorbell for a queue is allocated from the process doorbell slice. Signed-off-by: Jack Xiao <[email protected]> Acked-by: Christian König <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> |