diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2013-06-25 15:40:21 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2013-06-27 19:16:18 -0400 |
commit | 422a56bc8a5aaa6d48b244a1ba0484ef4d62a7ac (patch) | |
tree | 8c25a9e64134c9d1a7e9fb0c6fe6f298a7f2a2f5 /drivers/gpu/drm/radeon/sumo_dpm.h | |
parent | 98243917d7cd64be923aad76c563de7e23b0b386 (diff) |
drm/radeon/dpm: add pre/post_set_power_state callback (sumo)
This properly implemented dynamic state adjustment by
using a working copy of the requested and current
power states.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/sumo_dpm.h')
-rw-r--r-- | drivers/gpu/drm/radeon/sumo_dpm.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/sumo_dpm.h b/drivers/gpu/drm/radeon/sumo_dpm.h index a40b62ae0957..a3a7a6190713 100644 --- a/drivers/gpu/drm/radeon/sumo_dpm.h +++ b/drivers/gpu/drm/radeon/sumo_dpm.h | |||
@@ -116,7 +116,6 @@ struct sumo_power_info { | |||
116 | struct sumo_pl acpi_pl; | 116 | struct sumo_pl acpi_pl; |
117 | struct sumo_pl boot_pl; | 117 | struct sumo_pl boot_pl; |
118 | struct sumo_pl boost_pl; | 118 | struct sumo_pl boost_pl; |
119 | struct sumo_ps current_ps; | ||
120 | bool disable_gfx_power_gating_in_uvd; | 119 | bool disable_gfx_power_gating_in_uvd; |
121 | bool driver_nbps_policy_disable; | 120 | bool driver_nbps_policy_disable; |
122 | bool enable_alt_vddnb; | 121 | bool enable_alt_vddnb; |
@@ -129,7 +128,10 @@ struct sumo_power_info { | |||
129 | bool enable_dynamic_patch_ps; | 128 | bool enable_dynamic_patch_ps; |
130 | bool enable_dpm; | 129 | bool enable_dpm; |
131 | bool enable_boost; | 130 | bool enable_boost; |
132 | struct sumo_ps hw_ps; | 131 | struct radeon_ps current_rps; |
132 | struct sumo_ps current_ps; | ||
133 | struct radeon_ps requested_rps; | ||
134 | struct sumo_ps requested_ps; | ||
133 | }; | 135 | }; |
134 | 136 | ||
135 | #define SUMO_UTC_DFLT_00 0x48 | 137 | #define SUMO_UTC_DFLT_00 0x48 |