diff options
author | Guchun Chen <guchun.chen@amd.com> | 2023-05-12 16:14:25 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-06-09 10:57:13 -0400 |
commit | 93ab59ac6d8311244a76ddb31e7ced4cb1e8f22c (patch) | |
tree | ee35e10f66853e27893fcfc782c9e1c77164a450 /drivers/gpu/drm/amd/amdgpu/mes_v10_1.c | |
parent | 232f2431899cbe6c00c1350e35cfba91ea0c1c0b (diff) | |
download | linux-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_v10_1.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/mes_v10_1.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/mes_v10_1.c b/drivers/gpu/drm/amd/amdgpu/mes_v10_1.c index 88262f10ef7c..36a123e6c8ee 100644 --- a/drivers/gpu/drm/amd/amdgpu/mes_v10_1.c +++ b/drivers/gpu/drm/amd/amdgpu/mes_v10_1.c @@ -815,13 +815,7 @@ static int mes_v10_1_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_v10_1_queue_init(struct amdgpu_device *adev) |