Skip to content

Commit 134b8c5

Browse files
superm1alexdeucher
authored andcommitted
drm/amd: Fix detection of _PR3 on the PCIe root port
On some systems with Navi3x dGPU will attempt to use BACO for runtime PM but fails to resume properly. This is because on these systems the root port goes into D3cold which is incompatible with BACO. This happens because in this case dGPU is connected to a bridge between root port which causes BOCO detection logic to fail. Fix the intent of the logic by looking at root port, not the immediate upstream bridge for _PR3. Cc: stable@vger.kernel.org Suggested-by: Jun Ma <Jun.Ma2@amd.com> Tested-by: David Perry <David.Perry@amd.com> Fixes: b10c1c5 ("drm/amdgpu: add check for ACPI power resources") Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 2a1fe39 commit 134b8c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2093,7 +2093,7 @@ static int amdgpu_device_ip_early_init(struct amdgpu_device *adev)
20932093
adev->flags |= AMD_IS_PX;
20942094

20952095
if (!(adev->flags & AMD_IS_APU)) {
2096-
parent = pci_upstream_bridge(adev->pdev);
2096+
parent = pcie_find_root_port(adev->pdev);
20972097
adev->has_pr3 = parent ? pci_pr3_present(parent) : false;
20982098
}
20992099

0 commit comments

Comments
 (0)