diff options
author | Evan Quan <evan.quan@amd.com> | 2019-01-14 01:06:54 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-01-25 16:15:34 -0500 |
commit | 7ca881a8651bdeffd99ba8e0010160f9bf60673e (patch) | |
tree | 2eae8b802c105eac32ca7d4027eb7dd7d52115b1 /drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h | |
parent | b61857b5e365889d67a6296c413df396032d374d (diff) |
drm/amd/powerplay: support enabled ppfeatures retrieving and setting V3
User can use "ppfeatures" sysfs interface to retrieve and set enabled
powerplay features.
V2: expose this feature for Vega10 and later dGPUs
V3: squash in removal of unused variable (Alex)
Signed-off-by: Evan Quan <evan.quan@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/amdgpu/amdgpu_dpm.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h index f972cd156795..2f61e9edb1c1 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h | |||
@@ -364,6 +364,14 @@ enum amdgpu_pcie_gen { | |||
364 | ((adev)->powerplay.pp_funcs->enable_mgpu_fan_boost(\ | 364 | ((adev)->powerplay.pp_funcs->enable_mgpu_fan_boost(\ |
365 | (adev)->powerplay.pp_handle)) | 365 | (adev)->powerplay.pp_handle)) |
366 | 366 | ||
367 | #define amdgpu_dpm_get_ppfeature_status(adev, buf) \ | ||
368 | ((adev)->powerplay.pp_funcs->get_ppfeature_status(\ | ||
369 | (adev)->powerplay.pp_handle, (buf))) | ||
370 | |||
371 | #define amdgpu_dpm_set_ppfeature_status(adev, ppfeatures) \ | ||
372 | ((adev)->powerplay.pp_funcs->set_ppfeature_status(\ | ||
373 | (adev)->powerplay.pp_handle, (ppfeatures))) | ||
374 | |||
367 | struct amdgpu_dpm { | 375 | struct amdgpu_dpm { |
368 | struct amdgpu_ps *ps; | 376 | struct amdgpu_ps *ps; |
369 | /* number of valid power states */ | 377 | /* number of valid power states */ |