atyfb: Fix CRTC_FIFO_LWM mask

Started by syrjala@sci.fi on Dec 9, 2005

Subsystems (1)

Maintainers (1)

DORMANTno replies

open the first message on its own page

Message details and related content
CRTC_FIFO_LWM was incorrectly masked.

Signed-off-by: Ville Syrjälä <syrjala@sci.fi>
---

 atyfb_base.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff -urpN linux-2/drivers/video/aty/atyfb_base.c linux-3/drivers/video/aty/atyfb_base.c
--- linux-2/drivers/video/aty/atyfb_base.c	2005-12-09 02:43:28.000000000 +0200
+++ linux-3/drivers/video/aty/atyfb_base.c	2005-12-09 02:51:32.000000000 +0200
@@ -1077,9 +1077,8 @@ static int aty_var_to_crtc(const struct 
 #endif /* CONFIG_FB_ATY_GENERIC_LCD */
 
 	if (M64_HAS(MAGIC_FIFO)) {
-		/* Not VTB/GTB */
-		/* FIXME: magic FIFO values */
-		crtc->gen_cntl |= (aty_ld_le32(CRTC_GEN_CNTL, par) & CRTC2_PIX_WIDTH);
+		/* FIXME: display FIFO low watermark values */
+		crtc->gen_cntl |= (aty_ld_le32(CRTC_GEN_CNTL, par) & CRTC_FIFO_LWM);
 	}
 	crtc->dp_pix_width = dp_pix_width;
 	crtc->dp_chain_mask = dp_chain_mask;



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help