From: Michal Simek <michal.simek@petalogix.com>
To: Eli Billauer <eli@billauer.co.il>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: Microblaze, DMA and cache: Lack of sync functions?
Date: Mon, 15 Aug 2011 14:22:34 +0200 [thread overview]
Message-ID: <4E490F8A.3090702@petalogix.com> (raw)
In-Reply-To: <4E464DF0.7030401@billauer.co.il>
Eli Billauer wrote:
> Hello,
>
>
> Before I make a needless hack, please correct me if I'm wrong: in
> arch/microblaze/kernel/dma.c, the sync_single_for_cpu,
> sync_single_for_device and friends are not set in the dma_direct_ops
> structure (and not implemented), so calls from drivers to the
> corresponding functions will do nothing. Since the Microblaze cache
> doesn't update automatically on DMA operations, this looks like a bug to
> me: The driver thinks the cache has been flushed or updated, but it
> actually hasn't.
>
>
> Map and unmap methods are indeed implemented and registered, and they
> both call an internal function to sync the cache. So why are there no
> sync functions?
>
It is not the bug just unimplemented feature and I haven't had any problem
that these functions are not implemented.
Implementation should be pretty straight forward. Patches welcomed.
Thanks,
Michal
--
Michal Simek, Ing. (M.Eng)
PetaLogix - Linux Solutions for a Reconfigurable World
w: www.petalogix.com p: +61-7-30090663,+42-0-721842854 f: +61-7-30090663
prev parent reply other threads:[~2011-08-15 12:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-13 10:12 Microblaze, DMA and cache: Lack of sync functions? Eli Billauer
2011-08-15 12:22 ` Michal Simek [this message]
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=4E490F8A.3090702@petalogix.com \
--to=michal.simek@petalogix.com \
--cc=eli@billauer.co.il \
--cc=linux-kernel@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.