>Number:         167393
>Category:       amd64
>Synopsis:       MacBook4,1 hangs on SMP boot
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-amd64
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 28 17:10:04 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Dave Vasilevsky
>Release:        9.0-RELEASE
>Organization:
>Environment:
FreeBSD anzio 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC 2012  
   [email protected]:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
Kernel hangs early in boot just after printing "ACPI APIC Table: <APPLE 
Apple00>", and a few seconds later starts printing something so quickly I can't 
read it. Boot process does not continue.

This sounds similar to bug 151385, but it's hard to tell if it's the same, and 
that bug is with an older kernel.

>How-To-Repeat:
Start up a MacBook4,1 from the FreeBSD-9.0-RELEASE-amd64-dvd1 DVD, observe that 
boot hangs and doesn't continue. Booting from an already installed FreeBSD 9.0 
system will also produce this bug.

>Fix:
Turning off SMP (setting kern.smp.disabled=1 in loader) causes the bug to go 
away. This is how I was able to test an installed system. Losing use of the 
second CPU is non-optimal, though.

Alternatively, patching sys/amd64/amd64/machdep.c to add MacBook4,1 to the 
LEGACY_USB_EN blacklist makes the bug go away too. I haven't noticed any 
negative side effects. However, if I boot using grub2 instead of loader(8), the 
bug still manifests, even with this patch.


Patch attached with submission follows:

--- sys/amd64/amd64/machdep.c.bak       2012-04-22 08:54:09.236707582 -0400
+++ sys/amd64/amd64/machdep.c   2012-04-22 08:54:33.477730871 -0400
@@ -225,6 +225,7 @@
        if (sysenv != NULL) {
                if (strncmp(sysenv, "MacBook1,1", 10) == 0 ||
                    strncmp(sysenv, "MacBook3,1", 10) == 0 ||
+                   strncmp(sysenv, "MacBook4,1", 10) == 0 ||
                    strncmp(sysenv, "MacBookPro1,1", 13) == 0 ||
                    strncmp(sysenv, "MacBookPro1,2", 13) == 0 ||
                    strncmp(sysenv, "MacBookPro3,1", 13) == 0 ||


>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to "[email protected]"

Reply via email to