linux-snps-arc.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Wrong "nollp" DW DMAC parameter value on ARC SDP.
@ 2016-08-12  8:03 Eugeniy Paltsev
  2016-08-12 10:59 ` Andy Shevchenko
  0 siblings, 1 reply; 8+ messages in thread
From: Eugeniy Paltsev @ 2016-08-12  8:03 UTC (permalink / raw)
  To: linux-snps-arc

Hi,

"nollp" parameter defines if DW DMAC channel supports multi block
transfer or not.

It is calculated in runtime, but differently depending on on
availability of pdata. If pdata is absent "nollp" is calculated using
autoconfig hardware registers. Otherwise "nollp" is calculated using
the next code construction:
channel_writel(dwc, LLP, DWC_LLP_LOC(0xffffffff));
dwc->nollp = DWC_LLP_LOC(channel_readl(dwc, LLP)) == 0;
channel_writel(dwc, LLP, 0);

I realized that these methods give different results.
For example on ARC AXS101 SDP in case of using autoconfig "nollp" was
calculated as "true" (and DMAC works fine),?
otherwise "nollp" was calculated as "false" (and DMAC doesn't work).

So I'm wondering how the code in question really works?

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-08-16 11:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-12  8:03 Wrong "nollp" DW DMAC parameter value on ARC SDP Eugeniy Paltsev
2016-08-12 10:59 ` Andy Shevchenko
2016-08-12 13:36   ` Eugeniy Paltsev
2016-08-12 14:08     ` Andy Shevchenko
2016-08-15 11:10       ` Eugeniy Paltsev
2016-08-15 12:41         ` Andy Shevchenko
2016-08-16 11:32           ` Eugeniy Paltsev
2016-08-16 11:46             ` Andy Shevchenko

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).