H4 fails to boot OpenBSD: ACPI/AML error with acpitz0

Post Reply
bconway
Posts: 3
Joined: Sat Jul 06, 2024 11:14 pm
languages_spoken: English
Has thanked: 0
Been thanked: 0
Contact:

H4 fails to boot OpenBSD: ACPI/AML error with acpitz0

Post by bconway »

Greetings. I've been happily running an H3 with OpenBSD for over a year and recently procured an H4. Installation (bsd.rd) is successful, but upon first boot with the bsd.mp kernel, I get a crash parsing ACPI, specifically acpitz0. BIOS is the latest 1.02 for netcard, and the same error occurs with 7.5-stable and -current.

Code: Select all

acpitz0 at acpi0 0xffff8000003a2708 cnt:01 stk:00 integer: 7f
Could not convert 1 to 0

0a50 Called: \_TZ_.TZ00._TMP
0a75 Called: \_TZ_.TZ00._TMP
panic: aml_die aml_convert:2086
Stopped at      db_enter+0x14:  popq    %rbp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
*     0      0      0     0x10000      0x200    0K swapper
db_enter(10,ffffffff82c91030,282,8,ffffffff8167f994,ffffffff82c91030) at db_en
er+0x14
panic(ffffffff82389405,ffffffff82389405,ffffffff823ab3ad,826,0,ffffffff8275aba0
) at panic+0xdd
aml_nodename(ffffffff823ab3ad,826,ffffffff823f7db8,ffffffff823ab3ad,0,ffff80000
03a2708) at aml_nodename
aml_convert(ffff8000003a2708,0,9294,ffff8000003a2708,6b98ff1f44ca4be6,9294) at a
ml_convert+0x6d9
aml_compare(ffff80000037d988,ffff8000003a2708,9294,ffff80000037d988,f5603bd8246
584c3,ffffffff823d6448) at aml_compare+0x32
aml_parse(ffff8000003a2188,69,ffff80000005fa96,ffff8000003a2188,72e8ff141ae4c51
7,ffffffff8239a325) at aml_parse+0x102c
aml_parse(ffff8000003a2688,54,0,ffff8000003a2688,72e8ff141ae49673,ffff800000346
a88) at aml_parse+0x3cc
aml_eval(0,ffff800000346b08,74,0,0,0) at aml_eval+0x338
aml_evalnode(ffff800000346aac,ffff800000346a88,0,0,ffffffff82c91568,ffff8000003
46aac) at aml_evalnode+0xb8
aml_evalinteger(ffff80000004b400,ffff800000345088,ffffffff8236377c,0,0,ffffffff
82c91610) at aml_evalinteger+0x5b
acpitz_gettempreading(ffff800000368c00,ffffffff8236377c,ae9ee097de03b540,ffffff
ff82c91653,ffff800000368c00,1) at acpitz_gettempreading+0x3b
acpitz_attach(ffff80000004b400,ffff800000368c00,ffffffff82c91728,ffff80000004b4
00,bfdb8d1e7d45a0a4,ffff80000004b400) at acpitz_attach+0x48f
config_attach(ffff80000004b400,ffffffff82779ec8,ffffffff82c91728,ffffffff82254b
90,a49457fefb5e551a,ffff800000345088) at config_attach+0x22b
acpi_add_device(ffff800000345088,ffff80000004b400,2eff694872a7ea3b,ffff80000004
b400,ffffffff82258920,ffff80000004b400) at acpi_add_device+0x142
end trace frame: 0xffffffff82c91940, count: 0
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{0}>
The code where the failure happens is easy to find, but the expected and actual behavior are above my pay grade:

https://github.com/openbsd/src/blob/29e ... dt.c#L2086

I sent a full report, including boot logs, over to the OpenBSD developers here, but no one has had a chance to look at it yet. Thread is here:

https://marc.info/?t=171954086200002

Anyone with firmware knowledge have any thoughts on whether this might be a BIOS problem versus a kernel problem?

Side note: OpenBSD has chosen to develop their own ACPI implementation, instead of importing Intel's ACPICA as used by many operating systems. This has been useful in finding differences and/or bugs on all sides (OS/firmware/hardware) in the past. Perhaps there would be benefit to including OpenBSD in Hardkernel's test suites.

Back on topic, all help is appreciated. I look forward to this board running as well as my H3!

bconway
Posts: 3
Joined: Sat Jul 06, 2024 11:14 pm
languages_spoken: English
Has thanked: 0
Been thanked: 0
Contact:

Re: H4 fails to boot OpenBSD: ACPI/AML error with acpitz0

Post by bconway »

Any ideas from the BIOS folks? I can disable acpitz0 and boot successfully, but an ACPI thermal zone seems like something I probably want to keep working.

User avatar
odroid
Site Admin
Posts: 42659
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 3758 times
Been thanked: 2123 times
Contact:

Re: H4 fails to boot OpenBSD: ACPI/AML error with acpitz0

Post by odroid »

We have no experience using a BSD-like OS, so we don't know where to start looking to find the cause.
We'll try installing OpenBSD, but honestly, we have no idea what part of ACPI in the BIOS code to look at.
I hope other experts can provide detailed information on debugging methods.

User avatar
mad_ady
Posts: 12102
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, N2L, H2, H3+, Go, Go Advance, M1, M1S
Location: Bucharest, Romania
Has thanked: 663 times
Been thanked: 1323 times
Contact:

Re: H4 fails to boot OpenBSD: ACPI/AML error with acpitz0

Post by mad_ady »

A while ago I had a Fujitsu laptop that spammed dmesg because of some errors in its dsdt. I was able to make it work by usig some kernel boot parameter to prevent it from reading the tables from BIOS (without affecting sleep/ACPI).
Maybe this helps: https://wiki.archlinux.org/title/DSDT

Edit: The parameter I used on linux was acpi_no_static_ssdt. Maybe BSD hs something similar...

bconway
Posts: 3
Joined: Sat Jul 06, 2024 11:14 pm
languages_spoken: English
Has thanked: 0
Been thanked: 0
Contact:

Re: H4 fails to boot OpenBSD: ACPI/AML error with acpitz0

Post by bconway »

Any insight on whether it is safe to disable ACPI thermal zones?

Post Reply

Return to “Issues”

Who is online

Users browsing this forum: No registered users and 4 guests