# \[PATCH 5/5\] matroxfb: Set maxhipri to 0

- From: syrjala@sci.fi
- Date: 2005-10-31 22:12:31 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2005/10/13455624
- Thread: https://ratatoskr.run/linux-fbdev/2005/10/13455624/t.md

```text
The current init code sets hiprilvl to 0 and maxhipri to 5. According to 
the specs those values are illegal on both G200 and G400. It also causes 
distortions on the TV-out at least when CRTC2 is in YUV mode as is the 
case with DirectFB. This patch resets both values to 0.

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

 matroxfb_DAC1064.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -uprN linux-2.6.14-4/drivers/video/matrox/matroxfb_DAC1064.c linux-2.6.14-5/drivers/video/matrox/matroxfb_DAC1064.c
--- linux-2.6.14-4/drivers/video/matrox/matroxfb_DAC1064.c	2005-10-31 19:41:30.000000000 +0200
+++ linux-2.6.14-5/drivers/video/matrox/matroxfb_DAC1064.c	2005-10-31 22:10:22.000000000 +0200
@@ -978,7 +978,7 @@ static void MGAG100_reset(WPMINFO2) {
 				hw->MXoptionReg |= 0x40;	/* FIXME... */
 				pci_write_config_dword(ACCESS_FBINFO(pcidev), PCI_OPTION_REG, hw->MXoptionReg);
 			}
-			mga_setr(M_EXTVGA_INDEX, 0x06, 0x50);
+			mga_setr(M_EXTVGA_INDEX, 0x06, 0x00);
 		}
 	}
 	if (ACCESS_FBINFO(devflags.g450dac)) {



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
```
