From: Auger Eric <eric.auger@redhat.com>
To: Shannon Zhao <shannon.zhaosl@gmail.com>,
eric.auger.pro@gmail.com, qemu-devel@nongnu.org,
qemu-arm@nongnu.org, peter.maydell@linaro.org
Cc: shameerali.kolothum.thodi@huawei.com
Subject: Re: [Qemu-devel] [PATCH for-3.1] hw/arm/virt-acpi-build: Fix SMMUv3 ACPI integration
Date: Thu, 29 Nov 2018 09:42:15 +0100 [thread overview]
Message-ID: <8061b3b9-8857-221f-0d43-cbac25baf3e4@redhat.com> (raw)
In-Reply-To: <2c6469e1-4da1-7f9d-4525-892287c4c5c1@gmail.com>
Hi Shannon,
On 11/29/18 3:24 AM, Shannon Zhao wrote:
>
>
> On 2018/11/29 1:26, Auger Eric wrote:
>>>>> struct AcpiIortSmmu3 {
>>>>> ACPI_IORT_NODE_HEADER_DEF
>>>>> uint64_t base_address;
>>>>> @@ -639,6 +645,8 @@ struct AcpiIortSmmu3 {
>>>>> uint32_t pri_gsiv;
>>>>> uint32_t gerr_gsiv;
>>>>> uint32_t sync_gsiv;
>>>>> + uint32_t pxm;
>>> So if we use this field ,we need to set the flags with
>>> ACPI_IORT_SMMU_V3_PXM_VALID
>>>>> + uint32_t id_mapping_index;
>>> And if we use this field, it needs to set the revision to at least 1.
>> But is it harmful to add those fields in the struct as this patch does?
>>
>> - in our case ACPI_IORT_SMMU_V3_PXM_VALID flag is not set so the field
>> value is ignored according to the spec and arm_smmu_v3_set_proximity()
>> will not do anything.
>>
>> - SMMU control interrupts are all GSIV based so spec says that deviceID
>> index is ignored.
>>
>> So eventually the fact the struct size is changing over the revisions
>> does not look a problem because the node length is part of the struct
>> and the offset to the ID array also is part of the structure.
>>
>> So I could have left the structure as before (because we don't use the
>> functionalities associated to those fields). But on the other hand it's
>> good to upgrade the struct according to Rev D now.
>>
>> So I think the patch is correct, isn't?
> Yes, I think it's not harmful but it would be better to add some
> comments to explain why we don't increase the revision number ATM.
OK thank you for your input. I will repost for 3.2 and will upgrade the
table structs and their associated revision fields.
Thanks
Eric
>
> Thanks,
> Shannon
>
next prev parent reply other threads:[~2018-11-29 8:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-26 15:46 [Qemu-devel] [PATCH for-3.1] hw/arm/virt-acpi-build: Fix SMMUv3 ACPI integration Eric Auger
2018-11-26 17:04 ` Shameerali Kolothum Thodi
2018-11-26 17:38 ` Auger Eric
2018-11-27 5:53 ` Auger Eric
2018-11-28 16:39 ` Shannon Zhao
2018-11-28 17:26 ` Auger Eric
2018-11-29 2:24 ` Shannon Zhao
2018-11-29 8:42 ` Auger Eric [this message]
2018-11-27 13:32 ` Peter Maydell
2018-11-28 17:29 ` Auger Eric
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=8061b3b9-8857-221f-0d43-cbac25baf3e4@redhat.com \
--to=eric.auger@redhat.com \
--cc=eric.auger.pro@gmail.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=shameerali.kolothum.thodi@huawei.com \
--cc=shannon.zhaosl@gmail.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).