public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Hans Verkuil <hverkuil@xs4all.nl>
To: Ran Shalit <ranshalit@gmail.com>
Cc: linux-media@vger.kernel.org
Subject: Re: cobalt & dma
Date: Tue, 17 Nov 2015 14:54:37 +0100	[thread overview]
Message-ID: <564B319D.7030706@xs4all.nl> (raw)
In-Reply-To: <CAJ2oMh++Rhcvqs+nmCPRrTUmKkze69t1tJmK3KBRvhoBC6qYjg@mail.gmail.com>

On 11/17/15 14:15, Ran Shalit wrote:
> On Tue, Nov 17, 2015 at 9:53 AM, Hans Verkuil <hverkuil@xs4all.nl> wrote:
>> On 11/17/2015 08:39 AM, Ran Shalit wrote:
>>> Hello,
>>>
>>> I intend to use cobalt driver as a refence for new pci v4l2 driver,
>>> which is required to use several input simultaneously. for this cobalt
>>> seems like a best starting point.
>>> read/write streaming will probably be suffecient (at least for the
>>> dirst debugging).
>>> The configuration in my cast is i7 core <-- pci ---> fpga.
>>> I see that the dma implementation is quite complex, and would like to
>>> ask for some tips regarding the following points related to dma issue:
>>>
>>> 1. Is it possible to do the read/write without dma (for debug as start) ?
>>
>> No. All video capture/output devices all use DMA since it would be prohibitively
>> expensive for the CPU to do otherwise. So just dig in and implement it.
>>
> 
> Hi,
> 
> Is the cobalt or other pci v4l device have the chip datasheet
> available so that we can do a reverse engineering and gain more
> understanding about the register read/write for the dma transactions ?
> I made a search but it seems that the PCIe chip datasheet for these
> devices is not available anywhere.

Sorry, no, it's not publicly available.

But they all work along the same lines: each DMA descriptor has a
PCI DMA address (where the data should be written to in memory), the length
(bytes) of the DMA transfer and the pointer to the next DMA descriptor (chaining
descriptors together). Finally there is some bit to trigger and interrupt when
the full frame has been transferred.

Regards,

	Hans

  parent reply	other threads:[~2015-11-17 13:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-17  7:39 cobalt & dma Ran Shalit
2015-11-17  7:53 ` Hans Verkuil
2015-11-17 13:15   ` Ran Shalit
2015-11-17 13:32     ` Steven Toth
2015-11-17 13:54     ` Hans Verkuil [this message]
2015-11-17 21:43       ` Ran Shalit
2015-11-20 14:49   ` Ran Shalit
2015-11-20 14:55     ` Hans Verkuil
2015-11-20 16:14       ` Ran Shalit
2015-11-20 16:25         ` Hans Verkuil

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=564B319D.7030706@xs4all.nl \
    --to=hverkuil@xs4all.nl \
    --cc=linux-media@vger.kernel.org \
    --cc=ranshalit@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox