generic: 6.6: backport arm64 swiotlb default size reduction
authorRobert Marko <robimarko@gmail.com>
Sat, 6 Apr 2024 21:08:03 +0000 (23:08 +0200)
committerRobert Marko <robimarko@gmail.com>
Sun, 7 Apr 2024 12:28:53 +0000 (14:28 +0200)
commit153c9f348270bf6fb727abf96726c082a7d41aa7
treefdfc45f2f58cc0d7abb8b178859d901c16deb9cb
parent1ea6ddacc2d8b32ddbdb11cd5ceff3f2dbca0bfc
generic: 6.6: backport arm64 swiotlb default size reduction

Kernel 6.6 added dynamic SWIOTLB allocation, but with it also started
allocating 64MB of the SWIOTLB bounce buffer by default which is quite a
lot of memory on most OpenWrt devices.

Luckily in kernel 6.7 arm64 received an optimization that reduces that
default size to 1MB per 1GB of RAM if certain criteria was met.

So in order to reclaim back 63MB of RAM which brought some ipq807x devices
close to OOM under load lets backport the upstream commit.

Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/generic/backport-6.6/300-v6.7-arm64-swiotlb-Reduce-the-default-size-if-no-ZONE_DMA.patch [new file with mode: 0644]