Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

David Yat Sin and committed by
Alex Deucher
5d14fdab 61feed0b

+1 -1
+1 -1
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
··· 1278 1278 mapping_flags |= ext_coherent ? AMDGPU_VM_MTYPE_UC : AMDGPU_VM_MTYPE_NC; 1279 1279 /* system memory accessed by the dGPU */ 1280 1280 } else { 1281 - if (gc_ip_version < IP_VERSION(9, 5, 0)) 1281 + if (gc_ip_version < IP_VERSION(9, 5, 0) || ext_coherent) 1282 1282 mapping_flags |= AMDGPU_VM_MTYPE_UC; 1283 1283 else 1284 1284 mapping_flags |= AMDGPU_VM_MTYPE_NC;