drm/amd: Check that a system is a NUMA system before looking for SRAT
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 2 Jun 2023 12:18:06 +0000 (07:18 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 16:44:46 +0000 (12:44 -0400)
commitbbcc3514ab4f7ec3ae2273ad08b0a1b6b4aa9dd9
tree19147e1de4e0fa83a28b653c34177318ff267313
parent7386f88ab1732af890a09ab3a7f400bb20adbe5a
drm/amd: Check that a system is a NUMA system before looking for SRAT

It's pointless on laptops to look for the SRAT table as these are not
NUMA.  Check the number of possible nodes is > 1 to decide whether to
look for SRAT.

Suggested-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_crat.c