From: "Michael S. Tsirkin" <mst@redhat.com>
To: Alireza Sanaee <alireza.sanaee@huawei.com>
Cc: qemu-devel@nongnu.org, anisinha@redhat.com, imammedo@redhat.com,
jonathan.cameron@huawei.com, linuxarm@huawei.com,
peter.maydell@linaro.org, prime.zeng@hisilicon.com,
shameerali.kolothum.thodi@huawei.com, wangyanan55@huawei.com,
yangyicong@hisilicon.com, Bibo Mao <maobibo@loongson.cn>
Subject: Re: [PATCH v5 0/4] Building PPTT with root node and identical implementation flag
Date: Sun, 1 Jun 2025 08:32:52 -0400 [thread overview]
Message-ID: <20250601082826-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <20250523102654.1719-1-alireza.sanaee@huawei.com>
On Fri, May 23, 2025 at 11:26:50AM +0100, Alireza Sanaee wrote:
> OS like Linux is using PPTT processor node's identical implementation
> flag [1] to infer whether the whole system or a certain CPU cluster is
> homogeneous or not [2]. QEMU currently only support building homogeneous
> system, set the flag to indicate the fact. Build a root node in PPTT for
> indicates the identical implementation which is needed for a
> multi-socket system. Update the related PPTT tables as well.
>
> [1] ACPI 6.5 Table 5.158: Processor Structure Flags
> [2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/acpi/pptt.c?h=v6.11-rc1#n810
>
> History:
> * v4->v5: fixed a typo
>
> * v3->v4: PPTT rev to 2
>
> * v2->v3: rebase to 10
>
> Alireza Sanaee (2):
> hw/acpi/aml-build: Build a root node in the PPTT table
> tests: virt: Update expected ACPI tables for virt test
>
> Yicong Yang (2):
> tests: virt: Allow changes to PPTT test table
> hw/acpi/aml-build: Set identical implementation flag for PPTT
> processor nodes
>
> hw/acpi/aml-build.c | 24 +++++++++++++++---
> tests/data/acpi/aarch64/virt/PPTT | Bin 76 -> 96 bytes
> .../data/acpi/aarch64/virt/PPTT.acpihmatvirt | Bin 156 -> 176 bytes
> tests/data/acpi/aarch64/virt/PPTT.topology | Bin 336 -> 356 bytes
> 4 files changed, 20 insertions(+), 4 deletions(-)
This interacts weirdly with loongarch. I tried applying patches
on top of that, and on loongarch, I see:
-[0F0h 0240 004h] Flags (decoded below) : 00000000
+[0F0h 0240 004h] Flags (decoded below) : 0000000E
Physical package : 0
- ACPI Processor ID valid : 0
- Processor is a thread : 0
- Node is a leaf : 0
+ ACPI Processor ID valid : 1
+ Processor is a thread : 1
+ Node is a leaf : 1
Identical Implementation : 0
I'm sending a pull request later today. Once merged, pls
rebase on top of that, updating loongarch as appropriate
and repost copying relevant people.
Cc Bibo Mao for more insight.
> --
> 2.34.1
next prev parent reply other threads:[~2025-06-01 12:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-23 10:26 [PATCH v5 0/4] Building PPTT with root node and identical implementation flag Alireza Sanaee via
2025-05-23 10:26 ` [PATCH v5 1/4] tests: virt: Allow changes to PPTT test table Alireza Sanaee via
2025-05-23 10:26 ` [PATCH v5 2/4] hw/acpi/aml-build: Set identical implementation flag for PPTT processor nodes Alireza Sanaee via
2025-05-23 10:26 ` [PATCH v5 3/4] hw/acpi/aml-build: Build a root node in the PPTT table Alireza Sanaee via
2025-05-23 10:26 ` [PATCH v5 4/4] tests: virt: Update expected ACPI tables for virt test Alireza Sanaee via
2025-06-01 12:32 ` Michael S. Tsirkin [this message]
2025-06-03 15:40 ` [PATCH v5 0/4] Building PPTT with root node and identical implementation flag Alireza Sanaee via
2025-06-04 0:44 ` Bibo Mao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250601082826-mutt-send-email-mst@kernel.org \
--to=mst@redhat.com \
--cc=alireza.sanaee@huawei.com \
--cc=anisinha@redhat.com \
--cc=imammedo@redhat.com \
--cc=jonathan.cameron@huawei.com \
--cc=linuxarm@huawei.com \
--cc=maobibo@loongson.cn \
--cc=peter.maydell@linaro.org \
--cc=prime.zeng@hisilicon.com \
--cc=qemu-devel@nongnu.org \
--cc=shameerali.kolothum.thodi@huawei.com \
--cc=wangyanan55@huawei.com \
--cc=yangyicong@hisilicon.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.