]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging/vboxvideo: Use same BO mmap offset as other drivers
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 7 Feb 2019 08:59:27 +0000 (09:59 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:03:53 +0000 (15:03 -0500)
The vboxvideo driver mmaps BOs at 0x10000000 or higher. Changing the
offset to 0x100000000 aligns the driver with all other DRM drivers.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/staging/vboxvideo/vbox_drv.h

index aa40e5cc286137aed2f3ade27dd0db19f7b1b6ec..eba5a8bc9cea9be690dd707752d93da64a2ab176 100644 (file)
@@ -209,7 +209,7 @@ int vbox_dumb_mmap_offset(struct drm_file *file,
                          struct drm_device *dev,
                          u32 handle, u64 *offset);
 
-#define DRM_FILE_PAGE_OFFSET (0x10000000ULL >> PAGE_SHIFT)
+#define DRM_FILE_PAGE_OFFSET (0x100000000ULL >> PAGE_SHIFT)
 
 int vbox_mm_init(struct vbox_private *vbox);
 void vbox_mm_fini(struct vbox_private *vbox);