drm/amdgpu: expose GPU sensor related information
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Mar 2017 23:25:15 +0000 (18:25 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:53:05 +0000 (23:53 -0400)
commit5ebbac4b5c9159130046bf7c56b7f4c71ca7d1b7
tree6255025cf4d226d427c4126724916f74c210d33e
parent3cbc614f2fe7500cf2b0f29bbf941cf516c8b950
drm/amdgpu: expose GPU sensor related information

This includes shader/memory clocks, temperature, GPU load, etc.

v2: - add sub-queries for AMDPGU_INFO_GPU_SENSOR_*
    - do not break the ABI
v3: - return -ENOENT when amdgpu_dpm == 0
    - expose more sensor queries
v4: - s/GPU_POWER/GPU_AVG_POWER/
    - improve VDDNB/VDDGFX query description
    - fix amdgpu_dpm check
v5: - agd: fix warning
v6: - agd: bump version

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
include/uapi/drm/amdgpu_drm.h