Re: Cannot boot neither use boot -c in computer with Ryzen 9

2023-08-29 Thread Stuart Henderson
On 2023-08-29, vtamara  wrote:
> Thaks for your answer
>
>> So .. if you have SATA disks or optical drives (that are not part of
>> the boot disk), you could try disconnecting those from the
>> motherboard.  Since you were able to install without problems, I think
>> you may be in this siutation (e.g. if you have NVME(4) storage).
>
> All the disks in this computer as sd.

sata, sas and nvme drives are all sd.




Re: Cannot boot neither use boot -c in computer with Ryzen 9

2023-08-29 Thread vtamara

Thaks for your answer


So .. if you have SATA disks or optical drives (that are not part of
the boot disk), you could try disconnecting those from the
motherboard.  Since you were able to install without problems, I think
you may be in this siutation (e.g. if you have NVME(4) storage).


All the disks in this computer as sd.


Note that it's not a fix in any shape or form.  The change only
reduces the time you have to wait for the system to complete booting.


You right, it reduced the time to install.  But it was very lengthy 
process (more than 3 hours).  After installing I couldn't boot because I 
didn't change the bsd kernel of the installed system and it was too 
slow, and I need to move and I will not have physical access to this 
computer in some months.


However I got the dmesg of the bsd.rd that I used to install, hope it 
helps:



OpenBSD 7.3-stable (RAMDISK_CD) #1: Mon Aug 28 14:56:33 -05 2023

vtam...@creo.nocheyniebla.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD

real mem = 33373458432 (31827MB)
avail mem = 32357994496 (30858MB)
random: good seed from bootblocks
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.5 @ 0x79aad000 (72 entries)
bios0: vendor American Megatrends Inc. version "0823" date 11/21/2022
bios0: ASUS ROG STRIX B650-A GAMING WIFI
acpi0 at bios0: ACPI 6.4Undefined scope: 
\\_SB_.PCI0.GPP7.UP00.DP40.UP00.DP68


acpi0: tables DSDT FACP SSDT SSDT IVRS SSDT SSDT FIDT MCFG HPET WDRT 
FPDT VFCT WPBT TPM2 SSDT CRAT CDIT SSDT SSDT SSDT SSDT WSMT APIC SSDT 
SSDT SSDT SSDT

acpihpet0 at acpi0: 14318180 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Ryzen 9 7950X 16-Core Processor, 4500.00 MHz, 19-61-02
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,PQM,AVX512F,AVX512DQ,RDSEED,ADX,SMAP,AVX512IFMA,CLFLUSHOPT,CLWB,AVX512CD,SHA,AVX512BW,AVX512VL,AVX512VBMI,UMIP,PKU,WAITPKG,L1DF,IBPB,IBRS,STIBP,SSBD,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu0: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 1MB 
64b/line 8-way L2 cache, 32MB 64b/line 16-way L3 cache

cpu0: apic clock running at 25MHz
cpu0: mwait min=64, max=64, C-substates=1.1, IBE
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 32 pa 0xfec0, version 21, 24 pins, can't 
remap
ioapic1 at mainbus0: apid 33 pa 0xfec01000, version 21, 32 pins, can't 
remap

acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (GPP3)
acpiprt2 at acpi0: bus -1 (GPP4)
acpiprt3 at acpi0: bus -1 (GPP5)
acpiprt4 at acpi0: bus -1 (GPP6)
acpiprt5 at acpi0: bus -1 (GPP9)
acpiprt6 at acpi0: bus -1 (GPPA)
acpiprt7 at acpi0: bus -1 (GPPB)
acpiprt8 at acpi0: bus -1 (GPPC)
acpiprt9 at acpi0: bus -1 (GPPD)
acpiprt10 at acpi0: bus -1 (GPPE)
acpiprt11 at acpi0: bus -1 (GPPF)
acpiprt12 at acpi0: bus -1 (GPPG)
acpiprt13 at acpi0: bus -1 (GPPH)
acpiprt14 at acpi0: bus 10 (GP17)
acpiprt15 at acpi0: bus -1 (GP18)
acpiprt16 at acpi0: bus 11 (GP19)
acpiprt17 at acpi0: bus -1 (GPP0)
acpiprt18 at acpi0: bus -1 (GPP1)
acpiprt19 at acpi0: bus -1 (GPP2)
acpiprt20 at acpi0: bus -1 (GPP8)
acpiprt21 at acpi0: bus 1 (GPP7)
acpiprt22 at acpi0: bus 2 (UP00)
acpiprt23 at acpi0: bus 3 (DP00)
acpiprt24 at acpi0: bus 4 (DP40)
acpiprt25 at acpi0: bus 5 (DP48)
acpiprt26 at acpi0: bus 6 (DP50)
acpiprt27 at acpi0: bus 7 (DP58)
acpipci0 at acpi0 PCI0: 0x0010 0x0011 0x
acpicmos0 at acpi0
"PNP0C0C" at acpi0 not configured
amdgpio0 at acpi0 GPIO uid 0 addr 0xfed81500/0x400 irq 7, 184 pins
"AMDI0052" at acpi0 not configured
dwiic0 at acpi0 I2CA addr 0xfedc2000/0x1000 irq 10
iic0 at dwiic0
"MSFT0101" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"ACPI0010" at acpi0 not configured
"ACPI0007" at acpi0 not configured

