mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Martin J. Bligh" <mbligh@aracnet.com>
To: jmoyer@redhat.com
Cc: Arjan van de Ven <arjanv@redhat.com>, linux-kernel@vger.kernel.org
Subject: Re: finding out the boot cpu number from userspace
Date: Mon, 02 Aug 2004 10:23:03 -0700	[thread overview]
Message-ID: <30660000.1091467382@[10.10.2.4]> (raw)
In-Reply-To: <16654.29342.977105.723775@segfault.boston.redhat.com>

> ==> Regarding Re: finding out the boot cpu number from userspace; "Martin J. Bligh" <mbligh@aracnet.com> adds:
> 
>>> assuming cpu 0 is the boot cpu sounds fragile/incorrect, but for
>>> irqbalanced I'd like to find out which cpu is the boot cpu, is there a
>>> good way of doing so ?
>>> 
>>> The reason for needing this is that some firmware only likes running on
>>> the boot cpu so I need to bind firmware-related irq's to that cpu
>>> ideally.
> 
> mbligh> On any sane arch, cpu 0 *IS* always the boot CPU, as we dynamically
> mbligh> number CPUs that way ... that doesn't mean that it's apicid 0. I
> mbligh> believe that PPC64 screwed this up, but AFAIK, everyone else gets
> mbligh> it correct ... ;-)
> 
> Hmm, do we need to do any special handling for this in the kexec case?
> ISTR having some issues with this when using bootimg years back.

Eric went to some lengths to migrate us back to the original boot CPU 
before kexec'ing. I think this is unnecessary - the new kernel should
handle booting on any CPU just fine (there was a panic in there at one
point if the boot CPU didn't match the BIOS's spec'ed one, but I removed
it).

M.


  reply	other threads:[~2004-08-02 17:23 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-02 12:16 Arjan van de Ven
2004-08-02 13:37 ` Dave Jones
2004-08-02 14:13 ` Alan Cox
2004-08-02 14:30 ` Zwane Mwaikambo
2004-08-02 14:46   ` Richard B. Johnson
2004-08-02 15:50 ` Martin J. Bligh
2004-08-02 16:58   ` Jeff Moyer
2004-08-02 17:23     ` Martin J. Bligh [this message]
2004-08-02 17:42       ` Alan Cox
2004-08-02 18:49         ` Martin J. Bligh
2004-08-02 18:23           ` Alan Cox
2004-08-02 20:08 ` Chris Wedgwood

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='30660000.1091467382@[10.10.2.4]' \
    --to=mbligh@aracnet.com \
    --cc=arjanv@redhat.com \
    --cc=jmoyer@redhat.com \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®