Skip to content

Commit 4343f81

Browse files
committed
drm/amdgpu/mes12: drop amdgpu_mes_suspend()/amdgpu_mes_resume() calls
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 <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 82c13da commit 4343f81

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

drivers/gpu/drm/amd/amdgpu/mes_v12_0.c

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1789,24 +1789,12 @@ static int mes_v12_0_hw_fini(struct amdgpu_ip_block *ip_block)
17891789

17901790
static int mes_v12_0_suspend(struct amdgpu_ip_block *ip_block)
17911791
{
1792-
int r;
1793-
1794-
r = amdgpu_mes_suspend(ip_block->adev);
1795-
if (r)
1796-
return r;
1797-
17981792
return mes_v12_0_hw_fini(ip_block);
17991793
}
18001794

18011795
static int mes_v12_0_resume(struct amdgpu_ip_block *ip_block)
18021796
{
1803-
int r;
1804-
1805-
r = mes_v12_0_hw_init(ip_block);
1806-
if (r)
1807-
return r;
1808-
1809-
return amdgpu_mes_resume(ip_block->adev);
1797+
return mes_v12_0_hw_init(ip_block);
18101798
}
18111799

18121800
static int mes_v12_0_early_init(struct amdgpu_ip_block *ip_block)

0 commit comments

Comments
 (0)