From: Paul Mundt <lethal@linux-sh.org>
To: Robin Getz <rgetz@blackfin.uclinux.org>
Cc: linux-kernel@vger.kernel.org, Andrew Morton <akpm@osdl.org>,
Greg KH <gregkh@suse.de>, luke Yang <luke.adi@gmail.com>
Subject: Re: [PATCH 3/3] [BFIN] Blackfin documents and MAINTAINER patch
Date: Mon, 25 Sep 2006 15:18:19 +0900 [thread overview]
Message-ID: <20060925061819.GA8879@localhost.na.rta> (raw)
In-Reply-To: <6.1.1.1.0.20060925011906.01ecea00@ptg1.spd.analog.com>
On Mon, Sep 25, 2006 at 01:51:34AM -0400, Robin Getz wrote:
> Paul indicated:
> >This is a generic enough of a feature that I suspect we should hash out a
> >common API for it rather than having people roll their own.
>
> That sounds like a good idea. From the few people that use this, I think a
> much simpler interface would be desirable.
>
> For data, it is easy - something similar to the processor specific
> xx_flush_range(start,end) - have a xxx_lock_range(start,end) would be good,
> and easy to implement.
>
Yes, xxx_lock_range() (and a corresponding xxx_unlock_range()) would be
ideal for this.
> The only thing I am not sure of - is how to force things into cache. For
> data - it is easy - do a read, and then lock it. For instruction - for
> those architectures which have separate instruction cache (like Blackfin)
> it is much harder. The only way to get code into cache is to execute it.
> (ergo the existing interface).
>
I suppose the first question is to determine whether it's really worth
doing the I-cache locking or simply sticking with a simplistic interface
aimed more at D-cache locking.
The I-cache case is somewhat more problematic, the only way to do it in
an architecture-neutral fashion is likely to expose a code page that is
pre-loaded and kicked down to the lower levels to work out the actual
locking semantics.
> Because the algorithm is so specific to the hardware - I am not sure how to
> make instruction as generic as data could be.
>
> How does SH cache handle things like this?
>
On SH both the I and D caches have MMIO access to the cache lines, so we
can jump to uncached space, clean the relevant cache, and then map the
data we want to lock directly in before jumping back to cached space.
So far we haven't done much with I-cache locking though.
next prev parent reply other threads:[~2006-09-25 6:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-25 5:51 [PATCH 3/3] [BFIN] Blackfin documents and MAINTAINER patch Robin Getz
2006-09-25 6:18 ` Paul Mundt [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-09-22 5:05 Luke Yang
2006-09-22 6:22 ` Paul Mundt
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=20060925061819.GA8879@localhost.na.rta \
--to=lethal@linux-sh.org \
--cc=akpm@osdl.org \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=luke.adi@gmail.com \
--cc=rgetz@blackfin.uclinux.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