]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: check ASPM on the dGPU host link
authorYang Wang <kevinyang.wang@amd.com>
Wed, 5 Aug 2026 12:39:18 +0000 (20:39 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 12 Aug 2026 14:21:31 +0000 (10:21 -0400)
commit2a9c5154a5650c09ad44ff5e1dff74754e15a3c6
tree71bbb7127d9918e2d4f9065a60b2a86fec205e4b
parent587be7a17358ef8c0106775fcedae5a7bef50735
drm/amdgpu: check ASPM on the dGPU host link

dGPUs with an internal PCIe switch expose graphics functions below the
switch downstream port. The automatic ASPM check uses the display
endpoint and evaluates the internal link instead of the host link.

Use the switch upstream port for the check and report the selected
link.

Fixes: 0ab5d711ec74 ("drm/amd: Refactor `amdgpu_aspm` to be evaluated per device")
Signed-off-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 4e0d6f2876e704fff707b18c40dbd383aea4a1c9)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c