aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/ni.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2013-02-15 11:02:50 -0500
committerAlex Deucher <alexander.deucher@amd.com>2013-06-27 19:16:27 -0400
commitf52382d73e8b5bf8bc9e2faadab365d8c38c64a9 (patch)
tree9141ef08f08c29da296e2b4b6ba8e1628cba3960 /drivers/gpu/drm/radeon/ni.c
parent792edd69573da6d8981a82ec830e6257ead822d8 (diff)
drm/radeon: add support for ASPM on evergreen asics
Enables PCIE ASPM (Active State Power Management) on evergreen-cayman asics. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/ni.c')
-rw-r--r--drivers/gpu/drm/radeon/ni.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/ni.c b/drivers/gpu/drm/radeon/ni.c
index ad65143232c0..cafc3bd78a38 100644
--- a/drivers/gpu/drm/radeon/ni.c
+++ b/drivers/gpu/drm/radeon/ni.c
@@ -173,6 +173,7 @@ extern void evergreen_irq_suspend(struct radeon_device *rdev);
173extern int evergreen_mc_init(struct radeon_device *rdev); 173extern int evergreen_mc_init(struct radeon_device *rdev);
174extern void evergreen_fix_pci_max_read_req_size(struct radeon_device *rdev); 174extern void evergreen_fix_pci_max_read_req_size(struct radeon_device *rdev);
175extern void evergreen_pcie_gen2_enable(struct radeon_device *rdev); 175extern void evergreen_pcie_gen2_enable(struct radeon_device *rdev);
176extern void evergreen_program_aspm(struct radeon_device *rdev);
176extern void sumo_rlc_fini(struct radeon_device *rdev); 177extern void sumo_rlc_fini(struct radeon_device *rdev);
177extern int sumo_rlc_init(struct radeon_device *rdev); 178extern int sumo_rlc_init(struct radeon_device *rdev);
178 179
@@ -2076,6 +2077,8 @@ static int cayman_startup(struct radeon_device *rdev)
2076 2077
2077 /* enable pcie gen2 link */ 2078 /* enable pcie gen2 link */
2078 evergreen_pcie_gen2_enable(rdev); 2079 evergreen_pcie_gen2_enable(rdev);
2080 /* enable aspm */
2081 evergreen_program_aspm(rdev);
2079 2082
2080 if (rdev->flags & RADEON_IS_IGP) { 2083 if (rdev->flags & RADEON_IS_IGP) {
2081 if (!rdev->me_fw || !rdev->pfp_fw || !rdev->rlc_fw) { 2084 if (!rdev->me_fw || !rdev->pfp_fw || !rdev->rlc_fw) {