Re: [PATCH 1/6] powerpc: Add ppc_md.name to dump stack arch description

2022-09-28 Thread Nathan Lynch
Michael Ellerman writes: > @@ -588,6 +590,15 @@ static __init int add_pcspkr(void) > device_initcall(add_pcspkr); > #endif /* CONFIG_PCSPKR_PLATFORM */ > > +static char ppc_hw_desc_buf[128] __initdata; > + > +struct seq_buf ppc_hw_desc __initdata = { > + .buffer = ppc_hw_desc_buf, >

[PATCH 1/6] powerpc: Add ppc_md.name to dump stack arch description

2022-09-28 Thread Michael Ellerman
As soon as we know the name of the machine description we're using, add it to the dump stack arch description, which is printed in case of an oops. eg: Hardware name: ... machine:pSeries Signed-off-by: Michael Ellerman --- arch/powerpc/include/asm/setup.h | 2 ++ arch/powerpc/kernel/setup-co