[PATCH 2/7] drm/amdgpu: Add VCRAT NUMA affinity entry
Donet Tom <[email protected]> Tue, 4 Aug 2026 15:22:31 +0530
| Newsgroups | org.freedesktop.lists.amd-gfx |
|---|---|
| Message-ID | <1bc2f3dec1e1581c75cf5a3a763501938904e204.1785833981.git.donettom@linux.ibm.com> |
Add a new VCRAT subtype to describe NUMA affinity information. The new entry stores the NUMA node ID and proximity domain. Signed-off-by: Donet Tom <[email protected]> --- drivers/gpu/drm/amd/amdkfd/kfd_crat.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_crat.h b/drivers/gpu/drm/amd/amdkfd/kfd_crat.h index 252fa94aaab9..934cbb54b0ba 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_crat.h +++ b/drivers/gpu/drm/amd/amdkfd/kfd_crat.h @@ -75,7 +75,8 @@ struct crat_header { #define CRAT_SUBTYPE_TLB_AFFINITY 3 #define CRAT_SUBTYPE_CCOMPUTE_AFFINITY 4 #define CRAT_SUBTYPE_IOLINK_AFFINITY 5 -#define CRAT_SUBTYPE_MAX 6 +#define CRAT_SUBTYPE_NUMA_AFFINITY 6 +#define CRAT_SUBTYPE_MAX 7 /* * Do not change the value of CRAT_SIBLINGMAP_SIZE from 32 @@ -280,6 +281,18 @@ struct crat_subtype_iolink { uint8_t weight_xgmi; }; +/* + * HSA NUMA sub-type header + */ +struct crat_subtype_numa { + uint8_t type; + uint8_t length; + uint16_t reserved; + uint32_t flags; + uint32_t numa_node; + uint32_t proximity_domain; +}; + /* * HSA generic sub-type header */ -- 2.54.0