Trying to use the ral(4) driver causes the system to lock up.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Trying to use the ral(4) driver causes the system to lock up.

Chuck M.
Submitter-Id: net
Originator: Chuck
Organization: net
Synopsis: Trying to use the ral(4) driver causes the system to lock up.
Severity: critical
Category: Wifi Driver Bug
Class: sw-bug
Release: OpenBSD 4.0 and then OpenBSD 4.1 beta 2/24/07 snapshot
Environment:

System: OpenBSD 4.0
Architecture: OpenBSD.i386
Machine: i386

System: OpenBSD 4.1
Architecture: OpenBSD.i386
Machine: i386

Description:
If I try to bring up the ral0 interface via ifconfig, when I enter
"ifconfig ral0 up" into the command line, the system locks up. I can
no longer type, the screen does not update, and I cannot access it via
SSH. There are no error messages displayed... the computer becomes
entirely unresponsive. My system has two ethernet NIC cards and one
Zonet ZEW1601 PCI 802.11g Wireless LAN Adapter that uses the RT2500
chipset.

I tried using the driver to connect to another wireless network and to
set up an access point. The same problem occurs in both cases. I also
tried using OpenBSD 4.0 and the February 24 snapshot of OpenBSD 4.1
current beta. I pasted in the boot message output from dmesg here:

