Skip to content

Commit 5d14fda

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 <Amber.Lin@amd.com> Signed-off-by: David Yat Sin <David.YatSin@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 61feed0 commit 5d14fda

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)