drm/amdgpu/dce: fix mask in dce_v*_0_is_in_vblank
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 2 Feb 2018 17:24:23 +0000 (12:24 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:19:19 +0000 (14:19 -0500)
Using the wrong mask.

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Noticed-by: Hans de Ruiter <hans@keasigmadelta.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c

index c7d1ef00f9a41b8a2d094879e03f635b834182c6..8161b6579715769587618658aaf63e9581889d2e 100644 (file)
@@ -193,7 +193,7 @@ static void dce_v10_0_audio_endpt_wreg(struct amdgpu_device *adev,
 static bool dce_v10_0_is_in_vblank(struct amdgpu_device *adev, int crtc)
 {
        if (RREG32(mmCRTC_STATUS + crtc_offsets[crtc]) &
-                       CRTC_V_BLANK_START_END__CRTC_V_BLANK_START_MASK)
+           CRTC_STATUS__CRTC_V_BLANK_MASK)
                return true;
        else
                return false;
index 99bc1f36c96b0d9c6638aeb69f7e0d8486649f66..00b3df2812073d8401096dea618c34d048c9360e 100644 (file)
@@ -210,7 +210,7 @@ static void dce_v11_0_audio_endpt_wreg(struct amdgpu_device *adev,
 static bool dce_v11_0_is_in_vblank(struct amdgpu_device *adev, int crtc)
 {
        if (RREG32(mmCRTC_STATUS + crtc_offsets[crtc]) &
-                       CRTC_V_BLANK_START_END__CRTC_V_BLANK_START_MASK)
+           CRTC_STATUS__CRTC_V_BLANK_MASK)
                return true;
        else
                return false;
index 823a8c331da535ad5b215661f605f976467ca465..6fc3e05aadbccecca2ae25e9e2247debcdee2922 100644 (file)
@@ -143,7 +143,7 @@ static void dce_v8_0_audio_endpt_wreg(struct amdgpu_device *adev,
 static bool dce_v8_0_is_in_vblank(struct amdgpu_device *adev, int crtc)
 {
        if (RREG32(mmCRTC_STATUS + crtc_offsets[crtc]) &
-                       CRTC_V_BLANK_START_END__CRTC_V_BLANK_START_MASK)
+           CRTC_STATUS__CRTC_V_BLANK_MASK)
                return true;
        else
                return false;