aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2018-02-02 12:24:23 -0500
committerAlex Deucher <alexander.deucher@amd.com>2018-02-19 14:19:19 -0500
commite5e0e8671713633f89451280e694d14206b38ef0 (patch)
tree3e3cbe444f47b4fb2c3a3292bb315c4c61eb0d79
parentac5d44fbf3cbd892ad81ab7f50da5ef39e806768 (diff)
drm/amdgpu/dce: fix mask in dce_v*_0_is_in_vblank
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>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/dce_v10_0.c2
-rw-r--r--drivers/gpu/drm/amd/amdgpu/dce_v11_0.c2
-rw-r--r--drivers/gpu/drm/amd/amdgpu/dce_v8_0.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
index c7d1ef00f9a4..8161b6579715 100644
--- a/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
@@ -193,7 +193,7 @@ static void dce_v10_0_audio_endpt_wreg(struct amdgpu_device *adev,
193static bool dce_v10_0_is_in_vblank(struct amdgpu_device *adev, int crtc) 193static bool dce_v10_0_is_in_vblank(struct amdgpu_device *adev, int crtc)
194{ 194{
195 if (RREG32(mmCRTC_STATUS + crtc_offsets[crtc]) & 195 if (RREG32(mmCRTC_STATUS + crtc_offsets[crtc]) &
196 CRTC_V_BLANK_START_END__CRTC_V_BLANK_START_MASK) 196 CRTC_STATUS__CRTC_V_BLANK_MASK)
197 return true; 197 return true;
198 else 198 else
199 return false; 199 return false;
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
index 99bc1f36c96b..00b3df281207 100644
--- a/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
@@ -210,7 +210,7 @@ static void dce_v11_0_audio_endpt_wreg(struct amdgpu_device *adev,
210static bool dce_v11_0_is_in_vblank(struct amdgpu_device *adev, int crtc) 210static bool dce_v11_0_is_in_vblank(struct amdgpu_device *adev, int crtc)
211{ 211{
212 if (RREG32(mmCRTC_STATUS + crtc_offsets[crtc]) & 212 if (RREG32(mmCRTC_STATUS + crtc_offsets[crtc]) &
213 CRTC_V_BLANK_START_END__CRTC_V_BLANK_START_MASK) 213 CRTC_STATUS__CRTC_V_BLANK_MASK)
214 return true; 214 return true;
215 else 215 else
216 return false; 216 return false;
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c
index 823a8c331da5..6fc3e05aadbc 100644
--- a/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c
@@ -143,7 +143,7 @@ static void dce_v8_0_audio_endpt_wreg(struct amdgpu_device *adev,
143static bool dce_v8_0_is_in_vblank(struct amdgpu_device *adev, int crtc) 143static bool dce_v8_0_is_in_vblank(struct amdgpu_device *adev, int crtc)
144{ 144{
145 if (RREG32(mmCRTC_STATUS + crtc_offsets[crtc]) & 145 if (RREG32(mmCRTC_STATUS + crtc_offsets[crtc]) &
146 CRTC_V_BLANK_START_END__CRTC_V_BLANK_START_MASK) 146 CRTC_STATUS__CRTC_V_BLANK_MASK)
147 return true; 147 return true;
148 else 148 else
149 return false; 149 return false;