Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5235053

Browse files
committed
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: 907830b ("PCI: Add a REBAR size quirk for Sapphire RX 5600 XT Pulse") Reviewed-by: Lijo Lazar <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 2590730 commit 5235053

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1662,6 +1662,13 @@ int amdgpu_device_resize_fb_bar(struct amdgpu_device *adev)
16621662
if (amdgpu_sriov_vf(adev))
16631663
return 0;
16641664

1665+
/* resizing on Dell G5 SE platforms causes problems with runtime pm */
1666+
if ((amdgpu_runtime_pm != 0) &&
1667+
adev->pdev->vendor == PCI_VENDOR_ID_ATI &&
1668+
adev->pdev->device == 0x731f &&
1669+
adev->pdev->subsystem_vendor == PCI_VENDOR_ID_DELL)
1670+
return 0;
1671+
16651672
/* PCI_EXT_CAP_ID_VNDR extended capability is located at 0x100 */
16661673
if (!pci_find_ext_capability(adev->pdev, PCI_EXT_CAP_ID_VNDR))
16671674
DRM_WARN("System can't access extended configuration space, please check!!\n");

0 commit comments

Comments
 (0)