From: Andi Kleen <ak@suse.de>
To: akpm@osdl.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] Automatically enable bigsmp on big HP machines
Date: Thu, 5 Aug 2004 14:38:37 +0200 [thread overview]
Message-ID: <20040805143837.4a6dce7e.ak@suse.de> (raw)
This enables apic=bigsmp automatically on some big HP machines that need it.
This makes them boot without kernel parameters on a generic arch kernel.
Also it removes an unnecessary panic in the same area.
-Andi
diff -u linux-2.6.7/arch/i386/kernel/dmi_scan.c-HP linux-2.6.7/arch/i386/kernel/dmi_scan.c
--- linux-2.6.7/arch/i386/kernel/dmi_scan.c-HP 2004-08-05 14:00:29.325072566 +0200
+++ linux-2.6.7/arch/i386/kernel/dmi_scan.c 2004-08-05 14:19:57.058593500 +0200
@@ -272,6 +272,16 @@
}
#endif
+static __init int hp_ht_bigsmp(struct dmi_blacklist *d)
+{
+#ifdef CONFIG_X86_GENERICARCH
+ extern int dmi_bigsmp;
+ printk(KERN_NOTICE "%s detected: force use of apic=bigsmp\n", d->ident);
+ dmi_bigsmp = 1;
+#endif
+ return 0;
+}
+
/*
* Process the DMI blacklists
*/
@@ -460,6 +455,17 @@
#endif // CONFIG_ACPI_BOOT
#ifdef CONFIG_ACPI_PCI
+
+ { hp_ht_bigsmp, "HP ProLiant DL760 G2", {
+ MATCH(DMI_BIOS_VENDOR, "HP"),
+ MATCH(DMI_BIOS_VERSION, "P44-"),
+ NO_MATCH, NO_MATCH }},
+
+ { hp_ht_bigsmp, "HP ProLiant DL740", {
+ MATCH(DMI_BIOS_VENDOR, "HP"),
+ MATCH(DMI_BIOS_VERSION, "P47-"),
+ NO_MATCH, NO_MATCH }},
+
/*
* Boxes that need ACPI PCI IRQ routing disabled
*/
diff -u linux-2.6.7/arch/i386/kernel/io_apic.c-HP linux-2.6.7/arch/i386/kernel/io_apic.c
--- linux-2.6.7/arch/i386/kernel/io_apic.c-HP 2004-08-05 14:00:29.328072077 +0200
+++ linux-2.6.7/arch/i386/kernel/io_apic.c 2004-08-05 14:17:49.595383418 +0200
@@ -1714,7 +1714,7 @@
reg_00.raw = io_apic_read(apic, 0);
spin_unlock_irqrestore(&ioapic_lock, flags);
if (reg_00.bits.ID != mp_ioapics[apic].mpc_apicid)
- panic("could not set ID!\n");
+ printk(" could not set ID!\n");
else
printk(" ok.\n");
}
next reply other threads:[~2004-08-05 12:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-05 12:38 Andi Kleen [this message]
2004-08-05 13:03 ` [PATCH] Automatically enable bigsmp on big HP machines Arjan van de Ven
2004-08-05 13:34 ` Andi Kleen
2004-08-05 14:14 ` Arjan van de Ven
2004-08-05 14:19 ` Andi Kleen
-- strict thread matches above, loose matches on Subject: below --
2004-08-06 0:54 Pallipadi, Venkatesh
2004-08-06 1:01 ` Andi Kleen
2004-08-06 18:02 Pallipadi, Venkatesh
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=20040805143837.4a6dce7e.ak@suse.de \
--to=ak@suse.de \
--cc=akpm@osdl.org \
--cc=linux-kernel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.