Subject: panic: extent_alloc_region on 1.4.2_ALPHA/i386
To: None <port-i386@netbsd.org>
From: Andreas Wrede <andreas@planix.com>
List: port-i386
Date: 01/23/2000 11:23:23
I have an IBM PC340 system on which GENERIC 1.4.1 and 1.4.2_ALPHA
kernels panic but the 1.4.1 INSTALL kernel boots. The full kernel
message logs for INSTALL and GENERIC kernel boots are included below.
The GENERIC kernel boots if I disable the bus master DMA test at line
529 of pciide.c:
        if (1) {
                printf("%s: bus-master DMA support disabled", 
                        sc->sc_wdcdev.sc_dev.dv_xname); 
        }
        else if (interface & PCIIDE_INTERFACE_BUS_MASTER_DMA) {

I could not figure out why the INSTALL kernel behaves differently, ie.
why it 'cannot map registers' while the same code in the GENRIC kernel
believes it can. I guess it's some piece of code that is in the
GENERIC but not in the INSTALL kernel or is this failure a hardware
quirk or should the code be able to cope? If so how?


[-panic'd  GENERIC kernel boot-]
NetBSD 1.4.2_ALPHA (GENERIC) #0: Sun Jan 23 08:32:23 EST 2000
    root@walnut.planix.com:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: family 5 model 2 step 6
cpu0: Intel Pentium (P54C) (586-class)
real mem  = 16384000
avail mem = 11943936
using 225 buffers containing 921600 bytes of memory
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o enabled, memory enabled
pchb0 at pci0 dev 0 function 0
pchb0: Silicon Integrated System product 0x5511 (rev. 0x00)
pcib0 at pci0 dev 1 function 0
pcib0: Silicon Integrated System 85C503 or 5597/5598 ISA bridge (rev. 0x01)
pciide0 at pci0 dev 1 function 1: Silicon Integrated System 5597/5598 IDE controller
pciide: bus-master DMA support presentextent_alloc_region: extent 'ioport' (0x0 - 0xffff)
extent_alloc_region: start 0x8000ffa0, end 0x8000ffaf
panic: extent_alloc_region: region lies outside extent


[-successfull INSTALL kernel boot-]
NetBSD 1.4.1 (INSTALL) #1: Tue Aug 10 0
0:04:40 MEST 1999
    fvdl@struis:/usr/src/sys/arch/i386/compile/INSTALL
cpu0: family 5 model 2 step 6
cpu0: Intel Pentium (P54C) (586-class)
real mem  = 16384000
avail mem = 11661312
using 225 buffers containing 921600 bytes of memory
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o enabled, memory enabled
pchb0 at pci0 dev 0 function 0
pchb0: vendor 0x1039 product 0x5511 (rev. 0x00)
pcib0 at pci0 dev 1 function 0
pcib0: vendor 0x1039 product 0x0008 (rev. 0x01)
pciide0 at pci0 dev 1 function 1: Silicon Integrated System 5597/5598 IDE controller
pciide0: bus-master DMA support present, but unused (couldn't map registers)
pciide0: primary channel configured to compatibility mode
wd0 at pciide0 channel 0 drive 0: <WDC AC21200H>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 1222MB, 2484 cyl, 16 head, 63 sec, 512 bytes/sect x 2503872 sectors
wd0: 32-bits data port
wd0: drive supports PIO mode 4, DMA mode 2
pciide0: primary channel interrupting at irq 14
pciide0: secondary channel configured to compatibility mode
pciide0: secondary channel ignored (disabled)
wd0(pciide0:0:0): using PIO mode 4
fxp0 at pci0 dev 14 function 0: Intel EtherExpress Pro 10+/100B Ethernet
fxp0: interrupting at irq 11
fxp0: Ethernet address 00:50:8b:67:7f:74
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 0
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
de0 at pci0 dev 15 function 0
de0: interrupting at irq 10
de0: SMC 21041 [10Mb/s] pass 1.1
de0: address 00:00:c0:eb:74:d5
vendor 0x1013 product 0x00ac (VGA display) at pci0 dev 20 function 0 not configured
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
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
pc0 at isa0 port 0x60-0x6f irq 1: color
pc0: console
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 4040 netmask 4c40 ttymask 4c42
md0: internal 1587K image area
boot device: fd0
root on md0a dumps on md0b
root file system type: ffs



[-successfull 1.4.2_ALPHA boot w/ modified pciide.c-]
NetBSD 1.4.2_ALPHA (IBM340) #2: Sun Jan 23 10:48:48 EST 2000
    root@walnut.planix.com:/usr/src/sys/arch/i386/compile/IBM340
cpu0: family 5 model 2 step 6
cpu0: Intel Pentium (P54C) (586-class)
real mem  = 16384000
avail mem = 11943936
using 225 buffers containing 921600 bytes of memory
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o enabled, memory enabled
pchb0 at pci0 dev 0 function 0
pchb0: Silicon Integrated System product 0x5511 (rev. 0x00)
pcib0 at pci0 dev 1 function 0
pcib0: Silicon Integrated System 85C503 or 5597/5598 ISA bridge (rev. 0x01)
pciide0 at pci0 dev 1 function 1: Silicon Integrated System 5597/5598 IDE controller
pciide0: bus-master DMA support disabled
pciide0: primary channel configured to compatibility mode
wd0 at pciide0 channel 0 drive 0: <WDC AC21200H>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 1222MB, 2484 cyl, 16 head, 63 sec, 512 bytes/sect x 2503872 sectors
wd0: 32-bits data port
wd0: drive supports PIO mode 4, DMA mode 2
pciide0: primary channel interrupting at irq 14
pciide0: secondary channel configured to compatibility mode
pciide0: secondary channel ignored (disabled)
wd0(pciide0:0:0): using PIO mode 4
fxp0 at pci0 dev 14 function 0: Intel EtherExpress Pro 10+/100B Ethernet
fxp0: interrupting at irq 11
fxp0: Ethernet address 00:50:8b:67:7f:74
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 0
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
de0 at pci0 dev 15 function 0
de0: interrupting at irq 10
de0: SMC 21041 [10Mb/s] pass 1.1
de0: address 00:00:c0:eb:74:d5
vga1 at pci0 dev 20 function 0: Cirrus Logic CL-GD5436 (rev. 0x00)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
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
lpt2 at isa0 port 0x3bc-0x3bf: polled
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
opms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
pcppi0 at isa0 port 0x61
midi0 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 4040 netmask 4c40 ttymask 5c42
wscons: wskbd0 glued to wsdisplay0 (console)
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)


-- 
    - aew