drm/amd: Use amdgpu_device_pcie_dynamic_switching_supported() for SMU7
authorMario Limonciello <mario.limonciello@amd.com>
Sat, 8 Jul 2023 02:26:10 +0000 (21:26 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Jul 2023 21:29:23 +0000 (17:29 -0400)
commitf0259c008aeb0cea25b6e49811d5be587e182be6
treea94e6d530085b605797e501ef65745bccd226b7e
parent2f77b5931f68b1d1c290fff9d785fe15f1fa2a47
drm/amd: Use amdgpu_device_pcie_dynamic_switching_supported() for SMU7

SMU7 does a check if the dGPU is inserted into a Rocket Lake system,
to turn off DPM.  Extend this check to all systems that have problems
with dynamic switching by using the
amdgpu_device_pcie_dynamic_switching_supported() helper.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c