public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* No subject
@ 2013-04-24 18:07 Viral Mehta
       [not found] ` <20130424182202.GK13884@titan.lakedaemon.net>
  0 siblings, 1 reply; 2+ messages in thread
From: Viral Mehta @ 2013-04-24 18:07 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

I am using Marvell's ARMADA XP platform in my development environment.

Recently, I faced DMA related issue. While moving data from memory to
the device, I  found that sometimes I am getting Junk data. I looked
further to see if this is related to DMA Sync problem. So, basically,
I have following questions,

1. As per [1] ARMADA has Coherency Fabric that sits between CPU and
other devices and takes care of hardware based I/O cache coherency. Do
we need to enable any support for the same in software ? I am running
3.0.29 based linux kernel. How do I verify that I have all the things
enabled in Linux Kernel.

2. Do I still need to use dma_[map,unamp]_* APIs while copying data to
and from device ?


[1] http://www.marvell.com/embedded-processors/armada-xp/assets/Marvell-ArmadaXP-SoC-product%20brief.pdf

--
Thanks,
Viral Mehta

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

* dma cache coherency on Armada XP dev board
       [not found] ` <20130424182202.GK13884@titan.lakedaemon.net>
@ 2013-04-25  2:04   ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2013-04-25  2:04 UTC (permalink / raw)
  To: linux-arm-kernel

Viral, Jason,

On Wed, 24 Apr 2013 14:22:02 -0400, Jason Cooper wrote:

> > Recently, I faced DMA related issue. While moving data from memory
> > to the device, I  found that sometimes I am getting Junk data. I
> > looked further to see if this is related to DMA Sync problem. So,
> > basically, I have following questions,
> > 
> > 1. As per [1] ARMADA has Coherency Fabric that sits between CPU and
> > other devices and takes care of hardware based I/O cache coherency.
> > Do we need to enable any support for the same in software ? I am
> > running 3.0.29 based linux kernel. How do I verify that I have all
> > the things enabled in Linux Kernel.
> 
> 3.0.29 must be a Marvell supplied kernel.  You'd have to ask them,
> unfortunately.  I've added the free-electrons guys as they are
> assisting Marvell with adding ArmadaXP/370 to the mainline kernel.
> 
> My advice is to try building the mainline kernel from kernel.org and
> see if the problem remains.
> 
> Thomas and the guys may be able to help you with specific questions
> regarding the Marvell kernel.

As Jason state, 3.0.29 is a kernel that has been heavily patched by
Marvell, so you should consult your Marvell support to get help with
this kernel. We do only support the mainline kernel for the Armada 370
and Armada XP platforms. Do not hesitate to get back to us if you face
similar issues with the mainline kernel.

Best regards,

Thomas Petazzoni
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

end of thread, other threads:[~2013-04-25  2:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-24 18:07 No subject Viral Mehta
     [not found] ` <20130424182202.GK13884@titan.lakedaemon.net>
2013-04-25  2:04   ` dma cache coherency on Armada XP dev board Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox