Subject: RE: port-i386/11644: panic: extent_alloc_region: bad size, with O
To: None <bouyer@antioche.lip6.fr, ari.reen@nokia.com>
From: None <ari.reen@nokia.com>
List: netbsd-bugs
Date: 12/07/2000 07:58:40
Tervehdys

> From: EXT Manuel Bouyer [mailto:bouyer@antioche.lip6.fr]
> Sent: 06. December 2000 22:21
> On Tue, Dec 05, 2000 at 11:21:00PM -0800, ari.reen@nokia.com wrote:
> > [...]
> > >Description:
> > When trying to boot GENERIC 1.5 kernel on ICL ErgoPro S
> > one gets panic:
> > extent 'iomem', size 0x0
> > panic: extent_alloc_region: bad size
> > 
> > stack trace copied from screen:
> > extent_alloc_region
> > i386_memio_map
> > pci_mapreg_map
> > pciide_mapreg_ma
> > opti_chip_map
> > pciide_attach
> > 
> > Kernel compiled without the DIAGNOSTIC-option boots fine
> > 
> > Below is dmesg from GENERIC without DIAGNOSTIC-option
> > $ /sbin/dmesg     
> > NetBSD 1.5 (GENERIC) #0: Tue Dec  5 03:46:59 PST 2000
> >     root@mdfacset:/usr/src/sys/arch/i386/compile/GENERIC
...
> > pciide0 at pci0 dev 16 function 0: OPTi 82c621 PCI IDE 
> controller (rev. 0x00)
> > pciide0: bus-master DMA support present, but unused 
> (couldn't map registers)
> ^^^^^^^^^^^^^^^^^^^^^^
> I guess this is what's causing the panic with DIAGNOSTIC 
> (this panic should probably be removed). 

yes it looked like extent_alloc_region gets called with 
size==0. I had no time to look the source more so
I have no idea where the size is coming from, and was
hoping that someone who knows the code better could
say where to start looking for.

> Did you check in the BIOS that bus-master DMA is enabled ? 
> Also make sure you have PnP OS set to NO.

Could not find any setting for either bus-master DMA nor
PnP from the BIOS, if there are they are well hidden :-(

73's de ari