drm/amdgpu: fix amdgpu_bo_va_mapping flags
authorChristian König <christian.koenig@amd.com>
Wed, 18 Jan 2017 13:49:43 +0000 (14:49 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 27 Jan 2017 17:20:45 +0000 (12:20 -0500)
They are 64bit not 32 for a while now.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h

index 179f01d..147ce0e 100644 (file)
@@ -357,7 +357,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 */
index 1dda932..bd0d331 100644 (file)
@@ -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;
index a12cb1b..18c72c0 100644 (file)
@@ -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);