From owner-freebsd-current@FreeBSD.ORG Mon Jun 9 18:09:22 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6F96FA4F; Mon, 9 Jun 2014 18:09:22 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49036216A; Mon, 9 Jun 2014 18:09:22 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 20703B94A; Mon, 9 Jun 2014 14:09:21 -0400 (EDT) From: John Baldwin To: Edward Tomasz =?utf-8?q?Napiera=C5=82a?= Subject: Re: "CPU0: local APIC error 0x40" Date: Mon, 9 Jun 2014 13:36:25 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.4-CBSD-20140415; KDE/4.5.5; amd64; ; ) References: <201406041036.37413.jhb@freebsd.org> <20140607084739.GB1086@brick.home> In-Reply-To: <20140607084739.GB1086@brick.home> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201406091336.25294.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Mon, 09 Jun 2014 14:09:21 -0400 (EDT) Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2014 18:09:22 -0000 On Saturday, June 07, 2014 4:47:39 am Edward Tomasz Napiera=C5=82a wrote: > On 0604T1036, John Baldwin wrote: > > On Monday, June 02, 2014 5:32:13 pm Edward Tomasz Napiera=C5=82a wrote: > > > Some machines, including ThinkPad T61, emit the following error messa= ge > > > early during boot: > > >=20 > > > CPU0: local APIC error 0x40 > > >=20 > > > The message itself doesn't seem to be much of a problem. However, > > > every once in a while booting hangs just before that line. I've trac= ked > > > that down to call to AcpiHwWritePort() at > > > sys/contrib/dev/acpica/components/hardware/hwacpi.c:117: > > >=20 > > > switch (Mode) > > > { > > > case ACPI_SYS_MODE_ACPI: > > >=20 > > > /* BIOS should have disabled ALL fixed and GP events */ > > >=20 > > > Status =3D AcpiHwWritePort (AcpiGbl_FADT.SmiCommand, > > > (UINT32) AcpiGbl_FADT.AcpiEnable, 8); > > >=20 > > > Any idea what might be going on? > >=20 > > This is probably triggering an SMI# to enter SMM mode where your BIOS d= oes=20 > > God-knows-what but apparently triggers one of the local APIC local inte= rrupts=20 > > while it is configured with an invalid vector (e.g. 0). >=20 > Is there anything that can be done to fix it? (Note that fixing the > suspend/resume seems to have also fixed the occasional hang on boot, > but perhaps it's because I don't need to boot this thing so often now.) Likely not. This is actually the magic command to tell the BIOS that the OS is ACPI-aware and to ask the BIOS to enable ACPI support. It can do all so= rts of things and is completely outside of OS control while it runs. The local APIC thing is logged when the OS gains control again, but it's harmless. =2D-=20 John Baldwin