]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu: Remove redundant check for async_gfx_ring
authorHawking Zhang <Hawking.Zhang@amd.com>
Tue, 27 May 2025 15:45:46 +0000 (23:45 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Dec 2025 22:35:11 +0000 (17:35 -0500)
Remove the redundant check for async_gfx_ring,
as it is not required for gfx v12_1

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c

index 876cd9be19149a18615a03a492f102de4478122b..453520d374a0866e0c73de3b742951620d49b3d8 100644 (file)
@@ -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);