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