Skip to content

Commit 6246136

Browse files
dayatsin-amdalexdeucher
authored andcommitted
amdkfd: MTYPE_UC for ext-coherent system memory
Set memory mtype to UC host memory when ext-coherent flag is set and memory is registered as a SVM allocation. Reviewed-by: Amber Lin <[email protected]> Signed-off-by: David Yat Sin <[email protected]> Signed-off-by: Alex Deucher <[email protected]> (cherry picked from commit 5d14fda)
1 parent 905967e commit 6246136

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1278,7 +1278,7 @@ svm_range_get_pte_flags(struct kfd_node *node,
12781278
mapping_flags |= ext_coherent ? AMDGPU_VM_MTYPE_UC : AMDGPU_VM_MTYPE_NC;
12791279
/* system memory accessed by the dGPU */
12801280
} else {
1281-
if (gc_ip_version < IP_VERSION(9, 5, 0))
1281+
if (gc_ip_version < IP_VERSION(9, 5, 0) || ext_coherent)
12821282
mapping_flags |= AMDGPU_VM_MTYPE_UC;
12831283
else
12841284
mapping_flags |= AMDGPU_VM_MTYPE_NC;

0 commit comments

Comments
 (0)