]> git.baikalelectronics.ru Git - kernel.git/commit
iommu: Add gfp parameter to iommu_alloc_resv_region
authorLu Baolu <baolu.lu@linux.intel.com>
Wed, 19 Oct 2022 00:44:44 +0000 (08:44 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 21 Oct 2022 08:49:32 +0000 (10:49 +0200)
commitc3da1fb87397181cae1e9bf2107fc9c7081d6be6
treed009578f582aed73a50f4083957dfb747f9287e1
parent6358759813eb1920a7e9bc57799a80a94f6c66b8
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>
drivers/acpi/arm64/iort.c
drivers/iommu/amd/iommu.c
drivers/iommu/apple-dart.c
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
drivers/iommu/arm/arm-smmu/arm-smmu.c
drivers/iommu/intel/iommu.c
drivers/iommu/iommu.c
drivers/iommu/mtk_iommu.c
drivers/iommu/virtio-iommu.c
include/linux/iommu.h