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

From: Vasant Hegde

Date: Mon Feb 23 2026 - 01:26:27 EST


On 2/11/2026 9:28 AM, 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>

Reviewed-by: Vasant Hegde <vasant.hegde@xxxxxxx>

-Vasant