From: will.deacon@arm.com (Will Deacon)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 0/2] Detect and handle I-cache aliases when D-cache is non-aliasing
Date: Wed, 18 Aug 2010 11:48:57 +0100 [thread overview]
Message-ID: <001001cb3ec2$f5ae9cf0$e10bd6d0$@deacon@arm.com> (raw)
In-Reply-To: <1281004609-7563-1-git-send-email-will.deacon@arm.com>
Hi Russell,
> Last month, I posted some patches to fix ptrace software breakpoints:
>
> http://lists.infradead.org/pipermail/linux-arm-kernel/2010-July/020649.html
>
> One of these patches added a workaround for a hardware erratum, so I
> have submitted that to the patch system. The other patch simply called
> __flush_icache_all() in flush_ptrace_access to avoid having to worry
> about I-cache aliases when cache_is_vipt_nonaliasing() is true. This
> isn't ideal if the debugger decides to insert lots of software breakpoints
> sequentially (for example, when single-stepping a number of times).
>
> These two patches add proper identification of aliasing I-caches
> when the D-cache is nonaliasing. flush_ptrace_access can then
> flush only the relevant I-cache lines instead of the entire cache.
>
> Cc: Russell King - ARM Linux <linux@arm.linux.org.uk>
> Cc: Catalin Marinas <catalin.marinas@arm.com>
>
> Will Deacon (2):
> ARM: setup: detect aliasing I-cache when D-cache is non-aliasing
> ARM: flush_ptrace_access: invalidate correct I-cache alias
>
> arch/arm/include/asm/cachetype.h | 8 ++++++--
> arch/arm/kernel/setup.c | 38 +++++++++++++++++++++++++++++++++++---
> arch/arm/mm/flush.c | 23 ++++++++++++++++++++---
> 3 files changed, 61 insertions(+), 8 deletions(-)
Any thoughts on these patches? I prefer them to my previous approach but
I'd like a second opinion.
Thanks,
Will
prev parent reply other threads:[~2010-08-18 10:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-05 10:36 [PATCH 0/2] Detect and handle I-cache aliases when D-cache is non-aliasing Will Deacon
2010-08-05 10:36 ` [PATCH 1/2] ARM: setup: detect aliasing I-cache " Will Deacon
2010-08-05 10:36 ` [PATCH 2/2] ARM: flush_ptrace_access: invalidate correct I-cache alias Will Deacon
2010-08-18 10:48 ` Will Deacon [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='001001cb3ec2$f5ae9cf0$e10bd6d0$@deacon@arm.com' \
--to=will.deacon@arm.com \
--cc=linux-arm-kernel@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.