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>
Tue, 18 Jul 2023 18:16:38 +0000 (14:16 -0400)
commit60a2dae4902015f43d144f5a4710f655b2955b9b
tree553639c9ec126efac76a89fe07e6e1c46da577a1
parentfdf0eaf11452d72945af31804e2a1048ee1b574c
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