mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andi Kleen <ak@suse.de>
To: "Protasevich, Natalie" <Natalie.Protasevich@UNISYS.com>
Cc: Andi Kleen <ak@suse.de>,
	jamesclv@us.ibm.com, akpm@osdl.org, zwane@arm.linux.org.uk,
	len.brown@intel.com, venkatesh.pallipadi@intel.com,
	linux-kernel@vger.kernel.org
Subject: Re: [patch 1/1] Do not enforce unique IO_APIC_ID for Xeon processors in EM64T mode (x86_64)
Date: Wed, 11 May 2005 21:22:33 +0200	[thread overview]
Message-ID: <20050511192233.GB11200@wotan.suse.de> (raw)
In-Reply-To: <19D0D50E9B1D0A40A9F0323DBFA04ACCE04B67@USRV-EXCH4.na.uis.unisys.com>

On Wed, May 11, 2005 at 11:21:15AM -0500, Protasevich, Natalie wrote:
> > > Looks like the need in the unique id can only be keyed of the local 
> > > APIC id, and probably it is a good idea to keep the NO_IOAPIC_CHECK 
> > > for subarchs that can override the heuristics?
> > 
> > I prefer not to do that. How about a simple
> > 
> > if (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL && 
> > boot_cpu_data.x86 < 15)
> > 	/* do uniqueness check */
> > else
> > 	/* don't do it */
> > 
> > ?		
> > 
> > Rationale is that P4s and newer and systems not from Intel 
> > don't have serial APIC busses and don't need this uniqueness check.
> >
> 
> Yes, indeed this looks like the only undisputed (and sufficient)
> criteria. I tried the below with Xeon box and it worked fine:
> 
> --- mpparse.c.orig	2005-05-11 02:10:35.000000000 -0400
> +++ mpparse.c	2005-05-11 02:12:31.000000000 -0400
> @@ -912,7 +913,15 @@ void __init mp_register_ioapic (
>  	mp_ioapics[idx].mpc_apicaddr = address;
>  
>  	set_fixmap_nocache(FIX_IO_APIC_BASE_0 + idx, address);
> -	mp_ioapics[idx].mpc_apicid = io_apic_get_unique_id(idx, id);
> +	if ((boot_cpu_data.x86_vendor == X86_VENDOR_INTEL) &&
> (boot_cpu_data.x86 >= 15))
> +		mp_ioapics[idx].mpc_apicid = id;
> +	else

That's still wrong because it does not trigger on AMD systems. Please make it

	if (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL && boot_cpu_data.x86 < 15)
		mp_ioapics[idx].mpc_apicid = io_apic_get_unique_id(idx,id);
	else
		mp_ioapics[idx].mpc_apicid = id;


-Andi		

  reply	other threads:[~2005-05-11 19:22 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-11 16:21 Protasevich, Natalie
2005-05-11 19:22 ` Andi Kleen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-05-12  2:22 Protasevich, Natalie
2005-05-11  7:10 Protasevich, Natalie
2005-05-11 11:22 ` Andi Kleen
2005-05-08 17:28 Protasevich, Natalie
2005-05-08 23:53 ` Andi Kleen
2005-05-08  5:01 Protasevich, Natalie
2005-05-08 13:49 ` Andi Kleen
2005-05-09 19:15   ` James Cleverdon
2005-05-07  5:34 Natalie.Protasevich
2005-05-08  1:00 ` Zwane Mwaikambo
2005-05-05 22:11 Natalie.Protasevich
2005-05-06 17:34 ` Len Brown
2005-05-06 17:57 ` Zwane Mwaikambo
2005-05-07 13:41 ` Andi Kleen

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=20050511192233.GB11200@wotan.suse.de \
    --to=ak@suse.de \
    --cc=Natalie.Protasevich@UNISYS.com \
    --cc=akpm@osdl.org \
    --cc=jamesclv@us.ibm.com \
    --cc=len.brown@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=venkatesh.pallipadi@intel.com \
    --cc=zwane@arm.linux.org.uk \
    /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®