]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu: Check extended configuration space register when system uses large bar
authorMa Jun <Jun.Ma2@amd.com>
Mon, 18 Dec 2023 03:32:06 +0000 (11:32 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 11:51:01 +0000 (12:51 +0100)
commit4be891399cdce39714445a92243fe42280239057
tree31473727f092120cc3ae445322464ca3742c20a1
parentf618aeb6cad2307e48a641379db610abcf593edf
drm/amdgpu: Check extended configuration space register when system uses large bar

[ Upstream commit e372baeb3d336b20fd9463784c577fd8824497cd ]

Some customer platforms do not enable mmconfig for various reasons,
such as bios bug, and therefore cannot access the GPU extend configuration
space through mmio.

When the system enters the d3cold state and resumes, the amdgpu driver
fails to resume because the extend configuration space registers of
GPU can't be restored. At this point, Usually we only see some failure
dmesg log printed by amdgpu driver, it is difficult to find the root
cause.

Therefor print a warnning message if the system can't access the
extended configuration space register when using large bar.

Signed-off-by: Ma Jun <Jun.Ma2@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Stable-dep-of: 099bffc7cadf ("drm/amdgpu: disable BAR resize on Dell G5 SE")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c