|
@@ -3431,9 +3431,14 @@ void evergreen_pcie_gen2_enable(struct radeon_device *rdev)
|
|
|
if (!(mask & DRM_PCIE_SPEED_50))
|
|
|
return;
|
|
|
|
|
|
+ speed_cntl = RREG32_PCIE_P(PCIE_LC_SPEED_CNTL);
|
|
|
+ if (speed_cntl & LC_CURRENT_DATA_RATE) {
|
|
|
+ DRM_INFO("PCIE gen 2 link speeds already enabled\n");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
DRM_INFO("enabling PCIE gen 2 link speeds, disable with radeon.pcie_gen2=0\n");
|
|
|
|
|
|
- speed_cntl = RREG32_PCIE_P(PCIE_LC_SPEED_CNTL);
|
|
|
if ((speed_cntl & LC_OTHER_SIDE_EVER_SENT_GEN2) ||
|
|
|
(speed_cntl & LC_OTHER_SIDE_SUPPORTS_GEN2)) {
|
|
|
|