Subject: Re: port-i386/11644: panic: extent_alloc_region: bad size, with OPTi 82c621 when trying to map DMA
To: None <ari.reen@nokia.com>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: netbsd-bugs
Date: 12/06/2000 21:21:17
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
> cpu0: Intel Pentium (P54C) (586-class)
> total memory = 65152 KB
> avail memory = 55288 KB
> using 840 buffers containing 3360 KB of memory
> BIOS32 rev. 0 found at 0xfd814
> mainbus0 (root)
> pci0 at mainbus0 bus 0: configuration mode 1
> pci0: i/o space, memory space enabled
> pchb0 at pci0 dev 0 function 0
> pchb0: Opti 82C557 (rev. 0x00)
> pcib0 at pci0 dev 1 function 0
> pcib0: Opti 82C558 (rev. 0x00)
> vga1 at pci0 dev 7 function 0: ATI Technologies Mach64 GX (rev. 0x01)
> wsdisplay0 at vga1: console (80x25, vt100 emulation)
> le0 at pci0 dev 14 function 0: PCnet-PCI Ethernet
> le0: address 00:00:4b:32:1f:c7
> le0: 8 receive buffers, 2 transmit buffers
> le0: interrupting at irq 11
> pcscp0 at pci0 dev 15 function 0
> pcscp0: interrupting at irq 10
> pcscp0: AM53C974, 40MHz, SCSI ID 7
> scsibus0 at pcscp0: 8 targets, 8 luns per target
> 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). 
Did you check in the BIOS that bus-master DMA is enabled ? Also make sure
you have PnP OS set to NO.

--
Manuel Bouyer <bouyer@antioche.eu.org>
--