Subject: port-i386/11644: panic: extent_alloc_region: bad size, with OPTi 82c621 when trying to map DMA
To: None <gnats-bugs@gnats.netbsd.org>
From: None <ari.reen@nokia.com>
List: netbsd-bugs
Date: 12/05/2000 23:22:11
>Number: 11644
>Category: port-i386
>Synopsis: panic: extent_alloc_region: bad size, with OPTi 82c621 when trying to map DMA
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-i386-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Dec 05 23:22:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: Ari Reen
>Release: 1.5
>Organization:
>Environment:
NetBSD mdfacset 1.5 NetBSD 1.5 (GENERIC) #0: Tue Dec 5 03:46:59 PST 2000 root@mdfacset:/usr/src/sys/arch/i386/compile/GENERIC i386
Same as 1.5 GENRIC but DIAGNOSTIC-option commented out.
>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)
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <ST32120A>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 2014 MB, 4092 cyl, 16 head, 63 sec, 512 bytes/sect x 4124736 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4
pciide0: secondary channel wired to compatibility mode
pciide0: secondary channel interrupting at irq 15
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
lpt0 at isa0 port 0x378-0x37b irq 7
sb0 at isa0 port 0x220-0x237 irq 5 drq 1: dsp v3.01
audio0 at sb0: half duplex, mmap, independent
midi0 at sb0: SB MIDI UART
opl0 at sb0: model OPL3
midi1 at opl0: SB Yamaha OPL3
pcppi0 at isa0 port 0x61
midi2 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: no ISA Plug 'n Play devices found
biomask e745 netmask ef45 ttymask ffc7
scsibus0: waiting 2 seconds for devices to settle...
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
$
>How-To-Repeat:
Try to boot ICL ErgoPro S with GENERIC 1.5 kernel
>Fix:
Quick fix: use kernel without DIAGNOSTIC option
>Release-Note:
>Audit-Trail:
>Unformatted: