Subject: Re: port-alpha/36628: cdhdtape image panics with memory management trap on Jensen
To: None <tsutsui@NetBSD.org, gnats-admin@netbsd.org,>
From: Christoph Franzen <ChristophFranzen@gmx.net>
List: netbsd-bugs
Date: 07/20/2007 23:40:03
The following reply was made to PR port-alpha/36628; it has been noted by GNATS.

From: "Christoph Franzen" <ChristophFranzen@gmx.net>
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Cc: gnats-bugs@NetBSD.org
Subject: Re: port-alpha/36628: cdhdtape image panics with memory management trap on Jensen
Date: Sat, 21 Jul 2007 01:38:41 +0200

 Hello, thank you,
 
 > Thanks, it shows that reading config data region of invalid slots
 > causes the problem:
 [...]
 > Maybe we shouldn't check slots more than 8 at least on Jensen
 > (though I'm not sure how it worked in the past).
 
 The Jensen has got exactly 6 EISA slots and the system board, so 
 there should only the slots 0, 1, 2, 3, 4, 5, 6 being found.
 
 I have installed and configured 3 EISA cards in the first three 
 slots, number 4 and 5 are empty and number 6 contains an ISA network 
 card which I left unconfigured in the ECU.
 
 The card in slot 1, however, is found as ISA, not EISA by the SRM 
 while the real ISA card is not seen by the SRM console at all.
 
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D
 EISA config header at 0x1ac061000
 EISA config at 0x1a0000000
 EISA config stride: 512
 SLOT 0: offset 0x18386800 eisaid DEC2400
 SLOT 1: offset 0x18397000 eisaid ELS8041
 SLOT 2: offset 0x183b4800 eisaid ADP0002
 SLOT 3: offset 0x183c6400 eisaid CPQ6101
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D
 
 I don't know much about this stuff, but I wonder if the problem is 
 really here where it "sees" the slots 8 to 15.
 
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D
 SLOT 8: offset 0x00000008 eisaid =DD=DD=DD=DD=DD=DD=DD
 SLOT 9: offset 0x00009b63 eisaid =FF=FF=FF=FF=FF=FF=FF
 SLOT 10: offset 0xffffffff eisaid =FF=FF=FF=FF=FF=FF=FF
 SLOT 11: offset 0xffffffff eisaid =FF=FF=FF=FF=FF=FF=FF
 SLOT 12: offset 0xffffffff eisaid =FF=FF=FF=FF=FF=FF=FF
 SLOT 13: offset 0xffffffff eisaid =FF=FF=FF=FF=FF=FF=FF
 SLOT 14: offset 0xffffffff eisaid =FF=FF=FF=FF=FF=FF=FF
 SLOT 15: offset 0xffffffff eisaid =FF=FF=FF=FF=FF=FF=FF
 SLOT 0 compressed data length 132:
 0x01 0x00 0x01 0x01 0x00 0x01 0x10 0xbf 0x98 0x80 0x18 0xbf 0x98 0x80 
 0x20 0xbf 
 0x98 0x80 0x28 0xbf 0x98 0x80 0x11 0x01 0x27 0x55 0xa1 0x04 0x1d 0x10 
 0xa3 0x24 
 0x00 0x01 0x10 0xa3 0x24 0x00 0x01 0x11 0x00 0x1d 0x01 0x43 0x4f 0x4d 
 0x31 0x00 
 0xff 0x00 0x1a 0x10 0xa3 0x24 0x00 0x01 0x11 0x00 0x1d 0x01 0x43 0x4f 
 0x4d 0x32 
 0x00 0xff 0x00 0x1a 0x10 0xa3 0x24 0x00 0x01 0x11 0x00 0x1d 0x05 0x4c 
 0x50 0x54 
 0x31 0x00 0x8b 0x01 0x00 0x8d 0x10 0xa3 0x24 0x00 0x01 0x11 0x00 0x1d 
 0x1d 0x46 
 0x4c 0x4f 0x50 0x50 0x59 0x20 0x44 0x49 0x53 0x4b 0x20 0x43 0x4f 0x4e 
 0x54 0x52 
 0x4f 0x4c 0x4c 0x45 0x52 0x00 0x79 0x06 0x00 0x0d 0x02 0x00 0x07 0x07 
 0xf0 0x03 
 0x00 0x75 0x00 0x00 
 SLOT 0 uncompressed header data:
 0x01 0x00 0x01 0x00 0x10 0xbf 0x98 0x80 0x18 0xbf 0x98 0x80 0x20 0xbf 
 0x98 0x80 
 0x28 0xbf 0x98 0x80 0x11 0x01 0x27 0x55 0xa1 0x04 0x1d 0x10 0xa3 0x24 
 0x00 
 SLOT 0: ndevfuncs 4
 SLOT 0:0 uncompressed data:
 Checking this function enabled
 Calling ecuf_init; done
 Setting ecuf_id
 Setting ecuf_slot_info
 Setting ecuf_cfg_ext
 Setting ecuf_selections
 Setting ecuf_func_info
 Setting ecuf_type_string
 Setting ecuf_mem_entry
 Setting ecuf_irq_entry
 Setting ecuf_dma_entry
 Setting ecuf_io_entry
 Setting ecuf_init_entry
 SLOT 0:1 uncompressed data:
 Checking this function enabled
 Calling ecuf_init; done
 Setting ecuf_id
 Setting ecuf_slot_info
 Setting ecuf_cfg_ext
 Setting ecuf_selections
 Setting ecuf_func_info
 Setting ecuf_type_string
 Setting ecuf_mem_entry
 Setting ecuf_irq_entry
 Setting ecuf_dma_entry
 Setting ecuf_io_entry
 Setting ecuf_init_entry
 SLOT 0:2 uncompressed data:
 Checking this function enabled
 Calling ecuf_init; done
 Setting ecuf_id
 Setting ecuf_slot_info
 Setting ecuf_cfg_ext
 Setting ecuf_selections
 Setting ecuf_func_info
 Setting ecuf_type_string
 Setting ecuf_mem_entry
 Setting ecuf_irq_entry
 IRQ 1 edge
 Setting ecuf_dma_entry
 Setting ecuf_io_entry
 Setting ecuf_init_entry
 SLOT 0:3 uncompressed data:
 Checking this function enabled
 Calling ecuf_init; done
 Setting ecuf_id
 Setting ecuf_slot_info
 Setting ecuf_cfg_ext
 Setting ecuf_selections
 Setting ecuf_func_info
 Setting ecuf_type_string
 Setting ecuf_mem_entry
 Setting ecuf_irq_entry
 IRQ 6 edge
 Setting ecuf_dma_entry
 DRQ 2 0 0
 Setting ecuf_io_entry
 IO 0x3f0 0x8
 Setting ecuf_init_entry
 Slot 0:4 done
 SLOT 1 compressed data length 236:
 0x01 0x00 0x01 0x01 0x00 0x01 0x10 0xbf 0x98 0x80 0x18 0xbf 0x98 0x80 
 0x20 0xbf 
 0x98 0x80 0x28 0xbf 0x98 0x80 0x41 0x01 0x27 0xc4 0x9f 0x04 0x17 0x15 
 0x93 0x80 
 0x41 0x15 0x93 0x80 0x41 0x41 0x03 0x00 0x1c 0x11 0x56 0x49 0x44 0x2c 
 0x56 0x47 
 0x41 0x2c 0x56 0x49 0x44 0x2c 0x56 0x47 0x41 0x00 0x96 0x80 0x02 0x01 
 0x80 0xe8 
 0x02 0x80 0xea 0x02 0x80 0xc0 0x03 0x80 0xc1 0x03 0x80 0xc2 0x03 0x80 
 0xc4 0x03 
 0x80 0xc5 0x03 0x80 0xc6 0x03 0x80 0xc7 0x03 0x80 0xc8 0x03 0x80 0xc9 
 0x03 0x80 
 0xcc 0x03 0x80 0xce 0x03 0x00 0x01 0xcf 0x03 0x00 0x4b 0x15 0x93 0x80 
 0x41 0x41 
 0x03 0x00 0x1c 0x13 0x56 0x49 0x44 0x2c 0x56 0x47 0x41 0x3b 0x43 0x4f 
 0x4c 0x4f 
 0x52 0x00 0x43 0x99 0x0a 0x80 0x0b 0x00 0x01 0x20 0x00 0x01 0x18 0x08 
 0x00 0x01 
 0x0c 0x00 0x01 0x20 0x00 0x48 0x80 0xd4 0x03 0x80 0xd5 0x03 0x80 0xd8 
 0x03 0x80 
 0xd9 0x03 0x80 0xda 0x03 0x80 0xdb 0x03 0x00 0x01 0xdc 0x03 0x00 0x63 
 0x15 0x93 
 0x80 0x41 0x41 0x03 0x00 0x1c 0x01 0x56 0x49 0x44 0x2c 0x56 0x47 0x41 
 0x2c 0x56 
 0x49 0x44 0x2c 0x56 0x47 0x41 0x00 0xff 0x00 0x0f 0x15 0x93 0x80 0x41 
 0x41 0x03 
 0x00 0x02 0x01 0x00 0x19 0x05 0x56 0x49 0x44 0x2c 0x56 0x47 0x41 0x2c 
 0x56 0x49 
 0x44 0x2c 0x56 0x47 0x41 0x00 0x80 0x09 0x00 0x8d 0x00 0x00 
 SLOT 1 uncompressed header data:
 0x01 0x00 0x01 0x00 0x10 0xbf 0x98 0x80 0x18 0xbf 0x98 0x80 0x20 0xbf 
 0x98 0x80 
 0x28 0xbf 0x98 0x80 0x41 0x01 0x27 0xc4 0x9f 0x04 0x17 0x15 0x93 0x80 
 0x41 
 SLOT 1: ndevfuncs 4
 SLOT 1:0 uncompressed data:
 Checking this function enabled
 Calling ecuf_init; done
 Setting ecuf_id
 Setting ecuf_slot_info
 Setting ecuf_cfg_ext
 Setting ecuf_selections
 Setting ecuf_func_info
 Setting ecuf_type_string
 Setting ecuf_mem_entry
 Setting ecuf_irq_entry
 Setting ecuf_dma_entry
 Setting ecuf_io_entry
 IO 0x102 0x1
 IO 0x2e8 0x1
 IO 0x2ea 0x1
 IO 0x3c0 0x1
 IO 0x3c1 0x1
 IO 0x3c2 0x1
 IO 0x3c4 0x1
 IO 0x3c5 0x1
 IO 0x3c6 0x1
 IO 0x3c7 0x1
 IO 0x3c8 0x1
 IO 0x3c9 0x1
 IO 0x3cc 0x1
 IO 0x3ce 0x1
 IO 0x3cf 0x1
 Setting ecuf_init_entry
 SLOT 1:1 uncompressed data:
 Checking this function enabled
 Calling ecuf_init; done
 Setting ecuf_id
 Setting ecuf_slot_info
 Setting ecuf_cfg_ext
 Setting ecuf_selections
 Setting ecuf_func_info
 Setting ecuf_type_string
 Setting ecuf_mem_entry
 MEM 0xb8000 0x8000 1 2 2
 MEM 0xc0000 0x8000 0 0 2
 Setting ecuf_irq_entry
 Setting ecuf_dma_entry
 Setting ecuf_io_entry
 IO 0x3d4 0x1
 IO 0x3d5 0x1
 IO 0x3d8 0x1
 IO 0x3d9 0x1
 IO 0x3da 0x1
 IO 0x3db 0x1
 IO 0x3dc 0x1
 Setting ecuf_init_entry
 SLOT 1:2 uncompressed data:
 Checking this function enabled
 Calling ecuf_init; done
 Setting ecuf_id
 Setting ecuf_slot_info
 Setting ecuf_cfg_ext
 Setting ecuf_selections
 Setting ecuf_func_info
 Setting ecuf_type_string
 Setting ecuf_mem_entry
 Setting ecuf_irq_entry
 Setting ecuf_dma_entry
 Setting ecuf_io_entry
 Setting ecuf_init_entry
 SLOT 1:3 uncompressed data:
 Checking this function enabled
 Calling ecuf_init; done
 Setting ecuf_id
 Setting ecuf_slot_info
 Setting ecuf_cfg_ext
 Setting ecuf_selections
 Setting ecuf_func_info
 Setting ecuf_type_string
 Setting ecuf_mem_entry
 Setting ecuf_irq_entry
 IRQ 9 edge
 Setting ecuf_dma_entry
 Setting ecuf_io_entry
 Setting ecuf_init_entry
 Slot 1:4 done
 SLOT 2 compressed data length 142:
 0x01 0x00 0x01 0x01 0x00 0x01 0x10 0xbf 0x98 0x80 0x18 0xbf 0x98 0x80 
 0x20 0xbf 
 0x98 0x80 0x28 0xbf 0x98 0x80 0x00 0x01 0x01 0x27 0xf8 0x00 0x01 0x04 
 0x27 0x04 
 0x90 0x00 0x01 0x02 0x04 0x90 0x00 0x01 0x02 0x00 0x01 0x03 0x00 0x1c 
 0x25 0x41 
 0x48 0x41 0x31 0x37 0x34 0x30 0x00 0x88 0x2b 0x00 0x51 0x80 0xc0 0x2c 
 0x80 0x80 
 0xc1 0x2c 0xc3 0x80 0xc2 0x2c 0x12 0x80 0xc3 0x2c 0x17 0x00 0x01 0xc4 
 0x2c 0x01 
 0x00 0x28 0x04 0x90 0x00 0x01 0x02 0x00 0x01 0x03 0x00 0x1c 0x03 0x41 
 0x44 0x41 
 0x50 0x54 0x45 0x52 0x3d 0x53 0x43 0x53 0x49 0x00 0x44 0x18 0x08 0xc0 
 0x0c 0x00 
 0x01 0x10 0x00 0xc7 0x04 0x90 0x00 0x01 0x02 0x00 0x01 0x03 0x00 0xff 
 0x00 0x3b 
 0x04 0x90 0x00 0x01 0x02 0x00 0x01 0x03 0x00 0xff 0x00 0x3b 0x00 0x00 
 
 SLOT 2 uncompressed header data:
 0x01 0x00 0x01 0x00 0x10 0xbf 0x98 0x80 0x18 0xbf 0x98 0x80 0x20 0xbf 
 0x98 0x80 
 0x28 0xbf 0x98 0x80 0x00 0x01 0x27 0xf8 0x00 0x04 0x27 0x04 0x90 0x00 
 0x02 
 SLOT 2: ndevfuncs 4
 SLOT 2:0 uncompressed data:
 Checking this function enabled
 Calling ecuf_init; done
 Setting ecuf_id
 Setting ecuf_slot_info
 Setting ecuf_cfg_ext
 Setting ecuf_selections
 Setting ecuf_func_info
 Setting ecuf_type_string
 Setting ecuf_mem_entry
 Setting ecuf_irq_entry
 IRQ 11 level
 Setting ecuf_dma_entry
 Setting ecuf_io_entry
 Setting ecuf_init_entry
 SLOT 2:1 uncompressed data:
 Checking this function enabled
 Calling ecuf_init; done
 Setting ecuf_id
 Setting ecuf_slot_info
 Setting ecuf_cfg_ext
 Setting ecuf_selections
 Setting ecuf_func_info
 Setting ecuf_type_string
 Setting ecuf_mem_entry
 MEM 0xcc000 0x4000 0 0 2
 Setting ecuf_irq_entry
 Setting ecuf_dma_entry
 Setting ecuf_io_entry
 Setting ecuf_init_entry
 SLOT 2:2 uncompressed data:
 Checking this function enabled
 Calling ecuf_init; done
 Setting ecuf_id
 Setting ecuf_slot_info
 Setting ecuf_cfg_ext
 Setting ecuf_selections
 Setting ecuf_func_info
 Setting ecuf_type_string
 Setting ecuf_mem_entry
 Setting ecuf_irq_entry
 Setting ecuf_dma_entry
 Setting ecuf_io_entry
 Setting ecuf_init_entry
 SLOT 2:3 uncompressed data:
 Checking this function enabled
 Calling ecuf_init; done
 Setting ecuf_id
 Setting ecuf_slot_info
 Setting ecuf_cfg_ext
 Setting ecuf_selections
 Setting ecuf_func_info
 Setting ecuf_type_string
 Setting ecuf_mem_entry
 Setting ecuf_irq_entry
 Setting ecuf_dma_entry
 Setting ecuf_io_entry
 Setting ecuf_init_entry
 Slot 2:4 done
 SLOT 3 compressed data length 128:
 0x01 0x00 0x01 0x01 0x00 0x01 0x10 0xbf 0x98 0x80 0x18 0xbf 0x98 0x80 
 0x20 0xbf 
 0x98 0x80 0x28 0xbf 0x98 0x80 0x01 0x01 0x27 0x49 0xa0 0x02 0x25 0x0e 
 0x11 0x61 
 0x01 0x0e 0x11 0x61 0x01 0x01 0x01 0x00 0x04 0x04 0x00 0x01 0x02 0x02 
 0x00 0x14 
 0x25 0x4e 0x45 0x54 0x3b 0x45 0x54 0x48 0x3b 0x49 0x52 0x51 0x35 0x2c 
 0x4c 0x45 
 0x56 0x45 0x4c 0x3b 0x31 0x30 0x4d 0x42 0x50 0x53 0x3b 0x55 0x54 0x50 
 0x00 0x72 
 0x25 0x00 0x51 0x80 0x85 0x3c 0x28 0x81 0x1c 0x30 0x01 0x00 0x01 0x01 
 0x08 0x30 
 0x80 0x00 0x2f 0x0e 0x11 0x61 0x01 0x01 0x01 0x00 0x1c 0x41 0x4f 0x54 
 0x48 0x2c 
 0x52 0x45 0x56 0x50 0x4f 0x52 0x54 0x00 0x45 0x02 0x63 0x0c 0x00 0xca 
 0x00 0x00 
 SLOT 3 uncompressed header data:
 0x01 0x00 0x01 0x00 0x10 0xbf 0x98 0x80 0x18 0xbf 0x98 0x80 0x20 0xbf 
 0x98 0x80 
 0x28 0xbf 0x98 0x80 0x01 0x01 0x27 0x49 0xa0 0x02 0x25 0x0e 0x11 0x61 
 0x01 
 SLOT 3: ndevfuncs 2
 SLOT 3:0 uncompressed data:
 Checking this function enabled
 Calling ecuf_init; done
 Setting ecuf_id
 Setting ecuf_slot_info
 Setting ecuf_cfg_ext
 Setting ecuf_selections
 Setting ecuf_func_info
 Setting ecuf_type_string
 Setting ecuf_mem_entry
 Setting ecuf_irq_entry
 IRQ 5 level
 Setting ecuf_dma_entry
 Setting ecuf_io_entry
 Setting ecuf_init_entry
 SLOT 3:1 uncompressed data:
 Checking this function enabled
 Calling ecuf_init; done
 Setting ecuf_id
 Setting ecuf_slot_info
 Setting ecuf_cfg_ext
 Setting ecuf_selections
 Setting ecuf_func_info
 Setting ecuf_type_string
 Setting ecuf_mem_entry
 Setting ecuf_irq_entry
 Setting ecuf_dma_entry
 Setting ecuf_io_entry
 Setting ecuf_init_entry
 Slot 3:2 done
 SLOT 8 compressed data length 48:
 0x01 0x09 0x10 0x01 0x55 0x00 0xaa 0xff 0x56 0x31 0x2e 0x31 0x20 0x20 
 0x20 0x20 
 0x44 0x45 0x43 0x20 0x20 0x20 0x20 0x20 0x4a 0x45 0x4e 0x53 0x5f 0x53 
 0x59 0x53 
 0x41 0x4c 0x50 0x48 0xff 0xff 0xff 0xff 0x17 0x01 0x01 0x00 0xc0 0x03 
 0x00 0x00 
 SLOT 8 uncompressed header data:
 0x01 0x09 0x10 0x01 0x55 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
 0x00 0x00 
 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
 0x00 
 SLOT 8: ndevfuncs 0
 Slot 8:0 done
 
 CPU 0: fatal kernel trap:
 
 CPU 0    trap entry =3D 0x2 (memory management fault)
 CPU 0    a0         =3D 0xfffffe0000058000
 CPU 0    a1         =3D 0x1
 CPU 0    a2         =3D 0x0
 CPU 0    pc         =3D 0xfffffc000058fa10
 CPU 0    ra         =3D 0xfffffc000059008c
 CPU 0    pv         =3D 0xfffffc00004974a0
 CPU 0    curlwp    =3D 0xfffffc0000bc3c20
 CPU 0        pid =3D 0, comm =3D swapper
 
 panic: trap
 Stopped in pid 0.1 (swapper) at 0xfffffc00005da244:     ret     
 zero,(ra)
 db>
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D
 
 Christoph Franzen