<br><br><div class="gmail_quote">2013/9/26 Al Viro <span dir="ltr"><<a href="mailto:viro@zeniv.linux.org.uk" target="_blank">viro@zeniv.linux.org.uk</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
<div class="im">On Wed, Sep 25, 2013 at 01:34:30PM +0900, Inki Dae wrote:<br>
<br>
> It seems that we can use a new anon file instead of using drm file to<br>
> resolve the issue.<br>
<br>
</div>Could you describe what are you trying to achieve with that ioctl() and<br>
what semantics do you want from normal mmap()?<br></blockquote><div> </div><div>Ok, The reason that we are using ioctl mmap is that I thought it doesn't need demand paging mechanism for drm driver for ARM SoCs: they have no iommu so need physically continuous memory for DMA.</div>
<div> </div><div>And another reason is that dumb* interface - it seems that you say this interface is a normal mmap but this is a fake mmap - has more steps against ioctl mmap. So to map some user space with physical pages, first, application should request a gem allocation, and then request a hash key of the allcated gem, and then fake mmap. This fake mmap system call doesn't map a given user space with the physical pages. And then the user space will be mapped with the physical pages by page fault handler when cpu tries to access the user space. On the other hand, the ioctl mmap call will map the user space with physical pages, and I thought this way would have better performance than normal mmap at least in case of ARM based SoC.</div>
<div> </div><div>And last, the reason I had implemented the normal mmap is that dumb* interfaces are required as default. i.e. modetest app of libdrm uses only dumb interfaces for buffer management.</div><div> </div><div>
Anyway,we have faced with some issues by using ioctl mmap and normal mmap together, and these issues should be fixed.</div><div> </div><div> </div><div>Thanks,</div><div>Inki Dae</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">

<div class="HOEnZb"><div class="h5">_______________________________________________<br>
dri-devel mailing list<br>
<a href="mailto:dri-devel@lists.freedesktop.org">dri-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/dri-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/dri-devel</a><br>
</div></div></blockquote></div><br>