drm/amd/pm: Disable fan control if not supported
authorElena Sakhnovitch <elena.sakhnovitch@amd.com>
Fri, 11 Mar 2022 19:03:09 +0000 (14:03 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 May 2022 13:54:50 +0000 (09:54 -0400)
commit57301181a5fc0df7e4b01661f80124e590ce4c40
tree08aaee4a3e1d31b428cf682b94e78fef9da7409e
parent996ea8591b099b0657750ade07a99138c5513457
drm/amd/pm: Disable fan control if not supported

On Sienna Cichild, not all platforms use PMFW based fan control
(ex: fanless systems). On such ASICs fan control by PMFW will be
disabled in PPTable. Disable hwmon knobs for fan control also as
it is not possible to report or control fan speed on such platforms
through driver.

v3: FeaturesToRun casted as uint64_t

Signed-off-by: Elena Sakhnovitch <elena.sakhnovitch@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c