]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/amdgpu: fix psp tmr bo pin count leak in SRIOV
authorJingwen Chen <Jingwen.Chen2@amd.com>
Tue, 14 Dec 2021 03:31:16 +0000 (11:31 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 14 Dec 2021 21:09:49 +0000 (16:09 -0500)
commit1360415aa2eb49fd7c4bf1ed59b79d58a47becce
tree0aad423309e304ad3faa2fd4fcbc54819039ef4b
parentf3b521c494c0e2cc072bef99cef2bec64cefd383
drm/amd/amdgpu: fix psp tmr bo pin count leak in SRIOV

[Why]
psp tmr bo will be pinned during loading amdgpu and reset in SRIOV while
only unpinned in unload amdgpu

[How]
add amdgpu_in_reset and sriov judgement to skip pin bo

v2: fix wrong judgement

Signed-off-by: Jingwen Chen <Jingwen.Chen2@amd.com>
Reviewed-by: Horace Chen <horace.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c