Skip to content

Commit 7f5fffc

Browse files
alexdeuchergregkh
authored andcommitted
Revert "drm/amdgpu: fix incorrect vm flags to map bo"
commit ac4ed2d upstream. This reverts commit b08425f. 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 be33e8a) Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 183def8 commit 7f5fffc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ int amdgpu_map_static_csa(struct amdgpu_device *adev, struct amdgpu_vm *vm,
8888
}
8989

9090
r = amdgpu_vm_bo_map(adev, *bo_va, csa_addr, 0, size,
91-
AMDGPU_VM_PAGE_READABLE | AMDGPU_VM_PAGE_WRITEABLE |
92-
AMDGPU_VM_PAGE_EXECUTABLE);
91+
AMDGPU_PTE_READABLE | AMDGPU_PTE_WRITEABLE |
92+
AMDGPU_PTE_EXECUTABLE);
9393

9494
if (r) {
9595
DRM_ERROR("failed to do bo_map on static CSA, err=%d\n", r);

0 commit comments

Comments
 (0)