Re: Cannot boot neither use boot -c in computer with Ryzen 9

2023-08-27 Thread Paul de Weerd
On Sun, Aug 27, 2023 at 06:50:07AM -0500, vtamara wrote:
| You right,
| 
| The problem is with the time that it takes for certain operations
| with disk.  After long time the installation process continued and
| the keyboard worked for that.

So .. if you have SATA disks or optical drives (that are not part of
the boot disk), you could try disconnecting those from the
motherboard.  Since you were able to install without problems, I think
you may be in this siutation (e.g. if you have NVME(4) storage).

| I still cannot use the keyboard in UKC and although I bought a
| converter from USB to serial to try remote debugging with "boot> set
| tty com0" it didn't work.  The BIOS and the booting process of
| OpenBSD detect that the board has a com0 port but I don't see a
| physical connection for it.
| 
| 
| I will try to apply your patch and install and hopefully after I
| will send a dmesg.

Note that it's not a fix in any shape or form.  The change only
reduces the time you have to wait for the system to complete booting.
And you normally wouldn't have to wait for so long if it wasn't for
some problem with the AHCI(4) subsystem on your computer (whether it's
a bug in OpenBSD or a problem with the board is still unclear - but in
my case, devices behind ahci(4) work after a suspend/resume cycle, so
I'm guessing there's some (power management) issue with the ahci
device on these ASUS boards, but I'm mostly just guessing).

Paul

| Thanks a lot for your help Paul.
| 
| Blessings.
| 
| El 2023-08-26 01:42, Paul de Weerd escribió:
| > Hi,
| > 
| > Pretty sure it doesn't really stop, give it a couple of hours (really)
| > and see if it makes progress then.
| > 
| > My guess is, your system has SATA devices (disks or CD/DVD/BD)
| > connected to it.  If you're not booting from them, one thing you can
| > try in UKC is to `disable ahci` and see if that helps.
| > 
| > If it does, this patch will significantly speed up the boot process.
| > You will find your SATA devices don't work until such a time that you
| > suspend and resume.
| > 
| > Of course, I cannot be certain .. but at least that's the case on my
| > AMD Ryzen 7950X in an ASUS motherboard (different board though).  Very
| > curious if you see the same.  If you can arrange serial console, a
| > dmesg would be very useful.
| > 
| > Cheers,
| > 
| > Paul 'WEiRD' de Weerd
| > 
| > --
| > Index: sd.c
| > ===
| > RCS file: /cvs/src/sys/scsi/sd.c,v
| > retrieving revision 1.333
| > diff -u -p -r1.333 sd.c
| > --- sd.c23 Oct 2022 14:39:19 -  1.333
| > +++ sd.c26 Mar 2023 19:24:28 -
| > @@ -674,7 +674,7 @@ sdstart(struct scsi_xfer *xs)
| > read = ISSET(bp->b_flags, B_READ);
| > 
| > SET(xs->flags, (read ? SCSI_DATA_IN : SCSI_DATA_OUT));
| > -   xs->timeout = 6;
| > +   xs->timeout = 600;
| > xs->data = bp->b_data;
| > xs->datalen = bp->b_bcount;
| > xs->done = sd_buf_done;
| > --
| > 
| > On Fri, Aug 25, 2023 at 04:10:12AM -0500, vtamara wrote:
| > |
| > |
| > | Hi,
| > |
| > | I'm having issues booting 7.3 and current in a amd64computer with
| > | processor AMD Ryzen 9 7950X (
| > | https://www.amd.com/en/products/cpu/amd-ryzen-9-7950x ) and board
| > | ASUS ROG STRIX B650-A
| > 
(https://rog.asus.com/us/motherboards/rog-strix/rog-strix-b650-a-gaming-wifi-model/).
| > |
| > | The kernel detects the hardware but stops after the lines
| > |
| > | softraid0 at root
| > |
| > | scsibus3 at sofraid0: 256 targets
| > |
| > | (I'm attaching picture).
| > |
| > | If I try with "boot> boot -c" it presents the error message
| > |
| > | kbc: cmd word write error
| > |
| > | and in the prompt UKC> it doesn't allow to write.
| > |
| > | (Attaching picture)
| > |
| > | I'm considering booting with a serial console to try to disable some
| > | devices and diagnose why the normal boot process stops, however the
| > | board of this computer doesn't have serial ports.  Any suggestions
| > | on a USB to Serial adapter to use? Or how to debug under these
| > | circumstances?
| > |
| > | Blessings.
| > |
| > | --
| > | Dios, gracias por tu amor infinito.
| > | --
| > |   Vladimir Támara Patiño.  http://vtamara.pasosdeJesus.org/
| > |   http://www.pasosdejesus.org/dominio_publico_colombia.html
| > |
| > | --
| > | Dios, gracias por tu amor infinito.
| > | --
| > |   Vladimir Támara Patiño.  http://vtamara.pasosdeJesus.org/
| > |   http://www.pasosdejesus.org/dominio_publico_colombia.html
| 
| -- 
| Dios, gracias por tu amor infinito.
| --
|   Vladimir Támara Patiño.  http://vtamara.pasosdeJesus.org/
|   http://www.pasosdejesus.org/dominio_publico_colombia.html
| 

-- 
>[<++>-]<+++.>+++[<-->-]<.>+++[<+
+++>-]<.>++[<>-]<+.--.[-]
 

Re: Cannot boot neither use boot -c in computer with Ryzen 9

2023-08-27 Thread Stuart Henderson
On 2023-08-27, vtamara  wrote:
> I still cannot use the keyboard in UKC and although I bought a converter 
> from USB to serial to try remote debugging with "boot> set tty com0" it 
> didn't work.  The BIOS and the booting process of OpenBSD detect that 
> the board has a com0 port but I don't see a physical connection for it.

USB serial cannot be used as system console.

There may be a header on the motherboard to which you can attach a
socket for a serial port.

(some PCI serial cards _may_ work as system console, but you'll need to
determine the address of the io port, and use "machine comaddr" in the
boot loader to set it).




Re: Cannot boot neither use boot -c in computer with Ryzen 9

2023-08-27 Thread vtamara

You right,

The problem is with the time that it takes for certain operations with 
disk.  After long time the installation process continued and the 
keyboard worked for that.


I still cannot use the keyboard in UKC and although I bought a converter 
from USB to serial to try remote debugging with "boot> set tty com0" it 
didn't work.  The BIOS and the booting process of OpenBSD detect that 
the board has a com0 port but I don't see a physical connection for it.



I will try to apply your patch and install and hopefully after I will 
send a dmesg.



Thanks a lot for your help Paul.

Blessings.

El 2023-08-26 01:42, Paul de Weerd escribió:

Hi,

Pretty sure it doesn't really stop, give it a couple of hours (really)
and see if it makes progress then.

My guess is, your system has SATA devices (disks or CD/DVD/BD)
connected to it.  If you're not booting from them, one thing you can
try in UKC is to `disable ahci` and see if that helps.

If it does, this patch will significantly speed up the boot process.
You will find your SATA devices don't work until such a time that you
suspend and resume.

Of course, I cannot be certain .. but at least that's the case on my
AMD Ryzen 7950X in an ASUS motherboard (different board though).  Very
curious if you see the same.  If you can arrange serial console, a
dmesg would be very useful.

Cheers,

Paul 'WEiRD' de Weerd

--
Index: sd.c
===
RCS file: /cvs/src/sys/scsi/sd.c,v
retrieving revision 1.333
diff -u -p -r1.333 sd.c
--- sd.c23 Oct 2022 14:39:19 -  1.333
+++ sd.c26 Mar 2023 19:24:28 -
@@ -674,7 +674,7 @@ sdstart(struct scsi_xfer *xs)
read = ISSET(bp->b_flags, B_READ);

SET(xs->flags, (read ? SCSI_DATA_IN : SCSI_DATA_OUT));
-   xs->timeout = 6;
+   xs->timeout = 600;
xs->data = bp->b_data;
xs->datalen = bp->b_bcount;
xs->done = sd_buf_done;
--

On Fri, Aug 25, 2023 at 04:10:12AM -0500, vtamara wrote:
|
|
| Hi,
|
| I'm having issues booting 7.3 and current in a amd64computer with
| processor AMD Ryzen 9 7950X (
| https://www.amd.com/en/products/cpu/amd-ryzen-9-7950x ) and board
| ASUS ROG STRIX B650-A
(https://rog.asus.com/us/motherboards/rog-strix/rog-strix-b650-a-gaming-wifi-model/).
|
| The kernel detects the hardware but stops after the lines
|
| softraid0 at root
|
| scsibus3 at sofraid0: 256 targets
|
| (I'm attaching picture).
|
| If I try with "boot> boot -c" it presents the error message
|
| kbc: cmd word write error
|
| and in the prompt UKC> it doesn't allow to write.
|
| (Attaching picture)
|
| I'm considering booting with a serial console to try to disable some
| devices and diagnose why the normal boot process stops, however the
| board of this computer doesn't have serial ports.  Any suggestions
| on a USB to Serial adapter to use? Or how to debug under these
| circumstances?
|
| Blessings.
|
| --
| Dios, gracias por tu amor infinito.
| --
|   Vladimir Támara Patiño.  http://vtamara.pasosdeJesus.org/
|   http://www.pasosdejesus.org/dominio_publico_colombia.html
|
| --
| Dios, gracias por tu amor infinito.
| --
|   Vladimir Támara Patiño.  http://vtamara.pasosdeJesus.org/
|   http://www.pasosdejesus.org/dominio_publico_colombia.html


--
Dios, gracias por tu amor infinito.
--
  Vladimir Támara Patiño.  http://vtamara.pasosdeJesus.org/
  http://www.pasosdejesus.org/dominio_publico_colombia.html



Re: Cannot boot neither use boot -c in computer with Ryzen 9

2023-08-26 Thread Paul de Weerd
Hi,

Pretty sure it doesn't really stop, give it a couple of hours (really)
and see if it makes progress then.

My guess is, your system has SATA devices (disks or CD/DVD/BD)
connected to it.  If you're not booting from them, one thing you can
try in UKC is to `disable ahci` and see if that helps.

If it does, this patch will significantly speed up the boot process.
You will find your SATA devices don't work until such a time that you
suspend and resume.

Of course, I cannot be certain .. but at least that's the case on my
AMD Ryzen 7950X in an ASUS motherboard (different board though).  Very
curious if you see the same.  If you can arrange serial console, a
dmesg would be very useful.

Cheers,

Paul 'WEiRD' de Weerd

--
Index: sd.c
===
RCS file: /cvs/src/sys/scsi/sd.c,v
retrieving revision 1.333
diff -u -p -r1.333 sd.c
--- sd.c23 Oct 2022 14:39:19 -  1.333
+++ sd.c26 Mar 2023 19:24:28 -
@@ -674,7 +674,7 @@ sdstart(struct scsi_xfer *xs)
read = ISSET(bp->b_flags, B_READ);
 
SET(xs->flags, (read ? SCSI_DATA_IN : SCSI_DATA_OUT));
-   xs->timeout = 6;
+   xs->timeout = 600;
xs->data = bp->b_data;
xs->datalen = bp->b_bcount;
xs->done = sd_buf_done;
--

On Fri, Aug 25, 2023 at 04:10:12AM -0500, vtamara wrote:
| 
| 
| Hi,
| 
| I'm having issues booting 7.3 and current in a amd64computer with
| processor AMD Ryzen 9 7950X (
| https://www.amd.com/en/products/cpu/amd-ryzen-9-7950x ) and board
| ASUS ROG STRIX B650-A 
(https://rog.asus.com/us/motherboards/rog-strix/rog-strix-b650-a-gaming-wifi-model/).
| 
| The kernel detects the hardware but stops after the lines
| 
| softraid0 at root
| 
| scsibus3 at sofraid0: 256 targets
| 
| (I'm attaching picture).
| 
| If I try with "boot> boot -c" it presents the error message
| 
| kbc: cmd word write error
| 
| and in the prompt UKC> it doesn't allow to write.
| 
| (Attaching picture)
| 
| I'm considering booting with a serial console to try to disable some
| devices and diagnose why the normal boot process stops, however the
| board of this computer doesn't have serial ports.  Any suggestions
| on a USB to Serial adapter to use? Or how to debug under these
| circumstances?
| 
| Blessings.
| 
| -- 
| Dios, gracias por tu amor infinito.
| --
|   Vladimir Támara Patiño.  http://vtamara.pasosdeJesus.org/
|   http://www.pasosdejesus.org/dominio_publico_colombia.html
| 
| -- 
| Dios, gracias por tu amor infinito.
| --
|   Vladimir Támara Patiño.  http://vtamara.pasosdeJesus.org/
|   http://www.pasosdejesus.org/dominio_publico_colombia.html




-- 
>[<++>-]<+++.>+++[<-->-]<.>+++[<+
+++>-]<.>++[<>-]<+.--.[-]
 http://www.weirdnet.nl/