Subject: Re: "failed to map ubc_object" panic on CATS (Re: IDE Breakage in 1.5:
To: None <tsutsui@ceres.dti.ne.jp>
From: Robert Swindells <swindellsr@genrad.co.uk>
List: port-arm32
Date: 02/09/2001 17:04:42
>In <200102081910.f18JA0i29279@trigati.home.net>
>mpumford@black-star.demon.co.uk wrote:
>
>> > My CATS uses the M5229 pciide chipset and I also got UDMA errors.
>> > I have made some patches but -current CATS kernel cannot boot because of
>> > "panic: ubc_init: failed to map ubc_object." Sigh..
>> >
>> You are running out of VM space in the kernel. You have two choices.
>> 
>> * figure out how to rearrange memory mappings for the CATS to allow
>>   KERNEL_VM_SIZE to be bigger.
>> 
>> * Change PMAP_STATIC_L1S in your kernel config to a smaller value (or reduce 
>>   maxproc)

>I reduce PMAP_STATIC_L1S=64 from 128, but the kernel still
>does not boot. How many value is recommended?
>(My CATS has 96MB RAM)

I would leave it at 128.

>> If the comment in vmparam.h is to be believed there is no reason why 
>> KERNEL_VM_SIZE could not be increased on the CATS anyway. There are some 
>> patches which resolve the issue for the Risc PC/A7000 in PR12119.

>I see the problem is lack of kernel VM space,
>but what is proper solution? Increase KERNEL_VM_SIZE?
>Reduce VM_MAX_KERNEL_BUF or PAGER_MAP_SIZE?
>or something other?

Increase KERNEL_VM_SIZE. The following patch seems to work.

Index: vmparam.h
===================================================================
RCS file: /cvsroot/syssrc/sys/arch/arm32/include/vmparam.h,v
retrieving revision 1.19
diff -r1.19 vmparam.h
116c116
< #define KERNEL_VM_SIZE		0x07000000
---
> #define KERNEL_VM_SIZE		0x08000000

Robert Swindells