All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Cameron via <qemu-devel@nongnu.org>
To: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>,
	<linuxarm@huawei.com>
Cc: <qemu-arm@nongnu.org>, <qemu-devel@nongnu.org>,
	<eric.auger@redhat.com>, <peter.maydell@linaro.org>,
	<jgg@nvidia.com>, <nicolinc@nvidia.com>, <ddutile@redhat.com>,
	<berrange@redhat.com>, <imammedo@redhat.com>,
	<nathanc@nvidia.com>, <mochs@nvidia.com>, <smostafa@google.com>,
	<gustavo.romero@linaro.org>, <mst@redhat.com>,
	<marcel.apfelbaum@gmail.com>, <wangzhou1@hisilicon.com>,
	<jiangkunkun@huawei.com>, <jonathan.cameron@huawei.com>,
	<zhangfei.gao@linaro.org>
Subject: Re: [PATCH v6 01/12] hw/arm/virt-acpi-build: Don't create ITS id mappings by default
Date: Thu, 3 Jul 2025 10:22:03 +0100	[thread overview]
Message-ID: <20250703101613.00005bfd@huawei.com> (raw)
In-Reply-To: <20250703084643.85740-2-shameerali.kolothum.thodi@huawei.com>

On Thu, 3 Jul 2025 09:46:32 +0100
Shameer Kolothum <shameerali.kolothum.thodi@huawei.com> wrote:

