<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/drivers/base/dma-buf.c, branch v3.10.97</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v3.10.97</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v3.10.97'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2013-05-01T11:06:22Z</updated>
<entry>
<title>dma-buf: Add debugfs support</title>
<updated>2013-05-01T11:06:22Z</updated>
<author>
<name>Sumit Semwal</name>
<email>sumit.semwal@linaro.org</email>
</author>
<published>2013-04-04T06:14:37Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=b89e35636bc75b72d15a1af6d49798802aff77d5'/>
<id>urn:sha1:b89e35636bc75b72d15a1af6d49798802aff77d5</id>
<content type='text'>
Add debugfs support to make it easier to print debug information
about the dma-buf buffers.

Cc: Dave Airlie &lt;airlied@redhat.com&gt;
 [minor fixes on init and warning fix]
Cc: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
 [remove double unlock in fail case]
Signed-off-by: Sumit Semwal &lt;sumit.semwal@linaro.org&gt;
</content>
</entry>
<entry>
<title>dma-buf: replace dma_buf_export() with dma_buf_export_named()</title>
<updated>2013-05-01T11:05:36Z</updated>
<author>
<name>Sumit Semwal</name>
<email>sumit.semwal@linaro.org</email>
</author>
<published>2013-03-22T12:52:16Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=78df969550e7187f4dcd70b737217dcbc8e9a06a'/>
<id>urn:sha1:78df969550e7187f4dcd70b737217dcbc8e9a06a</id>
<content type='text'>
For debugging purposes, it is useful to have a name-string added
while exporting buffers. Hence, dma_buf_export() is replaced with
dma_buf_export_named(), which additionally takes 'exp_name' as a
parameter.

For backward compatibility, and for lazy exporters who don't wish to
name themselves, a #define dma_buf_export() is also made available,
which adds a __FILE__ instead of 'exp_name'.

Cc: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
  [Thanks for the idea!]
Reviewed-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
Signed-off-by: Sumit Semwal &lt;sumit.semwal@linaro.org&gt;
</content>
</entry>
<entry>
<title>CHROMIUM: dma-buf: restore args on failure of dma_buf_mmap</title>
<updated>2013-02-27T09:44:02Z</updated>
<author>
<name>John Sheu</name>
<email>sheu@google.com</email>
</author>
<published>2013-02-12T01:50:24Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=495c10cc1c0c359871d5bef32dd173252fc17995'/>
<id>urn:sha1:495c10cc1c0c359871d5bef32dd173252fc17995</id>
<content type='text'>
Callers to dma_buf_mmap expect to fput() the vma struct's vm_file
themselves on failure.  Not restoring the struct's data on failure
causes a double-decrement of the vm_file's refcount.

Signed-off-by: John Sheu &lt;sheu@google.com&gt;
Reviewed-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
Signed-off-by: Sumit Semwal &lt;sumit.semwal@linaro.org&gt;
</content>
</entry>
<entry>
<title>dma-buf: implement vmap refcounting in the interface logic</title>
<updated>2013-02-27T09:43:36Z</updated>
<author>
<name>Daniel Vetter</name>
<email>daniel.vetter@ffwll.ch</email>
</author>
<published>2012-12-20T13:14:23Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=f00b4dad9d9eb001a04cf72e8351a2a1b9e99322'/>
<id>urn:sha1:f00b4dad9d9eb001a04cf72e8351a2a1b9e99322</id>
<content type='text'>
All drivers which implement this need to have some sort of refcount to
allow concurrent vmap usage. Hence implement this in the dma-buf core.

To protect against concurrent calls we need a lock, which potentially
causes new funny locking inversions. But this shouldn't be a problem
for exporters with statically allocated backing storage, and more
dynamic drivers have decent issues already anyway.

Inspired by some refactoring patches from Aaron Plattner, who
implemented the same idea, but only for drm/prime drivers.

v2: Check in dma_buf_release that no dangling vmaps are left.
Suggested by Aaron Plattner. We might want to do similar checks for
attachments, but that's for another patch. Also fix up ERR_PTR return
for vmap.

v3: Check whether the passed-in vmap address matches with the cached
one for vunmap. Eventually we might want to remove that parameter -
compared to the kmap functions there's no need for the vaddr for
unmapping.  Suggested by Chris Wilson.

v4: Fix a brown-paper-bag bug spotted by Aaron Plattner.

