summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
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:55:14 -0400
commit04de4007d32385b8b6a5dd72bff3146dfdc592c3 (patch)
treea777d15fec2d2d21bd80884bb4793675b7dbf20e /tools/perf/scripts/python/bin/stackcollapse-report
parent723d4dc628d764b19cf9efca14b82cca5ff020c9 (diff)
downloadlinux-next-04de4007d32385b8b6a5dd72bff3146dfdc592c3.tar.gz
linux-next-04de4007d32385b8b6a5dd72bff3146dfdc592c3.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> (cherry picked from commit 7ea6a47224e2c6e89a3a682d7fbaace4817a55aa) Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions