[Long] Direct Rendering stopped on G400

Anthony David adavid at adavid.com.au
Sun Dec 15 17:15:01 EST 2002


Matthew Hawkins <matt at mh.dropbear.id.au> writes:

> Anthony David (adavid at adavid.com.au) wrote:
> > Direct rendering now doesn't work. He seems to think it was after a Mesa
> > upgrade. He has removed the new Mesa but with no change in behaviour.
> 
> Try looking in the XFree86.log file (for :0 it'll be /var/log/XFree86.0.log)
> as it should contain useful messages as to why DRI couldn't load.

Thanks Matt

DRI does seem to be loading, that is the wierd thing.

/var/log/XFree86.0.log
...
(II) LoadModule: "GLcore"
(II) Loading /usr/X11R6/lib/modules/extensions/libGLcore.a
(II) Module GLcore: vendor="The XFree86 Project"
        compiled for 4.1.0.1, module version = 1.0.0
        ABI class: XFree86 Server Extension, version 0.1
...


(II) LoadModule: "dri"
(II) Loading /usr/X11R6/lib/modules/extensions/libdri.a
(II) Module dri: vendor="The XFree86 Project"
        compiled for 4.1.0.1, module version = 1.0.0
        ABI class: XFree86 Server Extension, version 0.1
(II) Loading sub module "drm"
(II) LoadModule: "drm"
(II) Loading /usr/X11R6/lib/modules/linux/libdrm.a
(II) Module drm: vendor="The XFree86 Project"
        compiled for 4.1.0.1, module version = 1.0.0
        ABI class: XFree86 Server Extension, version 0.1
(II) Loading extension XFree86-DRI
(II) LoadModule: "extmod"
(II) Loading /usr/X11R6/lib/modules/extensions/libextmod.a
(II) Module extmod: vendor="The XFree86 Project"
        compiled for 4.1.0.1, module version = 1.0.0
        Module class: XFree86 Server Extension
        ABI class: XFree86 Server Extension, version 0.1

...

(II) LoadModule: "glx"
(II) Loading /usr/X11R6/lib/modules/extensions/libglx.a
(II) Module glx: vendor="The XFree86 Project"
        compiled for 4.1.0.1, module version = 1.0.0
        ABI class: XFree86 Server Extension, version 0.1
(II) Loading sub module "GLcore"
(II) LoadModule: "GLcore"
(II) Reloading /usr/X11R6/lib/modules/extensions/libGLcore.a
(II) Loading extension GLX

...
(II) LoadModule: "mga"
(II) Loading /usr/X11R6/lib/modules/drivers/mga_drv.o
(II) Module mga: vendor="The XFree86 Project"
        compiled for 4.1.0.1, module version = 1.0.1
        Module class: XFree86 Video Driver
        ABI class: XFree86 Video Driver, version 0.4
...

(II) Primary Device is: PCI 01:00:0
(--) Assigning device section with no busID to primary device
(--) Chipset mgag400 found
(II) resource ranges after xf86ClaimFixedResources() call:
        [0] -1 0        0xffe00000 - 0xffffffff (0x200000) MX[B](B)
        [1] -1 0        0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B)
        [2] -1 0        0x000f0000 - 0x000fffff (0x10000) MX[B]
        [3] -1 0        0x000c0000 - 0x000effff (0x30000) MX[B]
        [4] -1 0        0x00000000 - 0x0009ffff (0xa0000) MX[B]
        [5] -1 0        0xda000000 - 0xda0000ff (0x100) MX[B]
        [6] -1 0        0xd0000000 - 0xd3ffffff (0x4000000) MX[B]
        [7] -1 0        0xd7000000 - 0xd77fffff (0x800000) MX[B](B)
        [8] -1 0        0xd6000000 - 0xd6003fff (0x4000) MX[B](B)
        [9] -1 0        0xd4000000 - 0xd5ffffff (0x2000000) MX[B](B)
        [10] -1 0       0x0000ffff - 0x0000ffff (0x1) IX[B]
        [11] -1 0       0x00000000 - 0x000000ff (0x100) IX[B]
        [12] -1 0       0x0000e400 - 0x0000e4ff (0x100) IX[B]
        [13] -1 0       0x0000e000 - 0x0000e007 (0x8) IX[B]
        [14] -1 0       0x0000dc00 - 0x0000dc1f (0x20) IX[B]
        [15] -1 0       0x0000d800 - 0x0000d81f (0x20) IX[B]
        [16] -1 0       0x0000d400 - 0x0000d41f (0x20) IX[B]
        [17] -1 0       0x0000d000 - 0x0000d00f (0x10) IX[B]
