Commit eaf717f
iommu/amd: Replace slab cache allocator with page allocator
Commit 05152a0 ("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>1 parent 1c608b0 commit eaf717f
3 files changed
+15
-36
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
316 | | - | |
317 | 316 | | |
318 | 317 | | |
319 | 318 | | |
| |||
492 | 491 | | |
493 | 492 | | |
494 | 493 | | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | 494 | | |
499 | 495 | | |
500 | 496 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
2931 | 2930 | | |
2932 | 2931 | | |
2933 | 2932 | | |
2934 | | - | |
2935 | | - | |
2936 | | - | |
2937 | 2933 | | |
2938 | 2934 | | |
2939 | 2935 | | |
| |||
3032 | 3028 | | |
3033 | 3029 | | |
3034 | 3030 | | |
3035 | | - | |
| 3031 | + | |
3036 | 3032 | | |
3037 | 3033 | | |
3038 | 3034 | | |
| |||
3094 | 3090 | | |
3095 | 3091 | | |
3096 | 3092 | | |
3097 | | - | |
3098 | | - | |
3099 | | - | |
3100 | | - | |
3101 | 3093 | | |
3102 | | - | |
3103 | | - | |
3104 | | - | |
3105 | | - | |
3106 | | - | |
3107 | | - | |
3108 | | - | |
3109 | | - | |
3110 | | - | |
3111 | | - | |
3112 | | - | |
3113 | 3094 | | |
3114 | 3095 | | |
3115 | 3096 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
80 | 78 | | |
81 | 79 | | |
82 | 80 | | |
| |||
3118 | 3116 | | |
3119 | 3117 | | |
3120 | 3118 | | |
3121 | | - | |
| 3119 | + | |
3122 | 3120 | | |
3123 | 3121 | | |
3124 | 3122 | | |
3125 | 3123 | | |
3126 | 3124 | | |
3127 | 3125 | | |
3128 | 3126 | | |
3129 | | - | |
| 3127 | + | |
3130 | 3128 | | |
3131 | 3129 | | |
3132 | 3130 | | |
3133 | 3131 | | |
3134 | 3132 | | |
3135 | 3133 | | |
3136 | | - | |
3137 | | - | |
3138 | | - | |
3139 | | - | |
3140 | | - | |
3141 | | - | |
3142 | 3134 | | |
3143 | 3135 | | |
3144 | 3136 | | |
| |||
3170 | 3162 | | |
3171 | 3163 | | |
3172 | 3164 | | |
| 3165 | + | |
| 3166 | + | |
| 3167 | + | |
| 3168 | + | |
| 3169 | + | |
| 3170 | + | |
| 3171 | + | |
| 3172 | + | |
3173 | 3173 | | |
3174 | 3174 | | |
3175 | 3175 | | |
3176 | 3176 | | |
3177 | 3177 | | |
3178 | 3178 | | |
3179 | 3179 | | |
| 3180 | + | |
| 3181 | + | |
3180 | 3182 | | |
3181 | 3183 | | |
3182 | 3184 | | |
| |||
3195 | 3197 | | |
3196 | 3198 | | |
3197 | 3199 | | |
3198 | | - | |
| 3200 | + | |
3199 | 3201 | | |
3200 | 3202 | | |
3201 | 3203 | | |
| |||
3230 | 3232 | | |
3231 | 3233 | | |
3232 | 3234 | | |
3233 | | - | |
| 3235 | + | |
3234 | 3236 | | |
3235 | 3237 | | |
3236 | 3238 | | |
| |||
0 commit comments