From owner-freebsd-wireless@FreeBSD.ORG Thu Jan 22 15:19:03 2015 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A3CE8B2E; Thu, 22 Jan 2015 15:19:03 +0000 (UTC) Received: from mx.nsu.ru (mx.nsu.ru [84.237.50.39]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4E9F1242; Thu, 22 Jan 2015 15:19:02 +0000 (UTC) Received: from regency.nsu.ru ([193.124.210.26]) by mx.nsu.ru with esmtp (Exim 4.72) (envelope-from ) id 1YEJWy-0006gJ-Ag; Thu, 22 Jan 2015 21:18:53 +0600 Received: from regency.nsu.ru (localhost [127.0.0.1]) by regency.nsu.ru (8.14.2/8.14.2) with ESMTP id t0MFJg07047629; Thu, 22 Jan 2015 22:19:52 +0700 (NOVT) (envelope-from danfe@regency.nsu.ru) Received: (from danfe@localhost) by regency.nsu.ru (8.14.2/8.14.2/Submit) id t0MFJabe047600; Thu, 22 Jan 2015 21:19:36 +0600 (NOVT) (envelope-from danfe) Date: Thu, 22 Jan 2015 21:19:36 +0600 From: Alexey Dokuchaev To: Adrian Chadd Subject: Re: AR9462 PCIe1x card: endless messages in dmesg Message-ID: <20150122151936.GA45841@regency.nsu.ru> References: <20150121092039.GB72339@regency.nsu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-KLMS-Rule-ID: 1 X-KLMS-Message-Action: clean X-KLMS-AntiSpam-Lua-Profiles: 72180 [Jan 22 2015] X-KLMS-AntiSpam-Version: 5.5.3 X-KLMS-AntiSpam-Envelope-From: danfe@regency.nsu.ru X-KLMS-AntiSpam-Rate: 0 X-KLMS-AntiSpam-Status: not_detected X-KLMS-AntiSpam-Method: none X-KLMS-AntiSpam-Moebius-Timestamps: 3331389, 3331414, 0 X-KLMS-AntiSpam-Info: LuaCore: 136 2015-01-22_13-41-48 c92b03781e29101501350070cc9722028d4a3bdb X-KLMS-AntiSpam-Interceptor-Info: scan successful X-KLMS-AntiPhishing: Clean, 2015/01/21 14:46:34 X-KLMS-AntiVirus: Kaspersky Security 8.0 for Linux Mail Server, version 8.0.1.705, not scanned, license restriction Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jan 2015 15:19:03 -0000 On Wed, Jan 21, 2015 at 08:06:09AM -0800, Adrian Chadd wrote: > On 21 January 2015 at 01:20, Alexey Dokuchaev wrote: > > Just installed this AR9462-based PCIe (1x) card into my work i386 desktop > > running fortnight-old -CURRENT (r276691). So far so good -- it delivers > > pretty stable, lagless Internet experience, but keeps shitting in kernel > > buffer very quickly with these (tons of them): > > > > ath0: ath_edma_rxbuf_alloc: nothing on rxbuf?! > > ath0: ath_edma_rxfifo_alloc: Q1: alloc failed: i=0, nbufs=128? > > Put ATH_ENABLE_11N in your kernel config. This helped, thank you. Message storm is gone. It seems I've been stripping GENERIC overly aggressively. Would it make sense to add these lines to the /usr/src/sys/modules/ath_pci/Makefile: .if !defined(KERNBUILDDIR) CFLAGS+= -DATH_ENABLE_11N <... maybe some other useful defines ...> .endif ? This way, in-kernel ath_pci(4) would obey kernel config, yet module will always have them by default. As a bonus, this would allow to build it with simply calling make(1) from the module directory. ./danfe