]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu/amd: Replace slab cache allocator with page allocator
authorSairaj Kodilkar <sarunkod@amd.com>
Fri, 7 Mar 2025 09:58:20 +0000 (15:28 +0530)
committerJoerg Roedel <jroedel@suse.de>
Thu, 13 Mar 2025 11:14:15 +0000 (12:14 +0100)
commiteaf717fa1c3f01ed7762f0733787b07d1ab6c970
treedd2484213feb5a24f81019a37102070f088ed0ef
parent1c608b0b280d8a33edee28f4fb531151b47ec33c
iommu/amd: Replace slab cache allocator with page allocator

Commit 05152a049444 ("iommu/amd: Add slab-cache for irq remapping tables")
introduces slab cache allocator. But slab cache allocator provides benefit
only when the allocation and deallocation of many identical objects is
frequent. The AMD IOMMU driver allocates Interrupt remapping table (IRT)
when device driver requests IRQ for the first time and never frees it.
Hence the slab allocator does not provide any benefit here.

Signed-off-by: Sairaj Kodilkar <sarunkod@amd.com>
Reviewed-by: Vasant Hegde <vasant.hegde@amd.com>
Link: https://lore.kernel.org/r/20250307095822.2274-3-sarunkod@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/amd_iommu_types.h
drivers/iommu/amd/init.c
drivers/iommu/amd/iommu.c