]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu: Set proper MTYPE for GC 9.5.0
authorAlex Sierra <alex.sierra@amd.com>
Thu, 29 Feb 2024 20:55:58 +0000 (14:55 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Dec 2024 15:26:50 +0000 (10:26 -0500)
GC 9.5.0 local memory MTYPE default should be set as RW.

Signed-off-by: Alex Sierra <alex.sierra@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_svm.c

index c096caf314c0e90112307cfc430b8a572f10a93e..315916bec670973f0c0458eb224cb2cf162e0e8f 100644 (file)
@@ -1242,6 +1242,7 @@ svm_range_get_pte_flags(struct kfd_node *node,
                break;
        case IP_VERSION(9, 4, 3):
        case IP_VERSION(9, 4, 4):
+       case IP_VERSION(9, 5, 0):
                if (ext_coherent)
                        mtype_local = node->adev->rev_id ? AMDGPU_VM_MTYPE_CC : AMDGPU_VM_MTYPE_UC;
                else