drm/amdgpu: fix amdgpu_bo_va_mapping flags
Subsystems (2)
PATCH 1/1 drm/amdgpu: fix amdgpu_bo_va_mapping flags
From: Christian König <[email protected]>
They are 64bit not 32 for a while now.
--- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu.h +1 -1
@@ -359,7 +359,7 @@ struct amdgpu_bo_va_mapping {struct list_head list;struct interval_tree_node it;uint64_t offset; -uint32_t flags; +uint64_t flags; };/* bo virtual addresses in a specific vm */
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +1 -1
@@ -1293,7 +1293,7 @@ struct amdgpu_bo_va *amdgpu_vm_bo_add(struct amdgpu_device *adev,int amdgpu_vm_bo_map (struct amdgpu_device *adev,struct amdgpu_bo_va *bo_va,uint64_t saddr,uint64_t offset, -uint64_t size,uint32_t flags) +uint64_t size,uint64_t flags) {struct amdgpu_bo_va_mapping *mapping;struct amdgpu_vm *vm = bo_va->vm;
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h +1 -1
@@ -197,7 +197,7 @@ struct amdgpu_bo_va *amdgpu_vm_bo_add(struct amdgpu_device *adev,int amdgpu_vm_bo_map (struct amdgpu_device *adev,struct amdgpu_bo_va *bo_va,uint64_t addr,uint64_t offset, -uint64_t size,uint32_t flags); +uint64_t size,uint64_t flags);int amdgpu_vm_bo_unmap (struct amdgpu_device *adev,struct amdgpu_bo_va *bo_va,uint64_t addr);
Signature · 6 lines
2.5.0 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1485512911-2926-1-git-send-email-deathsimple-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org
Deucher, Alexander
Reviewed-by Alex DeucherQuoted 7 lines
-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Christian König
Sent: Friday, January 27, 2017 5:29 AM
To: [email protected]
Subject: [PATCH] drm/amdgpu: fixamdgpu_bo_va_mappingflags
Quoted 6 lines
From: Christian König <[email protected]>
They are 64bit not 32 for a while now.
Signed-off-by Christian König <[email protected]>Reviewed-by Nicolai Hähnle <[email protected]>
Quoted 53 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu.h +1
-1@@ -359,7 +359,7 @@ struct amdgpu_bo_va_mapping {struct list_head list;struct interval_tree_node it;uint64_t offset; -uint32_t flags; +uint64_t flags; };/* bo virtual addresses in a specific vm */ drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +1
-1@@ -1293,7 +1293,7 @@ struct amdgpu_bo_va *amdgpu_vm_bo_add(struct amdgpu_device *adev, int amdgpu_vm_bo_map(struct amdgpu_device *adev, struct amdgpu_bo_va *bo_va, uint64_t saddr, uint64_t offset, - uint64_t size, uint32_t flags) + uint64_t size, uint64_t flags) { struct amdgpu_bo_va_mapping *mapping;drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +0
-0struct amdgpu_vm *vm = bo_va->vm;drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h +1
-1@@ -197,7 +197,7 @@ struct amdgpu_bo_va *amdgpu_vm_bo_add(structamdgpu_device *adev, int amdgpu_vm_bo_map(struct amdgpu_device *adev,struct amdgpu_bo_va *bo_va,uint64_t addr,uint64_t offset, -uint64_t size,uint32_t flags); +uint64_t size,uint64_t flags); int amdgpu_vm_bo_unmap(struct amdgpu_device *adev, struct amdgpu_bo_va *bo_va,
uint64_taddr);
--
2.5.0
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx