public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Alex Williamson <alex.williamson@hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [PATCH] CPU hotplug returns CPUs to SAL
Date: Wed, 09 Feb 2005 19:44:18 +0000	[thread overview]
Message-ID: <1107978258.5478.55.camel@tdi> (raw)
In-Reply-To: <1107970828.5478.22.camel@tdi>

On Wed, 2005-02-09 at 11:26 -0800, Ashok Raj wrote:
> 
> Section 3.2.4 seemed to indicate that SAL versions executing IA32 BIOS code
> would have the IA32 I/O PORT block. That prompted me to save that even though 
> it was listed as scratch in the following section. (Maybe just required for
> BSP?)

   Yeah, I think we've already got all the information for I/O port
base, so it should only be an issue of SAL needing that.  According to
the spec, it shouldn't.

> True. When i was testing, i ran into an issue with restoring region registers
> Dont remember quite what it was, that prompted me to not do it for
> that round of testing. It didnt seem to affect anything and appeared to
> work fine on the tiger4 systems. 

   FWIW, I had to add the srlz.d to prevent a RAW #RR warning.  Perhaps
that was the issue.

> > Also, what do you think about treating the saved state as
> > a stack?  This could eventually allow the BSP to be sent off spinning in
> > SAL.  Thanks,
> 
> Technically the same method should work for BSP as well, but since BSP ran 
> the bootloader, unless he saves it and exposes it in a standard way to OS
> we cannot restore. (Agreed very UGLY)

   But the BSP doesn't need to save anything.  We'll always have N-1 SAL
states saved and N-1 CPUs that can be taken offline.  As long as we
don't hard link a state to a specific CPU, we're in good shape.  I've
been testing on my boxes with an order that intentionally gives CPUs the
state saved off of another CPU on OS entry.  I appear to be able to make
the BSP return to SAL as well, but I don't think the rest of the hotplug
code is ready for this (the other CPU doesn't seem to be getting
scheduled).  Thanks,

	Alex

-- 
Alex Williamson                             HP Linux & Open Source Lab


  parent reply	other threads:[~2005-02-09 19:44 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-09 17:40 [PATCH] CPU hotplug returns CPUs to SAL Alex Williamson
2005-02-09 17:53 ` Ashok Raj
2005-02-09 18:19 ` Alex Williamson
2005-02-09 19:26 ` Ashok Raj
2005-02-09 19:44 ` Alex Williamson [this message]
2005-02-09 19:51 ` Luck, Tony
2005-02-09 20:03 ` Alex Williamson
2005-02-09 22:38 ` Ashok Raj
2005-02-09 23:04 ` Alex Williamson
2005-02-09 23:12 ` Ashok Raj
2005-02-11 21:38 ` Ashok Raj

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=1107978258.5478.55.camel@tdi \
    --to=alex.williamson@hp.com \
    --cc=linux-ia64@vger.kernel.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