From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Greear Date: Fri, 27 Jan 2012 11:20:07 -0800 Subject: [ath9k-devel] Failed to stop TX DMA In-Reply-To: <4F22ED46.1000207@molgaard.org> References: <6b8a2b68eccbe5b3c9762c6f052a6878@www.thefabfarrows.com> <91fa72618754b69f9bf13a733e981523@www.thefabfarrows.com> <2ef536609cbee9c771dc3ebdf7e79bb1@www.thefabfarrows.com> <4F18FBE9.8000500@candelatech.com> <88fc9df2a2ff8d4dff6a56da7754a20f@www.thefabfarrows.com> <4F199E6B.2010302@candelatech.com> <394a9f3888c25d0d12e30c7018741598@www.thefabfarrows.com> <4F1DB019.3040206@candelatech.com> <4F228ED6.2070102@molgaard.org> <4F22D932.2060502@candelatech.com> <4F22ED46.1000207@molgaard.org> Message-ID: <4F22F8E7.5010704@candelatech.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On 01/27/2012 10:30 AM, Sune M?lgaard wrote: > Ben Greear wrote: >> On 01/27/2012 03:47 AM, Sune M?lgaard wrote: >> If you hit the problem on my kernel, please send me a full bug report >> (kernel splat, 'lspci', brief >> description of how you caused the problem, how reproducible it is, etc). >> >> I can't promise I can fix it, but I will definitely take a good look at it >> and will try to reproduce the problem on my systems. If we can ever find >> a way to reliably reproduce these problems, then the ath9k developers will >> have a much easier time fixing the problem. >> >> Thanks, >> Ben >> > > Attached. I even hit it with WMM and 11n disabled. > > I hit it with high speeds occurring - it took 5 cycles of hostapd for the syslog file to be scp'ed over (the complete file was 24Mb, though). Ok, this is the first obvious error I see, and that FATAL interrupt looks bad, and my guess is that the IRQ problem is the root cause. This is caused by the AR_INTR_SYNC_HOST1_FATAL interrupt, but I don't have any idea what can cause that interrupt, and I don't have access to any of the datasheets for ath9k chips. Maybe one of the ath9k devs has some ideas on this? I am not sure I have a NIC with your chipset. Can you let me know the exact brand & part number of your NIC. Jan 27 19:06:38 jadis kernel: ath: received PCI FATAL interrupt Jan 27 19:06:38 jadis kernel: ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 DMADBG_7=0x00006040 Jan 27 19:06:38 jadis kernel: ath: Could not stop RX, we could be confusing the DMA engine when we start RX up Jan 27 19:06:38 jadis kernel: ------------[ cut here ]------------ Jan 27 19:06:38 jadis kernel: WARNING: at drivers/net/wireless/ath/ath9k/recv.c:528 ath_stoprecv+0xbc/0xe0 [ath9k]() Jan 27 19:06:38 jadis kernel: Hardware name: 8366-8233 Jan 27 19:06:38 jadis kernel: Modules linked in: cryptd aes_i586 aes_generic ip6table_filter tun xt_CHECKSUM xt_TCPMSS act_police cls_flow cls_fw cls_u32 sch_tbf sch_prio sch_htb sch_hfsc sch_ingress sch_sfq xt_time xt_connlimit xt_realm xt_addrtype iptable_raw xt_comment xt_recent xt_policy ipt_ULOG ipt_REDIRECT ipt_NETMAP ipt_MASQUERADE ipt_ECN ipt_ecn ipt_CLUSTERIP ipt_ah xt_set ip_set nf_nat_tftp nf_nat_snmp_basic nf_conntrack_snmp nf_nat_sip nf_nat_pptp nf_nat_proto_gre nf_nat_irc nf_nat_h323 nf_nat_ftp nf_nat_amanda ts_kmp nf_conntrack_amanda nf_conntrack_sane nf_conntrack_tftp nf_conntrack_sip nf_conntrack_proto_sctp nf_conntrack_pptp nf_conntrack_proto_gre nf_conntrack_netlink nf_conntrack_netbios_ns nf_conntrack_broadcast nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp xt_TPROXY nf_tproxy_core ip6_tables nf_defrag_ipv6 xt_tcpmss xt_pkttype xt_physdev xt_owner xt_NFQUEUE xt_NFLOG nfnetlink_log xt_multiport xt_mark xt_mac xt_limit xt_length xt_iprange xt_helper xt_hashlimit xt_DSCP xt_dscp xt_dccp xt Jan 27 19:06:38 jadis kernel: _connmark xt_CLASSIFY xt_AUDIT ipt_LOG iptable_nat nf_nat iptable_mangle nfnetlink sit tunnel4 reiserfs bridge ipv6 stp llc arc4 snd_cs4236 snd_wss_lib snd_via82xx snd_ac97_codec snd_opl3_lib ppdev snd_hwdep ac97_bus ath9k snd_pcm mac80211 snd_timer ath9k_common ath9k_hw snd_page_alloc snd_mpu401 i2c_viapro snd_mpu401_uart snd_rawmidi ath via_ircc snd_seq_device irda snd cfg80211 soundcore crc_ccitt ns558 gameport parport_pc hwmon_vid hwmon lp parport 8139too ata_generic pata_acpi 8139cp sundance pata_via sata_sil mii floppy raid10 raid456 async_raid6_recov async_pq raid6_pq async_xor xor async_memcpy async_tx raid1 raid0 multipath linear Jan 27 19:06:38 jadis kernel: Pid: 4298, comm: java Not tainted 3.0.18-sune-1 #3 Jan 27 19:06:38 jadis kernel: Call Trace: Jan 27 19:06:38 jadis kernel: [] warn_slowpath_common+0x63/0x78 Jan 27 19:06:38 jadis kernel: [] ? ath_stoprecv+0xbc/0xe0 [ath9k] Jan 27 19:06:38 jadis kernel: [] warn_slowpath_null+0xf/0x13 Jan 27 19:06:38 jadis kernel: [] ath_stoprecv+0xbc/0xe0 [ath9k] Jan 27 19:06:38 jadis kernel: [] ath_reset+0x64/0x17c [ath9k] Jan 27 19:06:38 jadis kernel: [] ? _raw_spin_unlock_irqrestore+0x12/0x15 Jan 27 19:06:38 jadis kernel: [] ath9k_tasklet+0x27/0x133 [ath9k] Jan 27 19:06:38 jadis kernel: [] tasklet_action+0x65/0xa7 Jan 27 19:06:38 jadis kernel: [] __do_softirq+0x6c/0xe6 Jan 27 19:06:38 jadis kernel: [] ? local_bh_enable+0xa/0xa Jan 27 19:06:38 jadis kernel: [] ? irq_exit+0x35/0x84 Jan 27 19:06:38 jadis kernel: [] ? do_IRQ+0x6c/0x80 Jan 27 19:06:38 jadis kernel: [] ? common_interrupt+0x29/0x30 Jan 27 19:06:38 jadis kernel: ---[ end trace 46bdcea34024800a ]--- Jan 27 19:06:38 jadis kernel: ath: Failed to stop TX DMA! Jan 27 19:06:38 jadis kernel: ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 DMADBG_7=0x00006040 Jan 27 19:06:38 jadis kernel: ath: Could not stop RX, we could be confusing the DMA engine when we start RX up Jan 27 19:06:38 jadis kernel: ath: Failed to stop TX DMA! .... Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com