Commit e5e0e867 authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/amdgpu/dce: fix mask in dce_v*_0_is_in_vblank



Using the wrong mask.

Reviewed-by: default avatarMichel Dänzer <michel.daenzer@amd.com>
Noticed-by: default avatarHans de Ruiter <hans@keasigmadelta.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent ac5d44fb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
+1 −1
Original line number Diff line number Diff line
@@ -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;
+1 −1
Original line number Diff line number Diff line
@@ -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;