Modify

Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#11604 closed defect (fixed)

TI AR7 + TNETW1130 crash during wireless init

Reported by: de@… Owned by: florian
Priority: normal Milestone: Barrier Breaker 14.07
Component: kernel Version: Trunk
Keywords: Cc: oliverml1@…

Description

TI AR7 (TNETD7300), ID: 0x0005, Revision: 0x26 + TNETW1130, if wireless is enabled, crashes during module load and sysctl is using 100% CPU time, device hangs after almost any console command, except top or so.
Device works fine on Backfire though.

[   35.290000] Updating initial settings
[   35.290000] Updating station_id to: 00:12:0E:27:48:BD
[   35.320000] Updating Tx fallback to 1 retries
[   35.340000] Updating tx-power-level to: 1
[   35.360000] Updating antenna[0,1]: 0x4A 0x04
[   35.380000] Updating the Energy Detect (ED) threshold: 0
[   35.380000] acx111 doesn't support ED threshold
[   35.390000] Updating the Channel Clear Assessment (CCA) value: 0x00
[   35.390000] acx111 doesn't support CCA
[   35.400000] Updating TX: disable, channel=1
[   35.420000] Updating RX: disable, channel=1
[   35.440000] Updating the short retry limit: 7, long retry limit: 4
[   35.480000] Updating the tx MSDU lifetime: 4096
[   35.500000] Updating the regulatory domain: 0x30
[   35.520000] Updating to mode=0x0002
[   35.560000] Updating RXconfig to mode=0x0002,rx_config_1:2=2010:0FDD
[   35.680000] Updating RX: enable, channel=1
[   35.710000] Updating TX: enable, channel=1
[   35.730000] updating sensitivity value: 2
[   35.770000] Enabling firmware auto radio-recalibration.
[   35.790000] acx: acx_op_add_interface: vif_type=0002
[   35.790000] acx: acx_op_add_interface: NL80211_IFTYPE_STATION
[   35.800000] Updating to mode=0x0002
[   35.840000] Updating RXconfig to mode=0x0002,rx_config_1:2=2010:0FDD
[   35.860000] Updating RX: enable, channel=1
[   35.880000] Updating TX: enable, channel=1
[   35.900000] acx: Virtual interface added (type: 0x00000002, MAC: 00:12:0E:27:48:BD)
[   35.900000] Tx-power adjusted from 0 to 4 dbm (tx-power-level: 5)
[   35.910000] Updating tx-power-level to: 5
[   35.950000] Updating to mode=0x00ff
[   35.960000] Updating TX: disable, channel=1
[   35.990000] Updating RX: disable, channel=1
[   36.010000] acx: Virtual interface removed: type=2, MAC=00:12:0E:27:48:BD
[   36.010000] closed device
[   36.050000] device wlan0 entered promiscuous mode
[   36.070000] Updating initial settings
[   36.070000] Updating station_id to: 00:12:0E:27:48:BD
[   36.100000] Updating Tx fallback to 1 retries
[   36.120000] Updating tx-power-level to: 5
[   36.140000] Updating antenna[0,1]: 0x4A 0x04
[   36.160000] Updating the Energy Detect (ED) threshold: 0
[   36.160000] acx111 doesn't support ED threshold
[   36.170000] Updating the Channel Clear Assessment (CCA) value: 0x00
[   36.170000] acx111 doesn't support CCA
[   36.180000] Updating TX: disable, channel=1
[   36.200000] Updating RX: disable, channel=1
[   36.220000] Updating the short retry limit: 7, long retry limit: 4
[   36.260000] Updating the tx MSDU lifetime: 4096
[   36.280000] Updating the regulatory domain: 0x30
[   36.300000] Updating to mode=0x00ff
[   36.300000] Updating TX: disable, channel=1
[   36.320000] Updating RX: disable, channel=1
[   36.340000] updating sensitivity value: 2
[   36.380000] Enabling firmware auto radio-recalibration.
[   36.400000] CPU 0 Unable to handle kernel paging request at virtual address 0000004c, epc == 942b4614, ra == 949242c8
[   36.400000] Oops[#1]:
[   36.400000] Cpu 0
[   36.400000] $ 0   : 00000000 10008400 0000004c 00000001
[   36.400000] $ 4   : 00000000 0005638b 00000001 943f21a8
[   36.400000] $ 8   : ffd23940 00000001 00000000 94998000
[   36.400000] $12   : 61642220 3a226174 20207b20 00480000
[   36.400000] $16   : 944f6360 00000001 00000000 00000004
[   36.400000] $20   : 94568a60 9456913c 000000ff 943d0000
[   36.400000] $24   : 004785e4 9413f980
[   36.400000] $28   : 94f98000 94f99cc8 00010000 949242c8
[   36.400000] Hi    : 00000008
[   36.400000] Lo    : 799bec00
[   36.400000] epc   : 942b4614 __netif_schedule+0x28/0x124
[   36.400000]     Tainted: G           O
[   36.400000] ra    : 949242c8 ieee80211_propagate_queue_wake+0x1a4/0x364 [mac80211]
[   36.400000] Status: 10008402    KERNEL EXL
[   36.400000] Cause : 10800008
[   36.400000] BadVA : 0000004c
[   36.400000] PrId  : 00018448 (MIPS 4KEc)
[   36.400000] Modules linked in: tiatm(O) acx_mac80211(O) nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp ipt_MASQUERADE iptable_nat nf_nat xt_conntrack xt_CT xt_NOTRACK iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack pppoe pppox pppoatm ipt_REJECT xt_TCPMSS ipt_LOG xt_comment xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables ppp_async ppp_generic slhc br2684 atm mac80211(O) crc_ccitt cfg80211(O) compat(O) arc4 aes_generic crypto_algapi
[   36.400000] Process hostapd (pid: 570, threadinfo=94f98000, task=943f21a8, tls=77f05440)
[   36.400000] Stack : 94569760 949d0000 949d0000 94568a60 944f6360 949242c8 00008914 00000000
[   36.400000]         00000000 949c025c 944f6360 00000019 00000001 94568a60 00000000 10008401
[   36.400000]         00000001 7fe04268 00008914 00000000 00000000 949248f4 00000000 00000000
[   36.400000]         00011006 9434a104 00041008 94569760 94569760 949d0000 94568a60 949c82a4
[   36.400000]         00000000 0000000d 944f6000 7fe04268 944f6000 944f6000 943d0000 94911eb8
[   36.400000]         ...
[   36.400000] Call Trace:
[   36.400000] [<942b4614>] __netif_schedule+0x28/0x124
[   36.400000] [<949242c8>] ieee80211_propagate_queue_wake+0x1a4/0x364 [mac80211]
[   36.400000] [<949248f4>] ieee80211_wake_queues_by_reason+0x50/0xac [mac80211]
[   36.400000] [<949c82a4>] acx_process_rxbuf+0x8c8/0x918 [acx_mac80211]
[   36.400000]
[   36.400000]
[   36.400000] Code: 00a31824  10600008  24030001 <c0450000> 00a33025  e0460000  10c0fffc  00000000  090ad1a3
[   36.640000] ---[ end trace 12e9822db722f837 ]---

Attachments (0)

Change History (7)

comment:1 Changed 6 years ago by florian

  • Cc oliverml1@… added
  • Owner changed from developers to florian
  • Status changed from new to accepted

Can you report this issue to the acx-mac80211 project directly? They should be able to help you debug this crash. Thanks!

comment:2 Changed 6 years ago by oliverml1@…

Hi Florian,

This looks like it could still be related to the hw-queue changes !? I don't observe this here with a 3.4 kernel, but I don't know at which version the current Openwrt trunk is.

Could you check following workaround on the acx-mac80211:

--- a/pci.c
+++ b/pci.c
@@ -3271,7 +3271,7 @@ acxpci_probe(struct pci_dev *pdev, const
 			BIT(NL80211_IFTYPE_STATION)	|
 			BIT(NL80211_IFTYPE_ADHOC) |
 			BIT(NL80211_IFTYPE_AP);
-	ieee->queues = 1;
+	ieee->queues = 4;
 	// OW TODO Check if RTS/CTS threshold can be included here
 
 	/* TODO: although in the original driver the maximum value was 100,
@@ -3939,7 +3939,7 @@ static __devinit int vlynq_probe(struct
 			BIT(NL80211_IFTYPE_STATION)	|
 			BIT(NL80211_IFTYPE_ADHOC) |
 			BIT(NL80211_IFTYPE_AP);
-	ieee->queues = 1;
+	ieee->queues = 4;
 
 	// We base signal quality on winlevel approach of previous driver
 	// TODO OW 20100615 This should into a common init code

Cheers, Oliver

comment:3 Changed 6 years ago by de@…

hi, your patch worked. no more crashes on boot, gonna test thoroughly... thanks

comment:4 Changed 6 years ago by angus@…

I'd been having the same problem on a D-Link DSL-G604T running OpenWRT SVN r32233, and with that patch my wifi now seems to be working.

comment:5 Changed 6 years ago by oliverml1@…

Hmmm, Ok, Thanks for the feedback!

So that confirms it's still somehow related to the hw_queues settings.

Actually before there could still a "WARNING: at net/mac80211/iface.c:162 ieee80211_check_queues" be observed, but maybe the problem somehow moved on in the meanwhile.

I'll check this one time against a recent wireless-testing to see how it behaves there and to find a good, conclusive fix then. Will check sometime soon, just having my teeth into another thing ;).

comment:6 Changed 6 years ago by florian

  • Resolution set to fixed
  • Status changed from accepted to closed

This should now be fixed in trunk with mac80211 updates. If not, please re-open.

comment:7 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.