From: Hawking Zhang Date: Tue, 27 May 2025 15:45:46 +0000 (+0800) Subject: drm/amdgpu: Remove redundant check for async_gfx_ring X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7cb3669b6645e36d21d005d45790ff4c5e0f4a1;p=thirdparty%2Fkernel%2Flinux.git drm/amdgpu: Remove redundant check for async_gfx_ring Remove the redundant check for async_gfx_ring, as it is not required for gfx v12_1 Signed-off-by: Hawking Zhang Reviewed-by: Likun Gao Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c b/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c index 876cd9be19149..453520d374a08 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c @@ -2390,9 +2390,7 @@ static int gfx_v12_1_xcc_cp_resume(struct amdgpu_device *adev, gfx_v12_1_xcc_cp_set_doorbell_range(adev, xcc_id); - if (amdgpu_async_gfx_ring) { - gfx_v12_1_xcc_cp_compute_enable(adev, true, xcc_id); - } + gfx_v12_1_xcc_cp_compute_enable(adev, true, xcc_id); if (adev->enable_mes_kiq && adev->mes.kiq_hw_init) r = amdgpu_mes_kiq_hw_init(adev, xcc_id);