kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: munisekharrms@gmail.com (Muni Sekhar)
To: kernelnewbies@lists.kernelnewbies.org
Subject: scatter-gather doubt?
Date: Sat, 24 Sep 2016 19:03:50 +0530	[thread overview]
Message-ID: <CAHhAz+j3f=TELfXbR3gdmKk-bQr41aRpxqHSRkSiA0KkZ3i6Dw@mail.gmail.com> (raw)

Hi All,

I am working on a xilinx PCIe endpoint with DMA reference block.

The DMA reference block design has 2 Scatter-Gather engines, one for
each DMA channel.

Channel 0 is for HostMemory -> DMA_REF FIFO transfers
Channel 1 is for DMA_REF FIFO -> HostMemory transfers

Each scatter-gather engine works through a linked list of Descriptors
from which it generates the required DMA activity.


The format of these descriptors is depicted as below:

Offset @ 0x00 - LSBs of pointer to DMA data

Offset @ 0x04 - MSBs of pointer to DMA data

Offset @ 0x08 - Number of data bytes to be transferred. (note: only 8
byte aligned transfers supported)

Offset @ 0x0C - LSBs of pointer to next Descriptor  (Set this field &
MSBs to zero to indicate end of descriptor list)

Offset @ 0x10 - MSBs of pointer to next Descriptor



Does the Linux kernel has any data structure to support the above
mentioned scatter-gather descriptor?



Will it be possible to use the kernel scatterlist API?s for this hardware?

-- 
Thanks,
Sekhar

             reply	other threads:[~2016-09-24 13:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-24 13:33 Muni Sekhar [this message]
2016-09-24 19:32 ` scatter-gather doubt? Greg Freemyer
2016-09-26 10:25   ` Muni Sekhar

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='CAHhAz+j3f=TELfXbR3gdmKk-bQr41aRpxqHSRkSiA0KkZ3i6Dw@mail.gmail.com' \
    --to=munisekharrms@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).