]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: added a sysfs interface for thermal throttling related V4
authorEvan Quan <evan.quan@amd.com>
Fri, 22 May 2020 10:57:11 +0000 (18:57 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 29 May 2020 17:55:07 +0000 (13:55 -0400)
commit2cfce1580d81cfd4820b4e6bae87a9f94fe147f1
tree624303118365a4bba34f2e90fe2a0f3c67fa4e28
parent41059401a5db06085353239d42d020e0a1d72260
drm/amdgpu: added a sysfs interface for thermal throttling related V4

User can check and set the enablement of throttling logging and
the interval between each logging.

V2: simplify the sysfs interface(no string parsing)
V3: add proper lock protection on updating throttling_logging_rs.interval
V4: documentation cosmetic per Luben's suggestion

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Luben Tuikov <luben.tuikov@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/amdgpu/amdgpu_pm.c
drivers/gpu/drm/amd/powerplay/smu_v11_0.c