On Thu, Dec 26, 2019 at 06:25:10PM +0100, Mark Kettenis wrote:
> Hmm, you really shouldn't end up there if you're booting by WWN.  I
> guess the
> 
>     bp->val[0] == sl->port_wwn
> 
> check is failing in your case.  What are the values of:
> 
>     bp->val[0]
>     sl->port_wwn
>     sl->node_wwn
> 
> in your case?
For the RAID volume sd0:

        bp->val[0] = 0x3aa32290d5dcd16c
        sl->port_wwn = 0
        sl->node_wwn = 0

See below a diff for debug printf() I use to look at thoes values.
Complete console log from OBP prompt to multiuser follows to to show the
boot process and debug output for all devices.

What I find odd is how 0aa32290d5dcd16c is the WWID of the RAID volume,
and yet all devices attaching to scsibus* including those not being part
of the RAID show the very same bp->val[0] of 3aa32290d5dcd16c.


Index: sparc64/autoconf.c
===================================================================
RCS file: /cvs/src/sys/arch/sparc64/sparc64/autoconf.c,v
retrieving revision 1.133
diff -u -p -r1.133 autoconf.c
--- sparc64/autoconf.c  15 Oct 2019 05:21:16 -0000      1.133
+++ sparc64/autoconf.c  26 Dec 2019 17:47:20 -0000
@@ -1455,6 +1455,24 @@ device_register(struct device *dev, void
                u_int lun = bp->val[1];
 
                if (bp->val[0] & 0xffffffff00000000 && bp->val[0] != -1) {
+                       printf("\n%s: RAID:\n"
+                           "\tbp->val[]: %lx, %lx, %lx\n"
+                           "\ttarget: %x, sl->target: %x, sl->adapter_target: 
%x\n"
+                           "\tlun: %x, sl->lun: %x\n"
+                           "\tpartition: '%c'\n"
+                           "\tsl->port_wwn: %llx\n"
+                           "\tsl->node_wwn: %llx\n"
+                           "\tsl->id->d_type: %d, sl->id: %s\n",
+                           __func__,
+                           bp->val[0], bp->val[1], bp->val[2],
+                           target, sl->target, sl->adapter_target,
+                           lun, sl->lun,
+                           (int)bp->val[2],
+                           sl->port_wwn,
+                           sl->node_wwn,
+                           (sl->id == NULL ? -1 : sl->id->d_type), (sl->id == 
NULL ? 0 : (const char *)(sl->id + 1))
+                           );
+
                        /* Fibre channel? */
                        if (bp->val[0] == sl->port_wwn && lun == sl->lun) {
                                nail_bootdev(dev, bp);


{0} ok boot
NOTICE: Entering OpenBoot.
NOTICE: Fetching Guest MD from HV.
NOTICE: Starting additional cpus.
NOTICE: Initializing LDC services.
NOTICE: Probing PCI devices.
NOTICE: Finished PCI probing.

SPARC T4-2, No Keyboard
Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.
OpenBoot 4.38.16, 64.0000 GB memory available, Serial #100254168.
Ethernet address 0:21:28:f9:c1:d8, Host ID: 85f9c1d8.



Boot device: raid  File and args: /bsd.debug
OpenBSD IEEE 1275 Bootblock 1.4
..>> OpenBSD BOOT 1.15

ERROR: /iscsi-hba: No iscsi-network-bootpath property
Booting /pci@400/pci@2/pci@0/pci@e/scsi@0/disk@w3aa32290d5dcd16c,0:a/bsd.debug
9688952@0x1000000+2184@0x193d778+196104@0x1c00000+3998200@0x1c2fe08
symbols @ 0xfe458400 165+625008+428736 start=0x1000000
[ using 1054936 bytes of bsd ELF symbol table ]
console is /virtual-devices@100/console@1
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2019 OpenBSD. All rights reserved.  https://www.OpenBSD.org

OpenBSD 6.6-current (GENERIC.MP) #31: Thu Dec 26 18:47:42 CET 2019
    kn@xxx:/sys/arch/sparc64/compile/GENERIC.MP
real mem = 68719476736 (65536MB)
avail mem = 67497238528 (64370MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root: SPARC T4-2
cpu0 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu1 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu2 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu3 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu4 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu5 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu6 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu7 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu8 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu9 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu10 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu11 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu12 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu13 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu14 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu15 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu16 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu17 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu18 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu19 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu20 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu21 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu22 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu23 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu24 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu25 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu26 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu27 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu28 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu29 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu30 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu31 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu32 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu33 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu34 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu35 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu36 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu37 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu38 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu39 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu40 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu41 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu42 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu43 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu44 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu45 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu46 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu47 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu48 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu49 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu50 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu51 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu52 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu53 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu54 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu55 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu56 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu57 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu58 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu59 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu60 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu61 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu62 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
cpu63 at mainbus0: SPARC-T4 (rev 0.0) @ 2847.862 MHz
"reboot-memory" at mainbus0 not configured
vbus0 at mainbus0
"flashprom" at vbus0 not configured
"tpm" at vbus0 not configured
cbus0 at vbus0
vldc0 at cbus0
vldcp0 at vldc0 chan 0x0: ivec 0x0, 0x1 channel "hvctl"
"ldom-primary" at vldc0 chan 0x1 not configured
"fmactl" at vldc0 chan 0x3 not configured
vldc1 at cbus0
"ldmfma" at vldc1 chan 0x4 not configured
vldc2 at cbus0
"spfma" at vldc2 chan 0x5 not configured
vldc3 at cbus0
vldcp1 at vldc3 chan 0x14: ivec 0x28, 0x29 channel "spds"
"sunvts" at vldc3 chan 0x6 not configured
"sunmc" at vldc3 chan 0x7 not configured
"explorer" at vldc3 chan 0x8 not configured
"flashupdate" at vldc3 chan 0x9 not configured
"ipmi" at vldc3 chan 0xb not configured
vldcp2 at vldc3 chan 0x18: ivec 0x30, 0x31 channel "ldom-guest01"
vldcp3 at vldc3 chan 0x1c: ivec 0x38, 0x39 channel "ldom-guest02"
"virtual-domain-service" at cbus0 not configured
vcc0 at cbus0
vcctty0 at vcc0 chan 0x17: ivec 0x2e, 0x2f domain "guest01"
vcctty1 at vcc0 chan 0x1b: ivec 0x36, 0x37 domain "guest02"
vds0 at cbus0
vdsp0 at vds0 chan 0x19: ivec 0x32, 0x33
vdsp1 at vds0 chan 0x1d: ivec 0x3a, 0x3b
vsw0 at cbus0
vnet0 at vsw0 chan 0x1a: ivec 0x34, 0x35
vnet1 at vsw0 chan 0x1e: ivec 0x3c, 0x3d
vrng0 at vbus0
vcons0 at vbus0: ivec 0x8011, console
vrtc0 at vbus0
vpci0 at mainbus0: bus 0 to 15, dvma map 80000000-ffffffff
pci0 at vpci0
ppb0 at pci0 dev 1 function 0 "Sun SPARC-T3/T4 PCIE" rev 0x01
pci1 at ppb0 bus 1
ppb1 at pci1 dev 0 function 0 "IDT 89HPES64H16G2" rev 0x02
pci2 at ppb1 bus 2
ppb2 at pci2 dev 0 function 0 "IDT 89HPES64H16G2" rev 0x02
pci3 at ppb2 bus 3
ppb3 at pci3 dev 0 function 0 "ASPEED Technology AST1150 PCI" rev 0x02
pci4 at ppb3 bus 4
"ASPEED Technology AST2000" rev 0x10 at pci4 dev 0 function 0 not configured
ppb4 at pci2 dev 4 function 0 "IDT 89HPES64H16G2" rev 0x02
pci5 at ppb4 bus 5
em0 at pci5 dev 0 function 0 "Intel 82576" rev 0x01: msi, address 
00:21:28:f9:c1:d8
em1 at pci5 dev 0 function 1 "Intel 82576" rev 0x01: msi, address 
00:21:28:f9:c1:d9
ppb5 at pci2 dev 8 function 0 "IDT 89HPES64H16G2" rev 0x02: msi
pci6 at ppb5 bus 6
ppb6 at pci2 dev 11 function 0 "IDT 89HPES64H16G2" rev 0x02
pci7 at ppb6 bus 7
ppb7 at pci7 dev 0 function 0 "PLX PEX 8112" rev 0xaa
pci8 at ppb7 bus 8
ohci0 at pci8 dev 0 function 0 "NEC USB" rev 0x43: ivec 0x1, version 1.0
ohci1 at pci8 dev 0 function 1 "NEC USB" rev 0x43: ivec 0x2, version 1.0
ehci0 at pci8 dev 0 function 2 "NEC USB" rev 0x04: ivec 0x3
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "NEC EHCI root hub" rev 2.00/1.00 
addr 1
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 configuration 1 interface 0 "NEC OHCI root hub" rev 1.00/1.00 
addr 1
usb2 at ohci1: USB revision 1.0
uhub2 at usb2 configuration 1 interface 0 "NEC OHCI root hub" rev 1.00/1.00 
addr 1
ppb8 at pci2 dev 12 function 0 "IDT 89HPES64H16G2" rev 0x02: msi
pci9 at ppb8 bus 9
ppb9 at pci0 dev 2 function 0 "Sun SPARC-T3/T4 PCIE" rev 0x01
pci10 at ppb9 bus 10
ppb10 at pci10 dev 0 function 0 "IDT 89HPES64H16G2" rev 0x02
pci11 at ppb10 bus 11
ppb11 at pci11 dev 0 function 0 "IDT 89HPES64H16G2" rev 0x02: msi
pci12 at ppb11 bus 12
ppb12 at pci11 dev 4 function 0 "IDT 89HPES64H16G2" rev 0x02: msi
pci13 at ppb12 bus 13
ppb13 at pci11 dev 8 function 0 "IDT 89HPES64H16G2" rev 0x02: msi
pci14 at ppb13 bus 14
ppb14 at pci11 dev 14 function 0 "IDT 89HPES64H16G2" rev 0x02
pci15 at ppb14 bus 15
mpii0 at pci15 dev 0 function 0 "Symbios Logic SAS2008" rev 0x03: msi
mpii0: Solana On-Board, firmware 9.0.0.0 IR, MPI 2.0
scsibus1 at mpii0: 834 targets
sd0 at scsibus1 targ 0 lun 0: <LSI, Logical Volume, 3000> 
naa.600508e0000000006cd1dcd59022a30a
device_register: RAID:
        bp->val[]: 3aa32290d5dcd16c, 0, 0
        target: d5dcd16c, sl->target: 0, sl->adapter_target: ffff
        lun: 0, sl->lun: 0
        partition: ''
        sl->port_wwn: 0
        sl->node_wwn: 0
        sl->id->d_type: 1, sl->id: `

sd0: 713824MB, 512 bytes/sector, 1461911552 sectors
vpci1 at mainbus0: bus 0 to 10, dvma map 80000000-ffffffff
pci16 at vpci1
ppb15 at pci16 dev 1 function 0 "Sun SPARC-T3/T4 PCIE" rev 0x01
pci17 at ppb15 bus 1
ppb16 at pci17 dev 0 function 0 "IDT 89HPES64H16G2" rev 0x02
pci18 at ppb16 bus 2
ppb17 at pci18 dev 0 function 0 "IDT 89HPES64H16G2" rev 0x02: msi
pci19 at ppb17 bus 3
vendor "Symbios Logic", unknown product 0x007e (class mass storage subclass 
SAS, rev 0x03) at pci19 dev 0 function 0 not configured
ppb18 at pci18 dev 5 function 0 "IDT 89HPES64H16G2" rev 0x02
pci20 at ppb18 bus 4
em2 at pci20 dev 0 function 0 "Intel 82576" rev 0x01: msi, address 
00:21:28:f9:c1:da
em3 at pci20 dev 0 function 1 "Intel 82576" rev 0x01: msi, address 
00:21:28:f9:c1:db
ppb19 at pci18 dev 6 function 0 "IDT 89HPES64H16G2" rev 0x02: msi
pci21 at ppb19 bus 5
ppb20 at pci16 dev 2 function 0 "Sun SPARC-T3/T4 PCIE" rev 0x01
pci22 at ppb20 bus 6
ppb21 at pci22 dev 0 function 0 "IDT 89HPES64H16G2" rev 0x02
pci23 at ppb21 bus 7
ppb22 at pci23 dev 0 function 0 "IDT 89HPES64H16G2" rev 0x02: msi
pci24 at ppb22 bus 8
ppb23 at pci23 dev 6 function 0 "IDT 89HPES64H16G2" rev 0x02: msi
pci25 at ppb23 bus 9
ppb24 at pci23 dev 10 function 0 "IDT 89HPES64H16G2" rev 0x02: msi
pci26 at ppb24 bus 10
"niu" at mainbus0 not configured
"niu" at mainbus0 not configured
"pci-performance-counters" at mainbus0 not configured
"pci-performance-counters" at mainbus0 not configured
sd1 at scsibus1 targ 5 lun 0: <ATA, CT1000MX500SSD1, 023> naa.500a0751e1ddbdec
device_register: RAID:
        bp->val[]: 3aa32290d5dcd16c, 0, 0
        target: d5dcd16c, sl->target: 5, sl->adapter_target: ffff
        lun: 0, sl->lun: 0
        partition: ''
        sl->port_wwn: 4433221103000000
        sl->node_wwn: 751500abdece1dd
        sl->id->d_type: 1, sl->id: P
Q

sd1: 953869MB, 512 bytes/sector, 1953525168 sectors
cd0 at scsibus1 targ 9 lun 0: <TEAC, DV-W28SS-R, 1.0C> removable
device_register: RAID:
        bp->val[]: 3aa32290d5dcd16c, 0, 0
        target: d5dcd16c, sl->target: 9, sl->adapter_target: ffff
        lun: 0, sl->lun: 0
        partition: ''
        sl->port_wwn: 4433221107000000
        sl->node_wwn: 0
        sl->id->d_type: -1, sl->id: (null)

uhub3 at uhub0 port 2 configuration 1 interface 0 "Cypress Semiconductor USB2 
Hub" rev 2.00/0.0b addr 2
umass0 at uhub3 port 2 configuration 1 interface 0 "Kingston DataTraveler 3.0" 
rev 2.10/1.00 addr 3
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, initiator 0
sd2 at scsibus2 targ 1 lun 0: <Kingston, DataTraveler 3.0, PMAP> removable 
serial.09511666BEB1D70E8472
device_register: RAID:
        bp->val[]: 3aa32290d5dcd16c, 0, 0
        target: d5dcd16c, sl->target: 1, sl->adapter_target: 0
        lun: 0, sl->lun: 0
        partition: ''
        sl->port_wwn: 0
        sl->node_wwn: 0
        sl->id->d_type: 4, sl->id: 09511666BEB1D70E8472

sd2: 29536MB, 512 bytes/sector, 60489728 sectors
uhub4 at uhub3 port 3 configuration 1 interface 0 "American Megatrends Inc. 
Generic Hub" rev 2.00/1.00 addr 4
umass1 at uhub4 port 2 configuration 1 interface 0 "American Megatrends Inc. 
Virtual Cdrom Device" rev 2.00/1.00 addr 5
umass1: using SCSI over Bulk-Only
scsibus3 at umass1: 2 targets, initiator 0
cd1 at scsibus3 targ 1 lun 0: <AMI, Virtual CDROM, 1.00> removable
device_register: RAID:
        bp->val[]: 3aa32290d5dcd16c, 0, 0
        target: d5dcd16c, sl->target: 1, sl->adapter_target: 0
        lun: 0, sl->lun: 0
        partition: ''
        sl->port_wwn: 0
        sl->node_wwn: 0
        sl->id->d_type: -1, sl->id: (null)

cdce0 at uhub4 port 3 configuration 2 interface 0 "SunMicro Virtual Eth Device" 
rev 2.00/1.00 addr 6
cdce0: address 02:21:28:57:47:17
uhidev0 at uhub3 port 4 configuration 1 interface 0 "American Megatrends Inc. 
Virtual Keyboard and Mouse" rev 1.10/1.00 addr 7
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd0 at ukbd0 mux 1
uhidev1 at uhub3 port 4 configuration 1 interface 1 "American Megatrends Inc. 
Virtual Keyboard and Mouse" rev 1.10/1.00 addr 7
uhidev1: iclass 3/1
ums0 at uhidev1: 3 buttons
wsmouse0 at ums0 mux 0
uhub5 at uhub0 port 4 configuration 1 interface 0 "Cypress Semiconductor USB2 
Hub" rev 2.00/0.0b addr 8
vscsi0 at root
scsibus4 at vscsi0: 256 targets
softraid0 at root
scsibus5 at softraid0: 256 targets
bootpath: /pci@400,0/pci@2,0/pci@0,0/pci@e,0/scsi@0,0/disk@3aa32290d5dcd16c,0
root device: sd0a
swap device (default sd0b):
root on sd0a swap on sd0b dump on sd0b
Automatic boot in progress: starting file system checks.
/dev/sd0a (5eb46f4312eeecb7.a): file system is clean; not checking
/dev/sd0k (5eb46f4312eeecb7.k): file system is clean; not checking
/dev/sd0f (5eb46f4312eeecb7.f): file system is clean; not checking
/dev/sd0g (5eb46f4312eeecb7.g): file system is clean; not checking
/dev/sd0h (5eb46f4312eeecb7.h): file system is clean; not checking
/dev/sd0j (5eb46f4312eeecb7.j): file system is clean; not checking
/dev/sd0i (5eb46f4312eeecb7.i): file system is clean; not checking
/dev/sd0e (5eb46f4312eeecb7.e): file system is clean; not checking
/dev/sd0l (5eb46f4312eeecb7.l): file system is clean; not checking
/dev/sd0m (5eb46f4312eeecb7.m): file system is clean; not checking
pf enabled
starting network
starting early daemons: syslogd pflogd ntpd.
starting RPC daemons:.
savecore: no core dump
clearing /tmp
kern.securelevel: 0 -> 1
creating runtime link editor directory cache.
preserving editor files.
starting network daemons: ldomd sshd smtpd.
starting local daemons: cron.
Thu Dec 26 18:54:01 CET 2019

OpenBSD/sparc64 (xxx) (console)

login:

Reply via email to