drm/amd/amdkfd: Add GFX12 PTE flag to SVM get PTE function
Add new GFX12 PTE flag AMDGPU_PTE_IS_PTE to svm_range_get_pte_flags function. This resolves the issues related to SVM enablement in GFX12. 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>
This commit is contained in:
committed by
Alex Deucher
parent
c5faf18bbe
commit
a8a4615ba0
@@ -1264,6 +1264,8 @@ svm_range_get_pte_flags(struct kfd_node *node,
|
||||
pte_flags = AMDGPU_PTE_VALID;
|
||||
pte_flags |= (domain == SVM_RANGE_VRAM_DOMAIN) ? 0 : AMDGPU_PTE_SYSTEM;
|
||||
pte_flags |= snoop ? AMDGPU_PTE_SNOOPED : 0;
|
||||
if (KFD_GC_VERSION(node) >= IP_VERSION(12, 0, 0))
|
||||
pte_flags |= AMDGPU_PTE_IS_PTE;
|
||||
|
||||
pte_flags |= amdgpu_gem_va_map_flags(node->adev, mapping_flags);
|
||||
return pte_flags;
|
||||
|
||||
Reference in New Issue
Block a user