diff options
| author | Jack Xiao <[email protected]> | 2025-08-11 07:20:55 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-08-12 20:08:04 +0000 |
| commit | 040bc6d0e0e9c814c9c663f6f1544ebaff6824a8 (patch) | |
| tree | 3a2132f54fd3112ab461c7f5e1bea881cec671de /drivers/gpu/drm/amd | |
| parent | drm/amdgpu: fix vram reservation issue (diff) | |
| download | kernel-040bc6d0e0e9c814c9c663f6f1544ebaff6824a8.tar.gz kernel-040bc6d0e0e9c814c9c663f6f1544ebaff6824a8.zip | |
drm/amdgpu: fix incorrect vm flags to map bo
It should use vm flags instead of pte flags
to specify bo vm attributes.
Fixes: 7946340fa389 ("drm/amdgpu: Move csa related code to separate file")
Signed-off-by: Jack Xiao <[email protected]>
Reviewed-by: Likun Gao <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
(cherry picked from commit b08425fa77ad2f305fe57a33dceb456be03b653f)
Diffstat (limited to 'drivers/gpu/drm/amd')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c index 02138aa55793..dfb6cfd83760 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c @@ -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_PTE_READABLE | AMDGPU_PTE_WRITEABLE | - AMDGPU_PTE_EXECUTABLE); + AMDGPU_VM_PAGE_READABLE | AMDGPU_VM_PAGE_WRITEABLE | + AMDGPU_VM_PAGE_EXECUTABLE); if (r) { DRM_ERROR("failed to do bo_map on static CSA, err=%d\n", r); |
