aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/si.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2013-07-16 15:58:50 -0400
committerAlex Deucher <alexander.deucher@amd.com>2013-07-17 14:52:46 -0400
commit1294d4a36d1e0dacfc37c1f269d78ff58f0cd8bc (patch)
tree9a5afd468988672a58310fdcfbe14839672f28c0 /drivers/gpu/drm/radeon/si.c
parentuvesafb: Really allow mtrr being 0, as documented and warn()ed (diff)
downloadlinux-dev-1294d4a36d1e0dacfc37c1f269d78ff58f0cd8bc.tar.xz
linux-dev-1294d4a36d1e0dacfc37c1f269d78ff58f0cd8bc.zip
drm/radeon: add a module parameter to disable aspm
Can cause hangs when enabled in certain motherboards. Set radeon.aspm=0 to disable aspm. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/si.c')
-rw-r--r--drivers/gpu/drm/radeon/si.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/si.c b/drivers/gpu/drm/radeon/si.c
index d3f05076f385..d325280e2f9f 100644
--- a/drivers/gpu/drm/radeon/si.c
+++ b/drivers/gpu/drm/radeon/si.c
@@ -7053,6 +7053,9 @@ static void si_program_aspm(struct radeon_device *rdev)
bool disable_l0s = false, disable_l1 = false, disable_plloff_in_l1 = false;
bool disable_clkreq = false;
+ if (radeon_aspm == 0)
+ return;
+
if (!(rdev->flags & RADEON_IS_PCIE))
return;