[Skiboot] [PATCH v5 08/10] imc: Use pir_to_core_id() rather than cpu_get_core_index()
Vaidyanathan Srinivasan
svaidy at linux.ibm.com
Wed May 6 21:47:09 AEST 2020
* Vasant Hegde <hegdevasant at linux.vnet.ibm.com> [2020-04-22 20:18:31]:
> On 4/22/20 10:34 AM, Vaidyanathan Srinivasan wrote:
> > From: Benjamin Herrenschmidt <benh at kernel.crashing.org>
> >
> > The IMC HW targets HW ECs, not fused cores on P9
>
> Can you add below changes to this patch?
>
> index b487a510a..c4561f5de 100644
> --- a/hw/imc.c
> +++ b/hw/imc.c
> @@ -754,7 +754,7 @@ static int64_t opal_imc_counters_init(uint32_t type,
> uint64_t addr, uint64_t cpu
> if (!c)
> return OPAL_PARAMETER;
>
> - phys_core_id = cpu_get_core_index(c);
> + phys_core_id = pir_to_core_id(c->pir);
> port_id = phys_core_id % 4;
>
> if (proc_chip_quirks & QUIRK_MAMBO_CALLOUTS)
>
Thanks Vasant, I have included this hunk.
--Vaidy
More information about the Skiboot
mailing list