Michael Schlueter wrote: > > Hi Paul, His first name is Brian :-) > thanks for your fast answer. > > Am Sam, 2002-06-22 um 00.00 schrieb Brian Paul: > > If you search the code, you'll find where we set these flags by > > calling mgaFallback() (via the FALLBACK() macro). You could put > > a printf in there to print the bit value and get an idea of what's > > slowing you down. > > Sounds easy :) > > But now I have another small problem... > Before doing any changes to the dri sources I did a make world on the > freshly checked out sources. After copying mga_dri to the right place > and restarting X I always get a seg fault after: > > (II) MGA(0): [drm] bpp: 16 depth: 16 > (II) MGA(0): [drm] Sarea 2200+664: 2864 > drmOpenDevice: minor is 0 > drmOpenDevice: node name is /dev/dri/card0 > drmOpenDevice: open result is 6, (OK) > drmOpenDevice: minor is 0 > drmOpenDevice: node name is /dev/dri/card0 > drmOpenDevice: open result is 6, (OK) > drmOpenDevice: minor is 0 > drmOpenDevice: node name is /dev/dri/card0 > drmOpenDevice: open result is 6, (OK) > > strace says: > > 1131 geteuid32() = 0 > 1131 write(0, "drmOpenDevice: minor is 0\n", 26) = 26 > 1131 stat64("/dev/dri", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 > 1131 chown32(0x848b2d4, 0, 0) = 0 > 1131 chmod("/dev/dri", 0777) = 0 > 1131 write(0, "drmOpenDevice: node name is /dev"..., 43) = 43 > 1131 stat64("/dev/dri/card0", {st_mode=S_IFCHR|0666, > st_rdev=makedev(226, 0), ...}) = 0 > 1131 chown32(0xbffff844, 0, 0) = 0 > 1131 chmod("/dev/dri/card0", 0666) = 0 > 1131 open("/dev/dri/card0", O_RDWR) = 6 > 1131 write(0, "drmOpenDevice: open result is 6,"..., 38) = 38 > 1131 ioctl(6, DEVFSDIOC_GET_PROTO_REV, 0x83d2ae8) = 0 > 1131 ioctl(6, DEVFSDIOC_GET_PROTO_REV, 0x83d2ae8) = 0 > 1131 --- SIGSEGV (Segmentation fault) --- > > I'm using the XFree 4.2 Debian packages for Brandon. A test with > mga-20020622-linux.i386.tar.bz2 from http://dri.sourceforge.net/ had the > same result as with the XServer from extras.tgz. > > So I've to do some printf into os-support/linux/drm/xf86drm.c to find > that problem first (or is that a known issure?).
Make sure your DRM driver is recompiled for your kernel. Best to use the DRM driver in the DRI source tree. cd to xc/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel and make -f Makefile.linux -- /\ Jens Owen / \/\ _ [EMAIL PROTECTED] / \ \ \ Steamboat Springs, Colorado ------------------------------------------------------- Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel