• Michael Ellerman's avatar
    powerpc: Add hardware description string · 41dc0563
    Michael Ellerman authored
    Create a hardware description string, which we will use to record
    various details of the hardware platform we are running on.
    
    Print the accumulated description at boot, and use it to set the generic
    description which is printed in oopses.
    
    To begin with add ppc_md.name, aka the "machine description".
    
    Example output at boot with the full series applied:
    
      Linux version 6.0.0-rc2-gcc-11.1.0-00199-g893f9007a5ce-dirty (michael@alpine1-p1) (powerpc64-linux-gcc (GCC) 11.1.0, GNU ld (GNU Binutils) 2.36.1) #844 SMP Thu Sep 29 22:29:53 AEST 2022
      Hardware name: IBM pSeries (emulated by qemu) POWER9 (raw) 0x4e1200 0xf000005 of:SLOF,git-5b4c5a pSeries
      printk: bootconsole [udbg0] enabled
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    Link: https://lore.kernel.org/r/20220930082709.55830-1-mpe@ellerman.id.au
    41dc0563
setup-common.c 24.5 KB