Thread (80 messages) flat view 80 messages, 8 authors, 1d ago

Re: [PATCH] arm64: swiotlb: Keep the default size for protected guests

From: Jason Gunthorpe <jgg@ziepe.ca>
Date: 2026-08-07 18:20:34
Also in: linux-arm-kernel, linux-coco, linux-iommu, linux-s390, lkml

On Fri, Aug 07, 2026 at 06:13:49PM +0000, Mostafa Saleh wrote:
But the whole thing is best effort anyway, the kernel picks
IO_TLB_DEFAULT_SIZE which does not depend on the system topology or
how many devices or how much DMA they do.
SWIOTLB memory is wasted if unused so we should be careful around
that as it would be the other way around and users would have to
decrease it manually.
Yeah, it is why the arch code shouldn't really be sizing it directly,
it should be done in common code and, yes, we are probably going to
have to do something alot smarter to have the common code better
auto-tune this for the CC case..

Jason
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help