]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu: disable BAR resize on Dell G5 SE
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 17 Feb 2025 15:55:05 +0000 (10:55 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Feb 2025 16:44:00 +0000 (11:44 -0500)
commit5235053f443cef4210606e5fb71f99b915a9723d
tree5e16422e1e1dd25d676c01b8f22bd77385ce58e0
parent25907304cfce5244fb4a8aa2ca5ec884e823b7c5
drm/amdgpu: disable BAR resize on Dell G5 SE

There was a quirk added to add a workaround for a Sapphire
RX 5600 XT Pulse that didn't allow BAR resizing.  However,
the quirk caused a regression with runtime pm on Dell laptops
using those chips, rather than narrowing the scope of the
resizing quirk, add a quirk to prevent amdgpu from resizing
the BAR on those Dell platforms unless runtime pm is disabled.

v2: update commit message, add runpm check

Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/1707
Fixes: 907830b0fc9e ("PCI: Add a REBAR size quirk for Sapphire RX 5600 XT Pulse")
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c