svn commit: r269964 - head/sys/kern

John-Mark Gurney jmg at funkthat.com
Sat Sep 13 05:22:55 UTC 2014


Xin Li wrote this message on Sat, Sep 13, 2014 at 12:23 +0800:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
> 
> On 9/13/14 3:41 AM, Adrian Chadd wrote:
> > Hi guys,
> > 
> > Both r269963 and r269964 have broken the MIPS platforms with
> > smaller amounts of RAM (< 64MB.)
> > 
> > Sean noticed it and filed a bug:
> > 
> > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193465
> > 
> > Can we please figure out what changed? Otherwise I'm going to
> > revert these two changes until we figure out what happened.
> 
> Could you please try if this would mitigate the issue?
> 
> Index: sys/kern/kern_malloc.c
> ===================================================================
> - --- sys/kern/kern_malloc.c      (revision 271494)
> +++ sys/kern/kern_malloc.c      (working copy)
> @@ -717,6 +717,8 @@ kmeminit(void)
>          * a given architecture.
>          */
>         mem_size = vm_cnt.v_page_count;
> +       if (mem_size <= 32768) /* delphij XXX 128MB */
> +               kmem_zmax = PAGE_SIZE;
> 
>         if (vm_kmem_size_scale < 1)
>                 vm_kmem_size_scale = VM_KMEM_SIZE_SCALE;
> 

Has more research been done on this?  My 64MB AVILA board boots fine,
and ath attaches fine...

I can't test if ath works yet since I can't find my antennas...

FreeBSD 11.0-CURRENT #35 r271408M: Wed Sep 10 14:42:46 PDT 2014
    jmg at carbon.funkthat.com:/usr/obj/arm.armeb/usr/src.avila/sys/AVILA arm
gcc version 4.2.1 20070831 patched [FreeBSD]
CPU: IXP425 266MHz rev 1 (ARMv5TE) (XScale core)
  Big-endian DC enabled IC enabled WB enabled LABT branch prediction enabled
  32KB/32B 32-way instruction cache
  32KB/32B 32-way write-back-locking data cache
real memory  = 67104768 (63 MB)
avail memory = 58843136 (56 MB)
random: <Software, Yarrow> initialized
ixp0: <Intel IXP4XX>
ixp0: 37603<RCOMP,USB,ETH0,ETH1,PCI>
pcib0: <IXP4XX PCI Bus> on ixp0
pci0: <PCI bus> on pcib0
ath0: <Atheros 9220> irq 27 at device 2.0 on pci0
ath0: AR9220 mac 128.2 RF5133 phy 13.0
ath0: 2GHz radio: 0x0000; 5GHz radio: 0x00c0
[...]

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."


More information about the svn-src-all mailing list