------_=_NextPart_001_01C2A987.A123E52E
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
2/2 : switching to physical mode APIC setup in case of more than 8 CPU =
system
Thanks,
-Venkatesh
diff -urN linux-2.4.21-pre2.org/Documentation/Configure.help =
linux-2.4.21-pre2/Documentation/Configure.help
--- linux-2.4.21-pre2.org/Documentation/Configure.help 2002-12-17 =
20:05:15.000000000 -0800
+++ linux-2.4.21-pre2/Documentation/Configure.help 2002-12-17 =
20:11:23.000000000 -0800
@@ -262,6 +262,13 @@
=20
If you don't have this computer, you may safely say N.
=20
+Other more than 8 logical CPU system support
+CONFIG_X86_MANY_CPU
+ This option is required to support systems with more than 8 logical =
CPUs.
+
+ If you don't have such a computer, you may safely say N.
+ You dont have to choose this for IBM Summit/x440 systems.
+
IO-APIC support on uniprocessors
CONFIG_X86_UP_IOAPIC
An IO-APIC (I/O Advanced Programmable Interrupt Controller) is an
diff -urN linux-2.4.21-pre2.org/arch/i386/config.in =
linux-2.4.21-pre2/arch/i386/config.in
--- linux-2.4.21-pre2.org/arch/i386/config.in 2002-12-17 =
20:05:15.000000000 -0800
+++ linux-2.4.21-pre2/arch/i386/config.in 2002-12-17 20:11:23.000000000 =
-0800
@@ -229,6 +229,10 @@
define_bool CONFIG_X86_CLUSTERED_APIC y
fi
fi
+ bool 'Other more than 8 logical CPU system support' =
CONFIG_X86_MANY_CPU
+ if [ "$CONFIG_X86_MANY_CPU" =3D "y" ]; then
+ define_bool CONFIG_X86_CLUSTERED_APIC y
+ fi
fi
=20
if [ "$CONFIG_X86_NUMA" !=3D "y" ]; then
diff -urN linux-2.4.21-pre2.org/arch/i386/kernel/mpparse.c =
linux-2.4.21-pre2/arch/i386/kernel/mpparse.c
--- linux-2.4.21-pre2.org/arch/i386/kernel/mpparse.c 2002-12-17 =
20:12:21.000000000 -0800
+++ linux-2.4.21-pre2/arch/i386/kernel/mpparse.c 2002-12-17 =
20:11:23.000000000 -0800
@@ -590,15 +590,6 @@
}
=20
=20
- printk("Enabling APIC mode: ");
- if(clustered_apic_mode =3D=3D CLUSTERED_APIC_NUMAQ)
- printk("Clustered Logical. ");
- else if(clustered_apic_mode =3D=3D CLUSTERED_APIC_XAPIC)
- printk("Physical. ");
- else
- printk("Flat. ");
- printk("Using %d I/O APICs\n",nr_ioapics);
-
if (!num_processors)
printk(KERN_ERR "SMP mptable: no processors registered!\n");
return num_processors;
@@ -834,6 +825,33 @@
=20
printk("Processors: %d\n", num_processors);
printk("xAPIC support %s present\n", (xapic_support?"is":"is not"));
+
+#ifdef CONFIG_X86_CLUSTERED_APIC
+ /*
+ * 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 =3D=3D CLUSTERED_APIC_NONE) &&
+ (xapic_support) &&
+ (num_processors > FLAT_APIC_CPU_MAX)) {
+ clustered_apic_mode =3D CLUSTERED_APIC_XAPIC;
+ apic_broadcast_id =3D APIC_BROADCAST_ID_XAPIC;
+ int_dest_addr_mode =3D APIC_DEST_PHYSICAL;
+ int_delivery_mode =3D dest_Fixed;
+ esr_disable =3D 1;
+ }
+#endif
+
+ printk("Enabling APIC mode: ");
+ if (clustered_apic_mode =3D=3D CLUSTERED_APIC_NUMAQ)
+ printk("Clustered Logical. ");
+ else if (clustered_apic_mode =3D=3D CLUSTERED_APIC_XAPIC)
+ printk("Physical. ");
+ else
+ printk("Flat. ");
+ printk("Using %d I/O APICs\n",nr_ioapics);
+
/*
* Only use the first configuration found.
*/
------_=_NextPart_001_01C2A987.A123E52E
Content-Type: application/octet-stream;
name="physapic_2.4.21-pre2.patch"
Content-Transfer-Encoding: base64
Content-Description: physapic_2.4.21-pre2.patch
Content-Disposition: attachment;
filename="physapic_2.4.21-pre2.patch"
ZGlmZiAtdXJOIGxpbnV4LTIuNC4yMS1wcmUyLm9yZy9Eb2N1bWVudGF0aW9uL0NvbmZpZ3VyZS5o
ZWxwIGxpbnV4LTI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X0FQSUNfQ1BVX01BWCkpIHsKKwkJY2x1c3RlcmVkX2FwaWNfbW9kZSA9IENMVVNURVJFRF9BUElD
X1hBUElDOworCQlhcGljX2Jyb2FkY2FzdF9pZCA9IEFQSUNfQlJPQURDQVNUX0lEX1hBUElDOwor
CQlpbnRfZGVzdF9hZGRyX21vZGUgPSBBUElDX0RFU1RfUEhZU0lDQUw7CisJCWludF9kZWxpdmVy
eV9tb2RlID0gZGVzdF9GaXhlZDsKKwkJZXNyX2Rpc2FibGUgPSAxOworCX0KKyNlbmRpZgorCisJ
cHJpbnRrKCJFbmFibGluZyBBUElDIG1vZGU6ICIpOworCWlmIChjbHVzdGVyZWRfYXBpY19tb2Rl
ID09IENMVVNURVJFRF9BUElDX05VTUFRKQorCQlwcmludGsoIkNsdXN0ZXJlZCBMb2dpY2FsLgki
KTsKKwllbHNlIGlmIChjbHVzdGVyZWRfYXBpY19tb2RlID09IENMVVNURVJFRF9BUElDX1hBUElD
KQorCQlwcmludGsoIlBoeXNpY2FsLgkiKTsKKwllbHNlCisJCXByaW50aygiRmxhdC4JIik7CisJ
cHJpbnRrKCJVc2luZyAlZCBJL08gQVBJQ3NcbiIsbnJfaW9hcGljcyk7CisKIAkvKgogCSAqIE9u
bHkgdXNlIHRoZSBmaXJzdCBjb25maWd1cmF0aW9uIGZvdW5kLgogCSAqLwo=
------_=_NextPart_001_01C2A987.A123E52E--
-
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/