All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: linuxppc-dev@ozlabs.org
Cc: Paul Mackerras <paulus@samba.org>
Subject: Re: [patch] PS3: Fix hardware watchpoints
Date: Wed, 14 Mar 2007 17:30:14 +0100	[thread overview]
Message-ID: <200703141730.15344.arnd@arndb.de> (raw)
In-Reply-To: <17911.24243.64287.434769@cargo.ozlabs.ibm.com>

On Wednesday 14 March 2007, Paul Mackerras wrote:
> Geoff Levand writes:
> 
> > Add PS3 support for the PowerPC processor's Data Address Breakpoint
> > Register (DABR).
> > 
> > Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
> > Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
> > 
> > ---
> > Paul, please consider for 2.6.21.
> 
> It's nice and small, but it isn't really a bugfix as far as I can
> see...  What's the downside of it not going into 2.6.21, apart from
> some inconvenience in debugging things?

It makes it possible for a regular user to hang the partition,
because the kernel falls back to access the actual SPR, which is
forbidden by the hypervisor.

My original changelog text was:

The lv1 hypervisor silently kills the partition if the kernel attempts
to access the dabr register directly. Instead, it needs to be set using
an hcall. Since both pseries and celleb have the same function, the guess
is that the implementation on ps3 is also the same.

How about making the actual changelog text something like this:

----
The lv1 hypervisor silently kills the partition if the kernel attempts
to access the dabr register directly, which can happen when gdb adds
a hardware breakpoint.
Instead, the kernel needs to be set using an hcall, the same way as
it does for pseries and celleb.
----

The real question however should be if there is a point in merging
any ps3 patches into 2.6.21 at this point. Geoff, my understanding
is that the current ps3 platform code in 2.6.21-rc still relies on
additional patches from you in order to even boot, right?

Maybe it's better to just queue them for 2.6.22 now, independent
of the severity of bugs fixed by a given patch.

	Arnd <><

  reply	other threads:[~2007-03-14 16:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-14  1:18 [patch] PS3: Fix hardware watchpoints Geoff Levand
2007-03-14  2:32 ` Paul Mackerras
2007-03-14 16:30   ` Arnd Bergmann [this message]
2007-03-14 16:57     ` Geoff Levand

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=200703141730.15344.arnd@arndb.de \
    --to=arnd@arndb.de \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=paulus@samba.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.