On Mon, 15 Sep 2008 20:12:06 +0200 Thomas Hellström <[EMAIL PROTECTED]> wrote:
> Austin Yuan wrote: > > Hi, Thomas > > > > >From ttm_placement_user.h, it seems now TTM BO doesn't support user > > buffers. For the case that I want to pass a special memory token to > > kernel to indicate TTM to create a BO from the pages specified by the > > user space memory token, how can I achieve it, especially if a TTM BO > > derive from a SHMEM object? Can I create a SHMEM object with any > > pages backing it ? > > > It's possible to create a shmem object without any pages backing it, if > needed. > > For user-buffers one should probably construct a separate > driver-specific IOCTL. > Since this is an RFC, and I agree that user-buffers are sometimes very > handy I'll include > a user-buffer create IOCTL and send out a new version. > > Some examples of above use case, map pages which store frames from a > > camera into graphics memory space and then display or encode it > > directly avoiding a memory copy, video or display engine operates on > > pages locked by a security engine and CPU access is forbidden for > > digital rights management purpose. Those cases needs user space stuff > > pass some special private date to kernel memory manager for BO > > creation. This thing sounds like something I might use in the future: have a firewire camera to DMA images directly into memory accessible by the GPU, with probably user space handling the synchronization. I'm thinking real-time high resolution image processing and machine vision. And if I could RT-prioritize GPU threads/contexts, it would sound like the ideal environment for RT machine vision apps. It's something I've been dreaming about, just to let you know. -- Pekka Paalanen http://www.iki.fi/pq/ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel