drm/amdgpu: Adjust logic in amdgpu_device_partner_bandwidth()
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 15 May 2024 15:25:49 +0000 (11:25 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 May 2024 21:01:49 +0000 (17:01 -0400)
commitba46b3bda296c4f82b061ac40b90f49d2a00a380
tree38dfc8e3707aa98514c30912618e3c87529f9ad6
parent8195979d2dd995d60c2663adf54c69c1bf4eadd1
drm/amdgpu: Adjust logic in amdgpu_device_partner_bandwidth()

Use current speed/width on devices which don't support
dynamic PCIe switching.

Fixes: 466a7d115326 ("drm/amd: Use the first non-dGPU PCI device for BW limits")
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3289
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c