Modify

Opened 5 years ago

Last modified 3 years ago

#12391 new defect

ath9k reading of /sys/kernel/debug/ieee80211/phy0/ath9k/regdump produces data bus error

Reported by: mm@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: kernel Version: Attitude Adjustment 12.09 Beta
Keywords: ath9k WDR4300 AR9344 Cc:

Description

When reading the ath9k registers of phy0 (2.4GHz) on a TP-Link WDR4300 (AR9344 rev2) gives:

root@o4ap:~# head /sys/kernel/debug/ieee80211/phy0/ath9k/regdump 
Segmentation fault

Via dmesg I get the following messages:

[55107.930000] ---[ end trace 414f56e926380bfd ]---
[60307.410000] Data bus error, epc == 8706f0b8, ra == 8706f0c0
[60307.410000] Oops[#4]:
[60307.410000] Cpu 0
[60307.410000] $ 0   : 00000000 00000000 deadc0de 1100dc03
[60307.410000] $ 4   : c0ba8a00 00071139 87074008 00000200
[60307.410000] $ 8   : 0000000a 00000003 00000001 00000000
[60307.410000] $12   : 802d0104 77dae01c 77dae030 0045bd3c
[60307.410000] $16   : 00000200 c0ba8a00 00071139 87079760
[60307.410000] $20   : 00000080 00000a00 c0ba8000 00071b39
[60307.410000] $24   : 00000144 8006da3c                  
[60307.410000] $28   : 85832000 85833c98 00005af6 8706f0c0
[60307.410000] Hi    : 000002e9
[60307.410000] Lo    : 000353dd
[60307.410000] epc   : 8706f0b8 0x8706f0b8
[60307.410000]     Tainted: G      D    O
[60307.410000] ra    : 8706f0c0 0x8706f0c0
[60307.410000] Status: 1100dc03    KERNEL EXL IE 
[60307.410000] Cause : 80800c1c
[60307.410000] PrId  : 0001974c (MIPS 74Kc)
[60307.410000] Modules linked in: sch_fq_codel sch_hfsc cls_fw sch_ingress act_mirred act_connmark em_u32 cls_u32 ftdi_sio usbserial cdc_acm ath79_wdt ohci_hcd ledtrig_usbdev ledtrig_netdev nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp xt_HL xt_hl xt_ecn ipt_ECN xt_CLASSIFY xt_time xt_tcpmss xt_statistic xt_mark xt_length xt_DSCP xt_dscp xt_string xt_layer7 ipt_MASQUERADE iptable_nat nf_nat xt_recent xt_helper xt_connmark xt_connbytes pppoe xt_conntrack xt_CT xt_NOTRACK iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack ehci_hcd pppox ipt_REJECT xt_TCPMSS ipt_LOG xt_comment xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables ifb ppp_async ppp_generic slhc ath9k(O) ath9k_common(O) ath9k_hw(O) ath(O) mac80211(O) usbcore usb_common nls_base ts_fsm ts_bm ts_kmp crc_ccitt cfg80211(O) compat(O) arc4 aes_generic crypto_algapi ledtrig_timer ledtrig_default_on leds_gpio gpio_button_hotplug(O)
[60307.410000] Process head (pid: 20797, threadinfo=85832000, task=87b114c8, tls=77e39440)
[60307.410000] Stack : 85833d5c c0ba89f7 c0c19b39 c0ba89ec 87074011 00000004 00000000 85833d5c
[60307.410000]         c0ba89ff 00000001 87074016 00000001 fffcd000 000000d2 00000021 00000010
[60307.410000]         00000008 ffffffff 002110ff 0008ffff 0007114d c0ba89ec 0007114d 87079760
[60307.410000]         0000007f 000009ec c0ba8000 00071b39 00005af6 80162b00 000000d2 000003ff
[60307.410000]         ffffffff 8706f06c 000001fc 85833d48 802c0000 fffffff8 fffffffe 77dae01c
[60307.410000]         ...
[60307.410000] Call Trace:[<80162b00>] 0x80162b00
[60307.410000] [<8706f06c>] 0x8706f06c
[60307.410000] [<8706f0c0>] 0x8706f0c0
[60307.410000] [<8706f000>] 0x8706f000
[60307.410000] [<800d5a38>] 0x800d5a38
[60307.410000] [<800e0b9c>] 0x800e0b9c
[60307.410000] [<800e45ec>] 0x800e45ec
[60307.410000] [<800e482c>] 0x800e482c
[60307.410000] [<800c1708>] 0x800c1708
[60307.410000] [<800c4084>] 0x800c4084
[60307.410000] [<800e4c10>] 0x800e4c10
[60307.410000] [<8006bfc4>] 0x8006bfc4
[60307.410000] [<800eefd4>] 0x800eefd4
[60307.410000] [<800e1678>] 0x800e1678
[60307.410000] [<800d6aa0>] 0x800d6aa0
[60307.410000] [<8006a184>] 0x8006a184
[60307.410000] [<801642dc>] 0x801642dc
[60307.410000] 
[60307.410000] 
[60307.410000] Code: 02402821  24c64008  02003821 <0c058ac8> afa20010  02a2a821  26940001  029e102b  5440ffef 
[60307.710000] ---[ end trace 414f56e926380bfe ]---

Reading the registers of phy1 (5GHz) works:

root@o4ap:~# head /sys/kernel/debug/ieee80211/phy1/ath9k/regdump 
0x000000 0x00000000
0x000004 0x00000000
0x000008 0x0000000c
0x00000c 0x00000000
0x000010 0x00000000
0x000014 0x00000105

Attachments (1)

Change History (6)

comment:1 Changed 5 years ago by Kufat

I have the same issue on my WNDR3700 with a recent BB trunk, except I get the same failure whether I attempt to read regs on phy0 or phy1.

comment:2 Changed 5 years ago by Kufat

Noticed that I have symbols for the trace (which is a different depth from the above), so here's a paste:

[11569.730000] Data bus error, epc == 832ef0b8, ra == 832ef0c0
[11569.730000] Oops[#4]:
[11569.730000] Cpu 0
[11569.730000] $ 0   : 00000000 fffffff8 deadc0de 00000001
[11569.730000] $ 4   : c1d56c88 00035c8d 832f3ff4 000008e8
[11569.730000] $ 8   : 0000000a 00000003 00000001 00000000
[11569.730000] $12   : 802fdf94 00000002 0000002b 00405ff8
[11569.730000] $16   : 000008e8 c1d56c88 00035c8d 83199760
[11569.730000] $20   : 0000023a 00002c88 c1d54000 00038915
[11569.730000] $24   : 000000d8 8006dddc
[11569.730000] $28   : 82296000 82297d48 00002d41 832ef0c0
[11569.730000] Hi    : 00000045
[11569.730000] Lo    : 0001d679
[11569.730000] epc   : 832ef0b8 ath_ahb_exit+0x1eb0/0x3d4c [ath9k]
[11569.730000]     Tainted: G      D    O
[11569.730000] ra    : 832ef0c0 ath_ahb_exit+0x1eb8/0x3d4c [ath9k]
[11569.730000] Status: 1000fc03    KERNEL EXL IE
[11569.730000] Cause : 8080001c
[11569.730000] PrId  : 00019374 (MIPS 24Kc)
[11569.730000] Modules linked in: fuse sch_teql sch_tbf sch_sfq sch_red sch_prio sch_htb sch_gred sch_dsmark em_text em_nbyte em_meta em_cmp cls_basic act_police act_ipt act_connmark act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_hfsc sch_fq_codel sch_codel sch_ingress leds_wndr3700_usb gpio_keys ath79_wdt ledtrig_usbdev ip6t_REJECT ip6t_LOG ip6t_rt ip6t_hbh ip6t_mh ip6t_ipv6header ip6t_frag ip6t_eui64 ip6t_ah ip6table_raw ip6_queue ip6table_mangle ip6table_filter ip6_tables nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp xt_HL xt_hl xt_ecn ipt_ECN xt_CLASSIFY xt_time xt_tcpmss xt_statistic xt_mark xt_length xt_DSCP xt_dscp xt_string xt_layer7 ipt_MASQUERADE iptable_nat nf_nat xt_recent xt_helper xt_connmark xt_connbytes xt_conntrack xt_CT xt_NOTRACK iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack ipt_REJECT xt_TCPMSS ipt_LOG xt_comment xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables msdos ifb sit tunnel4 loop vfat fat cifs button_hotplug(O) ath9k(O) ath9k_common(O) ath9k_hw(O) ath(O) nls_utf8 nls_iso8859_15 nls_iso8859_1 nls_cp437 mac80211(O) ts_fsm ts_bm ts_kmp ipv6 input_polldev cfg80211(O) compat(O) input_core md5 md4 hmac ecb des_generic arc4 aes_generic crypto_blkcipher cryptomgr aead usb_storage ohci_hcd ehci_hcd sd_mod usbcore usb_common scsi_mod nls_base crypto_hash crypto_algapi ledtrig_timer ledtrig_default_on leds_gpio gpio_button_hotplug(O)
[11569.730000] Process cat (pid: 4616, threadinfo=82296000, task=83b8a568, tls=77688440)
[11569.730000] Stack : 82297e24 82297e70 82297e24 000008e4 00000000 834c4e00 8210ab80 834c94c0
[11569.730000]         82297e70 00000000 832ef000 00000000 834c4e00 00000024 004638dc 800d77d8
[11569.730000]         83807ab0 8210ab80 82297e24 82297e70 82297e24 00000000 82297e70 834c94c0
[11569.730000]         00000000 00000000 00000000 800e63ac 834c6d10 822ca774 00000000 83807ab0
[11569.730000]         834c4e00 0b77cd1b 834c94c0 82c6100b 82f876c0 82297e24 82297e70 ffffffe9
[11569.730000]         ...
[11569.730000] Call Trace:
[11569.730000] [<832ef0b8>] ath_ahb_exit+0x1eb0/0x3d4c [ath9k]
[11569.730000] [<800d77d8>] __dentry_open.isra.15+0x1ec/0x314
[11569.730000] [<800e63ac>] do_last.isra.37+0x74c/0x764
[11569.730000] [<800e65ec>] path_openat+0xc8/0x390
[11569.730000] [<800e69d0>] do_filp_open+0x3c/0xa4
[11569.730000] [<800d8840>] do_sys_open+0x130/0x1e0
[11569.730000] [<8006a524>] stack_done+0x20/0x40
[11569.730000]
[11569.730000]
[11569.730000] Code: 02402821  24c63ff4  02003821 <0c059b74> afa20010  02a2a821  26940001  029e102b  5440ffef
[11570.050000] ---[ end trace 1b23f2e5d2419c6c ]---

comment:3 Changed 4 years ago by netwiz@…

Slight change in the latest build... The WD N600 shows:

root@OpenWrt:~# head /sys/kernel/debug/ieee80211/phy0/ath9k/regdump
Segmentation fault
root@OpenWrt:~# head /sys/kernel/debug/ieee80211/phy1/ath9k/regdump
Write failed: Broken pipe

This has an AR9344 for 2.4GHz and AR9382 for 5GHz.

The result in running this on phy1 is a full restart of the router.

BARRIER BREAKER (Bleeding Edge, r38362)

comment:4 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

comment:5 Changed 3 years ago by anonymous

this is still relevant with kernel 3.14 in normal operation.

is this fixed upstream with ath9k in kernel 3.18?

[ 3186.110000] Data bus error, epc == 86d285fc, ra == 86d285fc
[ 3186.110000] Oops[#1]:
[ 3186.110000] CPU: 0 PID: 0 Comm: swapper Not tainted 3.14.35 #4
[ 3186.110000] task: 80355070 ti: 80344000 task.ti: 80344000
[ 3186.110000] $ 0   : 00000000 00000000 deadc0de 1100dc03
[ 3186.110000] $ 4   : b00080f8 000080f8 00000040 00000000
[ 3186.110000] $ 8   : 00000014 4db26158 ffffffec 850da6b5
[ 3186.110000] $12   : 00000c72 000000cd 00000000 00000000
[ 3186.110000] $16   : 868ea030 868ea010 002c09de 00000064
[ 3186.110000] $20   : 00000000 00000000 80350000 00000001
[ 3186.110000] $24   : 00000000 802a4830                  
[ 3186.110000] $28   : 80344000 80345c10 00000004 86d285fc
[ 3186.110000] Hi    : 00000001
[ 3186.110000] Lo    : 00000001
[ 3186.110000] epc   : 86d285fc ath_hw_cycle_counters_update+0x54/0x19c [ath]
[ 3186.110000]     Not tainted
[ 3186.110000] ra    : 86d285fc ath_hw_cycle_counters_update+0x54/0x19c [ath]
[ 3186.110000] Status: 1100dc03 KERNEL EXL IE 
[ 3186.110000] Cause : 0080041c
[ 3186.110000] PrId  : 0001974c (MIPS 74Kc)
[ 3186.110000] Modules linked in: iptable_nat ath9k nf_nat_ipv4 nf_conntrack_netlink nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_MASQUERADE cp210x ath9k_common xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_quota xt_policy xt_pkttype xt_owner xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_id xt_hl xt_esp xt_ecn xt_dscp xt_conntrack xt_comment xt_addrtype xt_TCPMSS xt_REDIRECT xt_LOG xt_HL xt_DSCP xt_CT xt_CLASSIFY usbserial rfcomm nfnetlink nf_nat nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_raw iptable_mangle iptable_filter ipt_ah ipt_REJECT ipt_ECN ip_tables hidp hci_uart crc_ccitt btusb bnep bluetooth ath9k_hw 6lowpan_iphc em_cmp em_nbyte sch_dsmark em_meta sch_gred sch_htb sch_teql act_ipt sch_red sch_codel act_police em_text sch_tbf sch_sfq cls_basic sch_prio act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_hfsc sch_ingress hid evdev input_core ath10k_pci ath10k_core ath mac80211 cfg80211 compat ledtrig_usbdev ledtrig_gpio batman_adv libcrc32c crc16 ip6t_REJECT ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables ipcomp6 xfrm6_tunnel xfrm6_mode_tunnel xfrm6_mode_transport xfrm6_mode_beet esp6 ah6 ipcomp xfrm4_tunnel xfrm4_mode_tunnel xfrm4_mode_transport xfrm4_mode_beet esp4 ah4 tunnel6 tunnel4 tun af_key xfrm_user xfrm_ipcomp xfrm_algo ipv6 chainiv eseqiv crypto_wq sha1_generic krng rng md5 hmac des_generic deflate zlib_inflate zlib_deflate cbc authenc aead arc4 crypto_blkcipher ledtrig_transient ehci_pci ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common crc32c crypto_hash
[ 3186.110000] Process swapper (pid: 0, threadinfo=80344000, task=80355070, tls=00000000)
[ 3186.110000] Stack : 00000026 00000070 ffffffb6 803cb080 803cb080 802a79a8 00000000 00000003
          00000000 86fad44c 86ac2400 0000012c 86fad44c fffffffd 00000004 86a4709a
          00000000 80355070 80345c58 80345c58 00000000 00989680 00000c72 07270e00
          803cce18 80350980 80345cc8 801a871c 803d0000 803c0000 068e97d8 803c0000
          00000000 00000001 803490e0 00000000 00000c72 80345cc8 00000c72 07270e00
          ...
[ 3186.110000] Call Trace:
[ 3186.110000] [<86d285fc>] ath_hw_cycle_counters_update+0x54/0x19c [ath]
[ 3186.110000] 
[ 3186.110000] 
Code: 8c420000  0040f809  340580f8 <0040a821> 8e0200ec  02202021  8c420000  0040f809  340580f4 
[ 3186.410000] ---[ end trace d4bf12d6d78ced78 ]---
[ 3186.420000] Kernel panic - not syncing: Fatal exception in interrupt
[ 3186.420000] Rebooting in 3 seconds..

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.