public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew de Quincey <adq_dvb-fmPXVN3awWJAJAzL26g0SA@public.gmane.org>
To: Andi Kleen <ak-l3A5Bk7waGM@public.gmane.org>
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
	linux-acpi-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
Subject: Re: [PATCH] 2.6.0-test4 Fix mpparse properly
Date: Mon, 8 Sep 2003 16:07:58 +0100	[thread overview]
Message-ID: <200309081607.59047.adq_dvb@lidskialf.net> (raw)
In-Reply-To: <20030908144934.GE5826-B4tOwbsTzaBolqkO4TVVkw@public.gmane.org>

On Monday 08 Sep 2003 3:49 pm, Andi Kleen wrote:
> On Mon, Sep 08, 2003 at 11:02:46AM +0100, Andrew de Quincey wrote:
> > On Monday 08 Sep 2003 3:25 am, Andi Kleen wrote:
> > > On Sun, 7 Sep 2003 21:30:40 +0100
> > >
> > > Andrew de Quincey <adq_dvb-fmPXVN3awWJAJAzL26g0SA@public.gmane.org> wrote:
> > > > --- linux-2.6.0-test4.null_crs/arch/i386/kernel/mpparse.c	2003-09-06
> > > > 00:23:10.000000000 +0100 +++
> > > > linux-2.6.0-test4.es7000fix/arch/i386/kernel/mpparse.c	2003-09-07
> > > > 15:53:41.369717552 +0100 @@ -1129,8 +1129,10 @@
> > > >  			continue;
> > > >  		ioapic_pin = irq - mp_ioapic_routing[ioapic].irq_start;
> > > >
> > > > +#ifdef CONFIG_X86_ES7000
> > > >  		if (!ioapic && (irq < 16))
> > > >  			irq += 16;
> > > > +#endif
> > >
> > > That won't work for an "generic" subarch kernel that supports the
> > > ES7000 and other boxes too. You should test es7000_plat instead (that's
> > > currently a static in the es7000 code, needs to be unstatic'ed).
> >
> > Hmm, yeah, thats a good point. However, I don't think checking for
> > es7000_plat will work. The file defining it is only included if es7000 is
> > targetted as a platform directly.  Theres no code which checks for an
> > es7000 platform by looking at the hardware or anything; it just sets the
> > variable if the es7000 architecture is targetted...
> >
> > Any ideas?
>
> In the 2.4 UL kernel there was an automatic check using an MP table.
> So it's certainly possible.

Are MP tables being replaced by ACPI? I dont think my (nforce2) board has MP 
tables at all, relying entirely on ACPI for APIC/IO-APIC config.

> But I guess for 2.6 it is reasonable if it only works when apic=es7000
> is specified.

Hmm, not keen on that.. don't like it if it means it'll probably fail to start 
on the ES7000 unless that parameter is specified.

> Actually I notice now that nobody hooked up the ES7000 into
> the generic arch yet so it won't work even with that. Still it would
> be better if the variable was tested, then whoever hooks it up
> later cannot fail into the trap of forgetting it.
>
> Only trap is that es7000_plat is currently in an es7000 specific file only.
> It should be probably in an general file to avoid an #ifdef maze.

Yeah. OK, for the moment, I'll move the variable somewhere sensible and test 
it. Whoever hooks up the ES7000 can set it appropriately.. perhaps using DMI 
to test the machine type.



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

  parent reply	other threads:[~2003-09-08 15:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-07 20:30 [PATCH] 2.6.0-test4 Fix mpparse properly Andrew de Quincey
     [not found] ` <200309072130.40200.adq_dvb-fmPXVN3awWJAJAzL26g0SA@public.gmane.org>
2003-09-08  2:25   ` Andi Kleen
     [not found]     ` <20030908042548.3bbfcf7d.ak-l3A5Bk7waGM@public.gmane.org>
2003-09-08 10:02       ` Andrew de Quincey
     [not found]         ` <20030908144934.GE5826@wotan.suse.de>
     [not found]           ` <20030908144934.GE5826-B4tOwbsTzaBolqkO4TVVkw@public.gmane.org>
2003-09-08 15:07             ` Andrew de Quincey [this message]
     [not found]               ` <200309081607.59047.adq_dvb-fmPXVN3awWJAJAzL26g0SA@public.gmane.org>
2003-09-08 15:29                 ` Andi Kleen
     [not found]                   ` <20030908152926.GH5826-B4tOwbsTzaBolqkO4TVVkw@public.gmane.org>
2003-09-09 13:08                     ` [PATCH] 2.6.0-test4 Fix mpparse properly mark 2 Andrew de Quincey
     [not found]                       ` <200309091408.00619.adq_dvb-fmPXVN3awWJAJAzL26g0SA@public.gmane.org>
2003-09-09 13:42                         ` 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=200309081607.59047.adq_dvb@lidskialf.net \
    --to=adq_dvb-fmpxvn3awwjajazl26g0sa@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=ak-l3A5Bk7waGM@public.gmane.org \
    --cc=linux-acpi-ral2JQCrhuEAvxtiuMwx3w@public.gmane.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