Re: AR9462 PCIe1x card: endless messages in dmesg
you ran out of contig malloc memory for buffers; you'll have to reboot. -a On 20 April 2015 at 03: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: >> > Hi there, >> > >> > 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? >> > >> > Should I worry about it? What's the proper way to shut it up? >> >> Put ATH_ENABLE_11N in your kernel config. > > Haven't used it for a while, but now with 11.0-CURRENT (r280285), suddenly > it doesn't work, telling me this in dmesg: > > 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: unable to alloc memory for 5120 tx descriptors, error 12 > ath0: failed to allocate TX descriptors: 12 > device_attach: ath0 attach returned 12 > > ./danfe ___ freebsd-wireless@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"
Re: AR9462 PCIe1x card: endless messages in dmesg
On Wed, Jan 21, 2015 at 08:06:09AM -0800, Adrian Chadd wrote: > On 21 January 2015 at 01:20, Alexey Dokuchaev wrote: > > Hi there, > > > > 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? > > > > Should I worry about it? What's the proper way to shut it up? > > Put ATH_ENABLE_11N in your kernel config. Haven't used it for a while, but now with 11.0-CURRENT (r280285), suddenly it doesn't work, telling me this in dmesg: 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: unable to alloc memory for 5120 tx descriptors, error 12 ath0: failed to allocate TX descriptors: 12 device_attach: ath0 attach returned 12 ./danfe ___ freebsd-wireless@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"
Re: AR9462 PCIe1x card: endless messages in dmesg
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 ___ freebsd-wireless@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"
Re: AR9462 PCIe1x card: endless messages in dmesg
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 ___ freebsd-wireless@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"
Re: AR9462 PCIe1x card: endless messages in dmesg
Nope, because kernel modules need to pick up options from opt_xxx.h, and there's a lot of them. (other modules do it by picking defaults; but the wifi infrastructure has a lot of options.) -a ___ freebsd-wireless@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"
Re: AR9462 PCIe1x card: endless messages in dmesg
On Wed, Jan 21, 2015 at 08:06:09AM -0800, Adrian Chadd wrote: > Put ATH_ENABLE_11N in your kernel config. I will try that tomorrow, thanks! > Oh and if you build modules, build it with "make buildkernel", no "cd > /usr/src/sys/dev/modules/ath; make". Everything I've reported thus far was with kernel and modules built with "make buildkernel" (and no local patches applied), but I'll keep a note. That said, it would be nice to rebuild ath(4) with "cd .. && make" like you're mentioned. Can we expect it one day? ;-) ./danfe ___ freebsd-wireless@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"
Re: AR9462 PCIe1x card: endless messages in dmesg
Put ATH_ENABLE_11N in your kernel config. Oh and if you build modules, build it with "make buildkernel", no "cd /usr/src/sys/dev/modules/ath; make". -a On 21 January 2015 at 01:20, Alexey Dokuchaev wrote: > Hi there, > > 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? > > Should I worry about it? What's the proper way to shut it up? > > ./danfe > ___ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org" ___ freebsd-wireless@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"
AR9462 PCIe1x card: endless messages in dmesg
Hi there, 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? Should I worry about it? What's the proper way to shut it up? ./danfe ___ freebsd-wireless@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"