iommu/dma: Document min_align_mask assumption
authorRobin Murphy <robin.murphy@arm.com>
Mon, 4 Mar 2024 12:05:42 +0000 (12:05 +0000)
committerJoerg Roedel <jroedel@suse.de>
Wed, 6 Mar 2024 16:40:01 +0000 (17:40 +0100)
commite2addba4930558a6f37a2e4b2cb6f726638a6dce
treefc918029ec54c9965dc05697f4edc75fd4f91163
parentb5a1f7513a2fcb1b9e646128ff0cb0dbba5ed6c1
iommu/dma: Document min_align_mask assumption

iommu-dma does not explicitly reference min_align_mask since we already
assume that will be less than or equal to any typical IOVA granule.
We wouldn't realistically expect to see the case where it is larger, and
that would be non-trivial to support, however for the sake of reasoning
(particularly around the interaction with SWIOTLB), let's clearly
enforce the assumption.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/dbb4d2d8e5d1691ac9a6c67e9758904e6c447ba5.1709553942.git.robin.murphy@arm.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/dma-iommu.c