]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iommu/amd: Add NUMA node affinity for IOMMU log buffers
authorLi RongQing <lirongqing@baidu.com>
Wed, 11 Feb 2026 03:58:39 +0000 (22:58 -0500)
committerJoerg Roedel <joerg.roedel@amd.com>
Tue, 17 Mar 2026 12:26:38 +0000 (13:26 +0100)
commit1e0c8d6b695217cb0b16f13e31c7f08b453097b4
tree799ff593812846f15c30aa5fbae420f845da9dcb
parentf338e77383789c0cae23ca3d48adcc5e9e137e3c
iommu/amd: Add NUMA node affinity for IOMMU log buffers

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@baidu.com>
Reviewed-by: Vasant Hegde <vasant.hegde@amd.com>
Reviewed-by: Ankit Soni <Ankit.Soni@amd.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/amd/init.c