[Openchrome-users] If you dare please test the Experimental branch

Erik-Jan ej.lfs
Sat Dec 22 07:33:57 PST 2007


Xavier Bachelot wrote:
> Actually, your xorg server is not compiled against libpciaccess, so 
> you're not testing the new code. But thanks for testing anyway.

Yep, you are right. So I build a new xorg server with libpciaccess, with 
a little help from http://www.x.org/wiki/Development/git. I pulled new 
versions from git for libpciaccess, mesa, libdrm and xserver.

Then I rebuild the openchrome-driver.
First problem: configure didn't find my xorg-server.h, because I've 
build it in /usr/X11R7. The xorg_cflags.patch fixes this. The patch also 
sets the minversion of pciaccess to 0.10.0, because thats the current 
development-version which is needed by the current xserver.

Next problem: the driver uses xf86memcpy, but this function is removed 
from xserver with the removal of the libc_wrapper in hw/xfree86/os-support.
The xf86memcpy.patch replaces xf86memcpy with memcpy.

Last problem: the size of the videoram wasn't detected for my CLE266. 
I've added detection for it. Extra complication was that pciReadByte is 
also from hw/xfree86/os-support/bus/Pci.c with the libpciwork.
So I've added an entry for my CLE266, see the detect_videoram.patch

Result: I can start xorg, with direct rendering. Glxgears runs, even a 
little bit faster than before, but with the bottom part of the window 
distorted. Moving the window around or trying to kill it sometimes 
crashes the xserver.
Returning to console shows this error:
error setting MTRR (base = 0xdc000000, size = 0x00009000, type = 1) 
Invalid argument
In my sys.log I see these:
mtrr: no MTRR for dc000000,9000 found
mtrr: base(0xdc000000) is not aligned on a size(0x9000) boundary
And after the last crash I saw this:
[drm:investigate_hazard] *ERROR* Illegal DMA data: 0x75158165

One last item that may be of interest:
cat /proc/mtrr
reg00: base=0x00000000 (   0MB), size= 512MB: write-back, count=1
reg01: base=0x1e000000 ( 480MB), size=  32MB: uncachable, count=1
reg02: base=0xd0000000 (3328MB), size= 128MB: write-combining, count=1
reg03: base=0xd8000000 (3456MB), size=   8MB: write-combining, count=1

Hope this is useful for you.

Bye
Erik-Jan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Xorg.0.log.gz
Type: application/gzip
Size: 9554 bytes
Desc: not available
Url : http://wiki.openchrome.org/pipermail/openchrome-users/attachments/20071222/8c8d2be1/Xorg.0.log.bin
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: openchrome-pci-20071208-detect_videoram.patch
Url: http://wiki.openchrome.org/pipermail/openchrome-users/attachments/20071222/8c8d2be1/openchrome-pci-20071208-detect_videoram.ksh
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: openchrome-pci-20071208-xf86memcpy.patch
Url: http://wiki.openchrome.org/pipermail/openchrome-users/attachments/20071222/8c8d2be1/openchrome-pci-20071208-xf86memcpy.ksh
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: openchrome-pci-20071208-xorg_cflags.patch
Url: http://wiki.openchrome.org/pipermail/openchrome-users/attachments/20071222/8c8d2be1/openchrome-pci-20071208-xorg_cflags.ksh



More information about the Openchrome-users mailing list