Change-Id: I7379d073c0e8123444deed9a91564de17b3fb722
Signed-off-by: Huang Rui <ray.hu...@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/si_dpm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/si_dpm.c 
b/drivers/gpu/drm/amd/amdgpu/si_dpm.c
index ce563cb..9b7d4bf 100644
--- a/drivers/gpu/drm/amd/amdgpu/si_dpm.c
+++ b/drivers/gpu/drm/amd/amdgpu/si_dpm.c
@@ -6242,7 +6242,7 @@ static u16 si_get_current_pcie_speed(struct amdgpu_device 
*adev)
 {
        u32 speed_cntl;
 
-       speed_cntl = RREG32_PCIE(PCIE_LC_SPEED_CNTL) & 
LC_CURRENT_DATA_RATE_MASK;
+       speed_cntl = RREG32_PCIE_PORT(PCIE_LC_SPEED_CNTL) & 
LC_CURRENT_DATA_RATE_MASK;
        speed_cntl >>= LC_CURRENT_DATA_RATE_SHIFT;
 
        return (u16)speed_cntl;
-- 
2.7.4

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to