diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2013-06-26 00:15:24 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2013-06-27 19:15:44 -0400 |
commit | 6596afd48af4d07c8b454849b2fe7e628974f3ef (patch) | |
tree | 4a6a081ef0f3b6cc96afc36c65ff502129072bd1 /drivers/gpu/drm/radeon/radeon_asic.c | |
parent | dc50ba7f9a6d9a920409892c7f30bce266067345 (diff) |
drm/radeon/kms: add dpm support for btc (v3)
This adds dpm support for btc asics. This includes:
- clockgating
- dynamic engine clock scaling
- dynamic memory clock scaling
- dynamic voltage scaling
- dynamic pcie gen1/gen2 switching (requires additional acpi support)
Set radeon.dpm=1 to enable.
v2: reduce stack usage
v3: attempt to fix state enable
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_asic.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_asic.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_asic.c b/drivers/gpu/drm/radeon/radeon_asic.c index 4ca134bef689..f9c3f1c1f3e2 100644 --- a/drivers/gpu/drm/radeon/radeon_asic.c +++ b/drivers/gpu/drm/radeon/radeon_asic.c | |||
@@ -1722,6 +1722,18 @@ static struct radeon_asic btc_asic = { | |||
1722 | .set_uvd_clocks = &evergreen_set_uvd_clocks, | 1722 | .set_uvd_clocks = &evergreen_set_uvd_clocks, |
1723 | .get_temperature = &evergreen_get_temp, | 1723 | .get_temperature = &evergreen_get_temp, |
1724 | }, | 1724 | }, |
1725 | .dpm = { | ||
1726 | .init = &btc_dpm_init, | ||
1727 | .setup_asic = &btc_dpm_setup_asic, | ||
1728 | .enable = &btc_dpm_enable, | ||
1729 | .disable = &btc_dpm_disable, | ||
1730 | .set_power_state = &btc_dpm_set_power_state, | ||
1731 | .display_configuration_changed = &cypress_dpm_display_configuration_changed, | ||
1732 | .fini = &btc_dpm_fini, | ||
1733 | .get_sclk = &rv770_dpm_get_sclk, | ||
1734 | .get_mclk = &rv770_dpm_get_mclk, | ||
1735 | .print_power_state = &rv770_dpm_print_power_state, | ||
1736 | }, | ||
1725 | .pflip = { | 1737 | .pflip = { |
1726 | .pre_page_flip = &evergreen_pre_page_flip, | 1738 | .pre_page_flip = &evergreen_pre_page_flip, |
1727 | .page_flip = &evergreen_page_flip, | 1739 | .page_flip = &evergreen_page_flip, |