Re: [PATCH 1/8] drm: add mmap() to drm_gem_object_funcs

2019-09-17 Thread Daniel Vetter
On Fri, Sep 13, 2019 at 02:29:01PM +0200, Gerd Hoffmann wrote: > drm_gem_object_funcs->vm_ops alone can't handle everything which needs > to be done for mmap(), tweaking vm_flags for example. So add a new > mmap() callback to drm_gem_object_funcs where this code can go to. > > Note that the vm_op

[PATCH 1/8] drm: add mmap() to drm_gem_object_funcs

2019-09-13 Thread Gerd Hoffmann
drm_gem_object_funcs->vm_ops alone can't handle everything which needs to be done for mmap(), tweaking vm_flags for example. So add a new mmap() callback to drm_gem_object_funcs where this code can go to. Note that the vm_ops field is not used in case the mmap callback is presnt, it is expected t