From patchwork Wed Oct 22 14:21:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 39318 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 02FAE202DB for ; Wed, 22 Oct 2014 14:26:59 +0000 (UTC) Received: by mail-lb0-f199.google.com with SMTP id w7sf2054926lbi.6 for ; Wed, 22 Oct 2014 07:26:58 -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=9/kcdUfkqppG3MR8dMKHrMyOvsZBMPyKIkjNkq4giBo=; b=YPy7ndSp1pAAp9kLWFCH+KANIFm5q+DOg48MLa+yInKOLtGG7AAZrGpj8/B+qwP267 qJ21AJIcQJsnfUSjioxMyUU/3oLu6e/1Uppmm2TeurFmE2SbiC9n+xr8WVevxY+M45+h 9RdMjlxMSTRSHijRZ/rX1LNNLy4ikDA+1xk4SOrky+oWiXBl9vXKPCu/DV1pS4EFZ2yD lrbCYPtJjxvO7ULxheBPxuN0eXpzMHARg381PNPWdbhk+wr9ayEp94g1rfKG+9jnLH6O LTK+orT0ILKGuA0/x5TOkJ10ncESf6KXim8wXO9IiNTHiLqtKMgCnrV8YKbG859B6dsJ HTXA== X-Gm-Message-State: ALoCoQk9Vm1tfeUem+xZOmkjAExKIaJ/fEGSGHvuxZ8tuEJo8U9VQpJV0nDhUfmvE+ZhTPVHz2Nk X-Received: by 10.112.225.135 with SMTP id rk7mr6594532lbc.6.1413988018735; Wed, 22 Oct 2014 07:26:58 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.230 with SMTP id m6ls219229laa.89.gmail; Wed, 22 Oct 2014 07:26:58 -0700 (PDT) X-Received: by 10.112.97.236 with SMTP id ed12mr42754406lbb.10.1413988018552; Wed, 22 Oct 2014 07:26:58 -0700 (PDT) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com. [209.85.217.175]) by mx.google.com with ESMTPS id p6si18089391lap.91.2014.10.22.07.26.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 22 Oct 2014 07:26:58 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by mail-lb0-f175.google.com with SMTP id u10so2899114lbd.20 for ; Wed, 22 Oct 2014 07:26:58 -0700 (PDT) X-Received: by 10.112.77.74 with SMTP id q10mr33450457lbw.66.1413988018458; Wed, 22 Oct 2014 07:26:58 -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 c5csp82619lbz; Wed, 22 Oct 2014 07:26:57 -0700 (PDT) X-Received: by 10.70.92.134 with SMTP id cm6mr1993380pdb.167.1413988017010; Wed, 22 Oct 2014 07:26:57 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id zp2si14448139pac.35.2014.10.22.07.26.56 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Oct 2014 07:26:57 -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 1Xgwqe-0002vq-It; Wed, 22 Oct 2014 14:25:12 +0000 Received: from mail-wi0-f176.google.com ([209.85.212.176]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XgwoP-00009z-Uh for linux-arm-kernel@lists.infradead.org; Wed, 22 Oct 2014 14:22:54 +0000 Received: by mail-wi0-f176.google.com with SMTP id n3so1041786wiv.9 for ; Wed, 22 Oct 2014 07:22:31 -0700 (PDT) X-Received: by 10.180.221.36 with SMTP id qb4mr6072926wic.46.1413987751659; Wed, 22 Oct 2014 07:22:31 -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 10sm19063250wjs.21.2014.10.22.07.22.30 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 22 Oct 2014 07:22:30 -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 10/10] arm64: dmi: set DMI string as dump stack arch description Date: Wed, 22 Oct 2014 16:21:53 +0200 Message-Id: <1413987713-30528-11-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1413987713-30528-1-git-send-email-ard.biesheuvel@linaro.org> References: <1413987713-30528-1-git-send-email-ard.biesheuvel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141022_072254_161129_5D211082 X-CRM114-Status: GOOD ( 10.38 ) 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.176 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.212.176 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.217.175 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 0e9da0067ef2..baab9344a32b 100644 --- a/arch/arm64/kernel/efi.c +++ b/arch/arm64/kernel/efi.c @@ -477,6 +477,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);