iommu/iova: Manage the depot list size
authorRobin Murphy <robin.murphy@arm.com>
Tue, 12 Sep 2023 16:28:06 +0000 (17:28 +0100)
committerJoerg Roedel <jroedel@suse.de>
Mon, 25 Sep 2023 10:07:44 +0000 (12:07 +0200)
commit233045378dbbc0a7346127d19a54d4f91e0bd855
treec2ede5179403669d7a6876185615d11625efafb2
parent911aa1245da83ff5e76d33bb612d8b5a3f2ec4a5
iommu/iova: Manage the depot list size

Automatically scaling the depot up to suit the peak capacity of a
workload is all well and good, but it would be nice to have a way to
scale it back down again if the workload changes. To that end, add
backround reclaim that will gradually free surplus magazines if the
depot size remains above a reasonable threshold for long enough.

Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/03170665c56d89c6ce6081246b47f68d4e483308.1694535580.git.robin.murphy@arm.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iova.c