drm/radeon/kms/rs4xx: make sure crtcs are enabled when setting timing
Subsystems (2)
PATCH 1/1 drm/radeon/kms/rs4xx: make sure crtcs are enabled when setting timing
This fixes fdo bug 27008.
Quoted 1 line
From
0be75bd324cea1eb577cf4bdebfb59af217876cfMon Sep 17 00:00:00 2001
From: Alex Deucher <[email protected]>
Date: Thu, 11 Mar 2010 10:38:07 -0500
Subject: [PATCH] drm/radeon/kms/rs4xx: make sure crtcs are enabled when setting timing
based on ddx patch from Matthias Hopf.
--- drivers/gpu/drm/radeon/radeon_legacy_crtc.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-)
(quoted diff) +0 -0
b/drivers/gpu/drm/radeon/radeon_legacy_crtc.c
index df23d6a..88865e3 100644
drivers/gpu/drm/radeon/radeon_legacy_crtc.c +0 -0
@@ -603,6 +603,10 @@ static bool radeon_set_crtc_timing(struct
drm_crtc *crtc, struct drm_display_mod
? RADEON_CRTC2_INTERLACE_EN : 0));
+ /* rs4xx chips seem to like to have the crtc enabled when the
timing is set */
+ if ((rdev->family == CHIP_RS400) || (rdev->family == CHIP_RS480))
+ crtc2_gen_cntl |= RADEON_CRTC2_EN;
+
disp2_merge_cntl = RREG32(RADEON_DISP2_MERGE_CNTL); disp2_merge_cntl &= ~RADEON_DISP2_RGB_OFFSET_EN;
@@ -630,6 +634,10 @@ static bool radeon_set_crtc_timing(struct drm_crtc *crtc, struct drm_display_mod
? RADEON_CRTC_INTERLACE_EN : 0));
+ /* rs4xx chips seem to like to have the crtc enabled when the
timing is set */
+ if ((rdev->family == CHIP_RS400) || (rdev->family == CHIP_RS480))
+ crtc_gen_cntl |= RADEON_CRTC_EN;
+
crtc_ext_cntl = RREG32(RADEON_CRTC_EXT_CNTL); crtc_ext_cntl |= (RADEON_XCRT_CNT_EN |
RADEON_CRTC_VSYNC_DIS |
Signature · 1 line
1.5.6.3
From 0be75bd324cea1eb577cf4bdebfb59af217876cf Mon Sep 17 00:00:00 2001
From: Alex Deucher <[email protected]>
Date: Thu, 11 Mar 2010 10:38:07 -0500
Subject: [PATCH] drm/radeon/kms/rs4xx: make sure crtcs are enabled when setting timing
based on ddx patch from Matthias Hopf.
--- drivers/gpu/drm/radeon/radeon_legacy_crtc.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-)
drivers/gpu/drm/radeon/radeon_legacy_crtc.c +8 -0
@@ -603,6 +603,10 @@ static bool radeon_set_crtc_timing(struct drm_crtc *crtc, struct drm_display_mod ? RADEON_CRTC2_INTERLACE_EN : 0)); +/* rs4xx chips seem to like to have the crtc enabled when the timing is set */ +if ((rdev->family ==CHIP_RS400 ) || (rdev->family ==CHIP_RS480 )) + crtc2_gen_cntl |=RADEON_CRTC2_EN ; + disp2_merge_cntl =RREG32 (RADEON_DISP2_MERGE_CNTL ); disp2_merge_cntl &= ~RADEON_DISP2_RGB_OFFSET_EN ;
@@ -630,6 +634,10 @@ static bool radeon_set_crtc_timing(struct drm_crtc *crtc, struct drm_display_mod ? RADEON_CRTC_INTERLACE_EN : 0)); +/* rs4xx chips seem to like to have the crtc enabled when the timing is set */ +if ((rdev->family ==CHIP_RS400 ) || (rdev->family ==CHIP_RS480 )) + crtc_gen_cntl |=RADEON_CRTC_EN ; + crtc_ext_cntl =RREG32 (RADEON_CRTC_EXT_CNTL ); crtc_ext_cntl |= (RADEON_XCRT_CNT_EN | RADEON_CRTC_VSYNC_DIS |
Signature · 1 line
1.5.6.3
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel