Hi, This series exposes the current GPU temperature and the current shader clock (and eventually the memory clock for non-APUs boards). This adds the same functionality as the Radeon driver. The main goal is to expose the info through the GALLIUM_HUD in Mesa. Alex Deucher suggested to wire-up the read_sensor() interface for pre-powerplay chips. The rest of the series is quite simple. This has only been tested on Polaris (RX480). Please review! Thanks. Samuel Pitoiset (2): drm/amdgpu: implement read_sensor() for pre-powerplay chips drm/amdgpu: expose the current temperature and shader/memory clocks drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h | 4 +++- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 3 ++- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 27 ++++++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/ci_dpm.c | 26 +++++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/kv_dpm.c | 34 +++++++++++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/si_dpm.c | 41 +++++++++++++++++++++++++++++++++ include/uapi/drm/amdgpu_drm.h | 8 ++++++- 7 files changed, 140 insertions(+), 3 deletions(-) -- 2.11.1