1
0
Fork 0
alistair23-linux/drivers/gpu/drm/amd
Dennis Li 644baa95db drm/amdgpu: fix a GPU hang issue when remove device
[ Upstream commit 88e21af1b3 ]

When GFXOFF is enabled and GPU is idle, driver will fail to access some
registers. Therefore change to disable power gating before all access
registers with MMIO.

Dmesg log is as following:
amdgpu 0000:03:00.0: amdgpu: amdgpu: finishing device.
amdgpu: cp queue pipe 4 queue 0 preemption failed
amdgpu 0000:03:00.0: amdgpu: failed to write reg 2890 wait reg 28a2
amdgpu 0000:03:00.0: amdgpu: failed to write reg 1a6f4 wait reg 1a706
amdgpu 0000:03:00.0: amdgpu: failed to write reg 2890 wait reg 28a2
amdgpu 0000:03:00.0: amdgpu: failed to write reg 1a6f4 wait reg 1a706

Signed-off-by: Dennis Li <Dennis.Li@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-01-19 18:26:16 +01:00
..
acp treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
amdgpu drm/amdgpu: fix a GPU hang issue when remove device 2021-01-19 18:26:16 +01:00
amdkfd drm/amdkfd: Fix leak in dmabuf import 2020-12-30 11:51:30 +01:00
display Revert "drm/amd/display: Fix memory leaks in S3 resume" 2021-01-09 13:44:53 +01:00
include amdgpu/gmc_v9: save/restore sdpif regs during S3 2020-03-05 16:43:43 +01:00
powerplay drm/amd/pm: do not use ixFEATURE_STATUS for checking smc running 2020-11-18 19:20:23 +01:00