aboutsummaryrefslogtreecommitdiff
path: root/scripts/make_fit.py
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2024-05-20 20:14:44 +0100
committerJoerg Roedel <jroedel@suse.de>2024-06-04 13:54:09 +0200
commitcc8d89d0637990c66440a226f443d95340979a04 (patch)
tree71d6d2ddb40ff6696e897109f7af0b72acedf10d /scripts/make_fit.py
parenta295ec52c8624883885396fde7b4df1a179627c3 (diff)
iommu/dma: Fix domain init
Despite carefully rewording the kerneldoc to describe the new direct interaction with dma_range_map, it seems I managed to confuse myself in removing the redundant force_aperture check and ended up making the code not do that at all. This led to dma_range_maps inadvertently being able to set iovad->start_pfn = 0, and all the nonsensical chaos which ensues from there. Restore the correct behaviour of constraining base_pfn to the domain aperture regardless of dma_range_map, and not trying to apply dma_range_map constraints to the basic IOVA domain since they will be properly handled with reserved regions later. Reported-by: Jon Hunter <jonathanh@nvidia.com> Reported-by: Jerry Snitselaar <jsnitsel@redhat.com> Fixes: ad4750b07d34 ("iommu/dma: Make limit checks self-contained") Signed-off-by: Robin Murphy <robin.murphy@arm.com> Tested-by: Jerry Snitselaar <jsnitsel@redhat.com> Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com> Link: https://lore.kernel.org/r/721fa6baebb0924aa40db0b8fb86bcb4538434af.1716232484.git.robin.murphy@arm.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'scripts/make_fit.py')
0 files changed, 0 insertions, 0 deletions