From owner-freebsd-questions Wed Aug 7 12:56:49 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 448C037B400 for ; Wed, 7 Aug 2002 12:56:37 -0700 (PDT) Received: from smarthost.yourcomms.net (mailgate.yourcomms.net [195.8.160.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F68C43E65 for ; Wed, 7 Aug 2002 12:56:35 -0700 (PDT) (envelope-from dave@fyonn.net) Received: from [195.8.191.5] by smarthost.yourcomms.net (NTMail 5.06.0016/GM0002.04.00842b74) with ESMTP id lbqkgaaa for freebsd-questions@freebsd.org; Wed, 7 Aug 2002 20:54:35 +0100 Date: Wed, 7 Aug 2002 20:56:52 +0100 From: David Haworth To: freebsd-questions@freebsd.org Subject: ati radeon, dri and unreal tournament Message-Id: <20020807205652.7653deca.dave@fyonn.net> X-Mailer: Sylpheed version 0.7.8 (GTK+ 1.2.10; i386-portbld-freebsd4.6) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG hiya folks well, I've just got an ati radeon 7500 and I want to use it in freebsd to perhaps plays a bit of unreal tournament or whatever. I'm not being all that successful atm. afaik I've done all the right things and glxinfo (as root) gives me this (with LIBGL_DEBUG=verbose) root@blink:~# glxinfo name of display: :0.0 libGL: XF86DRIGetClientDriverName: 4.0.1 radeon (screen 0) libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/radeon_dri.so libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/radeon_dri.so drmOpenByBusid: busid is PCI:1:0:0 drmOpenDevice: minor is 0 drmOpenDevice: node name is /dev/dri/card0 drmOpenDevice: open result is 6, (OK) drmOpenByBusid: drmOpenMinor returns 6 drmOpenByBusid: drmGetBusid reports PCI:1:0:0 display: :0 screen: 0 direct rendering: Yes server glx vendor string: SGI server glx version string: 1.2 server glx extensions: GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context client glx vendor string: SGI client glx version string: 1.2 client glx extensions: GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context GLX extensions: GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context OpenGL vendor string: VA Linux Systems, Inc. OpenGL renderer string: Mesa DRI Radeon 20010402 AGP 1x x86/MMX OpenGL version string: 1.2 Mesa 3.4.2 OpenGL extensions: GL_ARB_multitexture, GL_ARB_transpose_matrix, GL_EXT_abgr, GL_EXT_blend_func_separate, GL_EXT_clip_volume_hint, GL_EXT_compiled_vertex_array, GL_EXT_histogram, GL_EXT_packed_pixels, GL_EXT_polygon_offset, GL_EXT_rescale_normal, GL_EXT_stencil_wrap, GL_EXT_texture3D, GL_EXT_texture_env_add, GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3, GL_EXT_texture_object, GL_EXT_texture_lod_bias, GL_EXT_vertex_array, GL_MESA_window_pos, GL_MESA_resize_buffers, GL_NV_texgen_reflection, GL_PGI_misc_hints, GL_SGIS_pixel_texture, GL_SGIS_texture_edge_clamp glu version: 1.3 glu extensions: GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat ---------------------------------------------------------------------- 0x23 24 tc 0 24 0 r y . 8 8 8 8 0 24 0 0 0 0 0 0 0 None 0x24 24 tc 0 24 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 Slow 0x25 24 tc 0 24 0 r y . 8 8 8 8 0 24 0 16 16 16 16 0 0 Slow 0x26 24 tc 0 24 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow 0x27 24 dc 0 24 0 r y . 8 8 8 8 0 24 0 0 0 0 0 0 0 None 0x28 24 dc 0 24 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 Slow 0x29 24 dc 0 24 0 r y . 8 8 8 8 0 24 0 16 16 16 16 0 0 Slow 0x2a 24 dc 0 24 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow root@blink:~# which tells me that dri is active. glx gears: root@blink:~# glxgears libGL: XF86DRIGetClientDriverName: 4.0.1 radeon (screen 0) libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/radeon_dri.so libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/radeon_dri.so drmOpenByBusid: busid is PCI:1:0:0 drmOpenDevice: minor is 0 drmOpenDevice: node name is /dev/dri/card0 drmOpenDevice: open result is 6, (OK) drmOpenByBusid: drmOpenMinor returns 6 drmOpenByBusid: drmGetBusid reports PCI:1:0:0 2427 frames in 5.0 seconds = 485.400 FPS afaik that looks okay too. it seems to be telling me that everything is working and alright. however, when I run unreal tournament I get this: libGL: XF86DRIGetClientDriverName: 4.0.1 radeon (screen 0) libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/radeon_dri.so libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/radeon_dri.so drmOpenByBusid: busid is PCI:1:0:0 drmOpenDevice: minor is 0 drmOpenDevice: node name is /dev/dri/card0 drmOpenDevice: open result is -1, (No such device or address) drmOpenDevice: Open failed drmOpenByBusid: drmOpenMinor returns -6 drmOpenDevice: minor is 1 drmOpenDevice: node name is /dev/dri/card1 drmOpenDevice: open result is -1, (No such device or address) drmOpenDevice: Open failed drmOpenByBusid: drmOpenMinor returns -6 drmOpenDevice: minor is 2 drmOpenDevice: node name is /dev/dri/card2 drmOpenDevice: open result is -1, (No such device or address) drmOpenDevice: Open failed drmOpenByBusid: drmOpenMinor returns -6 drmOpenDevice: minor is 3 drmOpenDevice: node name is /dev/dri/card3 drmOpenDevice: open result is -1, (No such device or address) drmOpenDevice: Open failed drmOpenByBusid: drmOpenMinor returns -6 drmOpenDevice: minor is 4 drmOpenDevice: node name is /dev/dri/card4 drmOpenDevice: open result is -1, (No such device or address) drmOpenDevice: Open failed drmOpenByBusid: drmOpenMinor returns -6 drmOpenDevice: minor is 5 drmOpenDevice: node name is /dev/dri/card5 drmOpenDevice: open result is -1, (No such device or address) drmOpenDevice: Open failed drmOpenByBusid: drmOpenMinor returns -6 drmOpenDevice: minor is 6 drmOpenDevice: node name is /dev/dri/card6 drmOpenDevice: open result is -1, (No such device or address) drmOpenDevice: Open failed drmOpenByBusid: drmOpenMinor returns -6 drmOpenDevice: minor is 7 drmOpenDevice: node name is /dev/dri/card7 drmOpenDevice: open result is -1, (No such device or address) drmOpenDevice: Open failed drmOpenByBusid: drmOpenMinor returns -6 drmOpenDevice: minor is 8 drmOpenDevice: node name is /dev/dri/card8 drmOpenDevice: open result is -1, (No such device or address) drmOpenDevice: Open failed drmOpenByBusid: drmOpenMinor returns -6 drmOpenDevice: minor is 9 drmOpenDevice: node name is /dev/dri/card9 drmOpenDevice: open result is -1, (No such device or address) drmOpenDevice: Open failed drmOpenByBusid: drmOpenMinor returns -6 drmOpenDevice: minor is 10 drmOpenDevice: node name is /dev/dri/card10 drmOpenDevice: open result is -1, (No such device or address) drmOpenDevice: Open failed drmOpenByBusid: drmOpenMinor returns -6 drmOpenDevice: minor is 11 drmOpenDevice: node name is /dev/dri/card11 drmOpenDevice: open result is -1, (No such device or address) drmOpenDevice: Open failed drmOpenByBusid: drmOpenMinor returns -6 drmOpenDevice: minor is 12 drmOpenDevice: node name is /dev/dri/card12 drmOpenDevice: open result is -1, (No such device or address) drmOpenDevice: Open failed drmOpenByBusid: drmOpenMinor returns -6 drmOpenDevice: minor is 13 drmOpenDevice: node name is /dev/dri/card13 drmOpenDevice: open result is -1, (No such device or address) drmOpenDevice: Open failed drmOpenByBusid: drmOpenMinor returns -6 drmOpenDevice: minor is 14 drmOpenDevice: node name is /dev/dri/card14 drmOpenDevice: open result is -1, (No such device or address) drmOpenDevice: Open failed drmOpenByBusid: drmOpenMinor returns -6 libGL error: failed to open DRM: Operation not permitted libGL error: reverting to (slow) indirect rendering and then the game goes into mesa rendering, which kinda sucks in comparison :) am I missing something obvious here? root@blink:~# ll /dev |grep dri drwxrwxrwx 2 root wheel 512 Aug 7 20:23 dri root@blink:~# ll /dev/dri total 0 crw-r----- 1 root wheel 145, 0 Aug 7 20:23 card0 those are the permissions of the dri entries in dev (that I am aware of) and those look okay root@blink:~# kldstat Id Refs Address Size Name 1 4 0xc0100000 2c75bc kernel 2 1 0xc03c8000 18554 linux.ko 3 1 0xc03e1000 a458 agp.ko 4 1 0xc23e2000 13000 radeon.ko that looks okay to me. hmm.. I remembered that I had COMPAT_LINUX compiled into my kernel so I removed the entry in /boot/loader.conf for "linux_load" but that made no difference. does anyone have any idea's for me? cheers dave PS: dmesg follows Copyright (c) 1992-2002 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.6-STABLE #6: Sun Jul 28 15:12:28 BST 2002 dave@blink.**.**:/usr/obj/usr/src/sys/BLINK Timecounter "i8254" frequency 1193182 Hz CPU: AMD Athlon(TM) XP 2000+ (1666.20-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x662 Stepping = 2 Features=0x383fbff AMD Features=0xc0400000 real memory = 536854528 (524272K bytes) avail memory = 518455296 (506304K bytes) Preloaded elf kernel "kernel" at 0xc03d4000. Preloaded elf module "agp.ko" at 0xc03d409c. Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 11 entries at 0xc00f2050 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 agp0: mem 0xe0000000-0xe3ffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 irq 11 pcm0: port 0xb800-0xb8ff irq 10 at device 5.0 on pci0 pci0: (vendor=0x104c, dev=0x8026) at 7.0 irq 10 uhci0: port 0xb400-0xb41f irq 9 at device 9.0 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered umass0: Hagiwara Sys-Com SmartMedia R/W, rev 1.10/2.00, addr 2 umass0: Get Max Lun not supported (STALLED) uhci1: port 0xb000-0xb01f irq 11 at device 9.1 on pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered pci0: at 9.2 irq 10 wi0: mem 0xcf000000-0xcf000fff irq 9 at device 12.0 on pci0 wi0: 802.11 address: 00:05:5d:5c:39:c2 wi0: using RF:PRISM2.5 MAC:ISL3874A(Mini-PCI) wi0: Intersil Firmware: Primary 1.00.05, Station 1.03.04 xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xa800-0xa87f mem 0xcc000000-0xcc00007f irq 11 at device 13.0 on pci0 xl0: Ethernet address: 00:50:da:2e:5f:e6 miibus0: on xl0 xlphy0: <3c905C 10/100 internal PHY> on miibus0 xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto aac0: port 0xa400-0xa4ff mem 0xcb800000-0xcb801fff irq 5 at device 15.0 on pci0 aac0: StrongARM SA110 233MHz, 64MB cache memory, required battery present aac0: Kernel 2.7-0, Build 3153, S/N 5c7a99 adv0: port 0xa000-0xa0ff mem 0xcb000000-0xcb0000ff irq 9 at device 16.0 on pci0 adv0: AdvanSys Ultra SCSI Host Adapter, SCSI ID 7, queue depth 16 isab0: at device 17.0 on pci0 isa0: on isab0 atapci0: port 0x9800-0x980f irq 0 at device 17.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci2: port 0x9400-0x941f irq 9 at device 17.2 on pci0 usb2: on uhci2 usb2: USB revision 1.0 uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered uhci3: port 0x9000-0x901f irq 9 at device 17.3 on pci0 usb3: on uhci3 usb3: USB revision 1.0 uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub3: 2 ports with 2 removable, self powered orm0: