OSDN Git Service

drm/amdgpu: implement read_sensor() for pre-powerplay chips
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 14 Feb 2017 00:00:49 +0000 (01:00 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:53:03 +0000 (23:53 -0400)
commitd6c29695e68ca911648dbe2294764dab6ef84fc7
treeb14a6d711a6e8065e64b31599fdada9668163cee
parent75cb00dc0c9dbe5e7a971ac729384d8d05f0deb1
drm/amdgpu: implement read_sensor() for pre-powerplay chips

Add the GPU temperature, the shader clock and eventually the
memory clock (as well as the GPU load on CI). The main goal is
to expose this info to the userspace like Radeon.

v2: - add AMDGPU_PP_SENSOR_GPU_LOAD on CI
    - update the commit description

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h
drivers/gpu/drm/amd/amdgpu/ci_dpm.c
drivers/gpu/drm/amd/amdgpu/kv_dpm.c
drivers/gpu/drm/amd/amdgpu/si_dpm.c