]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mm/hmm: properly take MMIO path
authorLeon Romanovsky <leonro@nvidia.com>
Tue, 9 Sep 2025 13:27:41 +0000 (16:27 +0300)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 11 Sep 2025 22:18:21 +0000 (00:18 +0200)
commitec818caebc0809722f47004db9f74b7ab355c583
tree5f78426de95c8db2cf4bb99c8d916ba40a6c9a56
parente1d69da24fb8ee02e13dcbc281f510f01332a7f8
mm/hmm: properly take MMIO path

In case peer-to-peer transaction traverses through host bridge,
the IOMMU needs to have IOMMU_MMIO flag, together with skip of
CPU sync.

The latter was handled by provided DMA_ATTR_SKIP_CPU_SYNC flag,
but IOMMU flag was missed, due to assumption that such memory
can be treated as regular one.

Reuse newly introduced DMA attribute to properly take MMIO path.

Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/998251caf3f9d1a3f6f8205f1f494c707fb4d8fa.1757423202.git.leonro@nvidia.com
mm/hmm.c