Frederic Barrat 151308677c pnv/xive2: Access direct mapped thread contexts from all chips
When accessing a thread context through the IC BAR, the offset of the
page in the BAR identifies the CPU. From that offset, we can compute
the PIR (processor ID register) of the CPU to do the data structure
lookup. On P10, the current code assumes an access for node 0 when
computing the PIR. Everything is almost in place to allow access for
other nodes though. So this patch reworks how the PIR value is
computed so that we can access all thread contexts through the IC BAR.

The PIR is already correct on P9, so no need to modify anything there.

Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20220602165310.558810-1-fbarrat@linux.ibm.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
2022-06-20 08:38:58 -03:00
..
2022-06-08 19:38:47 +01:00
2022-06-08 19:38:47 +01:00
2022-06-08 19:38:47 +01:00
2022-04-21 09:27:54 -07:00
2021-11-09 10:11:27 +01:00
2021-01-08 15:13:38 +00:00
2021-11-09 10:11:27 +01:00
2021-06-05 21:10:42 +02:00
2022-06-08 19:38:47 +01:00
2022-06-08 19:38:47 +01:00