ppc/pnv: SMT support for powernv
authorNicholas Piggin <npiggin@gmail.com>
Wed, 5 Jul 2023 12:06:30 +0000 (22:06 +1000)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Fri, 7 Jul 2023 07:47:49 +0000 (04:47 -0300)
commit934676c7b726fe9cccac02a7a4fa23c1e6a4c91e
tree224301f5dc2250ebf9ae9eea6644e4c0bd35beaa
parent9cdfd1b9f7eb5ecd1267bbd68330a11dcb8aa8f2
ppc/pnv: SMT support for powernv

Set the TIR default value with the SMT thread index, and place some
standard limits on SMT configurations. Now powernv is able to boot
skiboot and Linux with a SMT topology, including booting a KVM guest.

There are several SPRs and other features (e.g., broadcast msgsnd)
that are not implemented, but not used by OPAL or Linux and can be
added incrementally.

Reviewed-by: Cédric Le Goater <clg@kaod.org>
Tested-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Message-ID: <20230705120631.27670-4-npiggin@gmail.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
docs/system/ppc/powernv.rst
hw/ppc/pnv.c
hw/ppc/pnv_core.c