public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Jack Steiner <steiner@sgi.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [PATCH] - Improve SN2 TLB flushing algorithms
Date: Thu, 29 Jan 2004 04:00:08 +0000	[thread overview]
Message-ID: <20040129040008.GA4681@sgi.com> (raw)
In-Reply-To: <20040128205912.GA27401@sgi.com>

On Thu, Jan 29, 2004 at 03:11:42AM +0000, Matthew Wilcox wrote:
> On Wed, Jan 28, 2004 at 07:13:42PM -0600, Jack Steiner wrote:
> > This wont work with the current usage of the CONFIG options. For 
> > example:
> > 	# if defined (CONFIG_IA64_HP_SIM)
> > 	#  include <asm/machvec_hpsim.h>
> > 	# elif defined (CONFIG_IA64_DIG)
> > 	#  include <asm/machvec_dig.h>
> > 	# elif defined (CONFIG_IA64_HP_ZX1)
> > 	#  include <asm/machvec_hpzx1.h>
> > 	# elif defined (CONFIG_IA64_SGI_SN2)
> > 	#  include <asm/machvec_sn2.h>
> > 	# elif defined (CONFIG_IA64_GENERIC)
> > 	....
> > 
> > (It sounded like a good idea though. Most but not all places that check
> > CONFIG_IA64_SGI_SN2 also check for CONFIG_IA64_GENERIC).
> 
> This one can be easily fixed by testing *first* for CONFIG_IA64_GENERIC,
> then for all the other options.  

Sure, but I was reluctant to make that kind of change. As far as I know, most
code expects only a single "system type" to be defined. It seems like it
could prove to be error prone if these definition were order dependent.

If the ordering was incorrect, code could compile ok but might not run on
all platforms if the SN2 version of code was used instead of the generic version.


> Any other places that won't work?

Most of the code looks ok.
AFAIK, we havent tested generic 2.6 kernels on SN2 (Jesse - is this true)  so there may 
be other places that will have problems. But in general, I agree that proper
ordering should usually work.
	
-- 
Thanks

Jack Steiner (steiner@sgi.com)          651-683-5302
Principal Engineer                      SGI - Silicon Graphics, Inc.



  parent reply	other threads:[~2004-01-29  4:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-28 20:59 [PATCH] - Improve SN2 TLB flushing algorithms Jack Steiner
2004-01-28 21:17 ` Christoph Hellwig
2004-01-28 22:36 ` Jack Steiner
2004-01-28 23:57 ` Peter Chubb
2004-01-29  0:38 ` David Mosberger
2004-01-29  1:13 ` Jack Steiner
2004-01-29  3:11 ` Matthew Wilcox
2004-01-29  4:00 ` Jack Steiner [this message]
2004-01-29 13:40 ` Christoph Hellwig
2004-01-29 17:07 ` Jesse Barnes
2004-01-29 22:56 ` Jack Steiner
2004-01-29 23:09 ` Jesse Barnes
2004-01-30  2:22 ` Jack Steiner
2004-02-05 21:12 ` Jack Steiner

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=20040129040008.GA4681@sgi.com \
    --to=steiner@sgi.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