Acked-by: Christian König <christian.koe...@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
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 8541830..b63dd39 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