From owner-freebsd-wireless@FreeBSD.ORG Mon Jul 7 17:13:00 2014 Return-Path: Delivered-To: freebsd-wireless@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DD6F87D7; Mon, 7 Jul 2014 17:13:00 +0000 (UTC) Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 995322B39; Mon, 7 Jul 2014 17:12:56 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1X4CTB-000Nwi-Ot; Mon, 07 Jul 2014 17:12:50 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id s67HCkBT001210; Mon, 7 Jul 2014 11:12:46 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX19kbGmYTrXdfK7dlbccaBrO Subject: Re: CAMBRIA and more than one atheros card From: Ian Lepore To: Adrian Chadd In-Reply-To: References: <20140707142538.GA43661@zibbi.meraka.csir.co.za> Content-Type: text/plain; charset="us-ascii" Date: Mon, 07 Jul 2014 11:12:46 -0600 Message-ID: <1404753166.65432.10.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: "freebsd-wireless@freebsd.org" , "freebsd-embedded@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.18 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: Mon, 07 Jul 2014 17:13:01 -0000 On Mon, 2014-07-07 at 09:25 -0700, Adrian Chadd wrote: > hi, > > That call is returning ENOMEM. I'm not sure why. It allocated an mbuf > fine, but it couldn't allocate the DMA map. > > What's the output of "vmstat -z" ? I wonder if it's failing an allocation. > > > > -a Lack of bounce buffers is a posibility that won't show up in vmstat output. -- Ian > On 7 July 2014 07:25, John Hay wrote: > > Hi Guys, > > > > I'm further with getting my stuff working on the CAMBRIA xscale boards, > > but now see this > > > > ath1: ath_legacy_rxbuf_init: bus_dmamap_load_mbuf_sg failed; error 12 > > > > error when trying to configure a second or third atheros board. Below > > is the script run with -x with its output. The same is working fine > > on an Avila board. The Avila has 64M RAM and the CAMBRIA 128M. The > > userlevel code is the same for both and in trying to see if it is > > something missing in the kernel config, I have made a common kernel > > config file with all the common AVILA and CAMBRIA configs and then > > included that in a new AVILA and CAMBRIA config file. That gave the > > same result. The output is from a 2 week old -current/head. > > > > ############################## > > ~ # uname -a > > FreeBSD 11.0-CURRENT FreeBSD 11.0-CURRENT #5 r267954M: Fri Jun 27 14:49:04 SAST 2014 jhay@dolphin.meraka.csir.co.za:/usr/obj/arm.armeb/snaps/arm/11-tst/src/sys/SMALL-CAMBRIA arm > > ~ # /root/do-wlans > > + crflags='wlanmode adhoc' > > + dbgval=0x20000500c > > + ifconfig wlan0 create wlandev ath0 wlanmode adhoc > > wlan0: Ethernet address: 00:80:48:4f:24:ea > > + ifconfig wlan0 inet 10.0.1.1/24 channel 36 ssid ptabb bssid 05:05:ca:fe:ba:be > > + sysctl dev.ath.1.debug=0x20000500c > > dev.ath.1.debug: 0 -> 8589955084 > > + ifconfig wlan1 create wlandev ath1 wlanmode adhoc > > wlan1: Ethernet address: 00:80:48:4f:24:da > > + ifconfig wlan1 inet 10.0.2.1/24 channel 40 ssid ptabb bssid 05:06:ca:fe:ba:be > > ath1: ath_init: if_flags 0x8803 > > ath1: ath_stop_locked: invalid 0 if_flags 0x8803 > > ath1: ath_legacy_rxbuf_init: bus_dmamap_load_mbuf_sg failed; error 12 > > ath1: ath_legacy_startrecv: ath_rxbuf_init failed 12 > > ath1: unable to start recv logic > > + sysctl dev.ath.1.debug=0 > > dev.ath.1.debug: 8589955084 -> 0 > > + sysctl dev.ath.2.debug=0x20000500c > > dev.ath.2.debug: 0 -> 8589955084 > > + ifconfig wlan2 create wlandev ath2 wlanmode adhoc > > wlan2: Ethernet address: 00:21:a4:32:38:c2 > > + ifconfig wlan2 inet 10.0.3.1/24 channel 1 ssid ptabb bssid 05:07:ca:fe:ba:be > > ath2: ath_init: if_flags 0x8803 > > ath2: ath_stop_locked: invalid 0 if_flags 0x8803 > > ath2: ath_legacy_rxbuf_init: bus_dmamap_load_mbuf_sg failed; error 12 > > ath2: ath_legacy_startrecv: ath_rxbuf_init failed 12 > > ath2: unable to start recv logic > > + sysctl dev.ath.2.debug=0 > > dev.ath.2.debug: 8589955084 -> 0 > > :~ # netstat -m > > 182/328/510 mbufs in use (current/cache/total) > > 64/192/256/2552 mbuf clusters in use (current/cache/total/max) > > 64/189 mbuf+clusters out of packet secondary zone in use (current/cache) > > 0/0/0/1275 4k (page size) jumbo clusters in use (current/cache/total/max) > > 0/0/0/378 9k jumbo clusters in use (current/cache/total/max) > > 0/0/0/212 16k jumbo clusters in use (current/cache/total/max) > > 173K/466K/639K bytes allocated to network (current/cache/total) > > 0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters) > > 0/0/0 requests for mbufs delayed (mbufs/clusters/mbuf+clusters) > > 0/0/0 requests for jumbo clusters delayed (4k/9k/16k) > > 0/0/0 requests for jumbo clusters denied (4k/9k/16k) > > 0/3/1488 sfbufs in use (current/peak/max) > > 0 requests for sfbufs denied > > 0 requests for sfbufs delayed > > 0 requests for I/O initiated by sendfile > > ############################## > > > > CAMBRIA config file > > ############################## > > include XSCALE-ARM > > > > ident SMALL-CAMBRIA > > > > include "../xscale/ixp425/std.ixp435" > > > > hints "CAMBRIA.hints" > > > > options IXP4XX_FLASH_SIZE=0x02000000 # stock 2358 comes w/ 32M > > > > device cambria_fled # Font Panel LED on I2C bus > > device cambria_led # 8-LED latch > > > > device cambria_gpio # GPIO pins on J11 > > > > env "SMALL-AVILA.env" > > ############################## > > > > AVILA config file > > ############################## > > include XSCALE-ARM > > > > ident SMALL-AVILA > > > > include "../xscale/ixp425/std.ixp425" > > > > hints "AVILA.hints" # Default places to look for devices. > > > > device avila_led > > > > device avila_gpio # GPIO pins on J8 > > > > env "SMALL-AVILA.env" > > ############################## > > > > XSCALE-ARM config file > > ############################## > > include "../xscale/ixp425/std.avila" > > options XSCALE_CACHE_READ_WRITE_ALLOCATE > > makeoptions MODULES_OVERRIDE="" > > > > makeoptions CONF_CFLAGS=-mcpu=xscale > > options HZ=100 > > options DEVICE_POLLING > > > > options ROOTDEVNAME=\"ufs:ad0s1a\" > > > > options SCHED_4BSD # 4BSD scheduler > > options INET # Legacy InterNETworking > > options INET6 # InterNETworking > > options GEOM_PART_BSD # BSD partition scheme > > options GEOM_PART_MBR # MBR partition scheme > > options TMPFS # Efficient memory filesystem > > options FFS # Berkeley Fast Filesystem > > options SOFTUPDATES # Enable FFS soft updates support > > > > options HWPMC_HOOKS > > device hwpmc > > > > > > device pci > > device uart > > > > device ixpwdog # watchdog timer > > device cfi # flash support > > device cfid # flash disk support > > device geom_redboot # redboot fis parser > > > > device iicbus > > device iicbb > > device iic > > > > device ixpiic # I2C bus glue > > device ds1672 # DS1672 on I2C bus > > device ad7418 # AD7418 on I2C bus > > > > > > device gpio > > device gpioled > > > > device ata > > device avila_ata # Gateworks CF/IDE support > > > > device npe # Network Processing Engine > > device npe_fw > > device firmware > > device qmgr # Q Manager (required by npe) > > device mii # NB: required by npe > > device ether > > device bpf > > > > device loop > > device if_bridge > > > > device md > > device random # Entropy device > > > > device wlan # 802.11 support > > options IEEE80211_DEBUG > > options IEEE80211_SUPPORT_TDMA > > options IEEE80211_SUPPORT_MESH > > device wlan_wep # 802.11 WEP support > > device wlan_ccmp # 802.11 CCMP support > > device wlan_tkip # 802.11 TKIP support > > device wlan_xauth > > device wlan_acl > > > > device ath # Atheros NICs > > device ath_pci # Atheros pci/cardbus glue > > options ATH_DEBUG > > options ATH_DIAGAPI > > device ath_rate_sample # SampleRate tx rate control for ath > > > > options AH_DEBUG > > options AH_PRIVATE_DIAG > > device ath_ar5212 > > device ath_rf2413 > > device ath_rf2417 > > device ath_rf2425 > > device ath_rf5111 > > device ath_rf5112 > > device ath_rf5413 > > device ath_ar5416 > > options AH_SUPPORT_AR5416 > > device ath_ar9160 > > device ath_ar9280 > > > > device usb > > options USB_EHCI_BIG_ENDIAN_DESC > > device ohci > > device ehci > > device umass > > device scbus # SCSI bus (required for ATA/SCSI) > > device da # Direct Access (disks) > > device pass # Passthrough device (direct ATA/SCSI access) > > > > > > device gif > > device tun > > ############################## > > > > > > Regards > > > > John > > -- > > John Hay -- jhay@meraka.csir.co.za / jhay@meraka.org.za > > _______________________________________________ > > freebsd-embedded@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-embedded > > To unsubscribe, send any mail to "freebsd-embedded-unsubscribe@freebsd.org" > _______________________________________________ > freebsd-embedded@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-embedded > To unsubscribe, send any mail to "freebsd-embedded-unsubscribe@freebsd.org"