From patchwork Tue Oct 28 12:24:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 39660 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E9BD124046 for ; Tue, 28 Oct 2014 12:26:54 +0000 (UTC) Received: by mail-la0-f72.google.com with SMTP id mc6sf374796lab.11 for ; Tue, 28 Oct 2014 05:26:53 -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: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=BXv1xbVEtVlyMuHY6rx+FeMqU136ZfnVNkizuYUH3Yg=; b=Vn2Lja+1R59sVeeUef3qeQWD0/8ukk4yODkL1Nv/f6NXMXcetDkUBWITM7fe6k+7T2 12l29AjKmAlRMI+ezcWaSZs2HXBlbANSYIYhd8908sqHRzidPDkuIrljFYkbBawB061p sUDrf9CBdmlfiyKt4VXx2Ih4Ex107OHG5Gml4hdvhshTLurjPsGY/cBoFryHtxf1F/c/ NXBtTHuTqT8RIgTQZ6fY06+6YWAYIGsE0dF5E02fZ1gDVFFf8BDWBlOjp4gpCWLvBKH7 EADv/0SGNVYjrTC8oCHvfV8Yqe3tMlwN2jeowXAPAH8kaq3TdJifbYtuyHXcWnbxWMpH DgwA== X-Gm-Message-State: ALoCoQlCVGIFa2h39RXn4bWik2icVSE/KgNBg8j9eH1BA9FUjpjlpolcFXIkoTAuuvmYjjQc2sgl X-Received: by 10.181.11.130 with SMTP id ei2mr694335wid.3.1414499213774; Tue, 28 Oct 2014 05:26:53 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.202.230 with SMTP id kl6ls55015lac.99.gmail; Tue, 28 Oct 2014 05:26:53 -0700 (PDT) X-Received: by 10.152.9.137 with SMTP id z9mr3759800laa.14.1414499213614; Tue, 28 Oct 2014 05:26:53 -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 e3si2327190lam.28.2014.10.28.05.26.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 28 Oct 2014 05:26:53 -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 hs14so495927lab.33 for ; Tue, 28 Oct 2014 05:26:53 -0700 (PDT) X-Received: by 10.152.116.102 with SMTP id jv6mr3692986lab.40.1414499213225; Tue, 28 Oct 2014 05:26:53 -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 c5csp468857lbz; Tue, 28 Oct 2014 05:26:52 -0700 (PDT) X-Received: by 10.66.181.233 with SMTP id dz9mr979706pac.103.1414499211681; Tue, 28 Oct 2014 05:26:51 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id f4si1178591pdn.154.2014.10.28.05.26.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Oct 2014 05:26:51 -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 1Xj5pT-00044C-4v; Tue, 28 Oct 2014 12:24:51 +0000 Received: from mail-wg0-f49.google.com ([74.125.82.49]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xj5pP-0003nZ-5i for linux-arm-kernel@lists.infradead.org; Tue, 28 Oct 2014 12:24:47 +0000 Received: by mail-wg0-f49.google.com with SMTP id x13so697169wgg.8 for ; Tue, 28 Oct 2014 05:24:23 -0700 (PDT) X-Received: by 10.194.190.19 with SMTP id gm19mr3910193wjc.4.1414499063612; Tue, 28 Oct 2014 05:24:23 -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 j8sm15230818wib.10.2014.10.28.05.24.21 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 28 Oct 2014 05:24:22 -0700 (PDT) From: Ard Biesheuvel To: will.deacon@arm.com, leif.lindholm@linaro.org, mark.rutland@arm.com, catalin.marinas@arm.com Subject: [PATCH] arm64/dt: add machine name to kernel call stack dump output Date: Tue, 28 Oct 2014 13:24:20 +0100 Message-Id: <1414499060-6350-1-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.8.3.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141028_052447_372251_0AC468EF X-CRM114-Status: GOOD ( 10.27 ) 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 [74.125.82.49 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [74.125.82.49 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders Cc: grant.likely@linaro.org, rob.herring@linaro.org, linux-arm-kernel@lists.infradead.org, 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 installs the machine name as recorded by setup_machine_fdt() as dump stack arch description. This results in the string to be included in call stack dumps, as is shown here: ... Bad mode in Synchronous Abort handler detected, code 0x84000005 CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.18.0-rc2+ #548 > Hardware name: linux,dummy-virt (DT) task: ffffffc07c870000 ti: ffffffc07c878000 task.ti: ffffffc07c878000 PC is at 0x0 ... Note that systems that support DMI/SMBIOS may override this later. Signed-off-by: Ard Biesheuvel --- arch/arm64/kernel/setup.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c index a6028490a28f..da5dd36e4353 100644 --- a/arch/arm64/kernel/setup.c +++ b/arch/arm64/kernel/setup.c @@ -312,6 +312,7 @@ static void __init setup_machine_fdt(phys_addr_t dt_phys) } machine_name = of_flat_dt_get_machine_name(); + dump_stack_set_arch_desc("%s (DT)", machine_name); } /*