On 2023/1/17 11:38, Tian, Kevin wrote:
From: Jason Gunthorpe<j...@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

Reply via email to