From owner-freebsd-current@FreeBSD.ORG Sat Jun 7 08:47:44 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 EE439C10; Sat, 7 Jun 2014 08:47:44 +0000 (UTC) Received: from mail-wi0-x22b.google.com (mail-wi0-x22b.google.com [IPv6:2a00:1450:400c:c05::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5F3B32AD4; Sat, 7 Jun 2014 08:47:44 +0000 (UTC) Received: by mail-wi0-f171.google.com with SMTP id cc10so2066410wib.16 for ; Sat, 07 Jun 2014 01:47:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=aNTatJepZPBdCtg6PBDAnNHTNEUFfvuxZSs0Eoa5qCQ=; b=ofYlmrSQPNyUW+jMQPFvVV5b44k/lHuIu8HUfVnFqZ7Uu69cZorme7rRrtUrqEpFCW l7usXMxFcyi17RqASxRBv66b+u3W/ODPWMlVjT+HX+eGKVmgyFKARBd1ZPAeCtzKRrBI NPJZ4V3AyMxa3ipV+eOWjgjH/qNuhu550iCVteiXvk4Hybji5iDdHnQrdd+YWoR1cJ4v JPck0xTI/1g4Ulq932Ple1kgx0Ui64BhNUJ4DqRhRVRZ6FZTf4wczVsrKExULp7e6c50 xJ3SUrUI7nB4X5L9fxuaTtDMsQk+NSNhW4vMb1UgspYiaH5Wic5zmamHs/OD6Crx6e7I /bsw== X-Received: by 10.15.35.72 with SMTP id f48mr80163eev.13.1402130862641; Sat, 07 Jun 2014 01:47:42 -0700 (PDT) Received: from brick.home (adds100.neoplus.adsl.tpnet.pl. [79.184.70.100]) by mx.google.com with ESMTPSA id 4sm28836457eeu.16.2014.06.07.01.47.41 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 07 Jun 2014 01:47:42 -0700 (PDT) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Date: Sat, 7 Jun 2014 10:47:39 +0200 From: Edward Tomasz =?utf-8?Q?Napiera=C5=82a?= To: John Baldwin Subject: Re: "CPU0: local APIC error 0x40" Message-ID: <20140607084739.GB1086@brick.home> Mail-Followup-To: John Baldwin , freebsd-current@freebsd.org References: <201406041036.37413.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <201406041036.37413.jhb@freebsd.org> User-Agent: Mutt/1.5.23 (2014-03-12) 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: Sat, 07 Jun 2014 08:47:45 -0000 On 0604T1036, John Baldwin wrote: > On Monday, June 02, 2014 5:32:13 pm Edward Tomasz NapieraƂa wrote: > > Some machines, including ThinkPad T61, emit the following error message > > early during boot: > > > > CPU0: local APIC error 0x40 > > > > 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 tracked > > that down to call to AcpiHwWritePort() at > > sys/contrib/dev/acpica/components/hardware/hwacpi.c:117: > > > > switch (Mode) > > { > > case ACPI_SYS_MODE_ACPI: > > > > /* BIOS should have disabled ALL fixed and GP events */ > > > > Status = AcpiHwWritePort (AcpiGbl_FADT.SmiCommand, > > (UINT32) AcpiGbl_FADT.AcpiEnable, 8); > > > > Any idea what might be going on? > > This is probably triggering an SMI# to enter SMM mode where your BIOS does > God-knows-what but apparently triggers one of the local APIC local interrupts > while it is configured with an invalid vector (e.g. 0). 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.)