From: Dmitry Osipenko <digetx@gmail.com>
To: Sowjanya Komatineni <skomatineni@nvidia.com>
Cc: "thierry.reding@gmail.com" <thierry.reding@gmail.com>,
Jonathan Hunter <jonathanh@nvidia.com>,
Mantravadi Karthik <mkarthik@nvidia.com>,
Shardar Mohammed <smohammed@nvidia.com>,
Timo Alho <talho@nvidia.com>,
"linux-tegra@vger.kernel.org" <linux-tegra@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-i2c@vger.kernel.org" <linux-i2c@vger.kernel.org>
Subject: Re: [PATCH V5 3/5] i2c: tegra: Add DMA Support
Date: Wed, 30 Jan 2019 07:49:51 +0300 [thread overview]
Message-ID: <20190130074951.154cf037@dimatab> (raw)
In-Reply-To: <BYAPR12MB3398502D8F00D4F7BFF25D27C2900@BYAPR12MB3398.namprd12.prod.outlook.com>
В Wed, 30 Jan 2019 04:22:10 +0000
Sowjanya Komatineni <skomatineni@nvidia.com> пишет:
> [Correction]
>
> > > Could you please tell whether you missed my comments to V3 [0] or
> > > chose to ignore them? If the former, then I'd want to get answers
> > > to those questions and comments. I'll stop here for now.
> > >
> > > [0] https://patchwork.ozlabs.org/patch/1031379/
> >
> > Somehow missed those from multiple comments. Will go thru and
> > respond back.
>
> V6 includes feedback changes. Want to clarify on few feedback points
>
> - ALIGN is used for 4 byte boundary to use with DMA but extra bytes
> doesn’t get transferred over I2C as I2C controller transfer bytes
> based on size specified in the packet header. DMA length and memory
> address need to be 4 byte boundary.
Okay, I see now. Thanks.
> - RX channel releasing when TX init fails?
> For I2C both TX and RX doesn’t happen in same transaction and no
> dependency. So if RX channel request & buffer allocation succeeds but
> TX channel request fails, then RX DMA can still be used for Msg reads
> and transmits can happen on PIO mode
That's not what my point is about. In a case of TX initing failure, the
RX channel and DMA buffer are not getting released in the probe
function. Please be more careful about managing allocated resources.
> - dma_burst < 8 negatively affects transfer efficiency? Performance
> stats for DMA Vs PIO mode. Tested with 256 bytes of transfer and DMA
> Vs PIO mode transfer rate is almost same. But the main reason for
> adding DMA mode is to address couple of cases mentioned earlier and
> not mainly from the transfer performance perspective.
Could you please add a clarifying comment to the code, saying that the
whole purpose of the DMA transfer is solely to avoid delaying of the
transactions?
Thanks for the replies! I'll take a look at V6 later today.
next prev parent reply other threads:[~2019-01-30 4:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-29 23:16 [PATCH V5 1/5] i2c: tegra: Sort all the include headers alphabetically Sowjanya Komatineni
2019-01-29 23:16 ` [PATCH V5 2/5] i2c: tegra: Add Bus Clear Master Support Sowjanya Komatineni
2019-01-29 23:16 ` [PATCH V5 3/5] i2c: tegra: Add DMA Support Sowjanya Komatineni
2019-01-30 1:42 ` Dmitry Osipenko
2019-01-30 1:50 ` Sowjanya Komatineni
2019-01-30 4:15 ` Sowjanya Komatineni
2019-01-30 4:22 ` Sowjanya Komatineni
2019-01-30 4:49 ` Dmitry Osipenko [this message]
2019-01-30 5:04 ` Sowjanya Komatineni
2019-01-29 23:16 ` [PATCH V5 4/5] i2c: tegra: Update transfer timeout Sowjanya Komatineni
2019-01-29 23:16 ` [PATCH V5 5/5] i2c: tegra: Add I2C interface timing support Sowjanya Komatineni
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=20190130074951.154cf037@dimatab \
--to=digetx@gmail.com \
--cc=jonathanh@nvidia.com \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=mkarthik@nvidia.com \
--cc=skomatineni@nvidia.com \
--cc=smohammed@nvidia.com \
--cc=talho@nvidia.com \
--cc=thierry.reding@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