[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v9 11/12] target/arm: add an experimental mpidr arm cpu prope
|
From: |
Peter Maydell |
|
Subject: |
Re: [PATCH v9 11/12] target/arm: add an experimental mpidr arm cpu property object |
|
Date: |
Sun, 25 Aug 2024 12:34:14 +0100 |
On Sun, 25 Aug 2024 at 04:46, Mauro Carvalho Chehab
<mchehab+huawei@kernel.org> wrote:
>
> Accurately injecting an ARM Processor error ACPI/APEI GHES
> error record requires the value of the ARM Multiprocessor
> Affinity Register (mpidr).
>
> While ARM implements it, this is currently not visible.
>
> Add a field at CPU storing it, and place it at arm_cpu_properties
> as experimental, thus allowing it to be queried via QMP using
> qom-get function.
> static Property arm_cpu_properties[] = {
> DEFINE_PROP_UINT64("midr", ARMCPU, midr, 0),
> + DEFINE_PROP_UINT64("x-mpidr", ARMCPU, mpidr, 0),
> DEFINE_PROP_UINT64("mp-affinity", ARMCPU,
> mp_affinity, ARM64_AFFINITY_INVALID),
> DEFINE_PROP_INT32("node-id", ARMCPU, node_id, CPU_UNSET_NUMA_NODE_ID),
Why do we need this? Why is it experimental? The later patch
seems to use it via QMP, which I'm not super enthusiastic
about -- the preexisting mpidr and mp-affinity properties are
there for code that is creating CPU objects to configure
the CPU object, not as a query interface for QOM.
thanks
-- PMM
- [PATCH v9 00/12] Add ACPI CPER firmware first error injection on ARM emulation, Mauro Carvalho Chehab, 2024/08/24
- [PATCH v9 10/12] scripts/ghes_inject: add a script to generate GHES error inject, Mauro Carvalho Chehab, 2024/08/24
- [PATCH v9 12/12] scripts/arm_processor_error.py: retrieve mpidr if not filled, Mauro Carvalho Chehab, 2024/08/24
- [PATCH v9 03/12] acpi/ghes: rename etc/hardware_error file macros, Mauro Carvalho Chehab, 2024/08/24
- [PATCH v9 05/12] acpi/ghes: add a notifier to notify when error data is ready, Mauro Carvalho Chehab, 2024/08/24
- [PATCH v9 06/12] acpi/generic_event_device: add an APEI error device, Mauro Carvalho Chehab, 2024/08/24
- [PATCH v9 09/12] docs: acpi_hest_ghes: fix documentation for CPER size, Mauro Carvalho Chehab, 2024/08/24
- [PATCH v9 01/12] acpi/ghes: add a firmware file with HEST address, Mauro Carvalho Chehab, 2024/08/24
- [PATCH v9 07/12] arm/virt: Wire up a GED error device for ACPI / GHES, Mauro Carvalho Chehab, 2024/08/24