Re: [PATCH] iommu/amd: Add NUMA node affinity for IOMMU log buffers

From: Joerg Roedel

Date: Tue Mar 17 2026 - 08:29:03 EST


On Tue, Feb 10, 2026 at 10:58:39PM -0500, lirongqing wrote:
> From: Li RongQing <lirongqing@xxxxxxxxx>
>
> Currently, PPR Log and GA logs for AMD IOMMU are allocated using
> iommu_alloc_pages_sz(), which does not account for NUMA affinity. This can
> lead to remote memory access latencies if the memory is allocated on a
> different node than the IOMMU hardware.
>
> Switch to iommu_alloc_pages_node_sz() to ensure that these data structures
> are allocated on the same NUMA node as the IOMMU device. If the node
> information is unavailable, it defaults to NUMA_NO_NODE.
>
> Signed-off-by: Li RongQing <lirongqing@xxxxxxxxx>
> ---
> drivers/iommu/amd/init.c | 9 ++++++---
> 1 file changed, 6 insertions(+), 3 deletions(-)

Applied, thanks.