From owner-freebsd-wireless@FreeBSD.ORG Mon Jul 7 16:25:36 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 F02B36F3; Mon, 7 Jul 2014 16:25:35 +0000 (UTC) Received: from mail-qa0-x22b.google.com (mail-qa0-x22b.google.com [IPv6:2607:f8b0:400d:c00::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A0E2A2694; Mon, 7 Jul 2014 16:25:35 +0000 (UTC) Received: by mail-qa0-f43.google.com with SMTP id k15so3846903qaq.30 for ; Mon, 07 Jul 2014 09:25:34 -0700 (PDT) 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=9IrPuMrMy+xqvMnhTZ+RvMG3GTpVjYfrG+cBjkSpsPc=; b=ATSgpl9CAXdalH3ZZiRR9+YbOp/lN+vxPL7oflmM4HBcnhFaXFzVQOPzDiQnRbfAAx 9Z5L/71cHbTHYGihHjweCvvOyWi0e6zpqhrsmmlDGMm20T2bCEUvf9OmhhMFMDvVM0n/ A/MiK8dSoECxS/xzGOqh5hHumUmnPZcZkikeUYxHGCiTLWTEDnQg9SZaVDZJG0fH8Zjo 4IpuEmpm/dDzw38GmkOZzkPElnabQMPPVpyAt1d3b4mmXAFj6lx+Wq+lDFmp1XpTX6+v hKVC/1y8elhdfhg6YYLKmcLImDlQrjHoRtkEER69cCwVGMmfcNb3IVHV8AnpSaJ/g7XG kPVA== MIME-Version: 1.0 X-Received: by 10.224.171.197 with SMTP id i5mr4892844qaz.55.1404750334800; Mon, 07 Jul 2014 09:25:34 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.202.193 with HTTP; Mon, 7 Jul 2014 09:25:34 -0700 (PDT) In-Reply-To: <20140707142538.GA43661@zibbi.meraka.csir.co.za> References: <20140707142538.GA43661@zibbi.meraka.csir.co.za> Date: Mon, 7 Jul 2014 09:25:34 -0700 X-Google-Sender-Auth: kOwey5S_-7DboajiEihuCL2Wk9Q Message-ID: Subject: Re: CAMBRIA and more than one atheros card From: Adrian Chadd To: John Hay , "freebsd-wireless@freebsd.org" Content-Type: text/plain; charset=UTF-8 Cc: "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 16:25:36 -0000 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 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"