From: James Hogan <james.hogan@imgtec.com>
To: Joshua Kinard <kumba@gentoo.org>
Cc: Manuel Lauss <manuel.lauss@gmail.com>,
Ralf Baechle <ralf@linux-mips.org>,
Leonid Yegoshin <leonid.yegoshin@imgtec.com>,
Linux-MIPS <linux-mips@linux-mips.org>
Subject: Re: [PATCH 1/2] MIPS: c-r4k: Sync icache when it fills from dcache
Date: Fri, 22 Jan 2016 13:54:05 +0000 [thread overview]
Message-ID: <20160122135405.GA13515@jhogan-linux.le.imgtec.org> (raw)
In-Reply-To: <56A22936.8050601@gentoo.org>
[-- Attachment #1: Type: text/plain, Size: 1106 bytes --]
Hi Joshua,
On Fri, Jan 22, 2016 at 08:05:58AM -0500, Joshua Kinard wrote:
> On 01/22/2016 07:19, James Hogan wrote:
> > On Fri, Jan 22, 2016 at 01:06:14PM +0100, Manuel Lauss wrote:
> >> Hi James,
> [snip]
> >
> > Thanks Manuel.
> >
> > FWIW, attached is the test program I mentioned, which hits the first
> > part of this patch (flush_cache_range) via mprotect(2) and checks if
> > icache seems to have been flushed (tested on mips64r6, but should be
> > portable).
>
> Here's the output on my Octane, R14000 CPU (mips4):
>
> # ./mprotect
> Initial mprotect SUCCESS
> Looped { mprotect RW, modify, mprotect RX, test } SUCCESS
>
> This is without your patch applied. That look good?
Yep, that looks good.
> I'm assuming this CPU is too old to be affected. I can test with your
> patch after the blizzard is over later this weekend.
Unless you set MIPS_CACHE_IC_F_DC for your core (only ALCHEMY does,
until patch 2 adds I6400 to the list), then cpu_has_ic_fills_f_dc == 0
and everything should already work, as evidenced by the successful
result.
Thanks
James
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2016-01-22 13:54 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-22 10:58 [PATCH 0/2] MIPS: I6400: Avoid dcache flushes James Hogan
2016-01-22 10:58 ` James Hogan
2016-01-22 10:58 ` [PATCH 1/2] MIPS: c-r4k: Sync icache when it fills from dcache James Hogan
2016-01-22 10:58 ` James Hogan
2016-01-22 12:06 ` Manuel Lauss
2016-01-22 12:19 ` James Hogan
2016-01-22 13:05 ` Joshua Kinard
2016-01-22 13:54 ` James Hogan [this message]
2016-01-22 14:03 ` Ralf Baechle
2016-01-22 14:30 ` Manuel Lauss
2016-01-22 15:02 ` James Hogan
2016-01-22 15:55 ` Manuel Lauss
2016-01-22 10:58 ` [PATCH 2/2] MIPS: I6400: Icache " James Hogan
2016-01-22 10:58 ` James Hogan
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=20160122135405.GA13515@jhogan-linux.le.imgtec.org \
--to=james.hogan@imgtec.com \
--cc=kumba@gentoo.org \
--cc=leonid.yegoshin@imgtec.com \
--cc=linux-mips@linux-mips.org \
--cc=manuel.lauss@gmail.com \
--cc=ralf@linux-mips.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