]> git.baikalelectronics.ru Git - kernel.git/commit
amdgpu/pm: read_sensor() report failure apporpriately
authorShirish S <shirish.s@amd.com>
Thu, 25 Feb 2021 15:37:21 +0000 (21:07 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 26 Feb 2021 22:23:49 +0000 (17:23 -0500)
commit833106f044dd6675904ee0647a6058245d00c0db
treec3f8c0a4adeeedc796f9e7c6aaad557319a5bbd2
parent10aae5f9e393f9a62266945d55b36f40d26f6956
amdgpu/pm: read_sensor() report failure apporpriately

report -ENOTSUPP instead of -EINVAL, so that if userspace
fails to read sensor data can figure it out the failure correctly.

Signed-off-by: Shirish S <shirish.s@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/smu10_hwmgr.c
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu8_hwmgr.c
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_hwmgr.c
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.c
drivers/gpu/drm/amd/pm/powerplay/kv_dpm.c
drivers/gpu/drm/amd/pm/powerplay/si_dpm.c