Cc: Aaron Plattner &lt;aplattner@nvidia.com&gt;
Reviewed-by: Aaron Plattner &lt;aplattner@nvidia.com&gt;
Tested-by: Aaron Plattner &lt;aplattner@nvidia.com&gt;
Reviewed-by: Rob Clark &lt;rob@ti.com&gt;
Signed-off-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
Signed-off-by: Sumit Semwal &lt;sumit.semwal@linaro.org&gt;
</content>
</entry>
<entry>
<title>dma_buf: Cleanup dma_buf_fd</title>
<updated>2013-01-17T20:57:07Z</updated>
<author>
<name>Borislav Petkov</name>
<email>bp@alien8.de</email>
</author>
<published>2012-12-11T15:05:26Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=f5e097f0465e874ac76e8b6ae355b6faa83973a1'/>
<id>urn:sha1:f5e097f0465e874ac76e8b6ae355b6faa83973a1</id>
<content type='text'>
Remove redundant 'error' variable.

Signed-off-by: Borislav Petkov &lt;bp@alien8.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>dma-buf: might_sleep() in dma_buf_unmap_attachment()</title>
<updated>2012-12-20T06:35:05Z</updated>
<author>
<name>Rob Clark</name>
<email>rob@ti.com</email>
</author>
<published>2012-09-28T07:29:43Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=b6fa0cd62c5b9d47f8e5d42cb2876677a5ed701e'/>
<id>urn:sha1:b6fa0cd62c5b9d47f8e5d42cb2876677a5ed701e</id>
<content type='text'>
We never really clarified if unmap could be done in atomic context.
But since mapping might require sleeping, this implies mutex in use
to synchronize mapping/unmapping, so unmap could sleep as well.  Add
a might_sleep() to clarify this.

Signed-off-by: Rob Clark &lt;rob@ti.com&gt;
Acked-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
Reviewed-by: Maarten Lankhorst &lt;maarten.lankhorst@canonical.com&gt;
Signed-off-by: Sumit Semwal &lt;sumit.semwal@linaro.org&gt;
</content>
</entry>
<entry>
<title>make get_file() return its argument</title>
<updated>2012-09-27T01:10:25Z</updated>
<author>
<name>Al Viro</name>
<email>viro@zeniv.linux.org.uk</email>
</author>
<published>2012-08-27T18:48:26Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=cb0942b81249798e15c3f04eee2946ef543e8115'/>
<id>urn:sha1:cb0942b81249798e15c3f04eee2946ef543e8115</id>
<content type='text'>
simplifies a bunch of callers...

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>driver core: fix some kernel-doc warnings in dma*.c</title>
<updated>2012-06-15T00:15:26Z</updated>
<author>
<name>Randy Dunlap</name>
<email>rdunlap@xenotime.net</email>
</author>
<published>2012-06-09T22:02:59Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=6e7b4a59b3d7bb2dcd11c019354bf0c91037dadd'/>
<id>urn:sha1:6e7b4a59b3d7bb2dcd11c019354bf0c91037dadd</id>
<content type='text'>
Fix kernel-doc warnings in drivers/base/dma*.c:

Warning(drivers/base/dma-buf.c:498): No description found for parameter 'vaddr'
Warning(drivers/base/dma-coherent.c:199): No description found for parameter 'ret'

Signed-off-by: Randy Dunlap &lt;rdunlap@xenotime.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Merge tag 'tag-for-linus-3.5' of git://git.linaro.org/people/sumitsemwal/linux-dma-buf</title>
<updated>2012-05-25T16:37:26Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2012-05-25T16:37:26Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=da89fb165e5e51a2ec1ff8a0ff6bc052d1068184'/>
<id>urn:sha1:da89fb165e5e51a2ec1ff8a0ff6bc052d1068184</id>
<content type='text'>
Pull dma-buf updates from Sumit Semwal:
 "Here's the first signed-tag pull request for dma-buf framework.  It
  includes the following key items:
   - mmap support
   - vmap support
   - related documentation updates

  These are needed by various drivers to allow mmap/vmap of dma-buf
  shared buffers.  Dave Airlie has some prime patches dependent on the
  vmap pull as well."

* tag 'tag-for-linus-3.5' of git://git.linaro.org/people/sumitsemwal/linux-dma-buf:
  dma-buf: add initial vmap documentation
  dma-buf: minor documentation fixes.
  dma-buf: add vmap interface
  dma-buf: mmap support
</content>
</entry>
<entry>
<title>dma-buf: minor documentation fixes.</title>
<updated>2012-05-25T07:16:23Z</updated>
<author>
<name>Sumit Semwal</name>
<email>sumit.semwal@ti.com</email>
</author>
<published>2012-05-23T09:57:40Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=12c4727e1d5370270a7df781d2ba0a76e05c1137'/>
<id>urn:sha1:12c4727e1d5370270a7df781d2ba0a76e05c1137</id>
<content type='text'>
Some minor inline documentation fixes for gaps resulting from new patches.

Signed-off-by: Sumit Semwal &lt;sumit.semwal@ti.com&gt;
Signed-off-by: Sumit Semwal &lt;sumit.semwal@linaro.org&gt;
</content>
</entry>
</feed>
