diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2010-02-18 15:24:28 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-02-22 18:48:56 -0500 |
commit | aa5120d2ef228042416d3023fb7eda9ee487dcf9 (patch) | |
tree | 802a097e3d3b18f91113f47f02bbd091b9409698 /drivers/gpu/drm/radeon/r300.c | |
parent | 08ff2a7a7a13c562e81a406722193f43cbb4e4ef (diff) |
drm/radeon/kms: implement reading active PCIE lanes on R600+
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/r300.c')
-rw-r--r-- | drivers/gpu/drm/radeon/r300.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/r300.c b/drivers/gpu/drm/radeon/r300.c index b188aae764c..dc32cd13a83 100644 --- a/drivers/gpu/drm/radeon/r300.c +++ b/drivers/gpu/drm/radeon/r300.c | |||
@@ -554,7 +554,10 @@ int rv370_get_pcie_lanes(struct radeon_device *rdev) | |||
554 | 554 | ||
555 | /* FIXME wait for idle */ | 555 | /* FIXME wait for idle */ |
556 | 556 | ||
557 | link_width_cntl = RREG32_PCIE(RADEON_PCIE_LC_LINK_WIDTH_CNTL); | 557 | if (rdev->family < CHIP_R600) |
558 | link_width_cntl = RREG32_PCIE(RADEON_PCIE_LC_LINK_WIDTH_CNTL); | ||
559 | else | ||
560 | link_width_cntl = RREG32_PCIE_P(RADEON_PCIE_LC_LINK_WIDTH_CNTL); | ||
558 | 561 | ||
559 | switch ((link_width_cntl & RADEON_PCIE_LC_LINK_WIDTH_RD_MASK) >> RADEON_PCIE_LC_LINK_WIDTH_RD_SHIFT) { | 562 | switch ((link_width_cntl & RADEON_PCIE_LC_LINK_WIDTH_RD_MASK) >> RADEON_PCIE_LC_LINK_WIDTH_RD_SHIFT) { |
560 | case RADEON_PCIE_LC_LINK_WIDTH_X0: | 563 | case RADEON_PCIE_LC_LINK_WIDTH_X0: |