]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd: Add dedicated helper for amdgpu_device_find_parent()
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 20 May 2026 15:46:17 +0000 (10:46 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 27 May 2026 14:48:36 +0000 (10:48 -0400)
commiteb53125a7ad99c7fc2f249bffdc561afa002a46c
tree25d17620fa2610b7eae95c274127d1c78fd8bffd
parentdeb02080ca5d3f015cf71e56067a39ef2f141998
drm/amd: Add dedicated helper for amdgpu_device_find_parent()

There are a few cases that code walks up the topology to find the
link partner of the integrated switch in a dGPU.  Split this out
to a helper and call in all places.

This does have a functional change that amdgpu_device_gpu_bandwidth()
doesn't cache the internal link but only the 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>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c