From: Ankit Soni <Ankit.Soni@amd.com>
To: <iommu@lists.linux.dev>
Cc: <vasant.hegde@amd.com>, <joao.m.martins@oracle.com>,
<suravee.suthikulpanit@amd.com>, <joro@8bytes.org>,
<will@kernel.org>, <robin.murphy@arm.com>,
<linux-kernel@vger.kernel.org>
Subject: [PATCH v4 0/2] iommu/amd: Support for HATdis and HATS features
Date: Wed, 4 Jun 2025 06:13:23 +0000 [thread overview]
Message-ID: <cover.1749016436.git.Ankit.Soni@amd.com> (raw)
This series comprises two features:
HATDis: When host address translation is not supported by the IOMMU,
the IVHD->attr[HATDis] bit is set. For instance, QEMU emulated vIOMMU
does not support dma tranlation for VFIO passthrough device.
Support has been added to check this bit and switch to guest page table
mode, if supported. This feature is useful for cases where only interrupt
remapping is required.
EFR[HATS]: These bits indicate the maximum level supported for host page table
by the IOMMU. Modifications have been made to adjust the maximum host page table
level, starting with level 4. If these bits are set to 11b, the driver will
attempt to use the guest page table.
If guest page table mode is not supported, the driver will fail to probe
devices for DMA translations.
The interrupt remapping will continue to be supported.
---
v4:
- Relocate sysfs PD_MODE_NONE check case after iommu_device_register()
along with return check.
v3:
- Add check before populating sysfs entries for iommu groups.
v2:
- Addressed comments from Vasant:
- Added/Modified comments and logs.
- Removed v1 page table assignment hunk.
Ankit Soni (2):
iommu/amd: Add HATDis feature support
iommu/amd: Add efr[HATS] max v1 page table level
drivers/iommu/amd/amd_iommu.h | 2 ++
drivers/iommu/amd/amd_iommu_types.h | 7 ++++-
drivers/iommu/amd/init.c | 47 +++++++++++++++++++++++++++--
drivers/iommu/amd/io_pgtable.c | 4 +--
drivers/iommu/amd/iommu.c | 15 ++++++++-
5 files changed, 69 insertions(+), 6 deletions(-)
--
2.43.0
next reply other threads:[~2025-06-04 6:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-04 6:13 Ankit Soni [this message]
2025-06-04 6:13 ` [PATCH v4 1/2] iommu/amd: Add HATDis feature support Ankit Soni
2025-06-04 6:13 ` [PATCH v4 2/2] iommu/amd: Add efr[HATS] max v1 page table level Ankit Soni
2025-06-26 10:58 ` [PATCH v4 0/2] iommu/amd: Support for HATdis and HATS features Ankit Soni
2025-06-27 6:51 ` Joerg Roedel
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=cover.1749016436.git.Ankit.Soni@amd.com \
--to=ankit.soni@amd.com \
--cc=iommu@lists.linux.dev \
--cc=joao.m.martins@oracle.com \
--cc=joro@8bytes.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robin.murphy@arm.com \
--cc=suravee.suthikulpanit@amd.com \
--cc=vasant.hegde@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.