drm/amdgpu: added a sysfs interface for thermal throttling
authorKun Liu <Kun.Liu2@amd.com>
Tue, 21 Feb 2023 08:31:18 +0000 (16:31 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 23 Feb 2023 22:36:00 +0000 (17:36 -0500)
commitc3ed0e72c872901659ed0fef4b91eb6ab7dc6aad
tree2a926d04a792051d5546285199e2b0849c977d3d
parent4f101d5710a84f334b05a96713000ce8dfd4d598
drm/amdgpu: added a sysfs interface for thermal throttling

added a sysfs interface for thermal throttling, then userspace
can get/update thermal limit

Signed-off-by: Kun Liu <Kun.Liu2@amd.com>
Reviewed-by: Evan Quan <evan.quan@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/inc/amdgpu_dpm.h
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h