]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/pm: correct the checks for fan attributes support
authorEvan Quan <evan.quan@amd.com>
Tue, 11 Jan 2022 07:02:19 +0000 (15:02 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jan 2022 22:51:15 +0000 (17:51 -0500)
commit38fd78785f5cb45d3f7bab2d4eccc90af218f42e
tree4228a37a53ab54831d7f6c88238ab12a11ec9753
parent92ce74a6db2cd47cb8fa320d98981d6366475fb4
drm/amd/pm: correct the checks for fan attributes support

On functionality unsupported, -EOPNOTSUPP will be returned. And we rely
on that to determine the fan attributes support.

Fixes: 75201cd428261f ("drm/amd/pm: do not expose power implementation details to amdgpu_pm.c")
Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/include/kgd_pp_interface.h
drivers/gpu/drm/amd/pm/amdgpu_dpm.c
drivers/gpu/drm/amd/pm/amdgpu_pm.c
drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c
drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c