Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Dec 2005 02:48:18 +0100
From:      Julian Stecklina <der_julian@web.de>
To:        freebsd-stable@freebsd.org
Subject:   Problem with new DRI/DRM support for Intel 855GM 
Message-ID:  <86acenia3h.fsf@dellbeast.localnet>

next in thread | raw e-mail | index | archive | help
Hello,

I just discovered that the DRM drivers have been updated and my 855GM
is now supported by i915.ko.

If I load the module, the driver attaches:
drmsub1: <Intel i852GM/i855GM GMCH> mem 0xe8000000-0xefffffff,0xfaf00000-0xfaf7ffff at device 2.1 on pci0
info: [drm] AGP at 0xf0000000 128MB
info: [drm] Initialized i915 1.2.0 20041217

But when I start X.org (xorg-server-6.8.99.903), it says:
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such file or directory) 
drmOpenDevice: open result is -1, (No such file or directory) 
drmOpenDevice: Open failed
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such file or directory)
drmOpenDevice: open result is -1, (No such file or directory)
drmOpenDevice: Open failed

The problem is easily spotted, as there is only /dev/dri/card1. If I
try to symlink card1 to card0, the kernel says:
error: [drm:pid890:drm_unlock] *ERROR* Process 890 using kernel context 0

(PID 890 is the X server.)

while the X.org log file reports:
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 7, (OK)
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 7, (OK)
drmOpenByBusid: Searching for BusID pci:0000:00:02.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 7, (OK)
drmOpenByBusid: drmOpenMinor returns 7
drmOpenByBusid: drmGetBusid reports pci:0000:61:00.0
drmOpenDevice: node name is /dev/dri/card1
drmOpenDevice: open result is 7, (OK)
drmOpenByBusid: drmOpenMinor returns 7
drmOpenByBusid: drmGetBusid reports pci:0000:61:00.0
...
(II) I810(0): [drm] Registers = 0xfaf80000
(II) I810(0): [drm] Back Buffer = 0xf6000000
(II) I810(0): [drm] Depth Buffer = 0xf5000000
(II) I810(0): [drm] ring buffer = 0xf0000000
(II) I810(0): [drm] textures = 0xf0a54000  
(EE) I810(0): [drm] failure adding irq handler
(II) I810(0): [drm] removed 1 reserved context for kernel
(II) I810(0): [drm] unmapping 8192 bytes of SAREA 0xc5074000 at 0x28783000

The complete log is at: http://www.inf.tu-dresden.de/~s1054849/Xorg.0.log

uname -a:
FreeBSD dellbeast.localnet 6.0-STABLE FreeBSD 6.0-STABLE #2: Sun Dec 18 05:59:59 CET 2005     root@dellbeast.localnet:/usr/obj/usr/src/sys/DELLBEAST  i386


But anyway: It's very nice to see that 3D acceleration is going to
work Real Soon Now(tm) on my laptop. :-)

Regards,
-- 
Julian Stecklina

When someone says "I want a programming language in which I
need only say what I wish done," give him a lollipop. - Alan Perlis




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86acenia3h.fsf>