mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Mackerras <paulus@samba.org>
To: jschopp@austin.ibm.com
Cc: akpm@osdl.org, anton@samba.org,
	linuxppc64-dev@lists.linuxppc.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] cpu hotplug ppc64 bug
Date: Tue, 27 Jul 2004 08:14:23 -0500	[thread overview]
Message-ID: <16646.21807.210253.45979@cargo.ozlabs.ibm.com> (raw)
In-Reply-To: <410594FF.5040307@austin.ibm.com>

Joel Schopp writes:

> On Power4 and earlier hardware there is no need to clear the CPPR (see 
> RPAp 479 section 18.5.4.7.2 for what little info there is on the CPPR) 
> when stopping a cpu. On hardware that uses Power5 an undocumented change 
> has been made that requires the CPPR to be cleared if an isolate is to 
> be done on the stopped cpu. So the following patch lets cpu hotplug work 
> on the recent hardware.

>  void cpu_die(void)
>  {
>  	local_irq_disable();
> +	/* Some hardware requires clearing the CPPR, while other hardware does not
> +	 * it is safe either way
> +	 */
> +	pSeriesLP_cppr_info(0, 0);
>  	rtas_stop_self();

I wanted to do this a bit differently - I was going to make cpu_die be
a platform-specific function called via a ppc_md function pointer,
rather than putting very pseries-specific stuff in smp.c, which is
used on all platforms.  But having been on vacation and then
travelling, I haven't got to it yet.

Paul.

  reply	other threads:[~2004-07-27 13:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-26 23:34 Joel Schopp
2004-07-27 13:14 ` Paul Mackerras [this message]
2004-07-27 16:20   ` Joel Schopp

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=16646.21807.210253.45979@cargo.ozlabs.ibm.com \
    --to=paulus@samba.org \
    --cc=akpm@osdl.org \
    --cc=anton@samba.org \
    --cc=jschopp@austin.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc64-dev@lists.linuxppc.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

all inboxes | Powered by JetHome®