summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMario Limonciello <mario.limonciello@amd.com>2026-09-15 10:59:45 -0500
committerAlex Deucher <alexander.deucher@amd.com>2026-09-17 11:38:28 -0400
commit7ea6a47224e2c6e89a3a682d7fbaace4817a55aa (patch)
tree41cf0e902c04550ba635f7b140279239671e0e00 /tools/perf/scripts/python
parent5d7ffdc7f8f55b4d7a91a7ebedbbc0c2ffec9076 (diff)
downloadlinux-7ea6a47224e2c6e89a3a682d7fbaace4817a55aa.tar.gz
linux-7ea6a47224e2c6e89a3a682d7fbaace4817a55aa.zip
drm/amdgpu: Fix GPU PCIe link capability reporting
Commit eb53125a7ad9 ("drm/amd: Add dedicated helper for amdgpu_device_find_parent()") made amdgpu_device_gpu_bandwidth() query the first device outside the dGPU. That is the host side of the physical link, not the GPU side. As a result, the ASIC and platform capability masks can both be based on the host port. drm_amdgpu_info_device then exposes the host capabilities to userspace, such as Gen5 x16 for a Gen4 x8 GPU. Cache both ends of the physical link during device initialization. Use link_dev for the GPU capability and link_partner for the platform capability and _PR3 detection. Reported-by: "Marek Olšák" <maraeo@gmail.com> Closes: https://lore.kernel.org/amd-gfx/CAAxE2A4VhsAzzO1QjBjUg+NgnbD04ZzMyN6xsUJxjKJHH6hxiw@mail.gmail.com/ Suggested-by: Lijo Lazar <lijo.lazar@amd.com> Fixes: eb53125a7ad9 ("drm/amd: Add dedicated helper for amdgpu_device_find_parent()") Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions