From: Vasant Hegde <vasant.hegde@amd.com>
To: Ankit Soni <Ankit.Soni@amd.com>,
iommu@lists.linux.dev, Jason Gunthorpe <jgg@nvidia.com>
Cc: suravee.suthikulpanit@amd.com, joro@8bytes.org, will@kernel.org,
robin.murphy@arm.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 1/2] iommu/amd: Remove PT_FEAT_DYNAMIC_TOP from PT_FORCE_ENABLED_FEATURES
Date: Wed, 11 Mar 2026 21:54:55 +0530 [thread overview]
Message-ID: <ed1715de-951e-4794-932e-577aee2c76f6@amd.com> (raw)
In-Reply-To: <0e71bed81bd7ce5e40a7fb24e6aab32dfb7de306.1773058553.git.Ankit.Soni@amd.com>
+ Jason
On 3/9/2026 7:35 PM, Ankit Soni wrote:
> Dynamic top is used to grow the page table levels. However, if the VA
> size is small and the initial page table level already covers the entire
> address space, table growth is not required. In that case, the generic
> page table framework clears PT_FEAT_DYNAMIC_TOP, which in turn causes
> error -EOPNOTSUPP and leads to domain initialization failure.
>
> Remove PT_FEAT_DYNAMIC_TOP from PT_FORCE_ENABLED_FEATURES, since during
> domain allocation AMD IOMMU driver explicitly sets PT_FEAT_DYNAMIC_TOP
> via cfg.common.features, this keeps normal runtime behavior unchanged.
>
Fixes: 879ced2bab1 ("iommupt: Add the AMD IOMMU v1 page table format")
> Signed-off-by: Ankit Soni <Ankit.Soni@amd.com>
Reviewed-by: Vasant Hegde <vasant.hegde@amd.com>
-Vasant
> ---
> drivers/iommu/generic_pt/fmt/iommu_amdv1.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/iommu/generic_pt/fmt/iommu_amdv1.c b/drivers/iommu/generic_pt/fmt/iommu_amdv1.c
> index 72a2337d0c55..61e025a85e6a 100644
> --- a/drivers/iommu/generic_pt/fmt/iommu_amdv1.c
> +++ b/drivers/iommu/generic_pt/fmt/iommu_amdv1.c
> @@ -9,7 +9,7 @@
> BIT(PT_FEAT_AMDV1_ENCRYPT_TABLES) | \
> BIT(PT_FEAT_AMDV1_FORCE_COHERENCE))
> #define PT_FORCE_ENABLED_FEATURES \
> - (BIT(PT_FEAT_DYNAMIC_TOP) | BIT(PT_FEAT_AMDV1_ENCRYPT_TABLES) | \
> + (BIT(PT_FEAT_AMDV1_ENCRYPT_TABLES) | \
> BIT(PT_FEAT_AMDV1_FORCE_COHERENCE))
>
> #include "iommu_template.h"
next prev parent reply other threads:[~2026-03-11 16:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-09 14:05 [PATCH v3 0/2] Respect VASIZE for address limits Ankit Soni
2026-03-09 14:05 ` [PATCH v3 1/2] iommu/amd: Remove PT_FEAT_DYNAMIC_TOP from PT_FORCE_ENABLED_FEATURES Ankit Soni
2026-03-11 16:24 ` Vasant Hegde [this message]
2026-03-11 16:44 ` Jason Gunthorpe
2026-03-12 4:10 ` Ankit Soni
2026-03-12 11:22 ` Jason Gunthorpe
2026-03-12 14:42 ` Ankit Soni
2026-03-09 14:05 ` [PATCH v3 2/2] iommu/amd: Adhere to IVINFO[VASIZE] for address limits Ankit Soni
2026-03-11 16:36 ` Vasant Hegde
2026-03-12 13:45 ` Jason Gunthorpe
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=ed1715de-951e-4794-932e-577aee2c76f6@amd.com \
--to=vasant.hegde@amd.com \
--cc=Ankit.Soni@amd.com \
--cc=iommu@lists.linux.dev \
--cc=jgg@nvidia.com \
--cc=joro@8bytes.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robin.murphy@arm.com \
--cc=suravee.suthikulpanit@amd.com \
--cc=will@kernel.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.