[PATCH v2 15/23] iommu/pages: Move the __GFP_HIGHMEM checks into the common code
Baolu Lu
baolu.lu at linux.intel.com
Sat Feb 15 01:10:32 PST 2025
On 2/15/25 01:07, Jason Gunthorpe wrote:
> The entire allocator API is built around using the kernel virtual address,
> it is illegal to pass GFP_HIGHMEM in as a GFP flag. Block it in the common
> code. Remove the duplicated checks from drivers.
>
> Signed-off-by: Jason Gunthorpe<jgg at nvidia.com>
> ---
> drivers/iommu/io-pgtable-arm.c | 2 --
> drivers/iommu/io-pgtable-dart.c | 1 -
> drivers/iommu/iommu-pages.c | 4 ++++
> 3 files changed, 4 insertions(+), 3 deletions(-)
Reviewed-by: Lu Baolu <baolu.lu at linux.intel.com>
More information about the linux-riscv
mailing list