From patchwork Fri Nov 7 08:23:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 40377 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5DCA9240F7 for ; Fri, 7 Nov 2014 08:24:08 +0000 (UTC) Received: by mail-la0-f69.google.com with SMTP id q1sf2674485lam.8 for ; Fri, 07 Nov 2014 00:24:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:mime-version:in-reply-to:references :date:message-id:subject:from:to:cc:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=PnLogW5AAQ2AFiWSEJ2hJOKnvOSHxBmIwGaN79igylw=; b=MypHnUMffsRiwshRj0QCJIEGHqOCrwg+NaivsGi7FVOzsAnnUYc89PGipJW6eSVKAh mjS/UecZqRlt8K5V+2OvRXOMs9mlLGcaK7f0qYXqPmi3f8juXLSWa1e3olK+fhmqcaQz fqQqqkYtBT7vtXgL0KaqcXjj8og6Gb8vG9guzgc47GetUXajz2fIMwoFSZCiBmfrRnMy IQgFwj048qGrzQgB+sBSSDMHm0vVoWkcHQyZhse/b+EObWlDNRZV8ZKJdpDCnf0grQP/ Yh+5Eqd0PrWFBk2sh8fKR4hpI50Ib2GawDNtrldYwVh9gTZirWIru4xL/wjwRRkvgSU7 YQiw== X-Gm-Message-State: ALoCoQljSPzKycxG4+ogyQcHZjrechkYaPRMy9ui5YqfaiB09V/1aTA1dYSYQdcywlEIS35c/HgH X-Received: by 10.180.94.3 with SMTP id cy3mr371795wib.7.1415348647373; Fri, 07 Nov 2014 00:24:07 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.121.72 with SMTP id li8ls192115lab.101.gmail; Fri, 07 Nov 2014 00:24:07 -0800 (PST) X-Received: by 10.152.42.212 with SMTP id q20mr10086254lal.10.1415348647047; Fri, 07 Nov 2014 00:24:07 -0800 (PST) Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com. [209.85.217.179]) by mx.google.com with ESMTPS id w5si14158239lae.80.2014.11.07.00.24.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 07 Nov 2014 00:24:06 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.179 as permitted sender) client-ip=209.85.217.179; Received: by mail-lb0-f179.google.com with SMTP id l4so2298836lbv.10 for ; Fri, 07 Nov 2014 00:24:06 -0800 (PST) X-Received: by 10.152.42.226 with SMTP id r2mr9780467lal.29.1415348646855; Fri, 07 Nov 2014 00:24:06 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.184.201 with SMTP id ew9csp164518lbc; Fri, 7 Nov 2014 00:24:05 -0800 (PST) X-Received: by 10.66.176.39 with SMTP id cf7mr10252361pac.93.1415348645099; Fri, 07 Nov 2014 00:24:05 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id iu5si8207496pbc.243.2014.11.07.00.24.04 for ; Fri, 07 Nov 2014 00:24:05 -0800 (PST) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751401AbaKGIYB (ORCPT + 25 others); Fri, 7 Nov 2014 03:24:01 -0500 Received: from mail-la0-f52.google.com ([209.85.215.52]:33784 "EHLO mail-la0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750962AbaKGIX6 (ORCPT ); Fri, 7 Nov 2014 03:23:58 -0500 Received: by mail-la0-f52.google.com with SMTP id pv20so4062950lab.11 for ; Fri, 07 Nov 2014 00:23:57 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.112.131.33 with SMTP id oj1mr770762lbb.97.1415348636927; Fri, 07 Nov 2014 00:23:56 -0800 (PST) Received: by 10.112.84.67 with HTTP; Fri, 7 Nov 2014 00:23:56 -0800 (PST) In-Reply-To: <20141107081344.GC24745@yliu-dev.sh.intel.com> References: <20141107054741.GB30507@yliu-dev.sh.intel.com> <20141107073720.GB24745@yliu-dev.sh.intel.com> <20141107081344.GC24745@yliu-dev.sh.intel.com> Date: Fri, 7 Nov 2014 09:23:56 +0100 Message-ID: Subject: Re: [LKP] [dmi] PANIC: early exception 0e rip 10:ffffffff81899e6b error 9 cr2 ffffffffff240000 From: Ard Biesheuvel To: Yuanhan Liu Cc: LKP , Matt Fleming , Leif Lindholm , LKML Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ard.biesheuvel@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.179 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , On 7 November 2014 09:13, Yuanhan Liu wrote: > On Fri, Nov 07, 2014 at 08:44:40AM +0100, Ard Biesheuvel wrote: >> On 7 November 2014 08:37, Yuanhan Liu wrote: >> > On Fri, Nov 07, 2014 at 08:17:36AM +0100, Ard Biesheuvel wrote: >> >> On 7 November 2014 06:47, LKP wrote: >> >> > FYI, we noticed the below changes on >> >> > >> >> > https://git.linaro.org/people/ard.biesheuvel/linux-arm efi-for-3.19 >> >> > commit aacdce6e880894acb57d71dcb2e3fc61b4ed4e96 ("dmi: add support for SMBIOS 3.0 64-bit entry point") >> >> > >> >> > >> >> > +-----------------------+------------+------------+ >> >> > | | 2fa165a26c | aacdce6e88 | >> >> > +-----------------------+------------+------------+ >> >> > | boot_successes | 20 | 10 | >> >> > | early-boot-hang | 1 | | >> >> > | boot_failures | 0 | 5 | >> >> > | PANIC:early_exception | 0 | 5 | >> >> > +-----------------------+------------+------------+ >> >> > >> >> > >> >> > [ 0.000000] BIOS-e820: [mem 0x0000000100000000-0x000000036fffffff] usable >> >> > [ 0.000000] bootconsole [earlyser0] enabled >> >> > [ 0.000000] NX (Execute Disable) protection: active >> >> > PANIC: early exception 0e rip 10:ffffffff81899e6b error 9 cr2 ffffffffff240000 >> >> > [ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 3.18.0-rc2-gc5221e6 #1 >> >> > [ 0.000000] 0000000000000000 ffffffff82203d30 ffffffff819f0a6e 00000000000003f8 >> >> > [ 0.000000] ffffffffff240000 ffffffff82203e18 ffffffff823701b0 ffffffff82511401 >> >> > [ 0.000000] 0000000000000000 0000000000000ba3 0000000000000000 ffffffffff240000 >> >> > [ 0.000000] Call Trace: >> >> > [ 0.000000] [] dump_stack+0x4e/0x68 >> >> > [ 0.000000] [] early_idt_handler+0x90/0xb7 >> >> > [ 0.000000] [] ? dmi_save_one_device+0x81/0x81 >> >> > [ 0.000000] [] ? dmi_table+0x3f/0x94 >> >> > [ 0.000000] [] ? dmi_table+0x16/0x94 >> >> > [ 0.000000] [] ? dmi_save_one_device+0x81/0x81 >> >> > [ 0.000000] [] ? dmi_save_one_device+0x81/0x81 >> >> > [ 0.000000] [] dmi_walk_early+0x44/0x69 >> >> > [ 0.000000] [] dmi_present+0x180/0x1ff >> >> > [ 0.000000] [] dmi_scan_machine+0x144/0x191 >> >> > [ 0.000000] [] ? loglevel+0x31/0x31 >> >> > [ 0.000000] [] setup_arch+0x490/0xc73 >> >> > [ 0.000000] [] ? printk+0x4d/0x4f >> >> > [ 0.000000] [] start_kernel+0x9c/0x43f >> >> > [ 0.000000] [] ? early_idt_handlers+0x120/0x120 >> >> > [ 0.000000] [] x86_64_start_reservations+0x2a/0x2c >> >> > [ 0.000000] [] x86_64_start_kernel+0x13b/0x14a >> >> > [ 0.000000] RIP 0x4 >> >> > >> >> >> >> This is most puzzling. Could anyone decode the exception? >> >> This looks like the non-EFI path through dmi_scan_machine(), which >> >> calls dmi_present() /after/ calling dmi_smbios3_present(), which >> >> apparently has not found the _SM3_ header tag. Or could the call stack >> >> be inaccurate? >> >> >> >> Anyway, it would be good to know the exact type of the platform, >> > >> > It's a Nehalem-EP machine, wht 16 CPU and 12G memory. >> > >> >> and >> >> perhaps we could find out if there is an inadvertent _SM3_ tag >> >> somewhere in the 0xF0000 - 0xFFFFF range? >> > >> > Sorry, how? >> > >> >> That's not a brand new machine, so I suppose there wouldn't be a >> SMBIOS 3.0 header lurking in there. >> >> Anyway, if you are in a position to try things, could you apply this >> >> --- a/drivers/firmware/dmi_scan.c >> +++ b/drivers/firmware/dmi_scan.c >> @@ -617,7 +617,7 @@ void __init dmi_scan_machine(void) >> memset(buf, 0, 16); >> for (q = p; q < p + 0x10000; q += 16) { >> memcpy_fromio(buf + 16, q, 16); >> - if (!dmi_smbios3_present(buf) || !dmi_present(buf)) { >> + if (!dmi_present(buf)) { >> dmi_available = 1; >> dmi_early_unmap(p, 0x10000); >> goto out; >> >> and try again? > > kernel boots perfectly with this patch applied. > > --yliu > Thank you! Very useful to know Sorry to keep you busy, but could you please apply this on top of the previous patch dmi_early_unmap(p, 0x10000); and check if there is any output? Thanks again, Ard. --- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ --- a/drivers/firmware/dmi_scan.c +++ b/drivers/firmware/dmi_scan.c @@ -617,6 +617,8 @@ void __init dmi_scan_machine(void) memset(buf, 0, 16); for (q = p; q < p + 0x10000; q += 16) { memcpy_fromio(buf + 16, q, 16); + if (memcmp(buf, "_SM3_", 5) == 0) + pr_warn("DMI: Ignoring SMBIOS 3.0 header at %p\n", buf); if (!dmi_present(buf)) { dmi_available = 1;