CAMBRIA and more than one atheros card
Ian Lepore
ian at FreeBSD.org
Mon Jul 7 17:13:01 UTC 2014
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 <jhay at meraka.org.za> 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 at 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 at meraka.csir.co.za / jhay at meraka.org.za
> > _______________________________________________
> > freebsd-embedded at freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-embedded
> > To unsubscribe, send any mail to "freebsd-embedded-unsubscribe at freebsd.org"
> _______________________________________________
> freebsd-embedded at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-embedded
> To unsubscribe, send any mail to "freebsd-embedded-unsubscribe at freebsd.org"
More information about the freebsd-embedded
mailing list