[Linaro-mm-sig] [PATCH 6/7] drm/vgem: import support

2012-02-23 Thread Chris Wilson
On Wed, 22 Feb 2012 20:29:19 +0100, Ben Widawsky wrote: > + mutex_lock(&dev->prime_mutex); > + /* First check that we don't dup on this file */ > + ret = drm_prime_lookup_fd_handle_mapping(&file_priv->prime, dma_buf, > + handle); The other

[Linaro-mm-sig] [PATCH 6/7] drm/vgem: import support

2012-02-23 Thread Chris Wilson
On Wed, 22 Feb 2012 20:29:19 +0100, Ben Widawsky wrote: > dma-buf import support. The function definitely needs some cleanup. > > When reading through this code, there are 3 cases to consider: > 1. vgem exporter, vgem importer, same fd > 2. vgem exporter, vgem importer, different fd > 3. X expote

Re: [Linaro-mm-sig] [PATCH 6/7] drm/vgem: import support

2012-02-23 Thread Chris Wilson
On Wed, 22 Feb 2012 20:29:19 +0100, Ben Widawsky wrote: > + mutex_lock(&dev->prime_mutex); > + /* First check that we don't dup on this file */ > + ret = drm_prime_lookup_fd_handle_mapping(&file_priv->prime, dma_buf, > + handle); The other

Re: [Linaro-mm-sig] [PATCH 6/7] drm/vgem: import support

2012-02-23 Thread Chris Wilson
On Wed, 22 Feb 2012 20:29:19 +0100, Ben Widawsky wrote: > dma-buf import support. The function definitely needs some cleanup. > > When reading through this code, there are 3 cases to consider: > 1. vgem exporter, vgem importer, same fd > 2. vgem exporter, vgem importer, different fd > 3. X expote

[PATCH 6/7] drm/vgem: import support

2012-02-22 Thread Ben Widawsky
dma-buf import support. The function definitely needs some cleanup. When reading through this code, there are 3 cases to consider: 1. vgem exporter, vgem importer, same fd 2. vgem exporter, vgem importer, different fd 3. X expoter, vgem importer - not yet tested See the comments in the code for d

[PATCH 6/7] drm/vgem: import support

2012-02-22 Thread Ben Widawsky
dma-buf import support. The function definitely needs some cleanup. When reading through this code, there are 3 cases to consider: 1. vgem exporter, vgem importer, same fd 2. vgem exporter, vgem importer, different fd 3. X expoter, vgem importer - not yet tested See the comments in the code for d