Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Jan 2013 12:43:28 -0800
From:      Adrian Chadd <adrian@freebsd.org>
To:        Monthadar Al Jaberi <monthadar@gmail.com>
Cc:        freebsd-wireless@freebsd.org, freebsd-mips@freebsd.org
Subject:   Re: ath0: could not map interrupt
Message-ID:  <CAJ-Vmon%2BGzpXYkfE%2Bu7CDoXqmpH=zeJPcQdrukxAa9QH-2GazQ@mail.gmail.com>
In-Reply-To: <CA%2BsBSo%2BpxqvWkrMjd8pmJSYUBdr0HuMW4eARJFcaFrG5tEYqBg@mail.gmail.com>
References:  <CA%2BsBSoKs9s0SxAOyf91pcPv0MZMx3LCHh%2B_dTN-2mEQdYdH45g@mail.gmail.com> <CA%2BsBSo%2BpxqvWkrMjd8pmJSYUBdr0HuMW4eARJFcaFrG5tEYqBg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
... sounds like a definite interrupt routing issue.

Who's been knee deep in the interrupt handling code in MIPS lately? Grrr.
I know there's been some FDT work in MIPS and that's touched some
interrupt code.. maybe that's interfering?


Adrian


On 2 January 2013 12:40, Monthadar Al Jaberi <monthadar@gmail.com> wrote:
> I tested some more. First I changed the miniPCI slot. Now boot looks like this:
>
> pcib0 at irq 0 on nexus0
> pci0: <PCI bus> on pcib0
> ath0: <Atheros 5413> irq 2 at device 19.0 on pci0
> ath0: AR5413 mac 10.5 RF5413 phy 6.1
> ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0063
>
>
> Then I created a hostap. But none of my other devices sees it (laptop, iphone).
>
> A scan results in:
>
> # ifconfig wlan0 scan
> wlan0: ieee80211_scanreq: flags 0x1b duration 0x7fffffff mindwell 0
> maxdwell 0 nssid 0
> wlan0: start_scan_locked: active scan, duration 2147483647 mindwell 0
> maxdwell 0, desired mode 11g, append, nopick, once
> wlan0: scan set 11g dwell min 200ms max 200ms
> wlan0: scan_task: chan  11g ->  11g [active, dwell min 200ms max 200ms]
> wlan0: ieee80211_ref_node (ieee80211_send_probereq:1822)
> 0xc6f27000<00:15:6d:67:21:8d> refcnt 4
> wlan0: send probe req on channel 11 bssid ff:ff:ff:ff:ff:ff ssid ""
> wlan0: scan_task: done, [ticks 2657909, dwell min 200 scanend 2150141333]
> wlan0: notify scan done
> root@rb433ah:~ # ath0: device timeout
>
> And when I try to ping a random IP address I get the following.
> Interesting is that it seems to "bail out" when it tries to send
> probe_resp (last in output):
> $ ping -c 1 172.168.3.2
> PING 172.168.3.2 (172.168.3.2): 56 data bytes
> ath0: device timeout
> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1
> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 46
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5
> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10
> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1
> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1
> wlan0: received beacon from 00:11:50:4d:c5:08 rssi 8
> wlan0: [00:11:50:4d:c5:08] discard unhandled information element, id 47, len 1
> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 40
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5
> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10
> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1
> wlan0: [94:0c:6d:ad:61:18] discard frame, not to bss
> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1
> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 48
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5
> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10
> wlan0: received probe_req from 00:16:cf:3c:f7:7f rssi 2
> [00:16:cf:3c:f7:7f] discard probe_req frame, ssid mismatch:
> 0x9ccca48e6a3b0c7f661c24413d7b9e54c5e59ddbe0c2bd96a2e65410b662f71a
> wlan0: received probe_req from 00:16:cf:3c:f7:7f rssi 5
> [00:16:cf:3c:f7:7f] discard probe_req frame, ssid mismatch: "default"
> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1
> wlan0: received probe_req from 00:16:cf:3c:f7:7f rssi 4
> [00:16:cf:3c:f7:7f] discard probe_req frame, ssid mismatch: "default"
> wlan0: received beacon from 00:11:50:4d:c5:08 rssi 9
> wlan0: [00:11:50:4d:c5:08] discard unhandled information element, id 47, len 1
> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 46
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5
> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10
> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1
> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 40
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5
> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10
> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1
> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 43
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5
> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10
> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1
> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 40
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5
> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10
> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1
> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 45
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5
> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10
> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1
> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1
> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1
> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 47
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5
> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10
> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1
> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 44
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1
> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5
> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10
> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14
> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1
> wlan0: received probe_req from 00:aa:70:77:bd:77 rssi 0
> wlan0: [00:aa:70:77:bd:77] recv probe req
> wlan0: ieee80211_ref_node (ieee80211_send_proberesp:2489)
> 0xc6f27000<00:15:6d:67:21:8d> refcnt 5
> wlan0: send probe resp on channel 11 to 00:aa:70:77:bd:77
> ath0: ath_raw_xmit: sc_inreset_cnt > 0; bailing
> ....
>
>
> On Tue, Jan 1, 2013 at 7:33 PM, Monthadar Al Jaberi <monthadar@gmail.com> wrote:
>> Hi,
>>
>> ath(4) failed to attach on my Routerboard RB433AH running FreeBSD
>> current. This is what I got during boo-up.
>>
>> pcib0 at irq 0 on nexus0
>> pci0: <PCI bus> on pcib0
>> ath0: <Atheros 5413> irq 3 at device 20.0 on pci0
>> ath0: could not map interrupt
>> device_attach: ath0 attach returned 6
>>
>> Any idea why? Anyone else is running ath(4) on this board? My wifi
>> card is a Ubiquity X2 with AR5413 chip.
>>
>> br,
>>
>>
>> --
>> Monthadar Al Jaberi
>
>
>
> --
> Monthadar Al Jaberi
> _______________________________________________
> freebsd-wireless@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
> To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmon%2BGzpXYkfE%2Bu7CDoXqmpH=zeJPcQdrukxAa9QH-2GazQ>