Bug 225799 - HP P2-1310: System hangs on boot unless kern.smp.disabled=1 is set
Summary: HP P2-1310: System hangs on boot unless kern.smp.disabled=1 is set
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 11.1-RELEASE
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-10 05:45 UTC by tednolan
Modified: 2019-11-19 03:04 UTC (History)
1 user (show)

See Also:


Attachments
Boot log from successful boot (33.21 KB, text/plain)
2018-02-10 05:45 UTC, tednolan
no flags Details
Full screen at time of boot hang 11.2-RELEASE p4 (554.13 KB, image/jpeg)
2018-10-24 22:15 UTC, tednolan
no flags Details
Bottom screen at time of boot hang 11.2-RELEASE p4 (688.53 KB, image/jpeg)
2018-10-24 22:16 UTC, tednolan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description tednolan 2018-02-10 05:45:05 UTC
Created attachment 190474 [details]
Boot log from successful boot

System is an HP P2-1310 box with "AMD E2-1800 Accelerated Processor".

When running FreeBSD 11.1, the system will hang on boot unless "kern.smp.disabled=1" is in /boot/loader.conf or unless "Safe Mode" (which adds that option plus some others) is selected.

This bug seems like it is probably related to https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220277 (Bug 220277), however, compiling a kernel without EARLY_AP_STARTUP does not help, and applying the code patch to OsdSchedule.c from that patch does not help either.

The bug seems to exist in the current (as of a few days ago) 11 STABLE as well.

As I want to run vbox from time to time, I would really like all my cores to be usable..

Attached is /var/run/dmesg.boot from a successful boot (ie kern.smp.disabled=1 is set).
Comment 1 tednolan 2018-10-19 00:24:54 UTC
I just upgraded to 11.2-RELEASE-p4 and can confirm the bug is still present.  Has anyone looked at this?  I see other people with what I think is the same issue, but nobody with a solution.
Comment 2 Andriy Gapon freebsd_committer 2018-10-19 06:38:12 UTC
Can you take a picture of the last screenful of boot messages that you get if you re-enable SMP and also enable verbose boot option?
Comment 3 tednolan 2018-10-24 22:09:30 UTC
OK, I will attach two images.  One is of the whole screen at the time of lock, the second is zoomed a bit more on the final lines so they are more legible (but is an image of the same screen as the first).
Comment 4 tednolan 2018-10-24 22:15:36 UTC
Created attachment 198603 [details]
Full screen at time of boot hang 11.2-RELEASE p4
Comment 5 tednolan 2018-10-24 22:16:26 UTC
Created attachment 198604 [details]
Bottom screen at time of boot hang 11.2-RELEASE p4
Comment 6 tednolan 2019-11-19 03:04:35 UTC
This issue is fixed by R12.1 (and I presume 12.0, though I did not try it).

It still exists in 11.x up through 11.3.

I have upgraded to 12.1, so I can no longer easily test any proposed fixes.