(II) resource ranges after probing:
        [0] -1 0        0xffe00000 - 0xffffffff (0x200000) MX[B](B)
        [1] -1 0        0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B)
        [2] -1 0        0x000f0000 - 0x000fffff (0x10000) MX[B]
        [3] -1 0        0x000c0000 - 0x000effff (0x30000) MX[B]
        [4] -1 0        0x00000000 - 0x0009ffff (0xa0000) MX[B]
        [5] -1 0        0xda000000 - 0xda0000ff (0x100) MX[B]
        [6] -1 0        0xd0000000 - 0xd3ffffff (0x4000000) MX[B]
        [7] -1 0        0xd7000000 - 0xd77fffff (0x800000) MX[B](B)
        [8] -1 0        0xd6000000 - 0xd6003fff (0x4000) MX[B](B)
        [9] -1 0        0xd4000000 - 0xd5ffffff (0x2000000) MX[B](B)
        [10] 0 0        0x000a0000 - 0x000affff (0x10000) MS[B]
        [11] 0 0        0x000b0000 - 0x000b7fff (0x8000) MS[B]
        [12] 0 0        0x000b8000 - 0x000bffff (0x8000) MS[B]
        [13] -1 0       0x0000ffff - 0x0000ffff (0x1) IX[B]
        [14] -1 0       0x00000000 - 0x000000ff (0x100) IX[B]
        [15] -1 0       0x0000e400 - 0x0000e4ff (0x100) IX[B]
        [16] -1 0       0x0000e000 - 0x0000e007 (0x8) IX[B]
        [17] -1 0       0x0000dc00 - 0x0000dc1f (0x20) IX[B]
        [18] -1 0       0x0000d800 - 0x0000d81f (0x20) IX[B]
        [19] -1 0       0x0000d400 - 0x0000d41f (0x20) IX[B]
        [20] -1 0       0x0000d000 - 0x0000d00f (0x10) IX[B]

       [21] 0 0        0x000003b0 - 0x000003bb (0xc) IS[B]
        [22] 0 0        0x000003c0 - 0x000003df (0x20) IS[B]
(II) Setting vga for screen 0.
(II) Loading sub module "vgahw"
(II) LoadModule: "vgahw"
(II) Loading /usr/X11R6/lib/modules/libvgahw.a
(II) Module vgahw: vendor="The XFree86 Project"
        compiled for 4.1.0.1, module version = 0.1.0
        ABI class: XFree86 Video Driver, version 0.4
(**) MGA(0): Depth 24, (--) framebuffer bpp 32
(==) MGA(0): RGB weight 888
(II) Loading sub module "mga_hal"
(II) LoadModule: "mga_hal"
(WW) Warning, couldn't open module mga_hal
(II) UnloadModule: "mga_hal"
(EE) MGA: Failed to load module "mga_hal" (module does not exist, 0)
(II) MGA(0): Matrox HAL module not found - using builtin mode setup instead
(--) MGA(0): Chipset: "mgag400"
(==) MGA(0): Using AGP 1x mode
(--) MGA(0): Linear framebuffer at 0xD4000000
(--) MGA(0): MMIO registers at 0xD6000000
(--) MGA(0): Pseudo-DMA transfer window at 0xD7000000
(==) MGA(0): BIOS at 0xC0000
(--) MGA(0): Video BIOS info block at offset 0x07A80
(WW) MGA(0): Video BIOS info block not detected!
(II) MGA(0): MGABios.RamdacType = 0x0
(==) MGA(0): Write-combining range (0xd4000000,0x2000000)
(--) MGA(0): VideoRAM: 16384 kByte

(II) Loading sub module "ddc"
(II) LoadModule: "ddc"
(II) Reloading /usr/X11R6/lib/modules/libddc.a
(II) Loading sub module "i2c"
(II) LoadModule: "i2c"
(II) Loading /usr/X11R6/lib/modules/libi2c.a
(II) Module i2c: vendor="The XFree86 Project"
        compiled for 4.1.0.1, module version = 1.2.0
        ABI class: XFree86 Video Driver, version 0.4
(==) MGA(0): Write-combining range (0xd4000000,0x1000000)
(II) MGA(0): I2C bus "DDC" initialized.
(II) MGA(0): I2C device "DDC:ddc2" registered.
(II) MGA(0): I2C device "DDC:ddc2" removed.
(II) MGA(0): I2C Monitor info: (nil)
(II) MGA(0): end of I2C Monitor info

(--) MGA(0): No DDC signal
(II) MGA(0): DDC Monitor info: (nil)
(II) MGA(0): end of DDC Monitor info

(==) MGA(0): Using gamma correction (1.0, 1.0, 1.0)
(==) MGA(0): Min pixel clock is 12 MHz
(==) MGA(0): Max pixel clock is 300 MHz

....

Interesting:-

The following also seems to point to DRI being loaded successfully

adavid at debaser:~$ cat /proc/dri/0/name   
mga 0xe200 PCI:1:0:0
adavid at debaser:~$ cat /proc/dri/1/name
tdfx 0xe201
adavid at debaser:~$ cat /proc/dri/1/clients 
a dev   pid    uid      magic     ioctls

adavid at debaser:~$ cat /proc/dri/0/clients 
a dev   pid    uid      magic     ioctls

y   0   437     0          0     103650
adavid at debaser:~$ ps -ef|grep 437
root       437   436  0 02:12 ?        00:00:44 /usr/bin/X11/X -dpi 100 -nolisten tcp



> 
> Also, debconf has a nasty habit of destroying your XF86Config-4 file, make
> sure that that file is still loading the dri and glx modules.  (glx appears
> to be enabled, at least)
> 
> -- 
> Matt

Sure is, see above

-- 
Anthony David

Gambling(n): A discretionary tax on those asleep during high school maths
http://adavid.com.au/
0xA72CE1ED fingerprint = EA1E C69E FE59 BBE1 AA4B  F354 BD09 9765 A72C E1ED



More information about the linux mailing list