From: Andrew Jones <drjones@redhat.com>
To: Yanan Wang <wangyanan55@huawei.com>
Cc: Peter Maydell <peter.maydell@linaro.org>,
"Michael S . Tsirkin" <mst@redhat.com>,
qemu-devel@nongnu.org, Shannon Zhao <shannon.zhaosl@gmail.com>,
qemu-arm@nongnu.org, Eric Auger <eauger@redhat.com>,
wanghaibin.wang@huawei.com, Ani Sinha <ani@anisinha.ca>,
Igor Mammedov <imammedo@redhat.com>
Subject: Re: [PATCH v6 6/7] hw/arm/virt-acpi-build: Support cluster level in PPTT generation
Date: Mon, 3 Jan 2022 12:32:38 +0100 [thread overview]
Message-ID: <20220103113238.g3vk7nxmgefxe2gn@gator> (raw)
In-Reply-To: <20220103084636.2496-7-wangyanan55@huawei.com>
On Mon, Jan 03, 2022 at 04:46:35PM +0800, Yanan Wang wrote:
> Support cluster level in generation of ACPI Processor Properties
> Topology Table (PPTT) for ARM virt machines.
>
> Signed-off-by: Yanan Wang <wangyanan55@huawei.com>
> ---
> hw/arm/virt-acpi-build.c | 15 +++++++++++++++
> 1 file changed, 15 insertions(+)
>
> diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt-acpi-build.c
> index 3ce7680393..5f91969688 100644
> --- a/hw/arm/virt-acpi-build.c
> +++ b/hw/arm/virt-acpi-build.c
> @@ -840,6 +840,21 @@ build_pptt(GArray *table_data, BIOSLinker *linker, VirtMachineState *vms)
> 0, socket, NULL, 0);
> }
>
> + length = g_queue_get_length(list);
> + for (i = 0; i < length; i++) {
> + int cluster;
> +
> + father_offset = GPOINTER_TO_UINT(g_queue_pop_head(list));
> + for (cluster = 0; cluster < ms->smp.clusters; cluster++) {
> + g_queue_push_tail(list,
> + GUINT_TO_POINTER(table_data->len - pptt_start));
> + build_processor_hierarchy_node(
> + table_data,
> + (0 << 0), /* not a physical package */
> + father_offset, cluster, NULL, 0);
> + }
> + }
> +
> length = g_queue_get_length(list);
> for (i = 0; i < length; i++) {
> int core;
> --
> 2.27.0
>
Looks good except please do s/father_offset/parent_offset/ as I mentioned
in an earlier patch.
Reviewed-by: Andrew Jones <drjones@redhat.com>
next prev parent reply other threads:[~2022-01-03 11:34 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-03 8:46 [PATCH v6 0/7] ARM virt: Support CPU cluster topology Yanan Wang via
2022-01-03 8:46 ` [PATCH v6 1/7] hw/arm/virt: Support CPU cluster on ARM virt machine Yanan Wang via
2022-01-03 11:24 ` Andrew Jones
2022-01-03 8:46 ` [PATCH v6 2/7] hw/arm/virt: Support cluster level in DT cpu-map Yanan Wang via
2022-01-03 11:25 ` Andrew Jones
2022-01-03 8:46 ` [PATCH v6 3/7] hw/acpi/aml-build: Improve scalability of PPTT generation Yanan Wang via
2022-01-03 11:24 ` Andrew Jones
2022-01-04 2:05 ` wangyanan (Y) via
2022-01-03 8:46 ` [PATCH v6 4/7] hw/arm/virt-acpi-build: Make an ARM specific PPTT generator Yanan Wang via
2022-01-03 11:30 ` Andrew Jones
2022-01-04 2:06 ` wangyanan (Y) via
2022-01-03 8:46 ` [PATCH v6 5/7] tests/acpi/bios-tables-test: Allow changes to virt/PPTT file Yanan Wang via
2022-01-03 11:51 ` Ani Sinha
2022-01-03 8:46 ` [PATCH v6 6/7] hw/arm/virt-acpi-build: Support cluster level in PPTT generation Yanan Wang via
2022-01-03 11:32 ` Andrew Jones [this message]
2022-01-04 2:15 ` wangyanan (Y) via
2022-01-03 8:46 ` [PATCH v6 7/7] tests/acpi/bios-table-test: Update expected virt/PPTT file Yanan Wang via
2022-01-03 12:01 ` Ani Sinha
2022-01-04 2:28 ` wangyanan (Y) via
2022-01-04 4:27 ` Ani Sinha
2022-01-04 4:51 ` wangyanan (Y) via
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=20220103113238.g3vk7nxmgefxe2gn@gator \
--to=drjones@redhat.com \
--cc=ani@anisinha.ca \
--cc=eauger@redhat.com \
--cc=imammedo@redhat.com \
--cc=mst@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=shannon.zhaosl@gmail.com \
--cc=wanghaibin.wang@huawei.com \
--cc=wangyanan55@huawei.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).