From owner-freebsd-current@freebsd.org Thu Nov 26 18:22:56 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C6D4AA3A64F for ; Thu, 26 Nov 2015 18:22:56 +0000 (UTC) (envelope-from fbl@aoek.com) Received: from srv56-45.cdn.bestreaming.com (ns330343.ip-37-187-119.eu [37.187.119.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "amnesiac", Issuer "amnesiac" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 7431C1D70 for ; Thu, 26 Nov 2015 18:22:52 +0000 (UTC) (envelope-from fbl@aoek.com) Received: from mail.yourbox.net (localhost [IPv6:::1]) by srv56-45.cdn.bestreaming.com (8.15.2/8.15.2) with ESMTP id tAQIMaoc092024; Thu, 26 Nov 2015 19:22:36 +0100 (CET) (envelope-from fbl@aoek.com) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Thu, 26 Nov 2015 19:22:35 +0100 From: =?UTF-8?Q?Jos=C3=A9_P=C3=A9rez?= To: Adrian Chadd Cc: Svatopluk Kraus , freebsd-current Subject: Re: Aheros AR9565: buffer error messages from ath_edma_rxbuf_alloc and ath_edma_rxfifo_alloc In-Reply-To: References: <5725cee00ae81e93db6b0be560d10285@mail.yourbox.net> Message-ID: X-Sender: fbl@aoek.com User-Agent: Roundcube Webmail/1.1.3 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Nov 2015 18:22:56 -0000 Hi Adrian, ATH_ENABLE_11N was missing from kernel config, now it works perfectly, sorry for the noise. Here's the sysct output FYI: Nov 26 19:10:12 current kernel: no tx bufs (empty list): 0 Nov 26 19:10:12 current kernel: no tx bufs (was busy): 0 Nov 26 19:10:12 current kernel: aggr single packet: 33 Nov 26 19:10:12 current kernel: aggr single packet w/ BAW closed: 0 Nov 26 19:10:12 current kernel: aggr non-baw packet: 94 Nov 26 19:10:12 current kernel: aggr aggregate packet: 12684 Nov 26 19:10:12 current kernel: aggr single packet low hwq: 2439 Nov 26 19:10:12 current kernel: aggr single packet RTS aggr limited: 0 Nov 26 19:10:12 current kernel: aggr sched, no work: 24419 Nov 26 19:10:12 current kernel: 0: 0 1: 0 2: 3453 3: 138 Nov 26 19:10:12 current kernel: 4: 45 5: 39 6: 2721 7: 4245 Nov 26 19:10:12 current kernel: 8: 337 9: 225 10: 110 11: 90 Nov 26 19:10:12 current kernel: 12: 236 13: 54 14: 104 15: 47 Nov 26 19:10:12 current kernel: 16: 57 17: 48 18: 80 19: 73 Nov 26 19:10:12 current kernel: 20: 46 21: 64 22: 65 23: 62 Nov 26 19:10:12 current kernel: 24: 35 25: 69 26: 25 27: 83 Nov 26 19:10:12 current kernel: 28: 62 29: 38 30: 23 31: 4 Nov 26 19:10:12 current kernel: 32: 6 33: 0 34: 0 35: 0 Nov 26 19:10:12 current kernel: 36: 0 37: 0 38: 0 39: 0 Nov 26 19:10:12 current kernel: 40: 0 41: 0 42: 0 43: 0 Nov 26 19:10:12 current kernel: 44: 0 45: 0 46: 0 47: 0 Nov 26 19:10:12 current kernel: 48: 0 49: 0 50: 0 51: 0 Nov 26 19:10:12 current kernel: 52: 0 53: 0 54: 0 55: 0 Nov 26 19:10:12 current kernel: 56: 0 57: 0 58: 0 59: 0 Nov 26 19:10:12 current kernel: 60: 0 61: 0 62: 0 63: 0 Nov 26 19:10:12 current kernel: Nov 26 19:10:12 current kernel: HW TXQ 0: axq_depth=0, axq_aggr_depth=0, axq_fifo_depth=0, holdingbf=0 Nov 26 19:10:12 current kernel: HW TXQ 1: axq_depth=0, axq_aggr_depth=2, axq_fifo_depth=3, holdingbf=0 Nov 26 19:10:12 current kernel: HW TXQ 2: axq_depth=0, axq_aggr_depth=0, axq_fifo_depth=0, holdingbf=0 Nov 26 19:10:12 current kernel: HW TXQ 3: axq_depth=0, axq_aggr_depth=0, axq_fifo_depth=0, holdingbf=0 Nov 26 19:10:12 current kernel: HW TXQ 8: axq_depth=0, axq_aggr_depth=0, axq_fifo_depth=0, holdingbf=0 Nov 26 19:10:12 current kernel: Total TX buffers: 413; Total TX buffers busy: 0 (413) Nov 26 19:10:12 current kernel: Total mgmt TX buffers: 32; Total mgmt TX buffers busy: 0 Nov 26 19:10:12 current kernel: 0: fifolen: 16/16; head=0; tail=0; m_pending=0, m_holdbf=0 Nov 26 19:10:12 current kernel: 1: fifolen: 128/128; head=71; tail=71; m_pending=0, m_holdbf=0 Nov 26 19:10:12 current kernel: Total RX buffers in free list: 368 buffers Regards, --- José Pérez El 2015-11-25 01:18, Adrian Chadd escribió: > Hm, what's in your kenrel config file? Is ENABLE_11N or whatever the > ath driver option there? > > sysctl dev.ath.0.txagg=1 ; then check dmesg and output me the results. > > Thanks! > > > -a > > > On 24 November 2015 at 14:50, José Pérez wrote: >> Dear Svatopluk, >> tried again with current, and I get (almost) the same: >> Nov 23 18:14:47 current kernel: ath0: ath_edma_rxbuf_alloc: nothing on >> rxbuf?! >> Nov 23 18:14:47 current kernel: ath0: ath_edma_rxfifo_alloc: Q1: alloc >> failed: i=0, nbufs=128? >> Nov 23 18:14:47 current kernel: ath0: ath_edma_rxbuf_alloc: nothing on >> rxbuf?! >> Nov 23 18:14:47 current kernel: ath0: ath_edma_rxfifo_alloc: Q1: alloc >> failed: i=1, nbufs=128? >> >> Ideas? Can I help? >> >> Thank you. >> >> Regards, >> >> >> --- >> José Pérez >> >> >> El 2015-11-23 13:45, Svatopluk Kraus escribió: >>> >>> On Mon, Nov 23, 2015 at 1:12 PM, José Pérez wrote: >>>> >>>> Hi, >>>> I am the (happy?) owner of an Atheros AR9565 which used to work just >>>> fine. >>>> >>>> I recently updated an old -current, and a flood of these messages >>>> bumped >>>> up: >>>> Nov 13 17:47:16 test kernel: ath0: ath_edma_rxbuf_alloc: nothing on >>>> rxbuf?! >>>> Nov 13 17:47:16 test kernel: ath0: ath_edma_rxfifo_alloc: Q1: alloc >>>> failed: >>>> i=24, nb >>>> ufs=128? >>>> >>>> # pciconf -lv | relevant_part >>>> ath0@pci0:1:0:0: class=0x028000 card=0x064211ad >>>> chip=0x0036168c >>>> rev=0x01 hdr=0x00 >>>> vendor = 'Qualcomm Atheros' >>>> device = 'QCA9565 / AR9565 Wireless Network Adapter' >>>> class = network >>>> >>>> # dmesg | relevant_part >>>> ath0: mem 0xf0800000-0xf087ffff irq 32 at >>>> device >>>> 0.0 on pci1 >>>> ath0: WB335 2-ANT card detected >>>> ar9300_attach: calling ar9300_hw_attach >>>> ar9300_hw_attach: calling ar9300_eeprom_attach >>>> ar9300_flash_map: unimplemented for now >>>> Restoring Cal data from DRAM >>>> Restoring Cal data from EEPROM >>>> Restoring Cal data from Flash >>>> Restoring Cal data from Flash >>>> Restoring Cal data from OTP >>>> ar9300_hw_attach: ar9300_eeprom_attach returned 0 >>>> ath0: [HT] enabling HT modes >>>> ath0: [HT] enabling short-GI in 20MHz mode >>>> ath0: [HT] 1 stream STBC receive enabled >>>> ath0: [HT] 1 RX streams; 1 TX streams >>>> ath0: AR9565 mac 704.1 RF5110 phy 2261.3 >>>> ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0000 >>>> >>>> # ifconfig | relevant_part >>>> wlan0: flags=8843 metric 0 >>>> mtu >>>> 1500 >>>> ether a4:db:30:ab:ad:ca >>>> inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255 >>>> nd6 options=29 >>>> media: IEEE 802.11 Wireless Ethernet MCS mode 11ng >>>> status: associated >>>> ssid myssid channel 6 (2437 MHz 11g ht/20) bssid >>>> de:ad:be:ee:ee:ef >>>> regdomain ETSI2 country ES indoor ecm authmode WPA2/802.11i >>>> privacy ON deftxkey UNDEF AES-CCM 2:128-bit AES-CCM >>>> 3:128-bit >>>> txpower 30 bmiss 7 scanvalid 60 protmode CTS ampdulimit 64k >>>> ampdudensity 4 shortgi wme burst roaming MANUAL >>>> groups: wlan >>>> >>>> >>>> >>>> Is there anything I can help with to improve this? Thank you. >>>> >>> >>> What revision do you use? If you use , please, try >>> to update to r291193 or higher. >>> >>> Svatopluk Kraus >>> >>> >>> >>>> Regards, >>>> >>>> -- >>>> José Pérez >>>> _______________________________________________ >>>> freebsd-current@freebsd.org mailing list >>>> https://lists.freebsd.org/mailman/listinfo/freebsd-current >>>> To unsubscribe, send any mail to >>>> "freebsd-current-unsubscribe@freebsd.org" >>> >>> _______________________________________________ >>> freebsd-current@freebsd.org mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-current >>> To unsubscribe, send any mail to >>> "freebsd-current-unsubscribe@freebsd.org" >> >> _______________________________________________ >> freebsd-current@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to >> "freebsd-current-unsubscribe@freebsd.org"