diff options
author | Tom St Denis | 2017-02-09 20:29:01 +0100 |
---|---|---|
committer | Alex Deucher | 2017-03-30 05:52:59 +0200 |
commit | 9f8df7d71e382c9afa808a08c11a990e90ac7df4 (patch) | |
tree | 9002abe9daf71a55c7bcde6022f4ed6b67d657e6 /drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | |
parent | drm/amdgpu: implement PRT for GFX8 v2 (diff) | |
download | kernel-qcow2-linux-9f8df7d71e382c9afa808a08c11a990e90ac7df4.tar.gz kernel-qcow2-linux-9f8df7d71e382c9afa808a08c11a990e90ac7df4.tar.xz kernel-qcow2-linux-9f8df7d71e382c9afa808a08c11a990e90ac7df4.zip |
drm/amd/amdgpu: Update read_sensor calls to have size parameter (v3)
This update allows sensors to return more than 1 value and
indicates to the caller how many bytes are written.
The debugfs interface has been updated to handle reading all
of the values. Simply seek to the enum value (multiplied
by 4) and then read as many bytes as the sensor provides.
(v2): Don't set size to 4 before reading GPU_POWER
(v3): agd: rebase
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/inc/hwmgr.h')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h b/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h index fa3bf50eff82..8cf5aed055b6 100644 --- a/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h +++ b/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h @@ -355,7 +355,7 @@ struct pp_hwmgr_func { int (*set_sclk_od)(struct pp_hwmgr *hwmgr, uint32_t value); int (*get_mclk_od)(struct pp_hwmgr *hwmgr); int (*set_mclk_od)(struct pp_hwmgr *hwmgr, uint32_t value); - int (*read_sensor)(struct pp_hwmgr *hwmgr, int idx, void *value); + int (*read_sensor)(struct pp_hwmgr *hwmgr, int idx, void *value, int *size); int (*request_firmware)(struct pp_hwmgr *hwmgr); int (*release_firmware)(struct pp_hwmgr *hwmgr); int (*set_power_profile_state)(struct pp_hwmgr *hwmgr, |