OSDN Git Service

powerpc/pseries: Add firmware details to the hardware description
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 30 Sep 2022 08:27:09 +0000 (18:27 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 30 Sep 2022 08:35:53 +0000 (18:35 +1000)
commit8535a1afff0f4f568eb589f3795a930ef3d483b0
treed76c5fb89445319897384f718c308eb8e475ba61
parent37576cb0961fe9d3318c17e4e4bc5ecebf38e9bb
powerpc/pseries: Add firmware details to the hardware description

Add firmware version details to the hardware description, which is
printed at boot and in case of an oops.

Use /hypervisor if we find it, though currently it only exists if we're
running under qemu.

Look for "ibm,powervm-partition" which is specified in PAPR+ v2.11 and
tells us we're running under PowerVM.

Failing that look for "ibm,fw-net-version" which is seen on PowerVM
going back to at least Power6.

eg: Hardware name: ... of:IBM,FW860.42 (SV860_138) hv:phyp

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220930082709.55830-6-mpe@ellerman.id.au
arch/powerpc/platforms/pseries/setup.c