]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/amdgpu: Fix csb.bo pin_count leak on gfx 9
authorYuBiao Wang <YuBiao.Wang@amd.com>
Thu, 4 Nov 2021 09:32:30 +0000 (17:32 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 5 Nov 2021 18:11:32 +0000 (14:11 -0400)
commited42c4595a8877023f289e1576efa0cb0cf2e6d4
tree465829698db74ab6985c612cb7fa944b5f93433f
parent006c11b2de74ecfd1a6c7bf6330f21cdab9d2f38
drm/amd/amdgpu: Fix csb.bo pin_count leak on gfx 9

[Why]
csb bo is not unpinned in gfx 9. It will lead to pin_count leak on
driver unload.

[How]
Call bo_free_kernel corresponding to bo_create_kernel in
gfx_rlc_init_csb. This will also unify the code path with other gfx
versions.

Signed-off-by: YuBiao Wang <YuBiao.Wang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c