From 99d184bdf1079a77d71b96bd4742626b690011a2 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Mon, 11 Apr 2022 03:27:25 +0000 Subject: drm/amdgpu: only check for _PR3 on dGPUs From Alex Deucher fe953e0f77e55d004a5b0c533262e389d01e3198 in linux 5.15.y/5.15.33 85ac2021fe3ace59cc0afd6edf005abad35625b0 in mainline linux --- sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c index 1c99fd94196..d00a7c9c5f0 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c @@ -2210,8 +2210,10 @@ static int amdgpu_device_ip_early_init(struct amdgpu_device *adev) !pci_is_thunderbolt_attached(dev->pdev)) adev->flags |= AMD_IS_PX; - parent = pci_upstream_bridge(adev->pdev); - adev->has_pr3 = parent ? pci_pr3_present(parent) : false; + if (!(adev->flags & AMD_IS_APU)) { + parent = pci_upstream_bridge(adev->pdev); + adev->has_pr3 = parent ? pci_pr3_present(parent) : false; + } amdgpu_amdkfd_device_probe(adev); -- cgit v1.2.3