From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751686AbbEFXuP (ORCPT ); Wed, 6 May 2015 19:50:15 -0400 Received: from ozlabs.org ([103.22.144.67]:49994 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751582AbbEFXuL convert rfc822-to-8bit (ORCPT ); Wed, 6 May 2015 19:50:11 -0400 Message-ID: <1430956210.9675.1.camel@neuling.org> Subject: Re: [PATCH 2/6] powerpc: Add cpu name to dump stack arch description From: Michael Neuling To: Michael Ellerman Cc: linuxppc-dev@ozlabs.org, tj@kernel.org, Andrew Morton , linux-kernel@vger.kernel.org, Anton Blanchard Date: Thu, 07 May 2015 09:50:10 +1000 In-Reply-To: <1430824337-15339-2-git-send-email-mpe@ellerman.id.au> References: <1430824337-15339-1-git-send-email-mpe@ellerman.id.au> <1430824337-15339-2-git-send-email-mpe@ellerman.id.au> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2015-05-05 at 21:12 +1000, Michael Ellerman wrote: > As soon as we know the name of the cpu we're on, add it to the dump > stack arch description, which is printed in case of an oops. > > Signed-off-by: Michael Ellerman > --- > arch/powerpc/kernel/cputable.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/powerpc/kernel/cputable.c b/arch/powerpc/kernel/cputable.c > index 60262fdf35ba..cf5e0c9b80cb 100644 > --- a/arch/powerpc/kernel/cputable.c > +++ b/arch/powerpc/kernel/cputable.c > @@ -15,6 +15,7 @@ > #include > #include > #include > +#include > > #include > #include > @@ -2174,6 +2175,8 @@ static struct cpu_spec * __init setup_cpu_spec(unsigned long offset, > } > #endif /* CONFIG_PPC64 || CONFIG_BOOKE */ > > + dump_stack_add_arch_desc(t->cpu_name); > + Can we make this the PVR instead if the name? It gives us more fidelity on what the hardware revision is. Mikey > return t; > } >