drm/radeon/dce4+: set a more reasonable cursor watermark
Subsystems (2)
PATCH 1/1 drm/radeon/dce4+: set a more reasonable cursor watermark
From: Alex Deucher <[email protected]>
Set a more reasonable default cursor watermark. The recommended default value is 4. This should reduce urgency requests to the MC form the display hw.
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/radeon/radeon_cursor.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
drivers/gpu/drm/radeon/radeon_cursor.c +4 -2
@@ -67,7 +67,8 @@ static void radeon_hide_cursor(struct drm_crtc *crtc)if (ASIC_IS_DCE4 (rdev)) {WREG32 (RADEON_MM_INDEX ,EVERGREEN_CUR_CONTROL + radeon_crtc->crtc_offset); -WREG32 (RADEON_MM_DATA ,EVERGREEN_CURSOR_MODE (EVERGREEN_CURSOR_24_8_PRE_MULT )); +WREG32 (RADEON_MM_DATA ,EVERGREEN_CURSOR_MODE (EVERGREEN_CURSOR_24_8_PRE_MULT ) | +EVERGREEN_CURSOR_URGENT_CONTROL (EVERGREEN_CURSOR_URGENT_1_2 )); }else if (ASIC_IS_AVIVO (rdev)) {WREG32 (RADEON_MM_INDEX ,AVIVO_D1CUR_CONTROL + radeon_crtc->crtc_offset);WREG32 (RADEON_MM_DATA , (AVIVO_D1CURSOR_MODE_24BPP <<AVIVO_D1CURSOR_MODE_SHIFT ));
@@ -94,7 +95,8 @@ static void radeon_show_cursor(struct drm_crtc *crtc)if (ASIC_IS_DCE4 (rdev)) {WREG32 (RADEON_MM_INDEX ,EVERGREEN_CUR_CONTROL + radeon_crtc->crtc_offset);WREG32 (RADEON_MM_DATA ,EVERGREEN_CURSOR_EN | -EVERGREEN_CURSOR_MODE (EVERGREEN_CURSOR_24_8_PRE_MULT )); +EVERGREEN_CURSOR_MODE (EVERGREEN_CURSOR_24_8_PRE_MULT ) | +EVERGREEN_CURSOR_URGENT_CONTROL (EVERGREEN_CURSOR_URGENT_1_2 )); }else if (ASIC_IS_AVIVO (rdev)) {WREG32 (RADEON_MM_INDEX ,AVIVO_D1CUR_CONTROL + radeon_crtc->crtc_offset); WREG32(RADEON_MM_DATA, AVIVO_D1CURSOR_EN |
Signature · 1 line
1.7.7.5