[Bug 268393] system always reboots once from a powered off state

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 24 Apr 2023 20:16:34 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268393

--- Comment #41 from Jonathan Vasquez <jon@xyinn.org> ---
Alright, I'm back and updated on the latest stable bios 1409. Unfortunately,
this did not fix the issue. But I have some very interesting information to
report.

1. I'm able to reproduce the error by booting from the FreeBSD 13.2 USB from a
cold state.
2. Booting from a Fedora 37 USB from a cold boot worked properly.
3. This is the interesting part................ If I boot from Fedora 37 from a
cold boot, and then I completely power off the machine, and then boot up
FreeBSD from a cold boot, the machine will _NOT_ crash. I tried this entire
cycle twice and both times it worked fine. Booting FreeBSD and then shutting it
down completely, and then starting it up again will cause the problem to arise.

This makes me think that there is a driver issue in either the FreeBSD start up
sequence, or most specifically, the shutdown sequence, where some flags on the
hardware are set to an invalid state, which causes FreeBSD to freak out during
a subsequent cold boot. The Linux side must be "correcting" this issue by
either clearing out some flags on the chip, or just overriding the flags
already on the chip with the correct ones in a way that doesn't cause a crash.

I've attached the Fedora 37 cold boot dmesg just in case it may provide
anything (it is just a normal dmesg, not a verbose one).

-- 
You are receiving this mail because:
You are the assignee for the bug.