Date: Mon, 08 Sep 2014 17:38:16 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 193465] New: [mips] malloc failures on mips, ath(4) Message-ID: <bug-193465-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193465 Bug ID: 193465 Summary: [mips] malloc failures on mips, ath(4) Product: Base System Version: 11.0-CURRENT Hardware: mips OS: Any Status: Needs Triage Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: sbruno@FreeBSD.org CC: adrian@freebsd.org, alc@FreeBSD.org, delphij@FreeBSD.org, jmg@FreeBSD.org Created attachment 147072 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=147072&action=edit r269962 vmstat -z output on my mips32 router. It looks like svn r269963 removed a series of #if PAGE_SIZE checks that are tripping up mips boards that have a substantially small amount of RAM(64M in my case). Reverting the removal of the #if PAGE_SIZE checks in kern_malloc.c is enough to alleviate this error. I have also included some very strange vmstat -z output where I've captured at 269962 and then at 269963 that shows, at 269963, almost all allocation to be in the 16k buckets where 269962 doesn't have any allocation entry above 4k. ath(4) is unable to malloc dma'able memory on initialization and causes a hard deadlock waiting in kmem_arena (as shown by ctrl-t on serial console). wlan: <802.11 Link Layer> pci0: driver added found-> vendor=0x168c, dev=0x002a, revid=0x01 domain=0, bus=0, slot=0, func=0 class=02-80-00, hdrtype=0x00, mfdev=0 cmdreg=0x0146, statreg=0x0010, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=a, irq=255 MSI-X supports 1 message in map 0x10 pci0:0:0:0: reprobing on driver added ath0: <Atheros 9280> at device 0.0 on pci0 ath0: Lazy allocation of 0x10000 bytes rid 0x10 type 3 at 0x10000000 ath0: ath_pci_attach: looking up firmware @ 'pcib.0.bus.0.0.0.eeprom_firmware' ath0: ath_pci_attach: EEPROM firmware @ 0xc6eef000 ath0: malloc of tx buffers failed, size 139264 ath0: malloc of rx buffers failed, size 139264 ath0: [HT] enabling HT modes ath0: [HT] 1 stream STBC receive enabled ath0: [HT] 1 stream STBC transmit enabled ath0: [HT] 2 RX streams; 2 TX streams ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps ath0: 2T2R ath0: 11ng MCS 20MHz ath0: MCS 0-7: 6.5Mbps - 65Mbps ath0: MCS 8-15: 13Mbps - 130Mbps ath0: 11ng MCS 40MHz: ath0: MCS 0-7: 13.5Mbps - 135Mbps ath0: MCS 8-15: 27Mbps - 270Mbps ath0: 11ng MCS 40MHz SGI: ath0: MCS 0-7: 15Mbps - 150Mbps ath0: MCS 8-15: 30Mbps - 300Mbps ath0: AR9280 mac 128.2 RF5133 phy 13.0 ath0: 2GHz radio: 0x0000; 5GHz radio: 0x00c0 ath0: Use hw queue 1 for WME_AC_BE traffic ath0: Use hw queue 0 for WME_AC_BK traffic ath0: Use hw queue 2 for WME_AC_VI traffic ath0: Use hw queue 3 for WME_AC_VO traffic ath0: Use hw queue 8 for CAB traffic ath0: Use hw queue 9 for beacons ath0: using multicast key search load: 0.97 cmd: kldload 48 [kmem arena] 53.66r 0.00u 0.01s 0% 1552k -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-193465-8>