drm/amdgpu/sdma6: enable per queue resets on more ASICs
Subsystems (2)
Alex Deucher
maintainerPATCH 1/1 drm/amdgpu/sdma6: enable per queue resets on more ASICs
Enable on the other SDMA 6.x ASICs.
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c +3 -0
@@ -1380,6 +1380,9 @@ static int sdma_v6_0_sw_init(struct amdgpu_ip_block *ip_block) adev->sdma.supported_reset |=AMDGPU_RESET_TYPE_PER_QUEUE ;break ;default : +if (!amdgpu_sriov_vf (adev) && + !adev->debug_disable_gpu_ring_reset) + adev->sdma.supported_reset |=AMDGPU_RESET_TYPE_PER_QUEUE ;break ; }
Signature · 1 line
2.52.0
+ Jesse
Quoted 25 lines · Alex Deucher
Enable on the other SDMA 6.x ASICs.
Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c | 3 +++ 1 file changed, 3 insertions(+)drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c +3
-1@@ -1380,6 +1380,9 @@ static int sdma_v6_0_sw_init(struct amdgpu_ip_block *ip_block) adev->sdma.supported_reset |=AMDGPU_RESET_TYPE_PER_QUEUE ;break ;default : +if (!amdgpu_sriov_vf (adev) && + !adev->debug_disable_gpu_ring_reset) + adev->sdma.supported_reset |=AMDGPU_RESET_TYPE_PER_QUEUE ;break ; } --2.52.0
Quoted 12 lines · Alex Deucher
Enable on the other SDMA 6.x ASICs.
Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c | 3 +++ 1 file changed, 3 insertions(+)drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c +0
-0
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c static int sdma_v6_0_sw_init(struct amdgpu_ip_block *ip_block) · line 1384
Quoted 5 lines
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c +2
-0@@ -1380,6 +1380,9 @@ static int sdma_v6_0_sw_init(struct amdgpu_ip_block *ip_block) adev->sdma.supported_reset |=AMDGPU_RESET_TYPE_PER_QUEUE ;break ;default : +if (!amdgpu_sriov_vf (adev) && + !adev->debug_disable_gpu_ring_reset)
No FW version check required? Also, better to fork this out to a small function instead of repeating this in every case.
Thanks,
Lijo
Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c +1
-0+ adev->sdma.supported_reset |=AMDGPU_RESET_TYPE_PER_QUEUE ;break ; }