aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/mes_v11_0.c
diff options
context:
space:
mode:
authorGuchun Chen <guchun.chen@amd.com>2023-05-12 16:14:25 +0800
committerAlex Deucher <alexander.deucher@amd.com>2023-06-09 10:57:13 -0400
commit93ab59ac6d8311244a76ddb31e7ced4cb1e8f22c (patch)
treeee35e10f66853e27893fcfc782c9e1c77164a450 /drivers/gpu/drm/amd/amdgpu/mes_v11_0.c
parent232f2431899cbe6c00c1350e35cfba91ea0c1c0b (diff)
downloadlinux-93ab59ac6d8311244a76ddb31e7ced4cb1e8f22c.tar.gz
linux-93ab59ac6d8311244a76ddb31e7ced4cb1e8f22c.tar.bz2
linux-93ab59ac6d8311244a76ddb31e7ced4cb1e8f22c.zip
drm/amdgpu: switch to unified amdgpu_ring_test_helper
This will simplify code. Signed-off-by: Guchun Chen <guchun.chen@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/mes_v11_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/mes_v11_0.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/mes_v11_0.c b/drivers/gpu/drm/amd/amdgpu/mes_v11_0.c
index 9a48328c6572..90b4a74ccf01 100644
--- a/drivers/gpu/drm/amd/amdgpu/mes_v11_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/mes_v11_0.c
@@ -882,12 +882,7 @@ static int mes_v11_0_kiq_enable_queue(struct amdgpu_device *adev)
kiq->pmf->kiq_map_queues(kiq_ring, &adev->mes.ring);
- r = amdgpu_ring_test_ring(kiq_ring);
- if (r) {
- DRM_ERROR("kfq enable failed\n");
- kiq_ring->sched.ready = false;
- }
- return r;
+ return amdgpu_ring_test_helper(kiq_ring);
}
static int mes_v11_0_queue_init(struct amdgpu_device *adev,