From: eric.y.miao@gmail.com (Eric Miao)
To: linux-arm-kernel@lists.infradead.org
Subject: [PXA320] dmac_flush_range and burst on SMEMC
Date: Fri, 18 Dec 2009 17:39:18 +0800 [thread overview]
Message-ID: <f17812d70912180139k7e6a7cbas48f025abc6f82ea5@mail.gmail.com> (raw)
In-Reply-To: <354684.99618.qm@web23301.mail.ird.yahoo.com>
On Fri, Dec 18, 2009 at 5:00 PM, Patrick <kpa_info@yahoo.fr> wrote:
> Hello all,
>
> I am using a PXA320 with a FPGA connected on the VLIO memory bus. For faster transfer between the PXA and the FPGA I would like to use burst (supported by the SMEMC in VLIO).
>
> I was using a 2.6.26 kernel and burst was working very fine. I was using ioremap_cached and after a loop of iowrite32 and a call to dmac_flush_range to start the burst. It was working fine.
>
> I have migrated to a 2.6.28 kernel with the same driver code. All the data writed by the loop of iowrite32 is lost and only the last burst is writed using PIO and no burst. It's like if dmac_flush_range is not working and flush no cash at all.
>
> Do you have any idea ? Should I use another function than dmac_flush_range ?
Did you enable L2 cache and how your memory region is mapped?
PS: using dmac_* is not recommended, use dma API instead, or
at least dma_cache_maint().
next prev parent reply other threads:[~2009-12-18 9:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-18 9:00 [PXA320] dmac_flush_range and burst on SMEMC Patrick
2009-12-18 9:39 ` Eric Miao [this message]
2009-12-18 12:24 ` Patrick
2010-01-04 16:20 ` Russell King - ARM Linux
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=f17812d70912180139k7e6a7cbas48f025abc6f82ea5@mail.gmail.com \
--to=eric.y.miao@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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).