Hi George,

does any of those errors tell you something?

...
cpu1: 10MB 128b/line 8-way L3 cache[  126.324667899,3] OPAL: CPU not active in 
OPAL !
 failed to start, error -14
...
opal0: idle psscr 300332
[  126.331347066,3] OPAL: CPU not active in OPAL !
opal0: failed to idle pir 13, error -14
[  126.331405980,3] OPAL: CPU not active in OPAL !
opal0: failed to idle pir 14, error -14
[  126.331460755,3] OPAL: CPU not active in OPAL !
opal0: failed to idle pir 15, error -14
...

Would you know if there is something that I could/should try
to sort it out?

***complete serial console output***:

SIGTERM received, booting...
[   23.128396] kexec_core: Starting new kernel
>> OpenBSD/powerpc64 BOOT 0.2
probing disks
available root devices: sd0
boot> 
booting sd0a:/bsd
Hello, World!
[ using 11730888 bytes of initrd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2023 OpenBSD. All rights reserved.  https://www.OpenBSD.org

OpenBSD 7.3-stable (CUSTOM.MP) #0: Fri Apr 14 15:07:31 CEST 2023
    r...@raptor.engelweg.com:/usr/src/sys/arch/powerpc64/compile/CUSTOM.MP
real mem  = 137438953472 (131072MB)
avail mem = 130711871488 (124656MB)
random: good seed from bootblocks
mainbus0 at root: T2P9S01 REV 1.01
cpu0 at mainbus0 pir 4: IBM POWER9 2.3, 2700 MHz
cpu0: 32KB 128b/line 8-way L1 I-cache, 32KB 128b/line 8-way L1 D-cache
cpu0: 512KB 128b/line 8-way L2 cache
cpu0: 10MB 128b/line 8-way L3 cache
cpu1 at mainbus0 pir c: IBM POWER9 2.3, 2700 MHz
cpu1: 32KB 128b/line 8-way L1 I-cache, 32KB 128b/line 8-way L1 D-cache
cpu1: 512KB 128b/line 8-way L2 cache
cpu1: 10MB 128b/line 8-way L3 cache[  126.324667899,3] OPAL: CPU not active in 
OPAL !
 failed to start, error -14
cpu2 at mainbus0 pir 14: IBM POWER9 2.3, 2700 MHz
cpu2: 32KB 128b/line 8-way L1 I-cache, 32KB 128b/line 8-way L1 D-cache
cpu2: 512KB 128b/line 8-way L2 cache
cpu2: 10MB 128b/line 8-way L3 cache
cpu3 at mainbus0 pir 1c: IBM POWER9 2.3, 2700 MHz
cpu3: 32KB 128b/line 8-way L1 I-cache, 32KB 128b/line 8-way L1 D-cache
cpu3: 512KB 128b/line 8-way L2 cache
cpu3: 10MB 128b/line 8-way L3 cache
cpu4 at mainbus0 pir 804: IBM POWER9 2.3, 2700 MHz
cpu4: 32KB 128b/line 8-way L1 I-cache, 32KB 128b/line 8-way L1 D-cache
cpu4: 512KB 128b/line 8-way L2 cache
cpu4: 10MB 128b/line 8-way L3 cache
cpu5 at mainbus0 pir 80c: IBM POWER9 2.3, 2700 MHz
cpu5: 32KB 128b/line 8-way L1 I-cache, 32KB 128b/line 8-way L1 D-cache
cpu5: 512KB 128b/line 8-way L2 cache
cpu5: 10MB 128b/line 8-way L3 cache
cpu6 at mainbus0 pir 824: IBM POWER9 2.3, 2700 MHz
cpu6: 32KB 128b/line 8-way L1 I-cache, 32KB 128b/line 8-way L1 D-cache
cpu6: 512KB 128b/line 8-way L2 cache
cpu6: 10MB 128b/line 8-way L3 cache
cpu7 at mainbus0 pir 82c: IBM POWER9 2.3, 2700 MHz
cpu7: 32KB 128b/line 8-way L1 I-cache, 32KB 128b/line 8-way L1 D-cache
cpu7: 512KB 128b/line 8-way L2 cache
cpu7: 10MB 128b/line 8-way L3 cache
"bmc" at mainbus0 not configured
"ibm,firmware-versions" at mainbus0 not configured
"ibm,hostboot" at mainbus0 not configured
opal0 at mainbus0: skiboot-9858186
opal0: idle psscr 300332
[  126.331347066,3] OPAL: CPU not active in OPAL !
opal0: failed to idle pir 13, error -14
[  126.331405980,3] OPAL: CPU not active in OPAL !
opal0: failed to idle pir 14, error -14
[  126.331460755,3] OPAL: CPU not active in OPAL !
opal0: failed to idle pir 15, error -14
opalcons0 at opal0: console
opalsens0 at opal0: "core-temp"
opalsens1 at opal0: "core-temp"
opalsens2 at opal0: "core-temp"
opalsens3 at opal0: "core-temp"
opalsens4 at opal0: "core-temp"
opalsens5 at opal0: "core-temp"
opalsens6 at opal0: "core-temp"
opalsens7 at opal0: "mem-temp"
opalsens8 at opal0: "mem-temp"
opalsens9 at opal0: "mem-temp"
opalsens10 at opal0: "mem-temp"
opalsens11 at opal0: "mem-temp"
opalsens12 at opal0: "mem-temp"
opalsens13 at opal0: "mem-temp"
opalsens14 at opal0: "mem-temp"
opalsens15 at opal0: "mem-temp"
opalsens16 at opal0: "mem-temp"
opalsens17 at opal0: "mem-temp"
opalsens18 at opal0: "mem-temp"
opalsens19 at opal0: "mem-temp"
opalsens20 at opal0: "mem-temp"
opalsens21 at opal0: "mem-temp"
opalsens22 at opal0: "mem-temp"
opalsens23 at opal0: "mem-temp"
opalsens24 at opal0: "mem-temp"
opalsens25 at opal0: "mem-temp"
opalsens26 at opal0: "mem-temp"
opalsens27 at opal0: "mem-temp"
opalsens28 at opal0: "mem-temp"
opalsens29 at opal0: "mem-temp"
opalsens30 at opal0: "mem-temp"
opalsens31 at opal0: "mem-temp"
opalsens32 at opal0: "mem-temp"
opalsens33 at opal0: "mem-temp"
opalsens34 at opal0: "mem-temp"
opalsens35 at opal0: "mem-temp"
opalsens36 at opal0: "mem-temp"
opalsens37 at opal0: "mem-temp"
opalsens38 at opal0: "mem-temp"
opalsens39 at opal0: "proc-energy"
opalsens40 at opal0: "proc-energy"
opalsens41 at opal0: "proc-energy"
opalsens42 at opal0: "proc-energy"
opalsens43 at opal0: "proc-energy"
opalsens44 at opal0: "proc-in"
opalsens45 at opal0: "proc-in"
opalsens46 at opal0: "proc-in"
opalsens47 at opal0: "proc-in"
opalsens48 at opal0: "proc-power"
opalsens49 at opal0: "proc-power"
opalsens50 at opal0: "proc-power"
opalsens51 at opal0: "proc-power"
opalsens52 at opal0: "proc-power"
opalsens53 at opal0: "proc-temp"
opalsens54 at opal0: "proc-temp"
opalsens55 at opal0: "vrm-curr"
opalsens56 at opal0: "vrm-curr"
opalsens57 at opal0: "vrm-curr"
opalsens58 at opal0: "vrm-curr"
opalsens59 at opal0: "vrm-in"
opalsens60 at opal0: "vrm-in"
opalsens61 at opal0: "vrm-in"
opalsens62 at opal0: "vrm-in"
opalsens63 at opal0: "vrm-temp"
opalsens64 at opal0: "vrm-temp"
ipmi0 at opal0: version 2.0 interface OPAL
"ibm,pcie-slots" at mainbus0 not configured
"ibm,secureboot" at mainbus0 not configured
"imc-counters" at mainbus0 not configured
xics0 at mainbus0
xive0 at mainbus0
"ipl-params" at mainbus0 not configured
"lpcm-opb" at mainbus0 not configured
phb0 at mainbus0: chip 0x0
pci0 at phb0
ppb0 at pci0 dev 0 function 0 "IBM POWER9 Host" rev 0x00
pci1 at ppb0 bus 1
radeondrm0 at pci1 dev 0 function 0 "ATI Radeon HD 5450" rev 0x00
drm0 at radeondrm0
radeondrm0: msi
phb1 at mainbus0: chip 0x0
pci2 at phb1
ppb1 at pci2 dev 0 function 0 "IBM POWER9 Host" rev 0x00
pci3 at ppb1 bus 1
nvme0 at pci3 dev 0 function 0 "Samsung PM9A1 NVMe" rev 0x00: msix, NVMe 1.3
nvme0: Samsung 980 PRO with Heatsink 2TB, firmware 3B2QGXA7, serial 
S6WRNJ0RA24719K
scsibus0 at nvme0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <NVMe, Samsung 980 PRO, 3B2Q>
sd0: 1907729MB, 512 bytes/sector, 3907029168 sectors
phb2 at mainbus0: chip 0x0
pci4 at phb2
ppb2 at pci4 dev 0 function 0 "IBM POWER9 Host" rev 0x00
pci5 at ppb2 bus 1
phb3 at mainbus0: chip 0x0
pci6 at phb3
ppb3 at pci6 dev 0 function 0 "IBM POWER9 Host" rev 0x00
pci7 at ppb3 bus 1
xhci0 at pci7 dev 0 function 0 "TI xHCI" rev 0x02: msi, xHCI 0.96
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "TI xHCI root hub" rev 3.00/1.00 addr 
1
phb4 at mainbus0: chip 0x0
pci8 at phb4
ppb4 at pci8 dev 0 function 0 "IBM POWER9 Host" rev 0x00
pci9 at ppb4 bus 1
bge0 at pci9 dev 0 function 0 "Broadcom BCM5719" rev 0x00, BCM5719 A1 
(0x5719001), APE firmware NCSI 0.6.0.18: msi, address 2c:09:4d:00:08:cb
brgphy0 at bge0 phy 1: BCM5719C 10/100/1000baseT PHY, rev. 0
bge1 at pci9 dev 0 function 1 "Broadcom BCM5719" rev 0x00, BCM5719 A1 
(0x5719001), APE firmware NCSI 0.6.0.18: msi, address 2c:09:4d:00:08:cc
brgphy1 at bge1 phy 2: BCM5719C 10/100/1000baseT PHY, rev. 0
phb5 at mainbus0: chip 0x0
pci10 at phb5
ppb5 at pci10 dev 0 function 0 "IBM POWER9 Host" rev 0x00
pci11 at ppb5 bus 1
ppb6 at pci11 dev 0 function 0 "ASPEED Technology AST1150 PCI" rev 0x04
pci12 at ppb6 bus 2
astfb0 at pci12 dev 0 function 0 "ASPEED Technology AST2000" rev 0x41: can't 
map framebuffer
phb6 at mainbus0: chip 0x8
pci13 at phb6
ppb7 at pci13 dev 0 function 0 "IBM POWER9 Host" rev 0x00
pci14 at ppb7 bus 1
phb7 at mainbus0: chip 0x8
pci15 at phb7
ppb8 at pci15 dev 0 function 0 "IBM POWER9 Host" rev 0x00
pci16 at ppb8 bus 1
phb8 at mainbus0: chip 0x8
pci17 at phb8
ppb9 at pci17 dev 0 function 0 "IBM POWER9 Host" rev 0x00
pci18 at ppb9 bus 1
phb9 at mainbus0: chip 0x8
pci19 at phb9
ppb10 at pci19 dev 0 function 0 "IBM POWER9 Host" rev 0x00
pci20 at ppb10 bus 1
"psi" at mainbus0 not configured
"psi" at mainbus0 not configured
"vas" at mainbus0 not configured
"vas" at mainbus0 not configured
"vpd" at mainbus0 not configured
"xscom" at mainbus0 not configured
"xscom" at mainbus0 not configured
uhub1 at uhub0 port 3 configuration 1 interface 0 "Aspeed USB Virtual Hub" rev 
2.00/1.00 addr 2
uhidev0 at uhub1 port 1 configuration 1 interface 0 "OpenBMC virtual_input" rev 
2.00/1.00 addr 3
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd0 at ukbd0 mux 1
uhidev1 at uhub1 port 1 configuration 1 interface 1 "OpenBMC virtual_input" rev 
2.00/1.00 addr 3
uhidev1: iclass 3/1
ums0 at uhidev1: 3 buttons
wsmouse0 at ums0 mux 0
uhub2 at uhub0 port 4 configuration 1 interface 0 "Genesys Logic USB2.0 Hub" 
rev 2.00/32.98 addr 4
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on sd0a (2ba37c8f5f16a5ad.a) swap on sd0b dump on sd0b
radeondrm0: CEDAR
uhub1: illegal enable change, port 1
radeondrm0: 1920x1080, 32bpp
wsdisplay0 at radeondrm0 mux 1
wskbd0: connecting to wsdisplay0
wsdisplay0: screen 0-5 added (std, vt100 emulation)
Automatic boot in progress: starting file system checks.
/dev/sd0a (2ba37c8f5f16a5ad.a): file system is clean; not checking
/dev/sd0l (2ba37c8f5f16a5ad.l): file system is clean; not checking
/dev/sd0d (2ba37c8f5f16a5ad.d): file system is clean; not checking
/dev/sd0f (2ba37c8f5f16a5ad.f): file system is clean; not checking
/dev/sd0g (2ba37c8f5f16a5ad.g): file system is clean; not checking
/dev/sd0h (2ba37c8f5f16a5ad.h): file system is clean; not checking
/dev/sd0k (2ba37c8f5f16a5ad.k): file system is clean; not checking
/dev/sd0j (2ba37c8f5f16a5ad.j): file system is clean; not checking
/dev/sd0e (2ba37c8f5f16a5ad.e): file system is clean; not checking
pfctl: DIOCADDRULE: Operation not supported by device
pf enabled
starting network
reordering libraries: done.
pfctl: DIOCADDRULE: Operation not supported by device
starting early daemons: syslogd pflogd ntpd.
starting RPC daemons:.
savecore: /bsd: _dumplo not in namelist
checking quotas: done.
clearing /tmp
kern.securelevel: 0 -> 1
creating runtime link editor directory cache.
preserving editor files.
starting network daemons: sshd smtpd sndiod.
starting local daemons: cron.
Sat Apr 15 09:02:03 CEST 2023

OpenBSD/powerpc64 (raptor.engelweg.com) (console)

login:




------- Original Message -------
On Friday, April 14th, 2023 at 3:49 PM, Eduardo Pires 
<eduardo.pi...@protonmail.com> wrote:


> Hi George,
> 
> > I never saw this weird message "CPU not active in OPAL". You have the
> 
> same board as me (T2P9S01 REV 1.01, Talos II with single cpu socket).
> 
> I've the dual socket board with 2 02CY650 CPU (4 core each)
> 
> Thanks, I followed your instructions and it worked!
> 
> steps I did:
> - boot with the bsd.sp
> - got the 7.3 src
> - apply the diff
> - build custom.mp
> - "make install" it
> 
> result:
> ...
> OpenBSD 7.3-stable (CUSTOM.MP) #0: Fri Apr 14 15:07:31 CEST 2023
> 
> Welcome to OpenBSD: The proactively secure Unix-like operating system.
> ...
> 
> ps.: Sorry for taking long to reply, it was a good exercise for
> someone trying to get familiar how openbsd dev works,
> I was learning the steps to build the custom kernel, and
> was short on time.
> 
> regards,
> Ed
> 
> Sent with Proton Mail secure email.
> 
> 
> ------- Original Message -------
> On Monday, April 10th, 2023 at 5:44 AM, George Koehler kern...@gmail.com 
> wrote:
> 
> 
> 
> > Hi, can you boot a GENERIC.MP kernel with this diff, then show your
> > dmesg? Your bsd kernel was failing to start cpu1.
> > 
> > On Sun, 09 Apr 2023 19:35:25 +0000
> > Eduardo Pires eduardo.pi...@protonmail.com wrote:
> > 
> > > cpu1 at mainbus0 pir c: IBM POWER9 2.3, 2700 MHz
> > > cpu1: 32KB 128b/line 8-way L1 I-cache, 32KB 128b/line 8-way L1 D-cache
> > > cpu1: 512KB 128b/line 8-way L2 cache
> > > cpu1: 10MB 128b/line 8-way L3 cache[ 8556.053449291,3] OPAL: CPU not 
> > > active in OPAL !
> > > failed to identify
> > > cpu2 at mainbus0 pir 14: IBM POWER9 2.3, 2700 MHz
> > > ...
> > > opal0: idle psscr 300332
> > > [ 8566.060016341,3] OPAL: CPU not active in OPAL !
> > > [ 8566.060065723,3] OPAL: CPU not active in OPAL !
> > > [ 8566.060096675,3] OPAL: CPU not active in OPAL !
> > > opalcons0 at opal0
> > 
> > From the "failed to identify", I deduce that bsd failed to start cpu1,
> > then got stuck at "root on sd0a...", because we are waiting for cpu1
> > to finish starting. This diff checks for CPUF_PRESENT, so it might
> > skip waiting for cpu1.
> > 
> > To run this diff, you need to build a kernel, or ask me to send my
> > 7.3-current kernel to you. If you can boot the single-core bsd.sp,
> > you can use it to install a different kernel. After petitboot,
> > at OpenBSD's "boot>", type "boot bsd.sp".
> > 
> > --George
> > 
> > Index: arch/powerpc64/dev/opal.c
> > ===================================================================
> > RCS file: /cvs/src/sys/arch/powerpc64/dev/opal.c,v
> > retrieving revision 1.14
> > diff -u -p -r1.14 opal.c
> > --- arch/powerpc64/dev/opal.c 12 Oct 2022 13:39:50 -0000 1.14
> > +++ arch/powerpc64/dev/opal.c 10 Apr 2023 02:50:29 -0000
> > @@ -385,6 +385,7 @@ void
> > opal_found_stop_state(struct opal_softc *sc, uint64_t state)
> > {
> > #ifdef MULTIPROCESSOR
> > + int64_t error;
> > uint32_t pirs[8];
> > int i, len, node;
> > char buf[32];
> > @@ -411,9 +412,17 @@ opal_found_stop_state(struct opal_softc
> > pirs, sizeof(pirs));
> > if (len > 0 && len % 4 == 0) {
> > 
> > /* Skip i = 0, the first hardware thread. */
> > - for (i = 1; i < len / 4; i++)
> > - opal_start_cpu(pirs[i],
> > + for (i = 1; i < len / 4; i++) {
> > + error = opal_start_cpu(pirs[i],
> > (vaddr_t)cpu_hatch_and_stop);
> > + if (error != OPAL_SUCCESS) {
> > + printf("%s: failed to idle "
> > + "pir %u, error %lld\n",
> > + sc->sc_dev.dv_xname,
> > 
> > + (unsigned int)pirs[i],
> > + (long long)error);
> > + }
> > + }
> > }
> > }
> > #endif
> > Index: arch/powerpc64/powerpc64/cpu.c
> > ===================================================================
> > RCS file: /cvs/src/sys/arch/powerpc64/powerpc64/cpu.c,v
> > retrieving revision 1.25
> > diff -u -p -r1.25 cpu.c
> > --- arch/powerpc64/powerpc64/cpu.c 25 Jan 2023 09:53:53 -0000 1.25
> > +++ arch/powerpc64/powerpc64/cpu.c 10 Apr 2023 02:50:29 -0000
> > @@ -187,6 +187,7 @@ cpu_attach(struct device *parent, struct
> > 
> > #ifdef MULTIPROCESSOR
> > if (dev->dv_unit != 0) {
> > 
> > + int64_t error;
> > int timeout = 10000;
> > 
> > sched_init_cpu(ci);
> > @@ -195,16 +196,22 @@ cpu_attach(struct device *parent, struct
> > ci->ci_initstack_end = km_alloc(PAGE_SIZE, &kv_any, &kp_zero,
> > 
> > &kd_waitok) + PAGE_SIZE;
> > 
> > - opal_start_cpu(ci->ci_pir, (vaddr_t)cpu_hatch);
> > 
> > + error = opal_start_cpu(ci->ci_pir, (vaddr_t)cpu_hatch);
> > 
> > - atomic_setbits_int(&ci->ci_flags, CPUF_IDENTIFY);
> > 
> > - membar_sync();
> > -
> > - while ((ci->ci_flags & CPUF_IDENTIFIED) == 0 &&
> > 
> > - --timeout)
> > - delay(1000);
> > - if (timeout == 0) {
> > - printf(" failed to identify");
> > + if (error == OPAL_SUCCESS) {
> > + atomic_setbits_int(&ci->ci_flags, CPUF_IDENTIFY);
> > 
> > + membar_sync();
> > +
> > + while ((ci->ci_flags & CPUF_IDENTIFIED) == 0 &&
> > 
> > + --timeout)
> > + delay(1000);
> > + if (timeout == 0) {
> > + printf(" failed to identify");
> > + ci->ci_flags = 0;
> > 
> > + }
> > + } else {
> > + printf(" failed to start, error %lld",
> > + (long long)error);
> > ci->ci_flags = 0;
> > 
> > }
> > }
> > @@ -383,6 +390,8 @@ cpu_boot_secondary_processors(void)
> > IPL_IPI, ci, cpu_intr, ci, ci->ci_dev->dv_xname);
> > 
> > if (CPU_IS_PRIMARY(ci))
> > + continue;
> > + if ((ci->ci_flags & CPUF_PRESENT) == 0)
> > 
> > continue;
> > 
> > ci->ci_randseed = (arc4random() & 0x7fffffff) + 1;

Reply via email to