summaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorPhilip Yang2019-04-18 00:15:19 +0200
committerAlex Deucher2019-04-19 18:58:22 +0200
commit96354b5ca4ac74d2e47e75987283963001b517f6 (patch)
tree9b745f18ef62f51a6f490ec0ac12c8a3742707c4 /include/drm
parentdrm/v3d: Add missing implicit synchronization. (diff)
downloadkernel-qcow2-linux-96354b5ca4ac74d2e47e75987283963001b517f6.tar.gz
kernel-qcow2-linux-96354b5ca4ac74d2e47e75987283963001b517f6.tar.xz
kernel-qcow2-linux-96354b5ca4ac74d2e47e75987283963001b517f6.zip
drm: increase drm mmap_range size to 1TB
After patch "drm: Use the same mmap-range offset and size for GEM and TTM", application failed to create bo of system memory because drm mmap_range size decrease to 64GB from original 1TB. This is not big enough for applications. Increase the drm mmap_range size to 1TB. Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Philip Yang <Philip.Yang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190417221507.933-1-Philip.Yang@amd.com
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_vma_manager.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/drm_vma_manager.h b/include/drm/drm_vma_manager.h
index f4f8ff1cdeec..76ac5e97a559 100644
--- a/include/drm/drm_vma_manager.h
+++ b/include/drm/drm_vma_manager.h
@@ -35,7 +35,7 @@
*/
#if BITS_PER_LONG == 64
#define DRM_FILE_PAGE_OFFSET_START ((0xFFFFFFFFUL >> PAGE_SHIFT) + 1)
-#define DRM_FILE_PAGE_OFFSET_SIZE ((0xFFFFFFFFUL >> PAGE_SHIFT) * 16)
+#define DRM_FILE_PAGE_OFFSET_SIZE ((0xFFFFFFFFUL >> PAGE_SHIFT) * 256)
#else
#define DRM_FILE_PAGE_OFFSET_START ((0xFFFFFFFUL >> PAGE_SHIFT) + 1)
#define DRM_FILE_PAGE_OFFSET_SIZE ((0xFFFFFFFUL >> PAGE_SHIFT) * 16)