diff options
author | Christoph Hellwig <hch@lst.de> | 2022-02-14 11:12:59 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2022-04-18 07:21:12 +0200 |
commit | 742519538e6b07250c8085bbff4bd358bc03bf16 (patch) | |
tree | 4d215f3b5c90a35820b045efb36e572a56890ce6 /arch/x86/pci | |
parent | 8ba2ed1be90fc210126f68186564707478552c95 (diff) | |
download | linux-742519538e6b07250c8085bbff4bd358bc03bf16.tar.gz linux-742519538e6b07250c8085bbff4bd358bc03bf16.tar.bz2 linux-742519538e6b07250c8085bbff4bd358bc03bf16.zip |
swiotlb: pass a gfp_mask argument to swiotlb_init_late
Let the caller chose a zone to allocate from. This will be used
later on by the xen-swiotlb initialization on arm.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tested-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Diffstat (limited to 'arch/x86/pci')
-rw-r--r-- | arch/x86/pci/sta2x11-fixup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/pci/sta2x11-fixup.c b/arch/x86/pci/sta2x11-fixup.c index e0c039a75b2d..c7e6faf59a86 100644 --- a/arch/x86/pci/sta2x11-fixup.c +++ b/arch/x86/pci/sta2x11-fixup.c @@ -57,7 +57,7 @@ static void sta2x11_new_instance(struct pci_dev *pdev) int size = STA2X11_SWIOTLB_SIZE; /* First instance: register your own swiotlb area */ dev_info(&pdev->dev, "Using SWIOTLB (size %i)\n", size); - if (swiotlb_init_late(size)) + if (swiotlb_init_late(size, GFP_DMA)) dev_emerg(&pdev->dev, "init swiotlb failed\n"); } list_add(&instance->list, &sta2x11_instance_list); |