All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabiano Rosas <farosas@suse.de>
To: "Tao Tang" <tangtao1634@phytium.com.cn>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Laurent Vivier" <lvivier@redhat.com>,
	"Eric Auger" <eric.auger@redhat.com>,
	"Peter Maydell" <peter.maydell@linaro.org>,
	"Alex Bennée" <alex.bennee@linaro.org>
Cc: qemu-devel@nongnu.org, qemu-arm@nongnu.org,
	"Chen Baozi" <chenbaozi@phytium.com.cn>,
	"Pierrick Bouvier" <pierrick.bouvier@linaro.org>,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>,
	"Jean-Philippe Brucker" <jean-philippe@linaro.org>,
	"Mostafa Saleh" <smostafa@google.com>,
	"CLEMENT MATHIEU--DRIF" <clement.mathieu--drif@eviden.com>,
	"Tao Tang" <tangtao1634@phytium.com.cn>
Subject: Re: [RFC v8 7/7] tests/qtest: Add SMMUv3 bare-metal test using iommu-testdev
Date: Fri, 26 Dec 2025 17:44:46 -0300	[thread overview]
Message-ID: <87wm297z29.fsf@suse.de> (raw)
In-Reply-To: <20251224034647.2596434-8-tangtao1634@phytium.com.cn>

Tao Tang <tangtao1634@phytium.com.cn> writes:

> Add a qtest suite that validates ARM SMMUv3 translation without guest
> firmware or OS. The tests leverage iommu-testdev to trigger DMA
> operations and the qos-smmuv3 library to configure IOMMU translation
> structures.
>
> This test suite targets the virt machine and covers:
> - Stage 1 only translation (VA -> PA via CD page tables)
> - Stage 2 only translation (IPA -> PA via STE S2 tables)
> - Nested translation (VA -> IPA -> PA, Stage 1 + Stage 2)
> - Design to extended to support multiple security spaces
>     (Non-Secure, Secure, Root, Realm)
>
> Each test case follows this sequence:
> 1. Initialize SMMUv3 with appropriate command/event queues
> 2. Build translation tables (STE/CD/PTE) for the target scenario
> 3. Configure iommu-testdev with IOVA and DMA attributes via MMIO
> 4. Trigger DMA and validate successful translation
> 5. Verify data integrity through a deterministic write-read pattern
>
> This bare-metal approach provides deterministic IOMMU testing with
> minimal dependencies, making failures directly attributable to the SMMU
> translation path.
>
> Signed-off-by: Tao Tang <tangtao1634@phytium.com.cn>
> Tested-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>

Reviewed-by: Fabiano Rosas <farosas@suse.de>


  reply	other threads:[~2025-12-26 20:45 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-24  3:46 [RFC v8 0/7] hw/misc: Introduce a generalized IOMMU test framework Tao Tang
2025-12-24  3:46 ` [RFC v8 1/7] hw/arm/smmuv3: Extract common definitions to smmuv3-common.h Tao Tang
2025-12-26 22:45   ` Philippe Mathieu-Daudé
2025-12-27  5:01     ` Tao Tang
2025-12-27 21:22       ` Pierrick Bouvier
2026-01-15  8:43   ` Eric Auger
2025-12-24  3:46 ` [RFC v8 2/7] hw/arm/smmuv3-common: Define STE/CD fields via registerfields Tao Tang
2025-12-24 17:05   ` Pierrick Bouvier
2026-01-15  9:14   ` Eric Auger
2026-01-16  9:51     ` Tao Tang
2025-12-24  3:46 ` [RFC v8 3/7] hw/misc: Introduce iommu-testdev for bare-metal IOMMU testing Tao Tang
2025-12-26 22:56   ` Philippe Mathieu-Daudé
2025-12-27  5:16     ` Tao Tang
2025-12-27 15:54       ` Philippe Mathieu-Daudé
2026-01-15 12:59   ` Eric Auger
2026-01-16 14:37     ` Tao Tang
2025-12-24  3:46 ` [RFC v8 4/7] hw/arm/smmuv3-common: Add NSCFG bit definition for CD Tao Tang
2026-01-15 17:32   ` Eric Auger
2025-12-24  3:46 ` [RFC v8 5/7] hw/arm/smmuv3-common: Add STE/CD set helpers for repeated field setup Tao Tang
2026-01-15 17:45   ` Eric Auger
2025-12-24  3:46 ` [RFC v8 6/7] tests/qtest/libqos: Add SMMUv3 helper library Tao Tang
2026-01-15 18:30   ` Eric Auger
2026-01-16 10:00     ` Tao Tang
2026-01-17 10:02   ` Eric Auger
2026-01-17 13:06     ` Tao Tang
2025-12-24  3:46 ` [RFC v8 7/7] tests/qtest: Add SMMUv3 bare-metal test using iommu-testdev Tao Tang
2025-12-26 20:44   ` Fabiano Rosas [this message]
2026-01-17 10:04   ` Eric Auger
2026-01-17 13:31     ` Tao Tang
2025-12-24 17:07 ` [RFC v8 0/7] hw/misc: Introduce a generalized IOMMU test framework Pierrick Bouvier
2026-01-14 13:30 ` Tao Tang
2026-01-14 23:39   ` Pierrick Bouvier
2026-01-15 17:47     ` Eric Auger
2026-01-15 20:56       ` Pierrick Bouvier
2026-01-19 14:09         ` Philippe Mathieu-Daudé

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=87wm297z29.fsf@suse.de \
    --to=farosas@suse.de \
    --cc=alex.bennee@linaro.org \
    --cc=chenbaozi@phytium.com.cn \
    --cc=clement.mathieu--drif@eviden.com \
    --cc=eric.auger@redhat.com \
    --cc=jean-philippe@linaro.org \
    --cc=lvivier@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@linaro.org \
    --cc=pierrick.bouvier@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=smostafa@google.com \
    --cc=tangtao1634@phytium.com.cn \
    /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.