Re: Can't boot bsd after install with a pciide

Rodolfo Gouveia <[email protected]>
Newsgroups gmane.os.openbsd.sparc
Message-ID <[email protected]>
I was able to get another Ultra 5 to debug this and didn't
have a problem so I'm guessing this is some sort of hardware
configuration difference between both.
Also on my last message I got the model wrong, it's a CMD
Technology PCI0649 and not PCI0646. Actually the onboard IDE
is a PCI0646.
Apart from the CPU they are the same model.
I've also tested with -current.

Any hints would be appreciated.

Dmesg from the two machines and full panic+trace follows:

	dmesg from ultra5 that recognizes the card:
OpenBSD 4.8 (GENERIC) #86: Mon Aug 16 09:09:34 MDT 2010
    [email protected]:/usr/src/sys/arch/sparc64/compile/GENERIC
real mem = 268435456 (256MB)
avail mem = 251904000 (240MB)
mainbus0 at root: Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 400MHz)
cpu0 at mainbus0: SUNW,UltraSPARC-IIi (rev 9.1) @ 400 MHz
cpu0: physical 16K instruction (32 b/l), 16K data (32 b/l), 2048K external (64 b/l)
psycho0 at mainbus0 addr 0xfffc4000: SUNW,sabre, impl 0, version 0, ign 7c0
psycho0: bus range 0-2, PCI bus 0
psycho0: dvma map c0000000-dfffffff
pci0 at psycho0
ppb0 at pci0 dev 1 function 1 "Sun Simba PCI-PCI" rev 0x13
pci1 at ppb0 bus 1
ebus0 at pci1 dev 1 function 0 "Sun PCIO EBus2" rev 0x01
auxio0 at ebus0 addr 726000-726003, 728000-728003, 72a000-72a003, 72c000-72c003, 72f000-72f003
power0 at ebus0 addr 724000-724003 ivec 0x25
"SUNW,pll" at ebus0 addr 504000-504002 not configured
sab0 at ebus0 addr 400000-40007f ivec 0x2b: rev 3.2
sabtty0 at sab0 port 0
sabtty1 at sab0 port 1: console
comkbd0 at ebus0 addr 3083f8-3083ff ivec 0x29: no keyboard
comms0 at ebus0 addr 3062f8-3062ff ivec 0x2a
wsmouse0 at comms0 mux 0
lpt0 at ebus0 addr 3043bc-3043cb, 30015c-30015d, 700000-70000f ivec 0x22: polled
"fdthree" at ebus0 addr 3023f0-3023f7, 706000-70600f, 720000-720003 ivec 0x27 not configured
clock1 at ebus0 addr 0-1fff: mk48t59
"flashprom" at ebus0 addr 0-fffff not configured
audioce0 at ebus0 addr 200000-2000ff, 702000-70200f, 704000-70400f, 722000-722003 ivec 0x23 ivec 0x24: nvaddrs 0
audio0 at audioce0
hme0 at pci1 dev 1 function 1 "Sun HME" rev 0x01: ivec 0x7e1, address 08:00:20:ff:cb:bc
nsphy0 at hme0 phy 1: DP83840 10/100 PHY, rev. 1
machfb0 at pci1 dev 2 function 0 "ATI Mach64" rev 0x5c
machfb0: ATY,GT-C, 1152x900
wsdisplay0 at machfb0 mux 1
wsdisplay0: screen 0 added (std, sun emulation)
pciide0 at pci1 dev 3 function 0 "CMD Technology PCI0646" rev 0x03: DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide0: using ivec 0x7e0 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: <Maxtor 32049H2>
wd0: 16-sector PIO, LBA, 19541MB, 40021632 sectors
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <LG, CD-ROM CRD-8483B, 1.01> ATAPI 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
ppb1 at pci0 dev 1 function 0 "Sun Simba PCI-PCI" rev 0x13
pci2 at ppb1 bus 2
pciide1 at pci2 dev 1 function 0 "CMD Technology PCI0649" rev 0x02: DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide1: using ivec 0x7d0 for native-PCI interrupt
pciide1: channel 0 disabled (no drives)
pciide1: channel 1 disabled (no drives)
softraid0 at root
bootpath: /pci@1f,0/pci@1,1/ide@3,0/disk@0,0
root on wd0a swap on wd0b dump on wd0b


	dmesg from ultra5 that panics if the card is inserted:
OpenBSD 4.8 (GENERIC) #86: Mon Aug 16 09:09:34 MDT 2010
    [email protected]:/usr/src/sys/arch/sparc64/compile/GENERIC
