From owner-freebsd-wireless@FreeBSD.ORG Fri Jan 23 19:13:28 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 74E2A438 for ; Fri, 23 Jan 2015 19:13:28 +0000 (UTC) Received: from mail-ie0-x22b.google.com (mail-ie0-x22b.google.com [IPv6:2607:f8b0:4001:c03::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3A7632FE for ; Fri, 23 Jan 2015 19:13:28 +0000 (UTC) Received: by mail-ie0-f171.google.com with SMTP id tr6so8875185ieb.2 for ; Fri, 23 Jan 2015 11:13:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=ucArvzIe5whsKK6Gtzlk6SUnHMDEd6GFuZFIpUhlbhY=; b=Yc3+OxsC9EtqCB0Ccb3/6JS3WbNnyy9fW8Cd1aoxbYgSWxIFzazymRMpxQpIh1yL/e wdKPyeDtKBWLaLLcML01bZh/9HNyP5o65z0xdF9o2jZNvcBRyRANtWrXeON7CA4FqFIv Dg1GeVVE8UmrqKkZWucELxbGMe3tSKf63xKa/hAWRkUPnX2ym19Mib46vUvRL7wC7bmU bcoco2IqfOekCNnZfeZ0Cf2H7nm1m7YZ8l1SByiWLjzcOguLJgVhgo6RwBAUOh5jUCTz 0LJCulWKMOTGHqwy74R0xlR5TiKV4ya2aWhwpPt4wHVdnp7Gg8yQIQbvAoU8MzLviJ23 LEcw== MIME-Version: 1.0 X-Received: by 10.107.136.158 with SMTP id s30mr5422896ioi.8.1422040407579; Fri, 23 Jan 2015 11:13:27 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.36.78.14 with HTTP; Fri, 23 Jan 2015 11:13:27 -0800 (PST) In-Reply-To: <20150122151936.GA45841@regency.nsu.ru> References: <20150121092039.GB72339@regency.nsu.ru> <20150122151936.GA45841@regency.nsu.ru> Date: Fri, 23 Jan 2015 11:13:27 -0800 X-Google-Sender-Auth: v-LfnDrvawVimNngKGBgnx2TEiE Message-ID: Subject: Re: AR9462 PCIe1x card: endless messages in dmesg From: Adrian Chadd To: Alexey Dokuchaev Content-Type: text/plain; charset=UTF-8 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: Fri, 23 Jan 2015 19:13:28 -0000 On 22 January 2015 at 07:19, Alexey Dokuchaev wrote: > 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. I may eventually do that. I'm just wary of it all because various ABI changes occur with different options and I don't want people bitten by that. (I really should just up the default set of tx/rx buffers; that'd at least fix the error.) -adrian