Project

General

Profile

Actions

Bug #11021

closed

ral(4) driver kernel panics in arm64

Added by Steve Wheeler about 4 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Wireless
Target version:
Start date:
10/30/2020
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.5.0
Affected Architecture:
arm64

Description

Testing with an RT2700e card:

[2.5.0-DEVELOPMENT][root@2100-2.stevew.lan]/root: pciconf -lv
ral0@pci0:0:0:0:        class=0x028000 card=0x27901814 chip=0x07811814 rev=0x00 hdr=0x00
    vendor     = 'Ralink corp.'
    device     = 'RT2790 Wireless 802.11n 1T/2R PCIe'
    class      = network

The driver attaches and the card can be assigned:

[2.5.0-DEVELOPMENT][root@2100-2.stevew.lan]/root: ifconfig ral0_wlan0
ral0_wlan0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:15:af:cb:93:c5
        groups: wlan
        ssid "" channel 1 (2412 MHz 11b)
        regdomain FCC country US authmode OPEN privacy OFF txpower 30
        scanvalid 60 wme dtimperiod 1 -dfs bintval 0
        parent interface: ral0
        media: IEEE 802.11 Wireless Ethernet autoselect <hostap> (autoselect <hostap>)
        status: no carrier
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>

However trying to bring the interface up causes a kernel panics:

[2.5.0-DEVELOPMENT][root@2100-2.stevew.lan]/root: ifconfig ral0_wlan0 up
Fatal data abort:
  x0:                0
  x1: ffff0000403d0000
  x2:             1800
  x3:                0
  x4:              200
  x5: ffff0000403e4960
  x6:                0
  x7: ffff000061bc4cb0
  x8: ffff000001e0f4e8
  x9:                0
 x10:          9d89d88
 x11: ffff00000092e620
 x12: ffff000000949174
 x13:                0
 x14:             2814
 x15:             2af8
 x16:             27ce
 x17:                0
 x18: ffff0000403e4a20
 x19: ffff000041b86000
 x20:               64
 x21: ffff000041b901d3
 x22: ffff000041b8c858
 x23: ffff000041b8cad0
 x24: ffff000041b8cad8
 x25: ffff000041b90132
 x26: ffff000000aafd64
 x27:              3e7
 x28:                0
 x29: ffff0000403e4a20
  sp: ffff0000403e4a20
  lr: ffff0000002c5380
 elr:                0
spsr:         20000345
 far:                0
 esr:         86000005
panic: vm_fault failed: 0
cpuid = 0
time = 1604094260
KDB: stack backtrace:
#0 0xffff0000005abfec at kdb_backtrace+0x60
#1 0xffff000000562454 at vpanic+0x18c
#2 0xffff0000005622c4 at panic+0x44
#3 0xffff000000964d14 at data_abort+0x1dc
#4 0xffff000000964a34 at do_el1h_sync+0x128
#5 0xffff00000094c874 at handle_el1h_sync+0x74
#6 0xffff0000002c537c at rt2860_init_locked+0xc78
#7 0xffff0000002c1fc0 at rt2860_parent+0xc8
#8 0xffff0000005be300 at taskqueue_run_locked+0x138
#9 0xffff0000005bf874 at taskqueue_thread_loop+0xd0
#10 0xffff000000523ee8 a�TIM-1.0

Tested hostap and infrastructure mode in:

2.5.0-DEVELOPMENT (arm64)
built on Fri Oct 30 12:54:36 EDT 2020
FreeBSD 12.2-STABLE

Actions

Also available in: Atom PDF