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 179f01d44d147aed1da7871a471d47e2022c783b..147ce0ebf092d897ed494f39055586a100363739 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 1dda9321bd5a2c26ecc1069d222ca7ec0b9ed14d..bd0d33125c18a74c354c7db2c475a7cfa230b460 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 a12cb1b9a7e1b019ac8fd326bd15e1fbb26df300..18c72c0b478d47f35394885e47f49e2a6925e2ce 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);