From: Andrew Jones <drjones@redhat.com>
To: Shannon Zhao <zhaoshenglong@huawei.com>
Cc: peter maydell <peter.maydell@linaro.org>,
shannon zhao <shannon.zhao@linaro.org>,
qemu-devel@nongnu.org, imammedo@redhat.com, mst@redhat.com
Subject: Re: [Qemu-devel] [PATCH] hw/arm/virt-acpi-build: Fix table revision and some comments
Date: Fri, 19 Jun 2015 14:59:32 -0400 (EDT) [thread overview]
Message-ID: <538707424.5789888.1434740372387.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <1433820378-8336-1-git-send-email-zhaoshenglong@huawei.com>
----- Original Message -----
> From: Shannon Zhao <shannon.zhao@linaro.org>
>
> The table revision is not the ACPI spec version. Fix the wrong revision
> and also some comments.
>
> Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
> ---
> hw/arm/virt-acpi-build.c | 11 ++++++-----
> 1 file changed, 6 insertions(+), 5 deletions(-)
>
> diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt-acpi-build.c
> index a9373cc..a036a00 100644
> --- a/hw/arm/virt-acpi-build.c
> +++ b/hw/arm/virt-acpi-build.c
> @@ -349,7 +349,7 @@ build_mcfg(GArray *table_data, GArray *linker,
> VirtGuestInfo *guest_info)
> mcfg->allocation[0].end_bus_number = (memmap[VIRT_PCIE_ECAM].size
> / PCIE_MMCFG_SIZE_MIN) - 1;
>
> - build_header(linker, table_data, (void *)mcfg, "MCFG", len, 5);
> + build_header(linker, table_data, (void *)mcfg, "MCFG", len, 1);
> }
>
> /* GTDT */
> @@ -375,7 +375,7 @@ build_gtdt(GArray *table_data, GArray *linker)
>
> build_header(linker, table_data,
> (void *)(table_data->data + gtdt_start), "GTDT",
> - table_data->len - gtdt_start, 5);
> + table_data->len - gtdt_start, 2);
> }
>
> /* MADT */
> @@ -412,7 +412,7 @@ build_madt(GArray *table_data, GArray *linker,
> VirtGuestInfo *guest_info,
>
> build_header(linker, table_data,
> (void *)(table_data->data + madt_start), "APIC",
> - table_data->len - madt_start, 5);
> + table_data->len - madt_start, 3);
> }
>
> /* FADT */
> @@ -469,7 +469,7 @@ build_dsdt(GArray *table_data, GArray *linker,
> VirtGuestInfo *guest_info)
> g_array_append_vals(table_data, dsdt->buf->data, dsdt->buf->len);
> build_header(linker, table_data,
> (void *)(table_data->data + table_data->len - dsdt->buf->len),
> - "DSDT", dsdt->buf->len, 5);
> + "DSDT", dsdt->buf->len, 2);
> free_aml_allocator();
> }
>
> @@ -507,6 +507,7 @@ void virt_acpi_build(VirtGuestInfo *guest_info,
> AcpiBuildTables *tables)
> * FADT
> * GTDT
> * MADT
> + * MCFG
> * DSDT
> */
Do we need this comment with a list of tables? I forgot to add SPCR
there.
>
> @@ -514,7 +515,7 @@ void virt_acpi_build(VirtGuestInfo *guest_info,
> AcpiBuildTables *tables)
> dsdt = tables_blob->len;
> build_dsdt(tables_blob, tables->linker, guest_info);
>
> - /* FADT MADT GTDT pointed to by RSDT */
> + /* FADT MADT GTDT MCFG pointed to by RSDT */
This patch isn't based on the latest version, and this comment will
have a merge conflict due to SPCR being there now.
> acpi_add_table(table_offsets, tables_blob);
> build_fadt(tables_blob, tables->linker, dsdt);
>
> --
> 2.0.4
>
>
>
>
>
next prev parent reply other threads:[~2015-06-19 18:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-09 3:26 [Qemu-devel] [PATCH] hw/arm/virt-acpi-build: Fix table revision and some comments Shannon Zhao
2015-06-19 12:39 ` Peter Maydell
2015-06-19 18:59 ` Andrew Jones [this message]
2015-06-19 19:06 ` Andrew Jones
2015-06-21 10:02 ` Michael S. Tsirkin
2015-06-23 16:00 ` Peter Maydell
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=538707424.5789888.1434740372387.JavaMail.zimbra@redhat.com \
--to=drjones@redhat.com \
--cc=imammedo@redhat.com \
--cc=mst@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=shannon.zhao@linaro.org \
--cc=zhaoshenglong@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 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.