drm/amd: Exclude dGPUs in eGPU enclosures from DPM quirks
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 10 Nov 2023 22:34:52 +0000 (16:34 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 Nov 2023 14:30:51 +0000 (09:30 -0500)
commitd9b3a066dfcd3fe50b4dc561d8510c43c0ad8863
treeff626a7cdfb0f24c4b7f3b9097d59f395db594bd
parent466a7d115326ece682c2b60d1c77d1d0b9010b4f
drm/amd: Exclude dGPUs in eGPU enclosures from DPM quirks

The PCIe speed capabilities advertised by a USB4 or TBT3 link are
limited to PCIe gen 1 per the USB4 spec. In reality the speed will
change dynamically based on fabric conditions and other traffic.

DPM is disabled when dGPUs are connected directly to Intel hosts
since the PCIe root port isn't able to handle dynamic speed
switching.

As this limitation is specifically for PCIe root ports in the SoC,
don't apply it when connected to an eGPU enclosure connected to an
Intel host.

Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2885
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c