diff options
author | Ahmad Rehman <Ahmad.Rehman@amd.com> | 2024-03-05 00:56:00 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-04-13 14:10:11 +0300 |
commit | 4f8154f775197d0021b690c2945d6a4d8094c8f6 (patch) | |
tree | 2046b6841e14c81f1ed02938ea42ab832a138e52 /scripts/install.sh | |
parent | 8cae4605f2e2eadb5038080a2fa7d917775f4369 (diff) | |
download | linux-4f8154f775197d0021b690c2945d6a4d8094c8f6.tar.xz |
drm/amdgpu: Init zone device and drm client after mode-1 reset on reload
[ Upstream commit f679fd6057fbf5ab34aaee28d58b7f81af0cbf48 ]
In passthrough environment, when amdgpu is reloaded after unload, mode-1
is triggered after initializing the necessary IPs, That init does not
include KFD, and KFD init waits until the reset is completed. KFD init
is called in the reset handler, but in this case, the zone device and
drm client is not initialized, causing app to create kernel panic.
v2: Removing the init KFD condition from amdgpu_amdkfd_drm_client_create.
As the previous version has the potential of creating DRM client twice.
v3: v2 patch results in SDMA engine hung as DRM open causes VM clear to SDMA
before SDMA init. Adding the condition to in drm client creation, on top of v1,
to guard against drm client creation call multiple times.
Signed-off-by: Ahmad Rehman <Ahmad.Rehman@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/install.sh')
0 files changed, 0 insertions, 0 deletions