Skip to content

Commit e47cb9d

Browse files
srishanmalexdeucher
authored andcommitted
drm/amdgpu/gfx9: Add Cleaner Shader Deinitialization in gfx_v9_0 Module
This commit addresses an omission in the previous patch related to the cleaner shader support for GFX9 hardware. Specifically, it adds the necessary deinitialization code for the cleaner shader in the gfx_v9_0_sw_fini function. The added line amdgpu_gfx_cleaner_shader_sw_fini(adev); ensures that any allocated resources for the cleaner shader are freed correctly, avoiding potential memory leaks and ensuring that the GPU state is clean for the next initialization sequence. Cc: Christian König <[email protected]> Cc: Alex Deucher <[email protected]> Fixes: c2e70d3 ("drm/amdgpu/gfx9: Implement cleaner shader support for GFX9 hardware") Signed-off-by: Srinivasan Shanmugam <[email protected]> Acked-by: Christian König <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 9d5ee7c commit e47cb9d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2418,6 +2418,8 @@ static int gfx_v9_0_sw_fini(struct amdgpu_ip_block *ip_block)
24182418
amdgpu_gfx_kiq_free_ring(&adev->gfx.kiq[0].ring);
24192419
amdgpu_gfx_kiq_fini(adev, 0);
24202420

2421+
amdgpu_gfx_cleaner_shader_sw_fini(adev);
2422+
24212423
gfx_v9_0_mec_fini(adev);
24222424
amdgpu_bo_free_kernel(&adev->gfx.rlc.clear_state_obj,
24232425
&adev->gfx.rlc.clear_state_gpu_addr,

0 commit comments

Comments
 (0)