Skip to content

Commit cd54dc1

Browse files
Jack Xiaogregkh
authored andcommitted
drm/amdgpu: fix incorrect vm flags to map bo
[ Upstream commit 040bc6d ] It should use vm flags instead of pte flags to specify bo vm attributes. Fixes: 7946340 ("drm/amdgpu: Move csa related code to separate file") Signed-off-by: Jack Xiao <Jack.Xiao@amd.com> Reviewed-by: Likun Gao <Likun.Gao@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit b08425f) Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 0d086c8 commit cd54dc1

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_PTE_READABLE | AMDGPU_PTE_WRITEABLE |
92-
AMDGPU_PTE_EXECUTABLE);
91+
AMDGPU_VM_PAGE_READABLE | AMDGPU_VM_PAGE_WRITEABLE |
92+
AMDGPU_VM_PAGE_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)