Subject: Re: port-sparc/33894: "too many" hme interfaces cause UVM panic during boot
To: None <port-sparc-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: Erik E. Fair <fair@clock.org>
List: netbsd-bugs
Date: 07/02/2006 01:55:02
The following reply was made to PR port-sparc/33894; it has been noted by GNATS.
From: "Erik E. Fair" <fair@clock.org>
To: gnats-bugs@netbsd.org
Cc: pullup-3-0@netbsd.org
Subject: Re: port-sparc/33894: "too many" hme interfaces cause UVM panic during boot
Date: Sat, 01 Jul 2006 18:54:29 -0700
This diff from -current applied to the NetBSD 3.0 sys/arch/sparc/sparc/machdep.c
seems to repair both PR 33894 and 33340. It should be pulled up or
applied to the NetBSD 3.0 source tree:
***************
*** 1790,1797 ****
* First, find a region large enough to contain any aligned chunk
*/
oversize = size + align - PAGE_SIZE;
! sva = uvm_km_valloc(kernel_map, oversize);
! if (sva == 0)
return (0);
/*
--- 1734,1743 ----
* First, find a region large enough to contain any aligned chunk
*/
oversize = size + align - PAGE_SIZE;
! sva = vm_map_min(kernel_map);
! if (uvm_map(kernel_map, &sva, oversize, NULL, UVM_UNKNOWN_OFFSET,
! align, UVM_MAPFLAG(UVM_PROT_ALL, UVM_PROT_ALL, UVM_INH_NONE,
! UVM_ADV_RANDOM, UVM_FLAG_NOWAIT)))
return (0);
/*