drm/amd: Move helper for dynamic speed switch check out of smu13
authorMario Limonciello <mario.limonciello@amd.com>
Sat, 8 Jul 2023 02:26:08 +0000 (21:26 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 12 Jul 2023 15:12:10 +0000 (11:12 -0400)
commit5d1eb4c4c872b55664f5754cc16827beff8630a7
tree57bc83e61679ea7716e905f197db38ab500ddb62
parent3ebfa943b8451e4675d023b3f387911702ebee17
drm/amd: Move helper for dynamic speed switch check out of smu13

This helper is used for checking if the connected host supports
the feature, it can be moved into generic code to be used by other
smu implementations as well.

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/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c