Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp309598imj; Thu, 7 Feb 2019 04:48:49 -0800 (PST) X-Google-Smtp-Source: AHgI3IZMr818NzOPWrHoRUqX5Vyx6k125MOSSuK+JRfetYM7ev2qSdTgGTIyAhjioWWKAy726kOh X-Received: by 2002:a17:902:45:: with SMTP id 63mr15802695pla.272.1549543729455; Thu, 07 Feb 2019 04:48:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549543729; cv=none; d=google.com; s=arc-20160816; b=eoR5tzfRH652bttGzqo6Cgooabvo/SMJYaUlB5pPAWjpm1D/7i8qteSpkevTRdiH8V vwckJTSUTDQjz0llNStVnzYBBjgcEsD1o4VN/03jGOhdvG7x0LUhNGWtwP76RVaq5J3N gxLWwWWG+ohH+3y18xgWiAkWZvd7rMOaoDQpDPqMVvZvpw4ugZ01xdYdZCe5hxmDxAIC FU61oVSdUcywp1JiQHQWUFkZVvUOX09fohHJZ3w0TcBEaKj1Xblg7ZCLr70ELHYRTcu2 dpYALdAne6qLk4Ho9VvigDbWhpaK11MerAcqY4fkE8NVsO+/NCfJvUv04Ge05YOeFsie gqsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=/OGPETBgSg3lGPQfvw/FgydajDi+f0UltHKPmekrzTw=; b=YB9kIYxB/8/a3YCkzI3QVZw8gIBN6j6GQw8MkAT2nl98dMj+bZoCIZs6PUHZmnbRBA Dnb6CGadt5dkI+4H1xtxmugZVwqkgl6PTYCmJcjBZYu+ukiYm55SpsbLJYnGWpkEUvMQ Q5B937Lj2EGwtcPlWt3nGAlWmcev/DBQVTV5/bAD7sd7AMQk+MM2w1pUkFaPMUwzboQU m6sXnSfr6adWpHhxEJFTSOWToyCRkALALzZbA9yDr/rqFGD4Octs5jAnPPl4pXnuKoCy JqPFNXXONYeYaGgoskneiGjs00YixDkEczwIj11AdOD2X8dQrOh0TyQTsPyidY/6iAny zBwg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si6489714plk.296.2019.02.07.04.48.33; Thu, 07 Feb 2019 04:48:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727260AbfBGMrX (ORCPT + 99 others); Thu, 7 Feb 2019 07:47:23 -0500 Received: from ozlabs.org ([203.11.71.1]:46035 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727151AbfBGMqy (ORCPT ); Thu, 7 Feb 2019 07:46:54 -0500 Received: by ozlabs.org (Postfix, from userid 1034) id 43wJ3c4m5Qz9s4V; Thu, 7 Feb 2019 23:46:52 +1100 (AEDT) From: Michael Ellerman To: linuxppc-dev@ozlabs.org Cc: akpm@linux-foundation.org, tj@kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, dyoung@redhat.com, sergey.senozhatsky@gmail.com, pmladek@suse.com Subject: [PATCH v3 3/7] powerpc/64: Add logical PVR to the dump stack arch description Date: Thu, 7 Feb 2019 23:46:31 +1100 Message-Id: <20190207124635.3885-3-mpe@ellerman.id.au> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190207124635.3885-1-mpe@ellerman.id.au> References: <20190207124635.3885-1-mpe@ellerman.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If we detect a logical PVR add that to the dump stack arch description, which is printed in case of an oops. eg: Hardware name: ... lpvr:0xf000004 Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/prom.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c index ea2c3498067d..38a90097469a 100644 --- a/arch/powerpc/kernel/prom.c +++ b/arch/powerpc/kernel/prom.c @@ -371,8 +371,10 @@ static int __init early_init_dt_scan_cpus(unsigned long node, */ if (!dt_cpu_ftrs_in_use()) { prop = of_get_flat_dt_prop(node, "cpu-version", NULL); - if (prop && (be32_to_cpup(prop) & 0xff000000) == 0x0f000000) + if (prop && (be32_to_cpup(prop) & 0xff000000) == 0x0f000000) { identify_cpu(0, be32_to_cpup(prop)); + dump_stack_add_arch_desc("lpvr:0x%04x", be32_to_cpup(prop)); + } check_cpu_feature_properties(node); check_cpu_pa_features(node); -- 2.20.1