diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2013-02-15 11:02:50 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2013-06-27 19:16:27 -0400 |
commit | f52382d73e8b5bf8bc9e2faadab365d8c38c64a9 (patch) | |
tree | 9141ef08f08c29da296e2b4b6ba8e1628cba3960 /drivers/gpu/drm/radeon/ni.c | |
parent | 792edd69573da6d8981a82ec830e6257ead822d8 (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.c | 3 |
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); | |||
173 | extern int evergreen_mc_init(struct radeon_device *rdev); | 173 | extern int evergreen_mc_init(struct radeon_device *rdev); |
174 | extern void evergreen_fix_pci_max_read_req_size(struct radeon_device *rdev); | 174 | extern void evergreen_fix_pci_max_read_req_size(struct radeon_device *rdev); |
175 | extern void evergreen_pcie_gen2_enable(struct radeon_device *rdev); | 175 | extern void evergreen_pcie_gen2_enable(struct radeon_device *rdev); |
176 | extern void evergreen_program_aspm(struct radeon_device *rdev); | ||
176 | extern void sumo_rlc_fini(struct radeon_device *rdev); | 177 | extern void sumo_rlc_fini(struct radeon_device *rdev); |
177 | extern int sumo_rlc_init(struct radeon_device *rdev); | 178 | extern 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) { |