Re: [PATCH v6 6/8] dma: swiotlb: Centralize memory-encryption pool sizing

From
Aneesh Kumar K.V <aneesh.kumar@kernel.org>
Date
2026-11-12 10:14:18
Also in
linux-iommu, linux-mips, linux-riscv, linux-s390, lkml, loongarch
Reply to
Kohei Enju, 2026-11-11
Kohei Enju [off-list ref] writes:
Hi Aneesh,

On 11/01 09:47, Aneesh Kumar K.V wrote:
[...]
quoted
quoted
Hi Aneesh,
 [ ... 35 lines skipped ... ] 
Overall, I would prefer the dynamic sizing approach. However, I believe
the initial pool size still matters.

Also, as Catalin pointed out earlier in the following message:

    https://lore.kernel.org/all/ann6noRzoPLL9kDY@arm.com/ (local)

the arm64 adjustment also reduces the target size used for dynamic
pool allocation, since both the initial pool and dynamic allocation
currently use default_nslabs.

I am testing the patch below to decouple the initial pool size from the
dynamic allocation target. It adds swiotlb_adjust_initial_size() for
callers that only want to reduce the initial allocation, while keeping
the existing swiotlb_adjust_size() semantics for callers that want to
adjust both sizes.
Should we instead update the logic so that reducing the swiotlb size
leaves the dynamic allocation size unchanged, while increasing it also
bumps the dynamic allocation size?

-aneesh
Thread (29 messages) 29 messages, 5 authors, last reply 5d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help