* [Patch] es7000 broken without acpi
@ 2005-12-12 22:50 Eric Sesterhenn / snakebyte
2006-01-03 23:48 ` Andrew Morton
0 siblings, 1 reply; 8+ messages in thread
From: Eric Sesterhenn / snakebyte @ 2005-12-12 22:50 UTC (permalink / raw)
To: linux-kernel
hi,
a make randconfig gave me a situation where es7000 was enabled, but acpi wasnt
( dont know if this makes sense ), gcc gave me some compiling errors, which the
following patch fixes. Please cc me as i am not on the list. Thanks.
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
diff -up linux-2.6.15-rc5-git2/arch/i386/mach-es7000.orig/es7000.h linux-2.6.15-rc5-git2/arch/i386/mach-es7000/es7000.h
--- linux-2.6.15-rc5-git2/arch/i386/mach-es7000.orig/es7000.h 2005-12-12 23:44:39.000000000 +0100
+++ linux-2.6.15-rc5-git2/arch/i386/mach-es7000/es7000.h 2005-12-12 23:43:51.000000000 +0100
@@ -83,6 +83,7 @@ struct es7000_oem_table {
struct psai psai;
};
+#if defined(CONFIG_X86_IO_APIC) && defined(CONFIG_ACPI)
struct acpi_table_sdt {
unsigned long pa;
unsigned long count;
@@ -98,6 +99,7 @@ struct oem_table {
u32 OEMTableAddr;
u32 OEMTableSize;
};
+#endif
struct mip_reg {
unsigned long long off_0;
diff -up linux-2.6.15-rc5-git2/arch/i386/mach-es7000.orig/es7000plat.c linux-2.6.15-rc5-git2/arch/i386/mach-es7000/es7000plat.c
--- linux-2.6.15-rc5-git2/arch/i386/mach-es7000.orig/es7000plat.c 2005-12-12 23:44:39.000000000 +0100
+++ linux-2.6.15-rc5-git2/arch/i386/mach-es7000/es7000plat.c 2005-12-12 23:43:20.000000000 +0100
@@ -92,7 +92,9 @@ setup_unisys(void)
es7000_plat = ES7000_ZORRO;
else
es7000_plat = ES7000_CLASSIC;
+#if defined(CONFIG_X86_IO_APIC) && defined(CONFIG_ACPI)
ioapic_renumber_irq = es7000_rename_gsi;
+#endif
}
/*
@@ -160,6 +162,7 @@ parse_unisys_oem (char *oemptr)
return es7000_plat;
}
+#if defined(CONFIG_X86_IO_APIC) && defined(CONFIG_ACPI)
int __init
find_unisys_acpi_oem_table(unsigned long *oem_addr)
{
@@ -212,6 +215,7 @@ find_unisys_acpi_oem_table(unsigned long
}
return -1;
}
+#endif
static void
es7000_spin(int n)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Patch] es7000 broken without acpi
2005-12-12 22:50 Eric Sesterhenn / snakebyte
@ 2006-01-03 23:48 ` Andrew Morton
2006-01-04 10:05 ` Peter Hagervall
0 siblings, 1 reply; 8+ messages in thread
From: Andrew Morton @ 2006-01-03 23:48 UTC (permalink / raw)
To: Eric Sesterhenn / snakebyte; +Cc: linux-kernel, Protasevich, Natalie
Eric Sesterhenn / snakebyte <snakebyte@gmx.de> wrote:
>
> hi,
>
> a make randconfig gave me a situation where es7000 was enabled, but acpi wasnt
> ( dont know if this makes sense ), gcc gave me some compiling errors, which the
> following patch fixes. Please cc me as i am not on the list. Thanks.
>
>
I believe that es7000 requires ACPI, so a better fix would be to enforce
that within Kconfig.
Natalie, can you please comment?
>
>
> diff -up linux-2.6.15-rc5-git2/arch/i386/mach-es7000.orig/es7000.h linux-2.6.15-rc5-git2/arch/i386/mach-es7000/es7000.h
> --- linux-2.6.15-rc5-git2/arch/i386/mach-es7000.orig/es7000.h 2005-12-12 23:44:39.000000000 +0100
> +++ linux-2.6.15-rc5-git2/arch/i386/mach-es7000/es7000.h 2005-12-12 23:43:51.000000000 +0100
> @@ -83,6 +83,7 @@ struct es7000_oem_table {
> struct psai psai;
> };
>
> +#if defined(CONFIG_X86_IO_APIC) && defined(CONFIG_ACPI)
> struct acpi_table_sdt {
> unsigned long pa;
> unsigned long count;
> @@ -98,6 +99,7 @@ struct oem_table {
> u32 OEMTableAddr;
> u32 OEMTableSize;
> };
> +#endif
>
> struct mip_reg {
> unsigned long long off_0;
> diff -up linux-2.6.15-rc5-git2/arch/i386/mach-es7000.orig/es7000plat.c linux-2.6.15-rc5-git2/arch/i386/mach-es7000/es7000plat.c
> --- linux-2.6.15-rc5-git2/arch/i386/mach-es7000.orig/es7000plat.c 2005-12-12 23:44:39.000000000 +0100
> +++ linux-2.6.15-rc5-git2/arch/i386/mach-es7000/es7000plat.c 2005-12-12 23:43:20.000000000 +0100
> @@ -92,7 +92,9 @@ setup_unisys(void)
> es7000_plat = ES7000_ZORRO;
> else
> es7000_plat = ES7000_CLASSIC;
> +#if defined(CONFIG_X86_IO_APIC) && defined(CONFIG_ACPI)
> ioapic_renumber_irq = es7000_rename_gsi;
> +#endif
> }
>
> /*
> @@ -160,6 +162,7 @@ parse_unisys_oem (char *oemptr)
> return es7000_plat;
> }
>
> +#if defined(CONFIG_X86_IO_APIC) && defined(CONFIG_ACPI)
> int __init
> find_unisys_acpi_oem_table(unsigned long *oem_addr)
> {
> @@ -212,6 +215,7 @@ find_unisys_acpi_oem_table(unsigned long
> }
> return -1;
> }
> +#endif
>
> static void
> es7000_spin(int n)
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [Patch] es7000 broken without acpi
@ 2006-01-04 1:36 Protasevich, Natalie
2006-01-04 1:51 ` Andrew Morton
0 siblings, 1 reply; 8+ messages in thread
From: Protasevich, Natalie @ 2006-01-04 1:36 UTC (permalink / raw)
To: Andrew Morton, Eric Sesterhenn / snakebyte; +Cc: linux-kernel
> Eric Sesterhenn / snakebyte <snakebyte@gmx.de> wrote:
> >
> > hi,
> >
> > a make randconfig gave me a situation where es7000 was enabled, but
> > acpi wasnt ( dont know if this makes sense ), gcc gave me some
> > compiling errors, which the following patch fixes. Please
> cc me as i am not on the list. Thanks.
> >
> >
>
> I believe that es7000 requires ACPI, so a better fix would be
> to enforce that within Kconfig.
>
> Natalie, can you please comment?
You are correct, Andrew: ES7000 "preferred" mode is ACPI (although it
runs in MPS as well, which we use for debugging of intermittent ACPI and
platform problems).
I have done a similar patch (see
http://bugzilla.kernel.org/attachment.cgi?id=5771&action=view) against
2.6.13, but the one suggested later by Peter Hagervall
http://www.ussg.iu.edu/hypermail/linux/kernel/0510.3/1302.html was
actually taking care of the compile problem through Kconfig better,
since "acpi=off" option is available for our debug/testing purposes
anyway.
Thanks,
--Natalie
>
> >
> >
> > diff -up
> linux-2.6.15-rc5-git2/arch/i386/mach-es7000.orig/es7000.h
> linux-2.6.15-rc5-git2/arch/i386/mach-es7000/es7000.h
> > ---
> linux-2.6.15-rc5-git2/arch/i386/mach-es7000.orig/es7000.h
> 2005-12-12 23:44:39.000000000 +0100
> > +++ linux-2.6.15-rc5-git2/arch/i386/mach-es7000/es7000.h
> 2005-12-12 23:43:51.000000000 +0100
> > @@ -83,6 +83,7 @@ struct es7000_oem_table {
> > struct psai psai;
> > };
> >
> > +#if defined(CONFIG_X86_IO_APIC) && defined(CONFIG_ACPI)
> > struct acpi_table_sdt {
> > unsigned long pa;
> > unsigned long count;
> > @@ -98,6 +99,7 @@ struct oem_table {
> > u32 OEMTableAddr;
> > u32 OEMTableSize;
> > };
> > +#endif
> >
> > struct mip_reg {
> > unsigned long long off_0;
> > diff -up
> linux-2.6.15-rc5-git2/arch/i386/mach-es7000.orig/es7000plat.c
> linux-2.6.15-rc5-git2/arch/i386/mach-es7000/es7000plat.c
> > ---
> linux-2.6.15-rc5-git2/arch/i386/mach-es7000.orig/es7000plat.c
> 2005-12-12 23:44:39.000000000 +0100
> > +++
> linux-2.6.15-rc5-git2/arch/i386/mach-es7000/es7000plat.c
> 2005-12-12 23:43:20.000000000 +0100
> > @@ -92,7 +92,9 @@ setup_unisys(void)
> > es7000_plat = ES7000_ZORRO;
> > else
> > es7000_plat = ES7000_CLASSIC;
> > +#if defined(CONFIG_X86_IO_APIC) && defined(CONFIG_ACPI)
> > ioapic_renumber_irq = es7000_rename_gsi;
> > +#endif
> > }
> >
> > /*
> > @@ -160,6 +162,7 @@ parse_unisys_oem (char *oemptr)
> > return es7000_plat;
> > }
> >
> > +#if defined(CONFIG_X86_IO_APIC) && defined(CONFIG_ACPI)
> > int __init
> > find_unisys_acpi_oem_table(unsigned long *oem_addr) { @@ -212,6
> > +215,7 @@ find_unisys_acpi_oem_table(unsigned long
> > }
> > return -1;
> > }
> > +#endif
> >
> > static void
> > es7000_spin(int n)
> >
> >
> > -
> > To unsubscribe from this list: send the line "unsubscribe
> > linux-kernel" in the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
> > Please read the FAQ at http://www.tux.org/lkml/
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Patch] es7000 broken without acpi
2006-01-04 1:36 Protasevich, Natalie
@ 2006-01-04 1:51 ` Andrew Morton
0 siblings, 0 replies; 8+ messages in thread
From: Andrew Morton @ 2006-01-04 1:51 UTC (permalink / raw)
To: Protasevich, Natalie; +Cc: snakebyte, linux-kernel
"Protasevich, Natalie" <Natalie.Protasevich@UNISYS.com> wrote:
>
> > Eric Sesterhenn / snakebyte <snakebyte@gmx.de> wrote:
> > >
> > > hi,
> > >
> > > a make randconfig gave me a situation where es7000 was enabled, but
> > > acpi wasnt ( dont know if this makes sense ), gcc gave me some
> > > compiling errors, which the following patch fixes. Please
> > cc me as i am not on the list. Thanks.
> > >
> > >
> >
> > I believe that es7000 requires ACPI, so a better fix would be
> > to enforce that within Kconfig.
> >
> > Natalie, can you please comment?
>
>
> You are correct, Andrew: ES7000 "preferred" mode is ACPI (although it
> runs in MPS as well, which we use for debugging of intermittent ACPI and
> platform problems).
> I have done a similar patch (see
> http://bugzilla.kernel.org/attachment.cgi?id=5771&action=view) against
> 2.6.13, but the one suggested later by Peter Hagervall
> http://www.ussg.iu.edu/hypermail/linux/kernel/0510.3/1302.html was
> actually taking care of the compile problem through Kconfig better,
> since "acpi=off" option is available for our debug/testing purposes
> anyway.
hm, OK. I won't apply anything then - please send me your preferred fix if
you think there's something here which needs fixing. Either way, we should
attempt to make the kernel compile with all possible configs, if only to
keep `make randconfig' testers happy ;)
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [Patch] es7000 broken without acpi
@ 2006-01-04 2:46 Protasevich, Natalie
0 siblings, 0 replies; 8+ messages in thread
From: Protasevich, Natalie @ 2006-01-04 2:46 UTC (permalink / raw)
To: Andrew Morton; +Cc: snakebyte, linux-kernel
> "Protasevich, Natalie" <Natalie.Protasevich@UNISYS.com> wrote:
> >
> > > Eric Sesterhenn / snakebyte <snakebyte@gmx.de> wrote:
> > > >
> > > > hi,
> > > >
> > > > a make randconfig gave me a situation where es7000 was
> enabled,
> > but > > acpi wasnt ( dont know if this makes sense ), gcc gave me
> > some > > compiling errors, which the following patch
> fixes. Please >
> > cc me as i am not on the list. Thanks.
> > > >
> > > >
> > >
> > > I believe that es7000 requires ACPI, so a better fix
> would be > to
> > enforce that within Kconfig.
> > >
> > > Natalie, can you please comment?
> >
> >
> > You are correct, Andrew: ES7000 "preferred" mode is ACPI
> (although it
> > runs in MPS as well, which we use for debugging of
> intermittent ACPI
> > and platform problems).
> > I have done a similar patch (see
> > http://bugzilla.kernel.org/attachment.cgi?id=5771&action=view)
> > against 2.6.13, but the one suggested later by Peter Hagervall
> > http://www.ussg.iu.edu/hypermail/linux/kernel/0510.3/1302.html was
> > actually taking care of the compile problem through Kconfig
> better,
> > since "acpi=off" option is available for our debug/testing
> purposes
> > anyway.
>
> hm, OK. I won't apply anything then - please send me your
> preferred fix if you think there's something here which needs
> fixing. Either way, we should attempt to make the kernel
> compile with all possible configs, if only to keep `make
> randconfig' testers happy ;)
Sure, I will go though the code and make sure to cover all of them :)
--Natalie
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Patch] es7000 broken without acpi
2006-01-03 23:48 ` Andrew Morton
@ 2006-01-04 10:05 ` Peter Hagervall
0 siblings, 0 replies; 8+ messages in thread
From: Peter Hagervall @ 2006-01-04 10:05 UTC (permalink / raw)
To: Andrew Morton
Cc: Eric Sesterhenn / snakebyte, linux-kernel, Protasevich, Natalie
On Tue, Jan 03, 2006 at 03:48:08PM -0800, Andrew Morton wrote:
>
> I believe that es7000 requires ACPI, so a better fix would be to enforce
> that within Kconfig.
>
> Natalie, can you please comment?
>
This was discussed back in October [1], but nothing became of it. Should
I resend the patch perhaps?
Peter
[1] http://marc.theaimsgroup.com/?t=112928755800002&r=1&w=2
--
Peter Hagervall......................email: hager@cs.umu.se
Department of Computing Science........tel: +46(0)90 786 7018
University of Umeå, SE-901 87 Umeå.....fax: +46(0)90 786 6126
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [Patch] es7000 broken without acpi
@ 2006-01-04 15:05 Protasevich, Natalie
2006-01-04 15:40 ` Andi Kleen
0 siblings, 1 reply; 8+ messages in thread
From: Protasevich, Natalie @ 2006-01-04 15:05 UTC (permalink / raw)
To: Peter Hagervall, Andrew Morton, ak
Cc: Eric Sesterhenn / snakebyte, linux-kernel
> On Tue, Jan 03, 2006 at 03:48:08PM -0800, Andrew Morton wrote:
> >
> > I believe that es7000 requires ACPI, so a better fix would be to
> > enforce that within Kconfig.
> >
> > Natalie, can you please comment?
> >
>
> This was discussed back in October [1], but nothing became of
> it. Should I resend the patch perhaps?
>
> Peter
>
> [1] http://marc.theaimsgroup.com/?t=112928755800002&r=1&w=2
>
The only possible problem I see with that patch is making genapic
dependant on ACPI, which I'm not sure about (for example, if Summit
would want that, but nobody commented back then...Andi, what do you
think?) As for ES7000, it fixes build problem overall, however, maybe it
would be prudent to make it builldable even without its dependency on
ACPI, just for correctness sake, meaning properly #ifdef-ing ACPI parts,
this will make it more versatile (even though I cannot think of
situation it might be used...Andi, what do you think? :)
--Natalie
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Patch] es7000 broken without acpi
2006-01-04 15:05 [Patch] es7000 broken without acpi Protasevich, Natalie
@ 2006-01-04 15:40 ` Andi Kleen
0 siblings, 0 replies; 8+ messages in thread
From: Andi Kleen @ 2006-01-04 15:40 UTC (permalink / raw)
To: Protasevich, Natalie
Cc: Peter Hagervall, Andrew Morton, Eric Sesterhenn / snakebyte,
linux-kernel
On Wednesday 04 January 2006 16:05, Protasevich, Natalie wrote:
> The only possible problem I see with that patch is making genapic
> dependant on ACPI, which I'm not sure about (for example, if Summit
> would want that, but nobody commented back then...Andi, what do you
> think?) As for ES7000, it fixes build problem overall, however, maybe it
> would be prudent to make it builldable even without its dependency on
> ACPI, just for correctness sake, meaning properly #ifdef-ing ACPI parts,
> this will make it more versatile (even though I cannot think of
> situation it might be used...Andi, what do you think? :)
I haven't looked at it in detail, but likely it's better to
add the necessary ifdefs to es7000 to compile without ACPI
than making genapic dependent on ACPI. Not that it makes
that much difference in practice, but it would be cleaner this
way.
-Andi
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-01-04 15:51 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-04 15:05 [Patch] es7000 broken without acpi Protasevich, Natalie
2006-01-04 15:40 ` Andi Kleen
-- strict thread matches above, loose matches on Subject: below --
2006-01-04 2:46 Protasevich, Natalie
2006-01-04 1:36 Protasevich, Natalie
2006-01-04 1:51 ` Andrew Morton
2005-12-12 22:50 Eric Sesterhenn / snakebyte
2006-01-03 23:48 ` Andrew Morton
2006-01-04 10:05 ` Peter Hagervall
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox