From: Ralf Baechle <ralf@linux-mips.org>
To: "Maciej W. Rozycki" <macro@codesourcery.com>
Cc: linux-mips@linux-mips.org
Subject: Re: [PATCH] MIPS: c-r4k.c: Fix the 74K D-cache alias erratum workaround
Date: Tue, 31 Mar 2015 23:09:57 +0200 [thread overview]
Message-ID: <20150331210957.GI28951@linux-mips.org> (raw)
In-Reply-To: <alpine.DEB.1.10.1411160041230.2881@tp.orcam.me.uk>
On Sun, Nov 16, 2014 at 01:02:29AM +0000, Maciej W. Rozycki wrote:
> Fix the 74K D-cache alias erratum workaround so that it actually works.
> Our current code sets MIPS_CACHE_VTAG for the D-cache, but that flag
> only has any effect for the I-cache. Additionally MIPS_CACHE_PINDEX is
> set for the D-cache if CP0.Config7.AR is also set for an affected
> processor, leading to confusing information in the bootstrap log (the
> flag isn't used beyond that).
>
> So delete the setting of MIPS_CACHE_VTAG and rely on MIPS_CACHE_ALIASES,
> set in a common place, removing I-cache coherency issues seen in GDB
> testing with software breakpoints, gdbserver and ptrace(2), on affected
> systems.
>
> While at it add a little piece of explanation of what CP0.Config6.SYND
> is so that people do not have to chase documentation.
>
> Signed-off-by: Maciej W. Rozycki <macro@codesourcery.com>
> ---
> Hi,
>
> It looks like I-cache aliasing handling setup needs some TLC too, first
> of all what's the purpose of checking CP0.Config7.IAR and setting the
> MIPS_CACHE_ALIASES flag for the I-cache where the flag is nowhere used
> afterwards? Anyway that's something for another occasion. For now,
> please apply this change.
Applied, finally. I take it the discussion in
https://patchwork.linux-mips.org/patch/8876/ does not concern the
correctness of your patch.
Backporting this patch to older kernels is getting increasingly more
painful so I only did so for kernels as old as 3.13. If anybody cares,
send patches :)
Thanks Maciej!
Ralf
prev parent reply other threads:[~2015-03-31 21:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-16 1:02 [PATCH] MIPS: c-r4k.c: Fix the 74K D-cache alias erratum workaround Maciej W. Rozycki
2014-11-16 1:02 ` Maciej W. Rozycki
2015-03-31 21:09 ` Ralf Baechle [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=20150331210957.GI28951@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=linux-mips@linux-mips.org \
--cc=macro@codesourcery.com \
/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