From: Fabio Giovagnini <fabio.giovagnini@aurion-tech.com>
To: linux-sh@vger.kernel.org
Subject: Re: SH2a Write-back cache issue
Date: Tue, 22 Nov 2011 14:21:55 +0000 [thread overview]
Message-ID: <1321971715.9828.8.camel@AURIO02> (raw)
In-Reply-To: <201111221415.22367.andrea.baldini@spesonline.com>
Hi Federico, I think you could help Andrea about this issue.
Regard
Il giorno mar, 22/11/2011 alle 14.15 +0100, Andrea Baldini ha scritto:
> Hi,
>
> I'm working on a sh7203 board and I'm currently using a 2.6.28 kernel with a
> write-back cache mode configuration.
> When this configuration is set I got some issues when the flush_icache_range is
> involved.
>
> /* O-Cache writeback */
> for (way = 0; way < 4; way++) {
> unsigned long data = ctrl_inl(CACHE_OC_ADDRESS_ARRAY | addr | (way << 11));
> if ((data & CACHE_PHYSADDR_MASK) = (v & CACHE_PHYSADDR_MASK)) {
> data &= ~SH_CACHE_UPDATED;
> ctrl_outl(data, CACHE_OC_ADDRESS_ARRAY | addr | (way << 11));
> }
> }
>
> When the O-cache writeback is performed all system interrupts are missed,
> including the timer one.
> This occurs, for instance, when a flat binary is loaded in memory (
> load_flat_file() ) or when a signal is handled ( when setting up a frame ).
>
> This is an unacceptable behaviour for the system.
> A workaround is setting a write-through configuration to the kernel and flushing
> just the instruction cache entries.
>
> I've seen the recent kernel releases but it seems this part hasn't been
> modified yet.
> Anyway i tried a 2.6.35 kernel version some time ago and i got the same
> problems.
>
> Is anybody here working on this issue?
> Is it possible to use the write-back configuration?
>
> Regards
>
> Andrea
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Fabio Giovagnini
Aurion s.r.l.
P.iva 00885711200
cell. +39.335.8350919
Tel. +39 051.082.69.65
Fax. +39 051.082.14.49
skype: aurion.giovagnini
next prev parent reply other threads:[~2011-11-22 14:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-22 13:15 SH2a Write-back cache issue Andrea Baldini
2011-11-22 14:21 ` Fabio Giovagnini [this message]
2011-11-23 10:52 ` Andrea Baldini
2011-11-23 11:01 ` Federico Fuga
2011-11-24 9:43 ` Andrea Baldini
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=1321971715.9828.8.camel@AURIO02 \
--to=fabio.giovagnini@aurion-tech.com \
--cc=linux-sh@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox