Discussion:
[ath9k-devel] ATH9K warnings from commit b2d70d494
Valo, Kalle
2016-06-16 11:12:27 UTC
Permalink
(Adding linux-wireless)
I'm getting many warning stack traces fom the above--at least two every 5
seconds whether or not connected via wireless.
Samples are below.
On further investigation I see that for each of the pair gpio = 11, for
the first ah->caps.num_gpio_pins = 10 and for the second BIT(gpio) = 0x800
and ah->caps.gpio_mask = 0x3ff.
I gather this is unexpected, but it seems like some limit on output is in order.
If you can't reproduce this situation on your own systems please let me know
if you would like me to gather more information for you on the basic problem,
test, etc.
Kernel seems to be 4.7-rc3, but what chip? Maybe AR9462 or AR9565?
Jun 15 07:55:13 gruber-ubuntu-acer kernel: [193389.532500] ---[ end
trace c25c9fdececff7b3 ]---
Jun 15 07:55:18 gruber-ubuntu-acer kernel: [193394.523554]
------------[ cut here ]------------
CPU: 2 PID: 17657 at drivers/net/wireless/ath/ath9k/hw.c:2776
ath9k_hw_gpio_get+0x1a9/0x1b0 [ath9k_hw]
Jun 15 07:55:18 gruber-ubuntu-acer kernel: [193394.523568] Modules
linked in: ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat
nf_nat_ipv4 nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack
nf_conntrack ipt_REJECT nf_reject_ipv4 xt_CHECKSUM iptable_mangle
xt_tcpudp bridge stp llc ip6table_filter ip6_tables iptable_filter
ip_tables ebtable_nat ebtables x_tables cmac bnep rfcomm binfmt_misc
nls_iso8859_1 usblp arc4 ath9k snd_hda_codec_hdmi uvcvideo
ath9k_common ath9k_hw i915 x86_pkg_temp_thermal intel_powerclamp
coretemp kvm_intel snd_usb_audio snd_hda_codec_realtek
videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 kvm ath
videobuf2_core snd_hda_codec_generic videodev mac80211 snd_hda_intel
snd_hda_codec snd_hda_core ath3k snd_usbmidi_lib joydev rtsx_usb btusb
irqbypass btrtl crc32_pclmul snd_hwdep ghash_clmulni_intel btbcm
snd_pcm btintel bluetooth drm_kms_helper cfg80211 aesni_intel
snd_seq_midi snd_seq_midi_event aes_x86_64 drm lrw snd_rawmidi snd_seq
glue_helper ablk_helper cryptd intel_cstate snd_seq_device intel_rapl
snd_timer snd i2c_algo_bit fb_sys_fops syscopyarea mei_me mei
sysfillrect sysimgblt soundcore serio_raw shpchp wmi lpc_ich
parport_pc ppdev lp video mac_hid parport hid_generic usbhid hid
psmouse r8169 mii fjes
17657 Comm: kworker/u8:0 Tainted: G W 4.7.0-rc3 #1
Jun 15 07:55:18 gruber-ubuntu-acer kernel: [193394.523614] Hardware
name: Acer Aspire TC-605/Aspire TC-605, BIOS P11-A2 11/08/2013
events_power_efficient rfkill_poll
Jun 15 07:55:18 gruber-ubuntu-acer kernel: [193394.523620]
0000000000000000 ffff88003ed37d28 ffffffff813888ec 0000000000000000
Jun 15 07:55:18 gruber-ubuntu-acer kernel: [193394.523621]
0000000000000000 ffff88003ed37d68 ffffffff81061311 00000ad800000082
Jun 15 07:55:18 gruber-ubuntu-acer kernel: [193394.523623]
ffff8800d28ec018 000000000000000b ffff8800d28f0720 0000000000000100
Jun 15 07:55:18 gruber-ubuntu-acer kernel: [193394.523629]
[<ffffffff813888ec>] dump_stack+0x63/0x87
Jun 15 07:55:18 gruber-ubuntu-acer kernel: [193394.523633]
[<ffffffff81061311>] __warn+0xd1/0xf0
Jun 15 07:55:18 gruber-ubuntu-acer kernel: [193394.523634]
[<ffffffff810613fd>] warn_slowpath_null+0x1d/0x20
Jun 15 07:55:18 gruber-ubuntu-acer kernel: [193394.523639]
[<ffffffffa096ab19>] ath9k_hw_gpio_get+0x1a9/0x1b0 [ath9k_hw]
Jun 15 07:55:18 gruber-ubuntu-acer kernel: [193394.523642]
[<ffffffffa06293e4>] ath9k_rfkill_poll_state+0x34/0x60 [ath9k]
Jun 15 07:55:18 gruber-ubuntu-acer kernel: [193394.523656]
[<ffffffffa046bb53>] ieee80211_rfkill_poll+0x33/0x40 [mac80211]
Jun 15 07:55:18 gruber-ubuntu-acer kernel: [193394.523665]
[<ffffffffa02c45fa>] cfg80211_rfkill_poll+0x2a/0xc0 [cfg80211]
Jun 15 07:55:18 gruber-ubuntu-acer kernel: [193394.523667]
[<ffffffff817a4d24>] rfkill_poll+0x24/0x50
Jun 15 07:55:18 gruber-ubuntu-acer kernel: [193394.523670]
[<ffffffff81078aa3>] process_one_work+0x153/0x400
Jun 15 07:55:18 gruber-ubuntu-acer kernel: [193394.523672]
[<ffffffff8107926b>] worker_thread+0x12b/0x4b0
Jun 15 07:55:18 gruber-ubuntu-acer kernel: [193394.523674]
[<ffffffff81079140>] ? rescuer_thread+0x340/0x340
Jun 15 07:55:18 gruber-ubuntu-acer kernel: [193394.523676]
[<ffffffff8107e4d9>] kthread+0xc9/0xe0
Jun 15 07:55:18 gruber-ubuntu-acer kernel: [193394.523678]
[<ffffffff817ba23f>] ret_from_fork+0x1f/0x40
Jun 15 07:55:18 gruber-ubuntu-acer kernel: [193394.523679]
[<ffffffff8107e410>] ? kthread_park+0x60/0x60
Jun 15 07:55:18 gruber-ubuntu-acer kernel: [193394.523681] ---[ end
trace c25c9fdececff7b4 ]---
Does this patch help:

ath9k: fix GPIO mask for AR9462 and AR9565ath-current

https://git.kernel.org/cgit/linux/kernel/git/kvalo/ath.git/commit/?h=ath-current&id=e024111f6946f45cf1559a8c6fd48d2d0f696d07
--
Kalle Valo
Valo, Kalle
2016-06-16 15:39:43 UTC
Permalink
It's an AR9462
03:00.0 Network controller: Qualcomm Atheros AR9462 Wireless Network Adapter
(rev 01)
Subsystem: Lite-On Communications Inc Device 6621
Flags: bus master, fast devsel, latency 0, IRQ 19
Memory at f7c00000 (64-bit, non-prefetchable) [size=512K]
Expansion ROM at f7c80000 [disabled] [size=64K]
Capabilities: [40] Power Management version 2
Capabilities: [50] MSI: Enable- Count=1/4 Maskable+ 64bit+
Capabilities: [70] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Virtual Channel
Capabilities: [160] Device Serial Number 00-00-00-00-00-00-00-00
Kernel driver in use: ath9k
The warnings go away with the patch you identified and wifi and bluetooth are
working.
Great, thanks for testing. The patch will go to 4.7-rc release in a week
or two.
--
Kalle Valo
Loading...