Re: OpenBSD on Dell Wyse 3040 N10D - Successful installation and possible problem with ACPI

2023-12-19 Thread Stuart Henderson
On 2023-12-18, Luca Di Gregorio  wrote:
> The system booted, but I saw that it stopped unexpectedly after
> some time (hours or minutes) without any apparent reason.
>
> dmesg said 'acpicpu0 ... bad value ...'
> (Unfortunately I don't have a copy of this dmesg).

Use sendbug as root to create a bug report including acpi tables.
(you may want to sendbug -P > somefile and copy that elsewhere if the
machine isn't setup for email). Preferably with an unmodified kernel
so that the dmesg is complete.

Try to get a copy of the full error message too.

> So, I added these lines in /etc/bsd.re-config, to disable ACPI drivers at
> boot:
> disable acpi
> disable acpitz
> disable acpitz*
> disable acpicpu
> disable acpicpu*
> disable acpibat
> disable acpibat*
> disable acpipwrres
> disable acpipwrres*
> disable acpiprt*

why all these, when you only had an issue with acpicpu?

(since acpi is involved in so much of running the system, often
including thermal controls, that's best avoided).

> I'm not skilled enough to go further in the investigation, hopefully
> someone more skilled than me will go on deeper and discover
> the exact issue causing the unexpected stops.

I don't think there's enough information yet for somebody who doesn't
have the hardware to do anything to help.




OpenBSD on Dell Wyse 3040 N10D - Successful installation and possible problem with ACPI

2023-12-18 Thread Luca Di Gregorio
I managed to install OpenBSD on Dell Wyse 3040.

I chose gpt (not mbr).
I edited the automatic partition scheme created by the installer
because the eMMC is only 8Gb.
Do not delete sd0i when resizing.
Disklabel is available below in this email.

After the installation of the components, ->before<- making all devices
nodes:
# !
# mkdir /mnt/boot
# mount /dev/sd0i /mnt/boot
# rm /mnt/boot/EFI <-- it is a file, a directory is expected instead
# mkdir /mnt/boot/EFI
# mkdir /mnt/boot/EFI/BOOT
# umount /mnt/boot
# exit

Go ahead making device nodes

The system booted, but I saw that it stopped unexpectedly after
some time (hours or minutes) without any apparent reason.

dmesg said 'acpicpu0 ... bad value ...'
(Unfortunately I don't have a copy of this dmesg).

So, I added these lines in /etc/bsd.re-config, to disable ACPI drivers at
boot:
disable acpi
disable acpitz
disable acpitz*
disable acpicpu
disable acpicpu*
disable acpibat
disable acpibat*
disable acpipwrres
disable acpipwrres*
disable acpiprt*

(Some lines are repeated with * because I don't know the exact syntax).

# echo "boot" > /etc/boot.conf
(I don't know why, but /bsd doesn't start after the default 5 sec timeout)

and rebooted.

It seems that now I don't have any unexpected stop.

I'm not skilled enough to go further in the investigation, hopefully
someone more skilled than me will go on deeper and discover
the exact issue causing the unexpected stops.





# fdisk sd0
Disk: sd0   Usable LBA: 34 to 15269854 [15269888 Sectors]
   #: type [   start: size ]

   0: EFI Sys  [  64:   532480 ]
   1: OpenBSD  [  532544: 14737311 ]




# disklabel -p g sd0
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: Hynix H8G4a
duid: b2427e536cde59f2
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 950
total sectors: 15269888 # total bytes: 7.3G
boundstart: 532544
boundend: 15269855

16 partitions:
#size   offset  fstype [fsize bsize   cpg]
  a: 6.8G  1060320  4.2BSD   2048 16384 12960 # /
  b: 0.3G   532544swap# none
  c: 7.3G0  unused
  i: 0.3G   64   MSDOS


# dmesg
OpenBSD 7.4 (GENERIC.MP) #2: Fri Dec  8 15:39:04 MST 2023
r...@syspatch-74-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/
GENERIC.MP
real mem = 2018394112 (1924MB)
avail mem = 1937539072 (1847MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.0 @ 0x7a9ee000 (55 entries)
bios0: vendor Dell Inc. version "1.2.1" date 05/24/2017
bios0: Dell Inc. Wyse 3040 Thin Client
efi0 at bios0: UEFI 2.4
efi0: American Megatrends rev 0x5000b
acpi0 at bios0: ACPI 5.0
acpi0: sleep states S0 S4 S5
acpi0: tables DSDT FACP APIC FPDT FIDT MCFG SSDT SSDT SSDT UEFI SSDT HPET
SSDT SSDT SSDT LPIT BCFG PRAM CSRT WDAT WDAT
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Atom(TM) x5-Z8350 CPU @ 1.44GHz, 480.02 MHz, 06-4c-04, patch
0411
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,NXE,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,TSC_ADJUST,SMEP,ERMS,MD_CLEAR,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN
cpu0: 24KB 64b/line 6-way D-cache, 32KB 64b/line 8-way I-cache, 1MB
64b/line 16-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 79MHz
cpu0: mwait min=64, max=64, C-substates=0.2, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Atom(TM) x5-Z8350 CPU @ 1.44GHz, 480.04 MHz, 06-4c-04, patch
0411
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,NXE,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,TSC_ADJUST,SMEP,ERMS,MD_CLEAR,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN
cpu1: 24KB 64b/line 6-way D-cache, 32KB 64b/line 8-way I-cache, 1MB
64b/line 16-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Atom(TM) x5-Z8350 CPU @ 1.44GHz, 480.04 MHz, 06-4c-04, patch
0411
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,NXE,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,TSC_ADJUST,SMEP,ER