mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: ebiederm@xmission.com (Eric W. Biederman)
To: Fernando Luis Vazquez Cao <fernando@intellilink.co.jp>
Cc: Arjan van de Ven <arjan@infradead.org>,
	Andrew Morton <akpm@osdl.org>, Andi Kleen <ak@suse.de>,
	ebiederm@xmission.com, vgoyal@in.ibm.com,
	linux-kernel@vger.kernel.org, fastboot@lists.osdl.org
Subject: Re: [PATCH 1/5] stack overflow safe kdump (2.6.16-rc1-i386) - safe_smp_processor_id
Date: Wed, 25 Jan 2006 03:27:17 -0700	[thread overview]
Message-ID: <m164o8k3ga.fsf@ebiederm.dsl.xmission.com> (raw)
In-Reply-To: <1138179017.7159.13.camel@localhost.localdomain> (Fernando Luis Vazquez Cao's message of "Wed, 25 Jan 2006 17:50:17 +0900")

Fernando Luis Vazquez Cao <fernando@intellilink.co.jp> writes:

> On Wed, 2006-01-25 at 09:07 +0100, Arjan van de Ven wrote:
>> On Tue, 2006-01-24 at 23:59 -0800, Andrew Morton wrote:
>> > Andi Kleen <ak@suse.de> wrote:
>> > >
>> > > On Wednesday 25 January 2006 08:10, Andrew Morton wrote:
>> > > 
>> > > > It assumes that all x86 SMP machines have APICs.  That's untrue of
> Voyager.
>> > > > I think we can probably live with this assumption - others would know
>> > > > better than I.
>> > > 
>> > > Early x86s didn't have APICs and they are still often disabled on not so 
>> > > old mobile CPUs.  I don't think it's a good assumption to make for i386.
>> > > 
>> > 
>> > But how many of those do SMP?
>> 
>> even on SMP boxes you regularly need to (runtime) disable apics. Several
>> boards out there just have busted apics, or at least when used with
>> linux. "noapic" is one of the more frequent things distro support people
>> tell customers over the phone....
> Checking whether ioapic_setup_disabled is set should suffice, right?
> Does the patch below look good?

Actually hard_smp_processor_id should only care about local apics.
Disabling the io_apics should have no affect, on this code path.

So I believe testing for io_apics being enabled is actively wrong.

If the local apics are disabled the feature flag should be cleared,
and we are uniprocessor anyway.

Eric

  reply	other threads:[~2006-01-25 10:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-25  6:51 Fernando Luis Vazquez Cao
2006-01-25  7:10 ` Andrew Morton
2006-01-25  7:53   ` Andi Kleen
2006-01-25  7:59     ` Andrew Morton
2006-01-25  8:07       ` Arjan van de Ven
2006-01-25  8:50         ` Fernando Luis Vazquez Cao
2006-01-25 10:27           ` Eric W. Biederman [this message]
2006-01-25  9:41       ` Andi Kleen
2006-01-25 10:23   ` Eric W. Biederman

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=m164o8k3ga.fsf@ebiederm.dsl.xmission.com \
    --to=ebiederm@xmission.com \
    --cc=ak@suse.de \
    --cc=akpm@osdl.org \
    --cc=arjan@infradead.org \
    --cc=fastboot@lists.osdl.org \
    --cc=fernando@intellilink.co.jp \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vgoyal@in.ibm.com \
    /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®