]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu: Set no_hw_access when VF request full GPU fails
authorYifan Zha <Yifan.Zha@amd.com>
Thu, 27 Jun 2024 07:06:23 +0000 (15:06 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Sep 2024 09:11:36 +0000 (11:11 +0200)
commit077c7e5fee4b4b3fea29fd3a951a6b01f2802d9e
tree37b780be883112b7ed6d6a840be1b9a32d993230
parent030958c2d05e2ed523b8c0fc1ae76a45be76a029
drm/amdgpu: Set no_hw_access when VF request full GPU fails

[ Upstream commit 33f23fc3155b13c4a96d94a0a22dc26db767440b ]

[Why]
If VF request full GPU access and the request failed,
the VF driver can get stuck accessing registers for an extended period during
the unload of KMS.

[How]
Set no_hw_access flag when VF request for full GPU access fails
This prevents further hardware access attempts, avoiding the prolonged
stuck state.

Signed-off-by: Yifan Zha <Yifan.Zha@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c