> Commit d6afe18b7242 ("hw/arm/virt-acpi-build: Fix ACPI IORT and MADT tables
> when its=off") moved ITS group node generation under the its=on condition.
> However, it still creates rc_its_idmaps unconditionally, which results in
> duplicate ID mappings in the IORT table.
> 
> Fixes:d6afe18b7242 ("hw/arm/virt-acpi-build: Fix ACPI IORT and MADT tables when its=off")
> Signed-off-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
As per discussion offlist.  Why are we not seeing a table change with this?
Seems that we don't have a test for this case (yet) - later in this series
there is one and I guess Gustavo knew that was coming!

Anyhow, the patch looks good to me.

Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
> ---
>  hw/arm/virt-acpi-build.c | 6 ------
>  1 file changed, 6 deletions(-)
> 
> diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt-acpi-build.c
> index cd90c47976..724fad5ffa 100644
> --- a/hw/arm/virt-acpi-build.c
> +++ b/hw/arm/virt-acpi-build.c
> @@ -329,12 +329,6 @@ build_iort(GArray *table_data, BIOSLinker *linker, VirtMachineState *vms)
>          /* Sort the smmu idmap by input_base */
>          g_array_sort(rc_smmu_idmaps, iort_idmap_compare);
>  
> -        /*
> -         * Knowing the ID ranges from the RC to the SMMU, it's possible to
> -         * determine the ID ranges from RC that are directed to the ITS.
> -         */
> -        create_rc_its_idmaps(rc_its_idmaps, rc_smmu_idmaps);
> -
>          nb_nodes = 2; /* RC and SMMUv3 */
>          rc_mapping_count = rc_smmu_idmaps->len;
>  


  reply	other threads:[~2025-07-03  9:22 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-03  8:46 [PATCH v6 00/12] hw/arm/virt: Add support for user creatable SMMUv3 device Shameer Kolothum via
2025-07-03  8:46 ` Shameer Kolothum via
2025-07-03  8:46 ` [PATCH v6 01/12] hw/arm/virt-acpi-build: Don't create ITS id mappings by default Shameer Kolothum via
2025-07-03  8:46   ` Shameer Kolothum via
2025-07-03  9:22   ` Jonathan Cameron via [this message]
2025-07-03 15:00   ` Eric Auger
2025-07-03 16:32   ` Donald Dutile
2025-07-03  8:46 ` [PATCH v6 02/12] hw/arm/smmu-common: Check SMMU has PCIe Root Complex association Shameer Kolothum via
2025-07-03  8:46   ` Shameer Kolothum via
2025-07-03  8:46 ` [PATCH v6 03/12] hw/arm/virt-acpi-build: Re-arrange SMMUv3 IORT build Shameer Kolothum via
2025-07-03  8:46   ` Shameer Kolothum via
2025-07-03  8:46 ` [PATCH v6 04/12] hw/arm/virt-acpi-build: Update IORT for multiple smmuv3 devices Shameer Kolothum via
2025-07-03  8:46   ` Shameer Kolothum via
2025-07-03  8:46 ` [PATCH v6 05/12] hw/arm/virt: Factor out common SMMUV3 dt bindings code Shameer Kolothum via
2025-07-03  8:46 ` [PATCH v6 06/12] hw/arm/virt: Add an SMMU_IO_LEN macro Shameer Kolothum via
2025-07-03  8:46 ` [PATCH v6 07/12] hw/pci: Introduce pci_setup_iommu_per_bus() for per-bus IOMMU ops retrieval Shameer Kolothum via
2025-07-03  8:46 ` [PATCH v6 08/12] hw/arm/virt: Allow user-creatable SMMUv3 dev instantiation Shameer Kolothum via
2025-07-08  7:41   ` Eric Auger
2025-07-08  8:54     ` Shameerali Kolothum Thodi via
2025-07-08  8:54       ` Shameerali Kolothum Thodi via
2025-07-08  9:47       ` Eric Auger
2025-07-08 10:28         ` Shameerali Kolothum Thodi via
2025-07-08 10:28           ` Shameerali Kolothum Thodi via
2025-07-08  9:55       ` Eric Auger
2025-07-08 15:02         ` Shameerali Kolothum Thodi via
2025-07-08 15:02           ` Shameerali Kolothum Thodi via
2025-07-03  8:46 ` [PATCH v6 09/12] qemu-options.hx: Document the arm-smmuv3 device Shameer Kolothum via
2025-07-03  8:46   ` Shameer Kolothum via
2025-07-03  8:46 ` [PATCH v6 10/12] bios-tables-test: Allow for smmuv3 test data Shameer Kolothum via
2025-07-03  8:46   ` Shameer Kolothum via
2025-07-03  8:46 ` [PATCH v6 11/12] qtest/bios-tables-test: Add tests for legacy smmuv3 and smmuv3 device Shameer Kolothum via
2025-07-03  8:46   ` Shameer Kolothum via
2025-07-03  8:46 ` [PATCH v6 12/12] qtest/bios-tables-test: Update tables for smmuv3 tests Shameer Kolothum via
2025-07-08 15:10   ` Eric Auger
2025-07-08  7:57 ` [PATCH v6 00/12] hw/arm/virt: Add support for user creatable SMMUv3 device Nicolin Chen
2025-07-08  8:57   ` Shameerali Kolothum Thodi via
2025-07-08  8:57     ` Shameerali Kolothum Thodi via
2025-07-08 20:17     ` Nicolin Chen

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=20250703101613.00005bfd@huawei.com \
    --to=qemu-devel@nongnu.org \
    --cc=berrange@redhat.com \
    --cc=ddutile@redhat.com \
    --cc=eric.auger@redhat.com \
    --cc=gustavo.romero@linaro.org \
    --cc=imammedo@redhat.com \
    --cc=jgg@nvidia.com \
    --cc=jiangkunkun@huawei.com \
    --cc=jonathan.cameron@huawei.com \
    --cc=linuxarm@huawei.com \
    --cc=marcel.apfelbaum@gmail.com \
    --cc=mochs@nvidia.com \
    --cc=mst@redhat.com \
    --cc=nathanc@nvidia.com \
    --cc=nicolinc@nvidia.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=shameerali.kolothum.thodi@huawei.com \
    --cc=smostafa@google.com \
    --cc=wangzhou1@hisilicon.com \
    --cc=zhangfei.gao@linaro.org \
    /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.