From patchwork Tue Oct 28 16:18:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 39685 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5C2A424026 for ; Tue, 28 Oct 2014 16:23:38 +0000 (UTC) Received: by mail-wi0-f199.google.com with SMTP id r20sf915319wiv.2 for ; Tue, 28 Oct 2014 09:23:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:cc:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:content-type:content-transfer-encoding; bh=NwLcFUiyjjIQ4LC/BMHtu0U6tx7QPygvvX+cHnVqC2k=; b=QHmh+3mnE9b7ZbJQhsbZO9aoDSlec+JPipsIHVwYy9UBmBwT0xx+1G2Zq6jMcSeuJ4 /IM7MskjEPvjISbCH5a1+h/TjfI1jHI715+L/IMN/oOFHN3/f57tjRQ0Orx5aZbVK6Lp URIWvhhFp5Fe63Q07DrlSU0dJqQPY2CuZU4CqQfj81svHtLUrtZ+YUtE29ZAyovy9uIQ VNuMKqC1ydnEF4b2vRtyZbveMzXmVVOObp8qxFmVdlx1YtAO7PTQZvX/SQ9FCX7g2VYL kFjcSFNC9CQgqJgorbEgLoTJvfIpQtYkmc/SPIfdy3nAYRa0YdX68y0xxP2QN6wUnCmV FCJg== X-Gm-Message-State: ALoCoQmAxLVu7Xe2AjgaWda4N0Jm+CGTkyKlfj+L2flCL9GkKX1Z1KzHwLAV9twOXbCCmB+rh50r X-Received: by 10.194.118.197 with SMTP id ko5mr813670wjb.2.1414513417588; Tue, 28 Oct 2014 09:23:37 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.88.80 with SMTP id be16ls83709lab.107.gmail; Tue, 28 Oct 2014 09:23:37 -0700 (PDT) X-Received: by 10.152.198.166 with SMTP id jd6mr5130186lac.81.1414513417168; Tue, 28 Oct 2014 09:23:37 -0700 (PDT) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id wt3si3288809lbb.44.2014.10.28.09.23.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 28 Oct 2014 09:23:37 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by mail-la0-f46.google.com with SMTP id hs14so957516lab.33 for ; Tue, 28 Oct 2014 09:23:36 -0700 (PDT) X-Received: by 10.112.97.135 with SMTP id ea7mr5252752lbb.46.1414513416928; Tue, 28 Oct 2014 09:23:36 -0700 (PDT) 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.84.229 with SMTP id c5csp510784lbz; Tue, 28 Oct 2014 09:23:35 -0700 (PDT) X-Received: by 10.66.191.232 with SMTP id hb8mr4438469pac.117.1414513413979; Tue, 28 Oct 2014 09:23:33 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id qx4si1735406pbb.103.2014.10.28.09.23.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Oct 2014 09:23:33 -0700 (PDT) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xj9Wt-0006sq-6n; Tue, 28 Oct 2014 16:21:55 +0000 Received: from mail-wi0-f182.google.com ([209.85.212.182]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xj9Ub-00046t-81 for linux-arm-kernel@lists.infradead.org; Tue, 28 Oct 2014 16:19:33 +0000 Received: by mail-wi0-f182.google.com with SMTP id d1so2118022wiv.3 for ; Tue, 28 Oct 2014 09:19:11 -0700 (PDT) X-Received: by 10.180.9.33 with SMTP id w1mr5240380wia.22.1414513151007; Tue, 28 Oct 2014 09:19:11 -0700 (PDT) Received: from ards-macbook-pro.local (cag06-7-83-153-85-71.fbx.proxad.net. [83.153.85.71]) by mx.google.com with ESMTPSA id wc7sm2357578wjc.8.2014.10.28.09.19.09 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 28 Oct 2014 09:19:10 -0700 (PDT) From: Ard Biesheuvel To: leif.lindholm@linaro.org, roy.franz@linaro.org, msalter@redhat.com, mark.rutland@arm.com, will.deacon@arm.com, catalin.marinas@arm.com, matt.fleming@intel.com, linux-efi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, dyoung@redhat.com, yi.li@linaro.org Subject: [PATCH v2 09/10] arm64: dmi: set DMI string as dump stack arch description Date: Tue, 28 Oct 2014 17:18:42 +0100 Message-Id: <1414513123-20400-10-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1414513123-20400-1-git-send-email-ard.biesheuvel@linaro.org> References: <1414513123-20400-1-git-send-email-ard.biesheuvel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141028_091933_500306_49C4DCB9 X-CRM114-Status: GOOD ( 11.05 ) X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.212.182 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.212.182 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders Cc: Ard Biesheuvel X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.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.215.46 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 This sets the DMI string, containing system type, serial number, firmware version etc. as dump stack arch description, so that oopses and other kernel stack dumps automatically have this information included, if available. Signed-off-by: Ard Biesheuvel --- arch/arm64/kernel/efi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/kernel/efi.c b/arch/arm64/kernel/efi.c index 9ae5e7918b8f..6fac253bc783 100644 --- a/arch/arm64/kernel/efi.c +++ b/arch/arm64/kernel/efi.c @@ -479,6 +479,8 @@ static int __init arm64_dmi_init(void) * itself, depends on dmi_scan_machine() having been called already. */ dmi_scan_machine(); + if (dmi_available) + dmi_set_dump_stack_arch_desc(); return 0; } core_initcall(arm64_dmi_init);