> -----Original Message----- > From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf > Of Christian König > Sent: Friday, January 27, 2017 5:29 AM > To: amd-gfx at lists.freedesktop.org > Subject: [PATCH] drm/amdgpu: fix amdgpu_bo_va_mapping flags > > From: Christian König <christian.koenig at amd.com> > > They are 64bit not 32 for a while now. > > Signed-off-by: Christian König <christian.koenig at amd.com> > Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com> Reviewed-by: Alex Deucher <alexander.deucher at amd.com> > --- > 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(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h > b/drivers/gpu/drm/amd/amdgpu/amdgpu.h > index 4be8022..402a895 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h > @@ -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 */ > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c > b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c > index d05546e..8e6030d 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c > @@ -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; > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h > b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h > index f8dcea7..1f99715 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h > @@ -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); > -- > 2.5.0 > > _______________________________________________ > amd-gfx mailing list > amd-gfx at lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx