Skip to content

Adjustments to _PR3 detection

Mario Limonciello amd-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/amd: Add dedicated helper for amdgpu_device_find_parent()drivers/gpu/drm/amd/amdgpu/amdgpu_device.c+23 -213 replies
2/2drm/amd: Adjust _PR3 detectiondrivers/gpu/drm/amd/amdgpu/amdgpu_device.c+2 -51 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchAlex Deucher
1/2
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] Adjustments to _PR3 detection

As part of reviewing a recent issue with BOCO I looked more closely at what we're doing for _PR3 detection.

We used to look at the immediate link partner of the GPU PCIe device to detect _PR3. This was wrong because dGPUs have internal PCIe switches and those switches won't have _PR3.

So I changed it a few years back to look at the root port. This worked correctly for some common cases, but I realized that if you have a bridge between (for example a B650) then you might end up in the wrong power state for either of these cases:
* Bridge supports _PR3 but CPU root port doesn't
* CPU root port supports _PR3 but bridge doesn't

Both of those cases could lead to actually using the wrong power management for the dGPU.

So this series adjusts the detection to look at the link partner of the first PCIe device "outside of the dGPU" instead of the root port.

Mario Limonciello (2):
drm/amd: Add dedicated helper for amdgpu_device_find_parent() drm/amd: Adjust _PR3 detection

 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 51 +++++++++++-----------
 1 file changed, 25 insertions(+), 26 deletions(-)
Signature · 1 line
2.43.0