From: Jesper Skov <jskov@cygnus.co.uk>
To: Daniel Kahlin <tlr@netinsight.se>
Cc: ecos-discuss@sourceware.cygnus.com
Subject: Re: [ECOS] ppc603e cache sync
Date: Fri, 13 Aug 1999 14:43:00 -0000 [thread overview]
Message-ID: <otn1vvfjd0.fsf@thinktwice.zoftcorp.dk> (raw)
In-Reply-To: <37B43FA8.738E82C@netinsight.se>
>>>>> "Daniel" == Daniel Kahlin <tlr@netinsight.se> writes:
>> The only other place were we do this by steam is in the kcache
>> tests. There the array is called 'dca' - data cache array or some
>> such. Not something that has been blessed with official policy
>> (yet).
Daniel> I will have to put and ifdef:ed array somewhere in the hal.
Daniel> maybe in arch/hal_misc.c. cyg_uint8
Daniel> hal_data_cache_array[HAL_DCACHE_SIZE]
Looks good to me. Remember to use GCC attributes to ensure proper
alignment.
>> Doesn't it have the implementation specific flush-all command as
>> the 603? I don't have my manuals close by, unfortunately, but the
>> 603 definitely has a one-shot operation for flushing (or is it
>> clearing?) the cache.
Daniel> You probably mean the DCFI bit in HID0. It invalidates the
Daniel> cache, and that would be fine, if it wasn't for the cache
Daniel> being writeback. But maybe I've missed something in the
Daniel> documentation.
Yup, that's what I was thinking about. If there's only the DCFI bit,
that's probably all. Too bad.
>> If not, maybe something like the below would be better (from my
>> Linux/APUS sources):
Daniel> The problem with using the 'dcbz' (and all other) cache
Daniel> instructions is that the operate on memory addresses instead
Daniel> of indexes into the cache. Normally that is what you want,
Daniel> but if you want to flush all cache entries into memory you
Daniel> would have to scan the entire 32 bit address range. Trick:
Daniel> Allocate all entries of the cache to an unused area.
You are right. I've been bitten by that before - but I do think we
found some way around it. I forget.
Your solution is fine if it works.
Jesper
next prev parent reply other threads:[~1999-08-13 14:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <199908131058.LAA18386@sheesh.cygnus.co.uk>
1999-08-13 12:10 ` Jesper Skov
1999-08-13 8:54 ` Daniel Kahlin
1999-08-13 14:43 ` Jesper Skov [this message]
1999-08-13 18:03 ` Gary Thomas
1999-08-13 1:22 Daniel Kahlin
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=otn1vvfjd0.fsf@thinktwice.zoftcorp.dk \
--to=jskov@cygnus.co.uk \
--cc=ecos-discuss@sourceware.cygnus.com \
--cc=tlr@netinsight.se \
/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 read-only IMAP folder(s) and NNTP newsgroup(s).