aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorLeonardo Bras <[email protected]>2021-03-18 17:44:17 +0000
committerMichael Ellerman <[email protected]>2021-04-23 02:54:58 +0000
commitfc5590fd56c9608f317729b59a56dad2a75d633f (patch)
tree6532e998bd0ec038e3fc4aedaa8c46d6fd7ae54e /net/switchdev/switchdev.c
parentpowerpc/kernel/iommu: Align size for IOMMU_PAGE_SIZE() to save TCEs (diff)
downloadkernel-fc5590fd56c9608f317729b59a56dad2a75d633f.tar.gz
kernel-fc5590fd56c9608f317729b59a56dad2a75d633f.zip
powerpc/kernel/iommu: Use largepool as a last resort when !largealloc
As of today, doing iommu_range_alloc() only for !largealloc (npages <= 15) will only be able to use 3/4 of the available pages, given pages on largepool not being available for !largealloc. This could mean some drivers not being able to fully use all the available pages for the DMA window. Add pages on largepool as a last resort for !largealloc, making all pages of the DMA window available. Signed-off-by: Leonardo Bras <[email protected]> Reviewed-by: Alexey Kardashevskiy <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions