diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2017-03-08 18:25:15 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-03-29 23:53:05 -0400 |
commit | 5ebbac4b5c9159130046bf7c56b7f4c71ca7d1b7 (patch) | |
tree | 6255025cf4d226d427c4126724916f74c210d33e /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |
parent | 3cbc614f2fe7500cf2b0f29bbf941cf516c8b950 (diff) |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index b76cd699eb0d..6d5d0a74ad2c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |||
@@ -60,9 +60,10 @@ | |||
60 | * - 3.8.0 - Add support raster config init in the kernel | 60 | * - 3.8.0 - Add support raster config init in the kernel |
61 | * - 3.9.0 - Add support for memory query info about VRAM and GTT. | 61 | * - 3.9.0 - Add support for memory query info about VRAM and GTT. |
62 | * - 3.10.0 - Add support for new fences ioctl, new gem ioctl flags | 62 | * - 3.10.0 - Add support for new fences ioctl, new gem ioctl flags |
63 | * - 3.11.0 - Add support for sensor query info (clocks, temp, etc). | ||
63 | */ | 64 | */ |
64 | #define KMS_DRIVER_MAJOR 3 | 65 | #define KMS_DRIVER_MAJOR 3 |
65 | #define KMS_DRIVER_MINOR 10 | 66 | #define KMS_DRIVER_MINOR 11 |
66 | #define KMS_DRIVER_PATCHLEVEL 0 | 67 | #define KMS_DRIVER_PATCHLEVEL 0 |
67 | 68 | ||
68 | int amdgpu_vram_limit = 0; | 69 | int amdgpu_vram_limit = 0; |