Reporting an issue that is causing my SunBlade 100 (ultrasparc64) workstation to be unable too boot. I've identified the release this problem was first introduced 6.8, however the problem remains unresolved in 6.9 and seems to be in even worse state in 7.0 and -current.

Net booting appears to be functional, and I can install from a netbooted ram disk without issue in any version (6.8, 6.9, 7.0, -current). Booting from the hard drive after installation is not working since 6.8.

The system installs and appears to be working correctly in versions 6.3, 6.4, 6.5, 6.6 and 6.7. Specifically, it appears to me that the workstation hardware is working correctly, and a software bug was introduced between release 6.7 and 6.8 that is causing the issue.

Attached is a 6.8 kernel panic (I can provide this for 6.9 as well but not for 7.0 or -current because the kernel doesn't even load on those versions at all). For example on -current all that I get on boot is this:

Rebooting with command: boot
Boot Device: disk File and args:
OpenBSD IEEE 1275 Bootblock 2.1
..>> OpenBSD BOOT 1.21
Trying BSD...
/
Evaluating:
Flushbuf error
read header: short read (only 0 of 64)

--
Ted Bullock <[email protected]>
Sun Blade 100 (UltraSPARC-IIe), No Keyboard
Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
OpenBoot 4.17.1, 512 MB memory installed, Serial #51939433.
Ethernet address 0:3:ba:18:88:69, Host ID: 83188869.



Rebooting with command: boot
Boot device: disk  File and args:
OpenBSD IEEE 1275 Bootblock 2.1
..>> OpenBSD BOOT 1.20
Trying bsd...
Booting /pci@1f,0/ide@d/disk@0,0:a/bsd
9952008@0x1000000+1272@0x197db08+189092@0x1c00000+4005212@0x1c2e2a4
symbols @ 0xfec72400 477408+165+640344+442535 start=0x1000000
[ using 1561480 bytes of bsd ELF symbol table ]
console is /pci@1f,0/isa@7/serial@0,3f8
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2020 OpenBSD. All rights reserved.  https://www.OpenBSD.org

OpenBSD 6.8 (GENERIC) #477: Sun Oct  4 20:36:17 MDT 2020
    [email protected]:/usr/src/sys/arch/sparc64/compile/GENERIC
real mem = 536870912 (512MB)
avail mem = 509935616 (486MB)
random: boothowto does not indicate good seed
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root: Sun Blade 100 (UltraSPARC-IIe)
cpu0 at mainbus0: SUNW,UltraSPARC-IIe (rev 1.4) @ 502 MHz
cpu0: physical 16K instruction (32 b/l), 16K data (32 b/l), 256K external (64 
b/l)
psycho0 at mainbus0: pci108e,a001, impl 0, version 0, ign 7c0
psycho0: bus range 0-1, PCI bus 0
psycho0: dvma map c0000000-dfffffff
pci0 at psycho0
ebus0 at pci0 dev 12 function 0 "Sun RIO EBus" rev 0x01
"flashprom" at ebus0 addr 0-fffff not configured
clock1 at ebus0 addr 0-1fff: mk48t59
ebus1 at pci0 dev 7 function 0 "Acer Labs M1533 ISA" rev 0x00
"dma" at ebus1 addr 0-ffff ivec 0x2a not configured
power0 at ebus1 addr 800-82f ivec 0x20
com0 at ebus1 addr 3f8-3ff ivec 0x2b: ns16550a, 16 byte fifo
com0: console
com1 at ebus1 addr 2e8-2ef ivec 0x2b: ns16550a, 16 byte fifo
alipm0 at pci0 dev 3 function 0 "Acer Labs M7101 Power" rev 0x00: 223KHz clock
iic0 at alipm0
"max1617" at alipm0 addr 0x18 skipped due to alipm0 bugs
"scm001" at alipm0 addr 0x20 skipped due to alipm0 bugs
spdmem0 at iic0 addr 0x50: 256MB SDRAM ECC PC133CL2
spdmem1 at iic0 addr 0x51: 256MB SDRAM ECC PC133CL2
gem0 at pci0 dev 12 function 1 "Sun ERI" rev 0x01: ivec 0x7c6, address 
00:03:ba:18:88:69
ukphy0 at gem0 phy 1: Generic IEEE 802.3u media interface, rev. 1: OUI 
0x0010dd, model 0x0002
"Sun FireWire" rev 0x01 at pci0 dev 12 function 2 not configured
ohci0 at pci0 dev 12 function 3 "Sun USB" rev 0x01: ivec 0x7e4, version 1.0, 
legacy support
autri0 at pci0 dev 8 function 0 "Acer Labs M5451 Audio" rev 0x01: ivec 0x7e3
ac97: codec id 0x41445348 (Analog Devices AD1881A)
ac97: codec features headphone, Analog Devices Phat Stereo
audio0 at autri0
midi0 at autri0: <4DWAVE MIDI UART>
pciide0 at pci0 dev 13 function 0 "Acer Labs M5229 UDMA IDE" rev 0xc3: DMA, 
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide0: using ivec 0x7cc for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: <ST320011A>
wd0: 16-sector PIO, LBA, 19092MB, 39102336 sectors
atapiscsi0 at pciide0 channel 0 drive 1
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <PIONEER, 16X DVD-ROM, 1.21> removable
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
cd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 4
pciide0: channel 1 disabled (no drives)
ppb0 at pci0 dev 5 function 0 "DEC 21152" rev 0x03
pci1 at ppb0 bus 1
machfb0 at pci0 dev 19 function 0 "ATI Rage XL" rev 0x27
machfb0: ATY,RageXL, 1152x900
wsdisplay0 at machfb0 mux 1
wsdisplay0: screen 0 added (std, sun emulation)
usb0 at ohci0: USB revision 1.0
uhub0 at usb0 configuration 1 interface 0 "Sun OHCI root hub" rev 1.00/1.00 
addr 1
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
bootpath: /pci@1f,0/ide@d,0/disk@0,0
root on wd0a (fe9737a4d2d976cf.a) swap on wd0b dump on wd0b
panic: ffs_read: type 0
Stopped at      db_enter+0x8:   nop
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
* 12509  82056      0         0x1          0    0  init
ffs_read(40010e99a18, 197b700, 186fba8, ffffffffffffffff, 197b700, 0) at ffs_re
ad+0x314
VOP_READ(4000106a820, 40010e99ca8, 197b700, 40001091f20, 0, 8157e33780) at VOP_
READ+0x44
vn_read(40001045980, 40010e99ca8, 0, 8157e3c324, 0, 0) at vn_read+0x7c
dofilereadv(4000105e510, 3, 40010e99ca8, 400, 40010e99df0, ffffffffffffffff) at
 dofilereadv+0x8c
sys_read(4000105e510, 40010e99db0, 197b700, 1797bd8, 10cc560, d) at sys_read+0x
5c
syscall(40010e99ed0, 403, 8157e346a8, 8157e346ac, 0, 0) at syscall+0x32c
syscall_setup(3, 838cea9400, 400, 8426c11f80, 0, 838cea8000) at syscall_setup+0
x134
https://www.openbsd.org/ddb.html describes the minimum info required in bug
reports.  Insufficient info makes it difficult to find and fix bugs.


===============
ddb> show uvm
Current UVM status:
  pagesize=8192 (0x2000), pagemask=0x1fff, pageshift=13
  62329 VM pages: 58 active, 0 inactive, 1 wired, 61382 free (7672 zero)
  min  10% (25) anon, 10% (25) vnode, 5% (12) vtext
  freemin=2077, free-target=2769, inactive-target=0, wired-max=20776
  faults=146, traps=75, intrs=343, ctxswitch=140 fpuswitch=0
  softint=0, syscalls=75, kmapent=13
  fault counts:
    noram=0, noanon=0, noamap=0, pgwait=0, pgrele=0
    ok relocks(total)=29(29), anget(retries)=12(0), amapcopy=22
    neighbor anon/obj pg=2/11, gets(lock/unlock)=40/29
    cases: anon=7, anoncow=5, obj=38, prcopy=2, przero=22
  daemon and swap counts:
    woke=0, revs=0, scans=0, obscans=0, anscans=0
    busy=0, freed=0, reactivate=0, deactivate=0
    pageouts=0, pending=0, nswget=0
    nswapdev=1
    swpages=98342, swpginuse=0, swpgonly=0 paging=0
  kernel pointers:
    objs(kern)=0x1c2f408



===============
ddb> show bcstats
Current Buffer Cache status:
numbufs 29 busymapped 0, delwri 0
kvaslots 1558 avail kva slots 1558
bufpages 57, dmapages 57, dirtypages 0
pendingreads 0, pendingwrites 0
highflips 0, highflops 0, dmaflips 0

Reply via email to