diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2016-11-18 15:15:16 +0100 |
---|---|---|
committer | Lucas Stach <l.stach@pengutronix.de> | 2016-12-02 19:30:21 +0100 |
commit | 5688e57eb50c08922d0ff88bb30fe65b508917a0 (patch) | |
tree | bcf24c889e0419485f4f397ce8db9e8f53d63a2a /drivers/gpu/drm/etnaviv/etnaviv_drv.c | |
parent | a909d3e636995ba7c349e2ca5dbb528154d4ac30 (diff) | |
download | blackbird-obmc-linux-5688e57eb50c08922d0ff88bb30fe65b508917a0.tar.gz blackbird-obmc-linux-5688e57eb50c08922d0ff88bb30fe65b508917a0.zip |
drm/etnaviv: implement dma-buf mmap
This adds the required boilerplate to allow direct mmap of exported
etnaviv BOs.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Tested-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/gpu/drm/etnaviv/etnaviv_drv.c')
-rw-r--r-- | drivers/gpu/drm/etnaviv/etnaviv_drv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b/drivers/gpu/drm/etnaviv/etnaviv_drv.c index aa687669e22b..38720adfc62f 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_drv.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_drv.c @@ -505,6 +505,7 @@ static struct drm_driver etnaviv_drm_driver = { .gem_prime_import_sg_table = etnaviv_gem_prime_import_sg_table, .gem_prime_vmap = etnaviv_gem_prime_vmap, .gem_prime_vunmap = etnaviv_gem_prime_vunmap, + .gem_prime_mmap = etnaviv_gem_prime_mmap, #ifdef CONFIG_DEBUG_FS .debugfs_init = etnaviv_debugfs_init, .debugfs_cleanup = etnaviv_debugfs_cleanup, |