Thread (32 messages) 32 messages, 3 authors, 2025-02-20

Re: [PATCH v2 15/23] iommu/pages: Move the __GFP_HIGHMEM checks into the common code

From: Baolu Lu <baolu.lu@linux.intel.com>
Date: 2025-02-15 09:15:27
Also in: asahi, linux-iommu, linux-patches, linux-riscv, linux-rockchip, linux-samsung-soc, linux-sunxi, linux-tegra

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@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@linux.intel.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help