diff options
author | Lu Baolu <baolu.lu@linux.intel.com> | 2022-10-19 02:44:44 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2022-10-21 10:49:32 +0200 |
commit | 0251d0107cfb0bb5ab2d3f97710487b9522db020 (patch) | |
tree | d009578f582aed73a50f4083957dfb747f9287e1 /drivers/acpi/arm64 | |
parent | Linux 6.1-rc1 (diff) | |
download | linux-0251d0107cfb0bb5ab2d3f97710487b9522db020.tar.xz linux-0251d0107cfb0bb5ab2d3f97710487b9522db020.zip |
iommu: Add gfp parameter to iommu_alloc_resv_region
Add gfp parameter to iommu_alloc_resv_region() for the callers to specify
the memory allocation behavior. Thus iommu_alloc_resv_region() could also
be available in critical contexts.
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Tested-by: Alex Williamson <alex.williamson@redhat.com>
Link: https://lore.kernel.org/r/20220927053109.4053662-2-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/acpi/arm64')
-rw-r--r-- | drivers/acpi/arm64/iort.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c index ca2aed86b540..8059baf4ef27 100644 --- a/drivers/acpi/arm64/iort.c +++ b/drivers/acpi/arm64/iort.c @@ -1142,7 +1142,8 @@ static void iort_iommu_msi_get_resv_regions(struct device *dev, struct iommu_resv_region *region; region = iommu_alloc_resv_region(base + SZ_64K, SZ_64K, - prot, IOMMU_RESV_MSI); + prot, IOMMU_RESV_MSI, + GFP_KERNEL); if (region) list_add_tail(®ion->list, head); } |