Hello, I'm running NetBSD/i386 5.99.24 on an MSI board with an ATI Radeon 2400 XT plugged in. To have 2d acceleration and XVideo, I load radeondrm.kmod at boottime. It usually works, but after restarting X sufficiently often, it suddenly stops; that is, either display is corrupted, or X does not find DRI support anymore. There are a few pecularities: >From dmesg (which is also attached): agp0 at pchb0: can't find internal VGA device config space ... ppb0: unsupported PCI Express version ... vga1: WARNING: ignoring 64-bit BAR @ 0x10 vga1: WARNING: ignoring 64-bit BAR @ 0x18 and, after each restart of X: info: [drm] Setting GART location based on new memory map info: [drm] Loading RV610 Microcode info: [drm] Resetting GPU info: [drm] writeback test failed ffffffff deadbeef Usually, after a while I get a message that something failed; I think it has to do with the memory map, but unfortunately I can't reproduce it at the moment. Trying to reproduce the problem, I tried to fill up RAM and make the system use swap. Indeed, radeondrm then got detached: radeondrm0: detached Attached is an Xorg.0.log from after the problem occured. The following lines seem suspicious to me: 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) drmGetBusid returned '' ... (II) RADEONHD(0): [drm] failure adding irq handler, there is a device already using that irq [drm] falling back to irq-free operation One time, X would crash, leaving 200000 lines saying (EE) RADEONHD(0): RHDDRMCPBuffer: drmDMA returned -6 It would be very nice if someone could look into this. Assuming that perhaps more info is needed: does it suffice to sysctl -w hw.dri.debug=1, or would I have to compile a kernel with DRM_DEBUG? Many TIA, Dennis den Brok
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The NetBSD Foundation, Inc. All rights reserved. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. NetBSD 5.99.24 (GENERIC) #0: Thu Mar 18 17:34:26 UTC 2010 builds%b8.netbsd.org@localhost:/home/builds/ab/HEAD/i386/201003180000Z-obj/home/builds/ab/HEAD/src/sys/arch/i386/compile/GENERIC total memory = 2047 MB avail memory = 2000 MB timecounter: Timecounters tick every 10.000 msec timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100 MICRO-STAR INTERNATIONAL CO.,LTD MS-7519 (1.0) mainbus0 (root) cpu0 at mainbus0 apid 0: Intel 686-class, 2673MHz, id 0x10676 cpu1 at mainbus0 apid 1: Intel 686-class, 2673MHz, id 0x10676 ioapic0 at mainbus0 apid 2: pa 0xfec00000, version 20, 24 pins acpi0 at mainbus0: Intel ACPICA 20090730 acpi0: X/RSDT: OemId <7519MS,A7519200,20080730>, AslId <MSFT,00000097> acpi0: SCI interrupting at int 9 acpi0: fixed-feature power button present timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000 ACPI-Fast 24-bit timer attimer1 at acpi0 (TMR, PNP0100): io 0x40-0x43 irq 0 pcppi1 at acpi0 (SPKR, PNP0800): io 0x61 midi0 at pcppi1: PC speaker sysbeep0 at pcppi1 npx1 at acpi0 (COPR, PNP0C04): io 0xf0-0xff irq 13 npx1: reported by CPUID; using exception 16 UAR1 (PNP0501) at acpi0 not configured hpet0 at acpi0 (HPET, PNP0103): mem 0xfed00000-0xfed003ff timecounter: Timecounter "hpet0" frequency 14318179 Hz quality 2000 pckbc1 at acpi0 (PS2K, PNP0303) (kbd port): io 0x60,0x64 irq 1 pckbc2 at acpi0 (PS2M, PNP0F03) (aux port): irq 12 acpibut0 at acpi0 (PWRB, PNP0C0C-170): ACPI Power Button apm0 at acpi0: Power Management spec V1.2 attimer1: attached to pcppi1 pckbd0 at pckbc1 (kbd slot) pckbc1: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard pms0 at pckbc1 (aux slot) pckbc1: using irq 12 for aux slot wsmouse0 at pms0 mux 0 pci0 at mainbus0 bus 0: configuration mode 1 pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok pchb0 at pci0 dev 0 function 0: vendor 0x8086 product 0x2e20 (rev. 0x03) agp0 at pchb0: can't find internal VGA device config space ppb0 at pci0 dev 1 function 0: vendor 0x8086 product 0x2e21 (rev. 0x03) ppb0: unsupported PCI Express version pci1 at ppb0 bus 1 pci1: i/o space, memory space enabled, rd/line, wr/inv ok vga1 at pci1 dev 0 function 0: vendor 0x1002 product 0x94c1 (rev. 0x00) vga1: WARNING: ignoring 64-bit BAR @ 0x10 vga1: WARNING: ignoring 64-bit BAR @ 0x18 wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation), using wskbd0 wsmux1: connecting to wsdisplay0 drm at vga1 not configured hdaudio0 at pci1 dev 0 function 1: HD Audio Controller hdaudio0: interrupting at ioapic0 pin 17 hdafg0 at hdaudio0 vendor 0x1002 product 0xAA01 nid 0x01 (firmware configuration) hdafg0: DAC0:02, Digital Digital Other Out: Jack (Unknown, 03) hdafg0: 2ch/0ch 48000Hz 16/16 audio0 at hdafg0: half duplex, playback uhci0 at pci0 dev 26 function 0: vendor 0x8086 product 0x3a37 (rev. 0x00) uhci0: interrupting at ioapic0 pin 16 usb0 at uhci0: USB revision 1.0 uhci1 at pci0 dev 26 function 1: vendor 0x8086 product 0x3a38 (rev. 0x00) uhci1: interrupting at ioapic0 pin 21 usb1 at uhci1: USB revision 1.0 uhci2 at pci0 dev 26 function 2: vendor 0x8086 product 0x3a39 (rev. 0x00) uhci2: interrupting at ioapic0 pin 19 usb2 at uhci2: USB revision 1.0 ehci0 at pci0 dev 26 function 7: vendor 0x8086 product 0x3a3c (rev. 0x00) ehci0: interrupting at ioapic0 pin 18 ehci0: EHCI version 1.0 ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 usb3 at ehci0: USB revision 2.0 hdaudio1 at pci0 dev 27 function 0: HD Audio Controller hdaudio1: interrupting at ioapic0 pin 22 hdafg1 at hdaudio1 vendor 0x10EC product 0x0888 nid 0x01 (firmware configuration) hdafg1: DAC0:02, Analog Speaker: Jack (Green, 14) hdafg1: DAC0:03, Analog Speaker: Jack (Orange, 16) hdafg1: DAC0:04, Analog Speaker: Jack (Black, 15) hdafg1: DAC0:05, Analog Speaker: Jack (Grey, 17) hdafg1: DAC1:25, Analog HP Out: Jack (Green, 1B) hdafg1: DAC2:06, Digital SPDIF Out: Jack (Black, 1E) hdafg1: ADC3:08, Analog Mic In: Jack (Pink, 18) hdafg1: ADC3:08, Analog Line In: Jack (Blue, 1A) hdafg1: ADC4:09, Analog Mic In: Jack (Pink, 19) hdafg1: 8ch/2ch 44100Hz-192000Hz 16/16 20/32 24/32 audio1 at hdafg1: full duplex, playback, capture, independent ppb1 at pci0 dev 28 function 0: vendor 0x8086 product 0x3a40 (rev. 0x00) pci2 at ppb1 bus 2 pci2: i/o space enabled, rd/line, wr/inv ok jmide0 at pci2 dev 0 function 0: vendor 0x197b product 0x2368 jmide0: 1 PATA port jmide0: interrupting at ioapic0 pin 16 jmide0: PCI IDE interface used jmide0: bus-master DMA support present jmide0: primary channel wired to native-PCI mode jmide0: primary channel is PATA atabus0 at jmide0 channel 0 jmide0: secondary channel wired to native-PCI mode jmide0: secondary channel is unused ppb2 at pci0 dev 28 function 1: vendor 0x8086 product 0x3a42 (rev. 0x00) pci3 at ppb2 bus 3 pci3: no spaces enabled! ppb3 at pci0 dev 28 function 5: vendor 0x8086 product 0x3a4a (rev. 0x00) pci4 at ppb3 bus 4 pci4: i/o space, memory space enabled, rd/line, wr/inv ok re0 at pci4 dev 0 function 0: RealTek 8168/8111 PCIe Gigabit Ethernet (rev. 0x02) re0: interrupting at ioapic0 pin 17 re0: Ethernet address 00:21:85:5d:f0:97 re0: using 256 tx descriptors rgephy0 at re0 phy 7: RTL8169S/8110S/8211 1000BASE-T media interface, rev. 2 rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto uhci3 at pci0 dev 29 function 0: vendor 0x8086 product 0x3a34 (rev. 0x00) uhci3: interrupting at ioapic0 pin 23 usb4 at uhci3: USB revision 1.0 uhci4 at pci0 dev 29 function 1: vendor 0x8086 product 0x3a35 (rev. 0x00) uhci4: interrupting at ioapic0 pin 19 usb5 at uhci4: USB revision 1.0 uhci5 at pci0 dev 29 function 2: vendor 0x8086 product 0x3a36 (rev. 0x00) uhci5: interrupting at ioapic0 pin 18 usb6 at uhci5: USB revision 1.0 ehci1 at pci0 dev 29 function 7: vendor 0x8086 product 0x3a3a (rev. 0x00) ehci1: interrupting at ioapic0 pin 23 ehci1: EHCI version 1.0 ehci1: companion controllers, 2 ports each: uhci3 uhci4 uhci5 usb7 at ehci1: USB revision 2.0 ppb4 at pci0 dev 30 function 0: vendor 0x8086 product 0x244e (rev. 0x90) pci5 at ppb4 bus 5 pci5: no spaces enabled! pcib0 at pci0 dev 31 function 0: vendor 0x8086 product 0x3a18 (rev. 0x00) piixide0 at pci0 dev 31 function 2: Intel ICH10 Serial ATA 2 Controller 4x2 (rev. 0x00) piixide0: bus-master DMA support present piixide0: primary channel configured to native-PCI mode piixide0: using ioapic0 pin 19 for native-PCI interrupt atabus1 at piixide0 channel 0 piixide0: secondary channel configured to native-PCI mode atabus2 at piixide0 channel 1 ichsmb0 at pci0 dev 31 function 3: vendor 0x8086 product 0x3a30 (rev. 0x00) ichsmb0: interrupting at ioapic0 pin 18 iic0 at ichsmb0: I2C bus piixide1 at pci0 dev 31 function 5: Intel ICH10 Serial ATA 2 Controller 2x2 (rev. 0x00) piixide1: bus-master DMA support present piixide1: primary channel wired to native-PCI mode piixide1: using ioapic0 pin 19 for native-PCI interrupt atabus3 at piixide1 channel 0 piixide1: secondary channel wired to native-PCI mode atabus4 at piixide1 channel 1 isa0 at pcib0 com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0 uhub0 at usb0: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhub1 at usb1: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhub2 at usb2: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered uhub3 at usb3: vendor 0x8086 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub3: 6 ports with 6 removable, self powered uhub4 at usb4: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub4: 2 ports with 2 removable, self powered uhub5 at usb5: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub5: 2 ports with 2 removable, self powered uhub6 at usb6: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub6: 2 ports with 2 removable, self powered uhub7 at usb7: vendor 0x8086 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub7: 6 ports with 6 removable, self powered radeondrm0 at vga1: Radeon HD 2400 XT radeondrm0: Initialized radeon 1.29.0 20080613 ugen0 at uhub3 port 3 ugen0: Canon CanoScan, rev 2.00/3.06, addr 2 wd0 at atabus0 drive 0: <SanDisk SDCFX3-004G> wd0: drive supports 4-sector PIO transfers, LBA addressing wd0: 3919 MB, 7964 cyl, 16 head, 63 sec, 512 bytes/sect x 8027712 sectors wd0: 32-bit data port wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66) wd0(jmide0:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA) wd1 at atabus3 drive 0: <ST3250410AS> wd1: drive supports 16-sector PIO transfers, LBA48 addressing wd1: 232 GB, 484521 cyl, 16 head, 63 sec, 512 bytes/sect x 488397168 sectors wd1: 32-bit data port wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) wd1(piixide1:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA) Kernelized RAIDframe activated pad0: outputs: 44100Hz, 16-bit, stereo audio2 at pad0: half duplex, playback, capture WARNING: 5 errors while detecting hardware; check system log. boot device: wd0 root on wd0a dumps on wd0b root file system type: ffs warning: no /dev/console wsdisplay0: screen 1 added (80x25, vt100 emulation) wsdisplay0: screen 2 added (80x25, vt100 emulation) wsdisplay0: screen 3 added (80x25, vt100 emulation) wsdisplay0: screen 4 added (80x25, vt100 emulation) info: [drm] Setting GART location based on new memory map info: [drm] Loading RV610 Microcode info: [drm] Resetting GPU info: [drm] writeback test failed ffffffff deadbeef radeondrm0: unable to detach instance radeondrm0: unable to detach instance radeondrm0: unable to detach instance radeondrm0: unable to detach instance radeondrm0: unable to detach instance radeondrm0: unable to detach instance radeondrm0: unable to detach instance radeondrm0: unable to detach instance radeondrm0: unable to detach instance radeondrm0: unable to detach instance radeondrm0: unable to detach instance radeondrm0: unable to detach instance radeondrm0: unable to detach instance
Attachment:
Xorg.0.log
Description: Binary data