Revert "drm/amdgpu: fix incorrect vm flags to map bo"
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 25 Aug 2025 17:40:22 +0000 (13:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 27 Aug 2025 18:00:38 +0000 (14:00 -0400)
This reverts commit b08425fa77ad2f305fe57a33dceb456be03b653f.

Revert this to align with 6.17 because the fixes tag
was wrong on this commit.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit be33e8a239aac204d7e9e673c4220ef244eb1ba3)

drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c

index dfb6cfd83760697ab229b9cb1453248fe8df09d6..02138aa557935e4c483484480b9ed4d05689bb71 100644 (file)
@@ -88,8 +88,8 @@ int amdgpu_map_static_csa(struct amdgpu_device *adev, struct amdgpu_vm *vm,
        }
 
        r = amdgpu_vm_bo_map(adev, *bo_va, csa_addr, 0, size,
-                            AMDGPU_VM_PAGE_READABLE | AMDGPU_VM_PAGE_WRITEABLE |
-                            AMDGPU_VM_PAGE_EXECUTABLE);
+                            AMDGPU_PTE_READABLE | AMDGPU_PTE_WRITEABLE |
+                            AMDGPU_PTE_EXECUTABLE);
 
        if (r) {
                DRM_ERROR("failed to do bo_map on static CSA, err=%d\n", r);