From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [v3] command/cache: Add flush command
Date: Wed, 10 Apr 2013 18:00:46 -0500 [thread overview]
Message-ID: <1365634846.8381.24@snotra> (raw)
In-Reply-To: <20130410225056.B537F20053F@gemini.denx.de> (from wd@denx.de on Wed Apr 10 17:50:56 2013)
On 04/10/2013 05:50:56 PM, Wolfgang Denk wrote:
> Dear Scott Wood,
>
> In message <1365628243.8381.20@snotra> you wrote:
> >
> > > > testing that we cannot do). Blackfin is weird -- if we did a
> simple
> > > > split at the C-code level it looks like we'd have two dummy
> loops
> > > > executing.
> > >
> > > Huh? flush_cache() does not include any loop for BF.
> >
> > Yes it does. It's in assembly code (do_flush macro in cache.S).
> Or at
> > least, it looks sort of like a loop -- I'm not familiar with
> blackfin
> > assembly code.
>
> do_flush is not used anywhere within flush_cache(); we are talking
> about "arch/blackfin/lib/cache.c" here, don't we?
Sigh. blackfin's flush_cache() calls
blackfin_icache_dcache_flush_range(), which is in cache.S.
blackfin_icache_dcache_flush_range() calls do_flush.
> What the actual implementation of blackfin_icache_dcache_flush_range()
> resp. blackfin_icache_flush_range() resp.
> blackfin_dcache_flush_range()
> might look like is of no real interest for this discussion here,
> right? We just need to call these functions, there is no need to
> touch these in any way in the context of what we are discussing here.
Really, you'd be OK with leaving dead code around? Nothing else would
call blackfin_icache_dcache_flush_range() if we remove the combined
flushing in cache.c. Even if we remove
blackfin_icache_dcache_flush_range(), that leaves mechanics in do_flush
that are no longer needed (the ability to do two different cache ops
inside the loop).
> Do you have any real technical arguments?
I'm done arguing and have already recommended we just keep this patch
in our local tree. We do not have unlimited time to spend messing
around with other arch code to produce a result that wouldn't be better
in any meaningful way. If someone else wants to hack up flush_cache(),
they're welcome to.
-Scott
next prev parent reply other threads:[~2013-04-10 23:00 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-05 20:50 [U-Boot] [v3] command/cache: Add flush command York Sun
2013-04-05 21:00 ` Tom Rini
2013-04-05 21:09 ` York Sun
2013-04-05 22:09 ` Wolfgang Denk
2013-04-05 23:02 ` York Sun
2013-04-06 7:01 ` Wolfgang Denk
2013-04-07 3:31 ` sun york-R58495
2013-04-07 8:29 ` Wolfgang Denk
2013-04-08 17:45 ` sun york-R58495
2013-04-08 18:35 ` Wolfgang Denk
2013-04-08 19:05 ` Scott Wood
2013-04-08 19:18 ` Wolfgang Denk
2013-04-08 19:31 ` Scott Wood
2013-04-09 17:45 ` Wolfgang Denk
2013-04-10 0:58 ` Scott Wood
2013-04-10 2:07 ` [U-Boot] DWMMC / DWMCI question TigerLiu at viatech.com.cn
2013-04-10 11:58 ` Wolfgang Denk
2013-04-11 1:43 ` TigerLiu at viatech.com.cn
2013-04-10 11:54 ` [U-Boot] [v3] command/cache: Add flush command Wolfgang Denk
2013-04-10 19:42 ` Scott Wood
2013-04-10 21:04 ` Wolfgang Denk
2013-04-10 21:10 ` Scott Wood
2013-04-10 22:50 ` Wolfgang Denk
2013-04-10 23:00 ` Scott Wood [this message]
2013-04-11 11:56 ` Wolfgang Denk
2013-04-08 19:50 ` Scott Wood
2013-04-09 17:48 ` Wolfgang Denk
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=1365634846.8381.24@snotra \
--to=scottwood@freescale.com \
--cc=u-boot@lists.denx.de \
/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