Re: [PATCH v2 2/2] dmaengine: tegra210-adma: Add memcpy support

From: Nicolin Chen
Date: Tue Sep 06 2016 - 13:21:33 EST


On Tue, Sep 06, 2016 at 12:52:03PM +0100, Jon Hunter wrote:
> > + /* TODO: ADMA should support up to 8 chunks or periods */
> > + desc->num_periods = 1;
> > + desc->buf_len = buf_len;
> > + desc->period_len = buf_len;

> What would be the benefit of using 8 periods here? My understanding is
> that you will get an interrupt per period and do you really want this
> for memcpy?

You are right about the interrupt. And it doesn't seem to be
beneficial unless the period size is over the limitation of
Transfer Count, which is rare but might theoretically exist?

I admit the "TODO" word here is a bit misleading for memcpy.
I can remove the word and write a more appropriate comments.