Thread (23 messages) 23 messages, 6 authors, 2023-01-23

Re: [PATCH 7/8] iommu/intel: Support the gfp argument to the map_pages op

From: Baolu Lu <baolu.lu@linux.intel.com>
Date: 2023-01-17 08:37:07
Also in: ath11k, dri-devel, kvm, linux-arm-msm, linux-iommu, linux-media, linux-rdma, linux-remoteproc, linux-s390, linux-tegra, linux-wireless, netdev, nouveau

On 2023/1/17 11:38, Tian, Kevin wrote:
quoted
From: Jason Gunthorpe<jgg@nvidia.com>
Sent: Saturday, January 7, 2023 12:43 AM
@@ -2368,7 +2372,7 @@ static int iommu_domain_identity_map(struct
dmar_domain *domain,

  	return __domain_mapping(domain, first_vpfn,
  				first_vpfn, last_vpfn - first_vpfn + 1,
-				DMA_PTE_READ|DMA_PTE_WRITE);
+				DMA_PTE_READ|DMA_PTE_WRITE,
GFP_KERNEL);
  }
Baolu, can you help confirm whether switching from GFP_ATOMIC to
GFP_KERNEL is OK in this path? it looks fine to me in a quick glance
but want to be conservative here.
This is also good for me. The memory notifier callback runs in a process
context and allowed to block.

Best regards,
baolu

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help