2002-11-05 04:50:52

by Zwane Mwaikambo

[permalink] [raw]
Subject: [PATCH][2.5] nolapic boot parameter (resend)

This has bugged me for a while, also applies to 2.4.45

Index: linux-2.5.44-ac5/arch/i386/kernel/apic.c
===================================================================
RCS file: /build/cvsroot/linux-2.5.44-ac5/arch/i386/kernel/apic.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 apic.c
--- linux-2.5.44-ac5/arch/i386/kernel/apic.c 3 Nov 2002 07:20:03 -0000 1.1.1.1
+++ linux-2.5.44-ac5/arch/i386/kernel/apic.c 3 Nov 2002 07:43:50 -0000
@@ -609,11 +609,20 @@

#endif /* CONFIG_PM */

+int dont_enable_local_apic __initdata = 0;
+
+static int __init nolapic_setup(char *str)
+{
+ dont_enable_local_apic = 1;
+ return 1;
+}
+
+__setup("nolapic", nolapic_setup);
+
/*
* Detect and enable local APICs on non-SMP boards.
* Original code written by Keir Fraser.
*/
-int dont_enable_local_apic __initdata = 0;

static int __init detect_init_APIC (void)
{

--
function.linuxpower.ca


2002-11-05 11:57:57

by Maciej W. Rozycki

[permalink] [raw]
Subject: Re: [PATCH][2.5] nolapic boot parameter (resend)

On Mon, 4 Nov 2002, Zwane Mwaikambo wrote:

> This has bugged me for a while, also applies to 2.4.45

It looks reasonable, but you may consider adding a "lapic" option for
consistency as well.

--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: [email protected], PGP key available +

2002-11-05 14:28:24

by Zwane Mwaikambo

[permalink] [raw]
Subject: Re: [PATCH][2.5] nolapic boot parameter (resend)

On Tue, 5 Nov 2002, Maciej W. Rozycki wrote:

> On Mon, 4 Nov 2002, Zwane Mwaikambo wrote:
>
> > This has bugged me for a while, also applies to 2.4.45
>
> It looks reasonable, but you may consider adding a "lapic" option for
> consistency as well.

Sure i can do that, i just haven't come across a case where i had to force
local APIC usage.

Zwane
--
function.linuxpower.ca

2002-11-05 16:43:48

by Maciej W. Rozycki

[permalink] [raw]
Subject: Re: [PATCH][2.5] nolapic boot parameter (resend)

On Tue, 5 Nov 2002, Zwane Mwaikambo wrote:

> > It looks reasonable, but you may consider adding a "lapic" option for
> > consistency as well.
>
> Sure i can do that, i just haven't come across a case where i had to force
> local APIC usage.

Well, I can't imagine a reason to force I/O APIC usage, yet the "apic"
option exists... It's probably a kind of DMI braindamage -- does anyone
know for sure?

--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: [email protected], PGP key available +