[PATCH 14/16] drm/omap: enable GEM mmap access management

David Herrmann dh.herrmann at gmail.com
Tue Aug 13 12:38:35 PDT 2013


Set DRIVER_GEM_MMAP to make GEM core track buffer accesses via the DRM VMA
Offset Manager.

Cc: Rob Clark <robdclark at gmail.com>
Signed-off-by: David Herrmann <dh.herrmann at gmail.com>
---
 drivers/gpu/drm/omapdrm/omap_drv.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/omapdrm/omap_drv.c b/drivers/gpu/drm/omapdrm/omap_drv.c
index 2f9e22e..700e71f 100644
--- a/drivers/gpu/drm/omapdrm/omap_drv.c
+++ b/drivers/gpu/drm/omapdrm/omap_drv.c
@@ -605,7 +605,8 @@ static const struct file_operations omapdriver_fops = {
 
 static struct drm_driver omap_drm_driver = {
 		.driver_features =
-				DRIVER_HAVE_IRQ | DRIVER_MODESET | DRIVER_GEM | DRIVER_PRIME,
+				DRIVER_HAVE_IRQ | DRIVER_MODESET | DRIVER_GEM |
+				DRIVER_PRIME | DRIVER_GEM_MMAP,
 		.load = dev_load,
 		.unload = dev_unload,
 		.open = dev_open,
-- 
1.8.3.4



More information about the dri-devel mailing list