Erik-Jan wrote:
Jon Nettleton wrote:
I have merged in the first round of changes needed for openchrome to
work with xorg 1.4.  On my K8M800 it mostly works on both xorg 1.3 and
xorg 1.4.  If other people could please test I will appreciate it and
try to fix bugs as fast as possible.


Hi Jon,

I've tested it with a CLE266, but I can't set the resolution to 1024x768. With the trunk-version I can.

Some snippets from /var/log/Xorg.0.log:
X.Org X Server 1.4.0
...
(--) VIA(0): Detected VIA VT3122 (CLE266)-EPIA M/MII/....
(II) VIA(0): Detected MemClk 15
(II) VIA(0): Detected MemClk 15
(WW) VIA(0): Unknown Memory clock: 15
...
(II) VIA(0): Required bandwidth is not available. (188755764 > 74000000)

With trunk it detects MemClk 4.

In the experimental branch you skip the 'Set up MMIO vgaHW' in via_driver.c around line 2260. If I remove the return TRUE and do the setup MMIO vgaHW, then I can set the higher resolutions.

I'm not a driver-programmer, so I really have no idea what this MMIO vgaHW does. But I can test things and see where they go wrong :))

Bye
Erik-Jan

Please try the attached patch, it reverts some of Jon changes that look suspicious to my non-programmer eyes too. It applies to the experimental branch. Please provide the xorg log.

Regards,
Xavier
Index: src/via_driver.c
===================================================================
--- src/via_driver.c	(revision 462)
+++ src/via_driver.c	(working copy)
@@ -1540,7 +1540,7 @@
             break;
         case VIA_PM800:
         case VIA_VM800:
-  //      case VIA_K8M800:
+        case VIA_K8M800:
             pScrn->videoRam = ( 1 << ( ( pciReadByte(pciTag(0, 0, 3), 0xA1) & 0x70 ) >> 4 ) ) << 10 ;
             break;
         case VIA_K8M890:
@@ -2258,7 +2258,6 @@
     pVia->VidMapBase = pVia->MapBase + 0x200;
     /* Memory mapped IO for Mpeg Engine */
     pVia->MpegMapBase = pVia->MapBase + 0xc00;
-    return TRUE;
 
     /* Set up MMIO vgaHW */
     {
@@ -2277,10 +2276,10 @@
 	hwp->writeSeq(hwp, 0x10, 0x01);
 
 	/* Enable MMIO */
-	/*if (pVia->IsSecondary)
+	if (pVia->IsSecondary)
 	    ViaSeqMask(hwp, 0x1A, 0x38, 0x38);
 	else
-	    ViaSeqMask(hwp, 0x1A, 0x68, 0x68);*/
+	    ViaSeqMask(hwp, 0x1A, 0x68, 0x68);
 
 	vgaHWGetIOBase(hwp);
     }
_______________________________________________
openchrome-users mailing list
[email protected]
http://wiki.openchrome.org/mailman/listinfo/openchrome-users
Main page:
http://www.openchrome.org
Wiki:
http://wiki.openchrome.org
User Forum:
http://wiki.openchrome.org/tikiwiki/tiki-view_forum.php?forumId=1

Reply via email to