summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/evergreen.c
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2011-01-12 20:05:11 -0500
committerDave Airlie <airlied@redhat.com>2011-01-17 12:21:34 +1000
commitd42dd579ac1498e23f29465225fa3eee4520f5e5 (patch)
tree0781d5ae64b039a23bfdc2ec2c7356b679247d18 /drivers/gpu/drm/radeon/evergreen.c
parent394d83c17fac2b7bcf05cb99d1e945135767bb6b (diff)
downloadop-kernel-dev-d42dd579ac1498e23f29465225fa3eee4520f5e5.zip
op-kernel-dev-d42dd579ac1498e23f29465225fa3eee4520f5e5.tar.gz
drm/radeon/kms: add module option for pcie gen2
Switching to pcie gen2 causes problems on some boards. Add a module option to turn it on/off. There are gen2 compatability issues with some motherboards it seems. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=33027 Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/evergreen.c')
-rw-r--r--drivers/gpu/drm/radeon/evergreen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c
index 7fe8ebd..e201a88 100644
--- a/drivers/gpu/drm/radeon/evergreen.c
+++ b/drivers/gpu/drm/radeon/evergreen.c
@@ -3158,6 +3158,9 @@ static void evergreen_pcie_gen2_enable(struct radeon_device *rdev)
{
u32 link_width_cntl, speed_cntl;
+ if (radeon_pcie_gen2 == 0)
+ return;
+
if (rdev->flags & RADEON_IS_IGP)
return;
OpenPOWER on IntegriCloud