From: Vinod Koul <vinod.koul@intel.com>
To: Vikas Aggarwal <vik.reck@gmail.com>
Cc: linux-raid@vger.kernel.org, dmaengine@vger.kernel.org
Subject: Re: Doubts on async_tx xor offload for raid5/6
Date: Tue, 7 Jun 2016 12:49:26 +0530 [thread overview]
Message-ID: <20160607071926.GL16910@localhost> (raw)
In-Reply-To: <CAOid5F-UWP-_jpA3XMFptfKa8=Gh7wBhhPZ1_DR_5UwJAxHriQ@mail.gmail.com>
On Thu, Jun 02, 2016 at 11:54:45AM +0530, Vikas Aggarwal wrote:
> Hi list,
> Will appreciate if someone can clear my doubts with "some theoretical
> examples". I am trying to improve XOR/GF offload for a multi-core SoC
> (currently it has single XOR/GF channel).
>
> 1) What is the purpose of device_prep_dma_interrupt callback ?
>
> 2) My driver currently polls for posting xor completions
> (dma_cookie_complete) and does'nt use device_prep_dma_interrupt
> callback at all. What gains/loss in terms of latency/cpu
> idleness/WRITE throughput I can expect by implementing this callback
> in my async_tx driver.
>
> 3) Purpose of DMA_ACK as I read - it is for higher layers to inform
> dma driver that descriptors can now be freed. Can someone explain this
> with an example as applicable with raid5/6 clients.
>
> 4) With example - why dma_run_dependencies(tx) needed after the
> hardware engine post completion for a descriptor.
>
> 5) Purpose of tx->callback(cb_arg) - again with an example from a
> raid5/6 offload perspective.
>
> I want to use offload engine efficiently with multithreaded raid5/6.
>
> I tried to dig through dma/drivers, crypto/async_xor.c, online
> archives, linux/Documentation etc but could not get satisfactory
> answers. Added two mail-lists as saw issues being discussed on both
> ones.
Did you read Documentation/crypto/async-tx-api.txt
Also you should refer to code in crpto for dmaengine usage and other
RAID examples.
It would help if you post the code and ask people what you are trying to
improve..
--
~Vinod
prev parent reply other threads:[~2016-06-07 7:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-02 6:24 Doubts on async_tx xor offload for raid5/6 Vikas Aggarwal
2016-06-07 7:19 ` Vinod Koul [this message]
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=20160607071926.GL16910@localhost \
--to=vinod.koul@intel.com \
--cc=dmaengine@vger.kernel.org \
--cc=linux-raid@vger.kernel.org \
--cc=vik.reck@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;
as well as URLs for NNTP newsgroup(s).