Re: [Intel-gfx] [RFC PATCH 2/3] drm/ipvr: drm driver for vxd392

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

On Thu, Oct 16, 2014 at 3:39 PM, Cheng, Yao <yao.cheng@xxxxxxxxx> wrote:
> Accepted :) I will update the patch to implement the mmap interface and remove the legacy MMAP_IOCTL.
> BTW I didn't see a field to get mmap_offset in struct drm_gem_open, I guess something like a new  "GET_MMAP_OFFSET_IOCTL" need be added to support mapping flinked/primed BO, is it?

Yes. There is currently no generic interface to get mmap offsets for
any gem bo (because some of them may not be mapped from user-space or
require extra parameters).

So, either support dumb-buffers (if you don't need any advanced
parameters like tiling or cache constraints), or add an
MMAP_OFFSET_IOCTL like you proposed (and most drivers do so).

Thanks
David
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux