Skip to content

Commit bbcc351

Browse files
superm1alexdeucher
authored andcommitted
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>
1 parent 7386f88 commit bbcc351

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/gpu/drm/amd/amdkfd/kfd_crat.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2041,7 +2041,8 @@ static int kfd_fill_gpu_direct_io_link_to_cpu(int *avail_size,
20412041
sub_type_hdr->proximity_domain_from = proximity_domain;
20422042

20432043
#ifdef CONFIG_ACPI_NUMA
2044-
if (kdev->adev->pdev->dev.numa_node == NUMA_NO_NODE)
2044+
if (kdev->adev->pdev->dev.numa_node == NUMA_NO_NODE &&
2045+
num_possible_nodes() > 1)
20452046
kfd_find_numa_node_in_srat(kdev);
20462047
#endif
20472048
#ifdef CONFIG_NUMA

0 commit comments

Comments
 (0)