Thread (40 messages) 40 messages, 4 authors, 4d ago

Re: [PATCH v5 00/15] iommu/arm-smmu-v3: Add PRI support

flat view

From: Will Deacon <will@kernel.org>
Date: 2026-10-04 16:50:58
Also in: linux-iommu, linux-pci, lkml

On Tue, 15 Sep 2026 09:38:12 -0700, Nicolin Chen wrote:
The SMMUv3 driver doesn't handle events on the PRI queue or respond to IOPF
faults. This series adds the missing pieces, using the IOPF infrastructure,
to convert PRI page requests into iopf_faults and issue CMDQ_OP_PRI_RESP.

The iopf_queue_flush_dev() contract requires the driver to first drain the
hardware PRI queue and synchronize using a threaded IRQ handler before the
IOPF software flush. This drove the additional commits compared to v1:
 - arm_smmu_wait_for_queue_drained() drains the hardware queue by counting
   the entries that the threaded IRQ handler consumes
 - arm_smmu_attach_release() moves the teardown outside the global lock
 - synchronize_irq() closes the gap before the final flush

[...]
Applied first three to iommu (arm/smmu/updates), thanks!

[01/15] iommu/arm-smmu-v3: Disable the impl before disabling the SMMU on shutdown
        https://git.kernel.org/iommu/c/ab0dbf411ace
[02/15] iommu/arm-smmu-v3: Add arm_smmu_attach_release()
        https://git.kernel.org/iommu/c/580bbfcdcd2e
[03/15] iommu/arm-smmu-v3: Add Q_POS() macro
        https://git.kernel.org/iommu/c/02b5c4639bcd

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help