mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Pallipadi, Venkatesh" <venkatesh.pallipadi@intel.com>
To: "Protasevich, Natalie" <Natalie.Protasevich@UNISYS.com>,
	"William Lee Irwin III" <wli@holomorphy.com>
Cc: "Martin J. Bligh" <mbligh@aracnet.com>,
	"Nakajima, Jun" <jun.nakajima@intel.com>,
	"Van Maren, Kevin" <kevin.vanmaren@UNISYS.com>,
	"Christoph Hellwig" <hch@infradead.org>,
	"James Cleverdon" <jamesclv@us.ibm.com>,
	"John Stultz" <johnstul@us.ibm.com>,
	"Mallick, Asit K" <asit.k.mallick@intel.com>,
	"Saxena, Sunil" <sunil.saxena@intel.com>,
	"Linux Kernel" <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH][2.4]  generic support for systems with more than 8 CP Us (2/2)
Date: Mon, 23 Dec 2002 10:54:18 -0800	[thread overview]
Message-ID: <C8C38546F90ABF408A5961FC01FDBF1912E1BB@fmsmsx405.fm.intel.com> (raw)


> From: Protasevich, Natalie [mailto:Natalie.Protasevich@UNISYS.com]
> +	/*
> +	 * Switch to Physical destination mode in case of generic
> +	 * more than 8 CPU system, which has xAPIC support
> +	 */
> +#define FLAT_APIC_CPU_MAX	8
> +	if ((clustered_apic_mode == CLUSTERED_APIC_NONE) &&
> +	    (xapic_support) &&
> +	    (num_processors > FLAT_APIC_CPU_MAX)) {
> +		clustered_apic_mode = CLUSTERED_APIC_XAPIC;
> +		apic_broadcast_id = APIC_BROADCAST_ID_XAPIC;
> +		int_dest_addr_mode = APIC_DEST_PHYSICAL;
> +		int_delivery_mode = dest_Fixed;
> +		esr_disable = 1;
> +	}
> +#endif
> +
> 
> Venkatesh,
> I could not find the definition for CLUSTERED_APIC_NONE. Is 
> this an attempt
> to set up the clustered mode right in case if it was not compiled with
> CLUSTERED_..._XAPIC on the system with > 8 cpu?

CLUSTERED_APIC_NONE is the normal default mode of flat logical (defined in asm/smpboot.h)
NUMAQ, Summit has a OEM field check and they change it to Cluster or Physical mode
before this point. What I am trying here is to check whether we are still in the default
flat (with max 8 cpu) mode, and we have more than 8 xAPIC supporting CPUs, then
we switch to physical mode rather than flat mode.

> >There is already some code in base that does this. For NUMAQ 
> specifically
> >this check happens and clustered mode is selected for APIC. 
> My patch has
> this 
> >additinal check (after the initial IBM OEM check), for 
> non-NUMAQ systems
> with 
> >more than 8 CPUs and xAPIC support. These systems can not 
> work with the 
> >default flat addressing mode. So, this patch sets up such systems in
> physical 
> >mode.
> 
> In the systems like ES7000, all CPU (up to 32) and IO-APICs have 8-bit
> hard-wired ID's according to their topological position. 
> Therefore, the
> apic_broadcast_id be has to be 0xFF (like summit's, I guess), 
> and modes
> should be clustered logical for Cascades, clustered physical 
> for xAPIC. The
> IO-APIC lines are programmed with the broadcast ID/lowest priority for
> Cascades, and boot CPU ID/XTPR flag/Lowest priority for 
> Fosters/Gallatins.
> This is pretty much the only choices we have. If this is not 
> what the patch
> allows to do, we need a last chance architectural hook to be able to
> accommodate our stuff.

Unfortunately, this patch doesn't do that. My initial attempt (first version of
the patch that I had sent) was trying to set up clustered physical mode for all non-NUMAQ
systems, with more than 8 CPUs with xAPIC support. But due to the amount of code changes
that it involved, we had to fall back to setting up such systems in physical mode, 
with IO-APIC programmed for fixed Priority interrupt.

Thanks,
-Venkatesh

             reply	other threads:[~2002-12-23 18:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-23 18:54 Pallipadi, Venkatesh [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-12-24  3:22 Protasevich, Natalie
2002-12-23 17:07 Protasevich, Natalie
2002-12-22 21:36 Protasevich, Natalie
2002-12-24  2:48 ` James Cleverdon
     [not found] <3FAD1088D4556046AEC48D80B47B478C1AEC74@usslc-exch-4.slc.unisys. com>
2002-12-22 20:21 ` Protasevich, Natalie
2002-12-22 21:01   ` Martin J. Bligh
2002-12-22 22:26     ` William Lee Irwin III

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=C8C38546F90ABF408A5961FC01FDBF1912E1BB@fmsmsx405.fm.intel.com \
    --to=venkatesh.pallipadi@intel.com \
    --cc=Natalie.Protasevich@UNISYS.com \
    --cc=asit.k.mallick@intel.com \
    --cc=hch@infradead.org \
    --cc=jamesclv@us.ibm.com \
    --cc=johnstul@us.ibm.com \
    --cc=jun.nakajima@intel.com \
    --cc=kevin.vanmaren@UNISYS.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mbligh@aracnet.com \
    --cc=sunil.saxena@intel.com \
    --cc=wli@holomorphy.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®