All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Matthias Wächter" <matthias.waechter@tttech.com>
To: linux-media@vger.kernel.org
Subject: I/O USERPTR for videobuf2-dma-sg
Date: Mon, 21 Oct 2013 15:01:08 +0200	[thread overview]
Message-ID: <52652594.4010102@tttech.com> (raw)

Hi everyone,

I’m in the process of providing a driver for a camera input and have 
just finished SG DMA operation to work in hardware and driver. Now I’m 
quite surprised that videobuf2-dma-sg is lacking basic support for user 
pointers to I/O memory (i.e., to graphics card). However, 
videobuf2-dma-contig does have support for it, at least from reading the 
code I see that vb2_dc_get_userptr() can tell I/O memory from RAM and as 
such do the right thing for I/O. OTOH, vb2_dma_sg_get_userptr() just 
does plain get_user_pages() which is not returning any page information 
for I/O memory.

Is this missing just because no-one has bothered to do it, or is there a 
known problem ? Right now it seems that only one driver in the kernel 
tree is actually using videobuf2-dma-sg, so maybe it hasn’t been worth 
the effort. Similarly, DMABUF has not been implemented in videobuf2-dma-sg.

Would a patch for adding I/O USERPTR functionality similar to 
vb2_dc_get/put_userptr() be accepted? Any known problems with this task 
I’m going to face?

Thanks,
– Matthias

                 reply	other threads:[~2013-10-21 13:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52652594.4010102@tttech.com \
    --to=matthias.waechter@tttech.com \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.