OpenBSD 4.1-beta (GENERIC) #1406: Sat Feb 24 12:33:46 MST 2007
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD-K6(tm) 3D processor ("AuthenticAMD" 586-class) 332 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,PGE,MMX
real mem  = 66682880 (65120K)
avail mem = 52543488 (51312K)
using 844 buffers containing 3457024 bytes (3376K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+ BIOS, date 04/22/99, BIOS32 rev. 0 @ 0xfa570
pcibios0 at bios0: rev 2.0 @ 0xf0000/0x10000
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc0000/0x8000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82437FX" rev 0x02
pcib0 at pci0 dev 7 function 0 "Intel 82371FB ISA" rev 0x02
pciide0 at pci0 dev 7 function 1 "Intel 82371FB IDE" rev 0x02: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <WDC AC26400R>
wd0: 16-sector PIO, LBA, 6149MB, 12594960 sectors
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <ACER, CD-910E/JAS, 23N> SCSI0 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 0, DMA mode 1
rl0 at pci0 dev 13 function 0 "Realtek 8139" rev 0x10: irq 11, address
00:c0:a8:7c:1a:44
rlphy0 at rl0 phy 0: RTL internal PHY
rl1 at pci0 dev 14 function 0 "D-Link Systems 530TX+" rev 0x10: irq
10, address 00:40:05:82:f6:77
rlphy1 at rl1 phy 0: RTL internal PHY
vga1 at pci0 dev 15 function 0 "Cirrus Logic CL-GD5446" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ral0 at pci0 dev 16 function 0 "Ralink RT2560" rev 0x01: irq 5,
address 00:06:f4:0b:66:c4
ral0: MAC/BBP RT2560 (rev 0x04), RF RT2525
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
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: reported by CPUID; using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask f34d netmask ff6d ttymask ffef
pctr: user-level cycle counter enabled
mtrr: K6-family MTRR support (2 registers)
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
WARNING: / was not properly unmounted

Here is the contents of my dmesg.boot file:

-bash-3.1$ cat /var/run/dmesg.boot
OpenBSD 4.1-beta (GENERIC) #1406: Sat Feb 24 12:33:46 MST 2007
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD-K6(tm) 3D processor ("AuthenticAMD" 586-class) 332 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,PGE,MMX
real mem  = 66682880 (65120K)
avail mem = 52543488 (51312K)
using 844 buffers containing 3457024 bytes (3376K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+ BIOS, date 04/22/99, BIOS32 rev. 0 @ 0xfa570
pcibios0 at bios0: rev 2.0 @ 0xf0000/0x10000
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc0000/0x8000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82437FX" rev 0x02
pcib0 at pci0 dev 7 function 0 "Intel 82371FB ISA" rev 0x02
pciide0 at pci0 dev 7 function 1 "Intel 82371FB IDE" rev 0x02: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <WDC AC26400R>
wd0: 16-sector PIO, LBA, 6149MB, 12594960 sectors
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <ACER, CD-910E/JAS, 23N> SCSI0 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 0, DMA mode 1
rl0 at pci0 dev 13 function 0 "Realtek 8139" rev 0x10: irq 11, address
00:c0:a8:7c:1a:44
rlphy0 at rl0 phy 0: RTL internal PHY
rl1 at pci0 dev 14 function 0 "D-Link Systems 530TX+" rev 0x10: irq
10, address 00:40:05:82:f6:77
rlphy1 at rl1 phy 0: RTL internal PHY
vga1 at pci0 dev 15 function 0 "Cirrus Logic CL-GD5446" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ral0 at pci0 dev 16 function 0 "Ralink RT2560" rev 0x01: irq 5,
address 00:06:f4:0b:66:c4
ral0: MAC/BBP RT2560 (rev 0x04), RF RT2525
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
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: reported by CPUID; using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask f34d netmask ff6d ttymask ffef
pctr: user-level cycle counter enabled
mtrr: K6-family MTRR support (2 registers)
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
WARNING: / was not properly unmounted

Here are my packages that I have installed (may not be helpful):

bash-3.1# pkg_info
apr-1.0.1p2         Apache Portable Runtime
apr-util-1.0.1p3    companion library to APR
bash-3.1.17         GNU Bourne Again Shell
bzip2-1.0.4         block-sorting file compressor, unencumbered
curl-7.15.4         get files from FTP, Gopher, HTTP or HTTPS servers
db-4.2.52p8         Berkeley DB package, revision 4
expat-2.0.0         XML 1.0 parser written in C
flac-1.1.2p1        free lossless audio codec
freetype-1.3.1p2    free and portable TrueType font rendering engine
gd-1.8.3            graphics library for fast PNG creation
gettext-0.14.5p1    GNU gettext
glib-1.2.10p1       useful routines for C programming
glib2-2.10.3        general-purpose utility library
gmake-3.80p1        GNU make
icecast-2.3.1       server for streaming various media formats
ices-0.4p1          icecast source for streaming MP3
irssi-0.8.10p0      modular IRC client with many features (ipv6,socks,proxy)
jpeg-6bp3           IJG's JPEG compression utilities
lame-3.96.1p1-no_x11 lame ain't an MP3 encoder
libgcrypt-1.2.0p1   crypto library based on code used in GnuPG
libgpg-error-1.1p0  error codes for GnuPG related software
libiconv-1.9.2p3    character set conversion library
libltdl-1.5.22p1    GNU libtool system independent dlopen wrapper
libogg-1.1.3        Ogg bitstream library
libshout-2.2        library for communicating with an icecast server
libtheora-1.0alpha7 open video codec
libtool-1.5.22p0    generic shared library support script
libvorbis-1.1.2p0   audio compression codec library
libxml-2.6.26       XML parsing library
libxslt-1.1.17      XSLT C Library for GNOME
mod_mp3-0.39p1      turns Apache into an MP3 or Ogg streaming server
mod_perl-1.29p0     module that embeds a Perl interpreter into Apache
mpg123-0.59rp4      mpeg audio 1/2 layer 1, 2 and 3 player
mysql-client-5.0.24a multithreaded SQL database (client)
mysql-server-5.0.24a multithreaded SQL database (server)
nano-1.2.5          small, easy to use editor
neon-0.24.7p0       HTTP and WebDAV client library, with C interface
p5-DBD-mysql-2.9004 MySQL drivers for the Perl DBI
p5-DBI-1.51         unified perl interface for database access
p5-Net-Daemon-0.39  extension for portable daemons
p5-PlRPC-0.2018     module for writing rpc servers and clients
pcre-6.4p1          perl-compatible regular expression library
php4-core-4.4.1p1   server-side HTML-embedded scripting language
php4-mysql-4.4.1p0  mysql database access extensions for php4
php4-pear-4.4.1p0   base classes for common PHP tasks
png-1.2.12p0        library for manipulating PNG images
recode-3.6p3        convert files between character sets and usages
redhat_base-8.0p8   Linux compatibility package based on RedHat 8.0
screen-4.0.3        multi-screen window manager
snort-2.4.5p0       highly flexible sniffer/NIDS
speex-1.0.5p0       patent-free speech codec
subversion-1.3.2    subversion revision control system
unzip-5.52          extract, list & test files in a ZIP archive
webalizer-2.01.10p1 web server log file analysis program
wget-1.10.2p0       retrieve files from the web via HTTP, HTTPS and FTP

As an aside: Yesterday, I had an IRQ problem. pci_intr_map: no mapping
for pin A for one of my ethernet cards and the wifi card. I fixed this
by changing the BIOS to automatically assign IRQs to PCI slots and by
disabling the ISA bus (which I don't use anyways). Could there be an
interrupt problem that is causing the system to lock up?

If you need any additional information or if you would like me to test
something out, please e-mail me at [hidden email] -- I can
also arrange a meeting on IRC if needed. I have tried searching for
similar problems via Google and seeking for help on EFNet #openbsd
without any luck.

How-To-Repeat:

Type "ifconfig ral0 up" as root with any or no prior ifconfig settings
(i.e. media option, SSID, WEP key, etc.). The system immediately locks
up.

Fix:
Unknown. Unfortunately, I am not experienced with coding wireless drivers.