drm/amdgpu/mes12: drop amdgpu_mes_suspend()/amdgpu_mes_resume() calls
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 20 Feb 2025 14:58:25 +0000 (09:58 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Feb 2025 20:52:43 +0000 (15:52 -0500)
They are noops on GFX12.  There is no suspend/resume all support
in firmware so the function doesn't do anything.  KFD already
handles its own queues and they should already be unmapped at this
point so even if this runs, it's not doing anything.

Reviewed-by: Shaoyun.liu <Shaoyun.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mes_v12_0.c

index 12ea344ee5d4cffcc4fe7641937cb98fdf15df22..fdc435b62012ebbb390f7f37ad5cdc3e5b1ef773 100644 (file)
@@ -1789,24 +1789,12 @@ static int mes_v12_0_hw_fini(struct amdgpu_ip_block *ip_block)
 
 static int mes_v12_0_suspend(struct amdgpu_ip_block *ip_block)
 {
-       int r;
-
-       r = amdgpu_mes_suspend(ip_block->adev);
-       if (r)
-               return r;
-
        return mes_v12_0_hw_fini(ip_block);
 }
 
 static int mes_v12_0_resume(struct amdgpu_ip_block *ip_block)
 {
-       int r;
-
-       r = mes_v12_0_hw_init(ip_block);
-       if (r)
-               return r;
-
-       return amdgpu_mes_resume(ip_block->adev);
+       return mes_v12_0_hw_init(ip_block);
 }
 
 static int mes_v12_0_early_init(struct amdgpu_ip_block *ip_block)