Melameth, Daniel D. wrote: > Theo de Raadt wrote: > > This is due to a problem in the ral driver. I have mailed damien, > > and hopefully a fix will be written soon. (the same mistake is in > > some of the other drivers drivers he has written too) > > Please post/have someone post a follow-up when this is done. I have, > what I believe, are ral-related issues as well and I'd love see this > resolved/assist with resolving this.
I manually applied the changes from 1.22 of rt2560.c to -stable's 1.12.2.1, but I am still finding the system locked hard (unresponsive and no visible panic) and requiring a reset every couple of days. In addition, I often see 'fxp0: warning: SCB timed out' and, occasionally, 'fxp0: device timeout' reported to the console of this system, but I don't know if this is related or not--then again, I don't recall seeing these when this system was using wi instead of ral. FWIW, diff for the changes in 1.22 to -stable's 1.12.2.1: Index: rt2560.c =================================================================== RCS file: /cvs/src/sys/dev/ic/rt2560.c,v retrieving revision 1.12.2.1 diff -u -p -r1.12.2.1 rt2560.c --- rt2560.c 3 May 2006 03:43:49 -0000 1.12.2.1 +++ rt2560.c 1 Aug 2006 12:54:37 -0000 @@ -1483,15 +1483,18 @@ rt2560_intr(void *arg) struct ifnet *ifp = &sc->sc_ic.ic_if; uint32_t r; + if ((r = RAL_READ(sc, RT2560_CSR7)) == 0) + return 0; /* not for us */ + /* disable interrupts */ RAL_WRITE(sc, RT2560_CSR8, 0xffffffff); + /* acknowledge interrupts */ + RAL_WRITE(sc, RT2560_CSR7, r); + /* don't re-enable interrupts if we're shutting down */ if (!(ifp->if_flags & IFF_RUNNING)) return 0; - - r = RAL_READ(sc, RT2560_CSR7); - RAL_WRITE(sc, RT2560_CSR7, r); if (r & RT2560_BEACON_EXPIRE) rt2560_beacon_expire(sc); OpenBSD 3.9-stable (GENERIC) #1: Mon Jul 31 21:49:34 MDT 2006 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel Pentium III ("GenuineIntel" 686-class) 647 MHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,F XSR,SSE real mem = 133668864 (130536K) avail mem = 115245056 (112544K) using 1657 buffers containing 6787072 bytes (6628K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+(63) BIOS, date 12/30/99 apm0 at bios0: Power Management spec V1.2 apm0: battery life expectancy 100% apm0: AC on, battery charge high, estimated 2:09 hours apm0: flags 20102 dobusy 0 doidle 1 pcibios at bios0 function 0x1a not configured bios0: ROM list: 0xc0000/0xc000 cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x03 ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x03 pci1 at ppb0 bus 1 vga1 at pci1 dev 0 function 0 "S3 Savage/IX-MV" rev 0x11 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) pcib0 at pci0 dev 5 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02 pciide0 at pci0 dev 5 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility wd0 at pciide0 channel 0 drive 0: <SAMSUNG MP0402H> wd0: 16-sector PIO, LBA48, 38204MB, 78242976 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 atapiscsi0 at pciide0 channel 1 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: <TOSHIBA, DVD-ROM SD-C2402, 1317> SCSI0 5/cdrom removable cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 uhci0 at pci0 dev 5 function 2 "Intel 82371AB USB" rev 0x01: irq 11 usb0 at uhci0: USB revision 1.0 uhub0 at usb0 uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered piixpm0 at pci0 dev 5 function 3 "Intel 82371AB Power" rev 0x03: SMI iic0 at piixpm0 admtemp0 at iic0 addr 0x4e: adm1021 "AT&T/Lucent LTMODEM" rev 0x01 at pci0 dev 7 function 0 not configured vendor "Toshiba", unknown product 0x0d01 (class wireless subclass IrDA, rev 0x00) at pci0 dev 9 function 0 not configured cbb0 at pci0 dev 11 function 0 "Toshiba ToPIC95B CardBus" rev 0x07: irq 11 cbb1 at pci0 dev 11 function 1 "Toshiba ToPIC95B CardBus" rev 0x07: irq 11 yds0 at pci0 dev 12 function 0 "Yamaha 744" rev 0x02: irq 11 isa0 at pcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pmsi0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pmsi0 mux 0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: <PC speaker> spkr0 at pcppi0 lpt0 at isa0 port 0x378/4 irq 7 npx0 at isa0 port 0xf0/16: using exception 16 pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo pccom1 at isa0 port 0x2f8/8 irq 3: ns8250, no fifo fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec cardslot0 at cbb0 slot 0 flags 0 cardbus0 at cardslot0: bus 20 device 0 cacheline 0x0, lattimer 0x0 pcmcia0 at cardslot0 cardslot1 at cbb1 slot 1 flags 0 cardbus1 at cardslot1: bus 21 device 0 cacheline 0x0, lattimer 0x0 pcmcia1 at cardslot1 biomask ef65 netmask ef65 ttymask ffe7 pctr: 686-class user-level performance counters enabled mtrr: Pentium Pro MTRR support fxp0 at cardbus0 dev 0 function 0 "INTEL(R), PRO/100 CARDBUS II, MBLA3300": INTEL(R) PRO/100 CARDBUS II: irq 11, address 00:a0:c9:bc:ad:ad inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4 ral0 at cardbus1 dev 0 function 0 "Ralink Technology, Inc., RT2500, 802.11 CardBus Reference Card": irq 11, address 00:0e:3b:07:a2:13 ral0: MAC/BBP RT2560 (rev 0x04), RF RT2525 dkcsum: wd0 matches BIOS drive 0x80 root on wd0a rootdev=0x0 rrootdev=0x300 rawdev=0x302 ac97: codec id 0x414b4d02 (Asahi Kasei AK4543) ac97: codec features headphone, 18 bit DAC, 18 bit ADC, AKM 3D audio0 at yds0 opl0 at yds0: model OPL3 midi1 at opl0: <DS-1 integrated Yamaha OPL3> mpu at yds0 not configured mpu at yds0 not configured mpu at yds0 not configured mpu at yds0 not configured pppoe0: phase establish pppoe0: phase authenticate pppoe0: phase network fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: warning: SCB timed out fxp0: device timeout