real mem = 268435456 (256MB)
avail mem = 251920384 (240MB)
mainbus0 at root: Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 270MHz)
cpu0 at mainbus0: SUNW,UltraSPARC-IIi (rev 1.3) @ 270 MHz
cpu0: physical 16K instruction (32 b/l), 16K data (32 b/l), 256K external (64 b/l)
psycho0 at mainbus0 addr 0xfffc4000: SUNW,sabre, impl 0, version 0, ign 7c0
psycho0: bus range 0-2, PCI bus 0
psycho0: dvma map c0000000-dfffffff
pci0 at psycho0
ppb0 at pci0 dev 1 function 1 "Sun Simba PCI-PCI" rev 0x11
pci1 at ppb0 bus 1
ebus0 at pci1 dev 1 function 0 "Sun PCIO EBus2" rev 0x01
auxio0 at ebus0 addr 726000-726003, 728000-728003, 72a000-72a003, 72c000-72c003, 72f000-72f003
power0 at ebus0 addr 724000-724003 ivec 0x25
"SUNW,pll" at ebus0 addr 504000-504002 not configured
sab0 at ebus0 addr 400000-40007f ivec 0x2b: rev 3.2
sabtty0 at sab0 port 0
sabtty1 at sab0 port 1: console
comkbd0 at ebus0 addr 3083f8-3083ff ivec 0x29: layout 41
wskbd0 at comkbd0 mux 1
comms0 at ebus0 addr 3062f8-3062ff ivec 0x2a
wsmouse0 at comms0 mux 0
lpt0 at ebus0 addr 3043bc-3043cb, 30015c-30015d, 700000-70000f ivec 0x22: polled
clock1 at ebus0 addr 0-1fff: mk48t59
"flashprom" at ebus0 addr 0-fffff not configured
audioce0 at ebus0 addr 200000-2000ff, 702000-70200f, 704000-70400f, 722000-722003 ivec 0x23 ivec 0x24: nvaddrs 0
audio0 at audioce0
hme0 at pci1 dev 1 function 1 "Sun HME" rev 0x01: ivec 0x7e1, address 08:00:20:89:52:c3
nsphy0 at hme0 phy 1: DP83840 10/100 PHY, rev. 1
machfb0 at pci1 dev 2 function 0 "ATI Mach64" rev 0x9a
machfb0: ATY,GT-B, 800x600
wsdisplay0 at machfb0 mux 1
wskbd0: connecting to wsdisplay0
wsdisplay0: screen 0 added (std, sun emulation)
pciide0 at pci1 dev 3 function 0 "CMD Technology PCI0646" rev 0x03: DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide0: using ivec 0x7e0 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: <Maxtor 32049H2>
wd0: 16-sector PIO, LBA, 19541MB, 40021632 sectors
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <HP, CD-Writer+ 8100, 1.0g> ATAPI 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 3, DMA mode 1
ppb1 at pci0 dev 1 function 0 "Sun Simba PCI-PCI" rev 0x11
pci2 at ppb1 bus 2
softraid0 at root
bootpath: /pci@1f,0/pci@1,1/ide@3,0/disk@0,0
root on wd0a swap on wd0b dump on wd0b


		panic message:
OpenBSD 4.8 (GENERIC) #86: Mon Aug 16 09:09:34 MDT 2010
    [email protected]:/usr/src/sys/arch/sparc64/compile/GENERIC
real mem = 268435456 (256MB)
avail mem = 251912192 (240MB)
panic: kernel diagnostic assertion "TAILQ_EMPTY(&pgl)" failed: file "../../../../uvm/uvm_km.c", line 451
kdb breakpoint at 145bd40
Stopped at      Debugger+0x4:   nop
__assert(14f77c0, 153da08, 1c3, 153daf8, 0, 1) at __assert+0x20
uvm_km_kmemalloc_pla(4000042a000, 0, 4000, 2000, 1, 400003c7780) at uvm_km_kmem
alloc_pla+0x2d4
pool_large_alloc(18920c8, 0, 1c09c6c, 0, f, deafbeef) at pool_large_alloc+0x60
pool_allocator_alloc(18920c8, 0, 1c09c6c, 0, 0, 1c09de0) at pool_allocator_allo
c+0x54
pool_catchup(18920c8, 0, 1c09d20, 182cd62, 182cd63, 2) at pool_catchup+0x24
pool_setlowat(18920c8, 8, 1, 4000, 0, 182cd5c) at pool_setlowat+0x58
mbinit(180f860, 1520048, 180f000, f, f0066d2c, 1800) at mbinit+0x11c
main(0, 1179b20, 18, f0066d2c, f0066d2c, 1801010) at main+0x80
print_dtlb(100000, 11a8, 1000000, fffa9b70, 18, 10aeb0) at print_dtlb+0x15c
RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS PANIC!
DO NOT EVEN BOTHER REPORTING THIS WITHOUT INCLUDING THAT INFORMATION!
ddb> ps
   PID   PPID   PGRP    UID  S       FLAGS  WAIT          COMMAND
ddb> trace
__assert(14f77c0, 153da08, 1c3, 153daf8, 0, 1) at __assert+0x20
uvm_km_kmemalloc_pla(4000042a000, 0, 4000, 2000, 1, 400003c7780) at uvm_km_kmem
alloc_pla+0x2d4
pool_large_alloc(18920c8, 0, 1c09c6c, 0, f, deafbeef) at pool_large_alloc+0x60
pool_allocator_alloc(18920c8, 0, 1c09c6c, 0, 0, 1c09de0) at pool_allocator_allo
c+0x54
pool_catchup(18920c8, 0, 1c09d20, 182cd62, 182cd63, 2) at pool_catchup+0x24
pool_setlowat(18920c8, 8, 1, 4000, 0, 182cd5c) at pool_setlowat+0x58
mbinit(180f860, 1520048, 180f000, f, f0066d2c, 1800) at mbinit+0x11c
main(0, 1179b20, 18, f0066d2c, f0066d2c, 1801010) at main+0x80
print_dtlb(100000, 11a8, 1000000, fffa9b70, 18, 10aeb0) at print_dtlb+0x15c
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.