diff options
author | Catalin Marinas <[email protected]> | 2023-10-05 16:40:30 +0100 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2023-10-13 16:10:39 +0100 |
commit | 65033574ade97afccba074d837fd269903a83a9a (patch) | |
tree | b6124c5c373f37bb368bd18f0089fb44c048c8de /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 6465e260f48790807eef06b583b38ca9789b6072 (diff) |
arm64: swiotlb: Reduce the default size if no ZONE_DMA bouncing needed
With CONFIG_DMA_BOUNCE_UNALIGNED_KMALLOC enabled, the arm64 kernel still
allocates the default SWIOTLB buffer (64MB) even if ZONE_DMA is disabled
or all the RAM fits into this zone. However, this potentially wastes a
non-negligible amount of memory on platforms with little RAM.
Reduce the SWIOTLB size to 1MB per 1GB of RAM if only needed for
kmalloc() buffer bouncing.
Signed-off-by: Catalin Marinas <[email protected]>
Suggested-by: Ross Burton <[email protected]>
Cc: Ross Burton <[email protected]>
Cc: Will Deacon <[email protected]>
Reviewed-by: Robin Murphy <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions