drm/amdkfd: Check correct memory types for is_system variable
authorSreekant Somasekharan <sreekant.somasekharan@amd.com>
Fri, 10 May 2024 04:09:32 +0000 (00:09 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 May 2024 21:40:37 +0000 (17:40 -0400)
commit0cce5f285d9ae81c33993f3270fe77f5e74a69ab
treeba1148f187e429bcefc4ae7a6d92ee95c7a7da2e
parentb72fa761fc6be316bbf3ef9af4b7f145a208b1f3
drm/amdkfd: Check correct memory types for is_system variable

To catch GPU mapping of system memory, TTM_PL_TT and AMDGPU_PL_PREEMPT
must be checked.

Fixes: 628e1ace2379 ("drm/amdkfd: mark GFX12 system and peer GPU memory mappings as MTYPE_NC")
Signed-off-by: Sreekant Somasekharan <sreekant.somasekharan@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c