| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* | 
|  | 2 | * APIC driver for "bigsmp" XAPIC machines with more than 8 virtual CPUs. | 
|  | 3 | * Drives the local APIC in "clustered mode". | 
|  | 4 | */ | 
|  | 5 | #define APIC_DEFINITION 1 | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | #include <linux/threads.h> | 
|  | 7 | #include <linux/cpumask.h> | 
|  | 8 | #include <asm/mpspec.h> | 
|  | 9 | #include <asm/genapic.h> | 
|  | 10 | #include <asm/fixmap.h> | 
|  | 11 | #include <asm/apicdef.h> | 
|  | 12 | #include <linux/kernel.h> | 
|  | 13 | #include <linux/smp.h> | 
|  | 14 | #include <linux/init.h> | 
|  | 15 | #include <linux/dmi.h> | 
|  | 16 | #include <asm/mach-bigsmp/mach_apic.h> | 
|  | 17 | #include <asm/mach-bigsmp/mach_apicdef.h> | 
|  | 18 | #include <asm/mach-bigsmp/mach_ipi.h> | 
|  | 19 | #include <asm/mach-default/mach_mpparse.h> | 
|  | 20 |  | 
|  | 21 | static int dmi_bigsmp; /* can be set by dmi scanners */ | 
|  | 22 |  | 
|  | 23 | static __init int hp_ht_bigsmp(struct dmi_system_id *d) | 
|  | 24 | { | 
|  | 25 | #ifdef CONFIG_X86_GENERICARCH | 
|  | 26 | printk(KERN_NOTICE "%s detected: force use of apic=bigsmp\n", d->ident); | 
|  | 27 | dmi_bigsmp = 1; | 
|  | 28 | #endif | 
|  | 29 | return 0; | 
|  | 30 | } | 
|  | 31 |  | 
|  | 32 |  | 
|  | 33 | static struct dmi_system_id __initdata bigsmp_dmi_table[] = { | 
|  | 34 | { hp_ht_bigsmp, "HP ProLiant DL760 G2", { | 
|  | 35 | DMI_MATCH(DMI_BIOS_VENDOR, "HP"), | 
|  | 36 | DMI_MATCH(DMI_BIOS_VERSION, "P44-"), | 
|  | 37 | }}, | 
|  | 38 |  | 
|  | 39 | { hp_ht_bigsmp, "HP ProLiant DL740", { | 
|  | 40 | DMI_MATCH(DMI_BIOS_VENDOR, "HP"), | 
|  | 41 | DMI_MATCH(DMI_BIOS_VERSION, "P47-"), | 
|  | 42 | }}, | 
|  | 43 | { } | 
|  | 44 | }; | 
|  | 45 |  | 
|  | 46 |  | 
|  | 47 | static __init int probe_bigsmp(void) | 
|  | 48 | { | 
| Venkatesh Pallipadi | 911a62d | 2005-09-03 15:56:31 -0700 | [diff] [blame] | 49 | if (def_to_bigsmp) | 
|  | 50 | dmi_bigsmp = 1; | 
|  | 51 | else | 
|  | 52 | dmi_check_system(bigsmp_dmi_table); | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 53 | return dmi_bigsmp; | 
|  | 54 | } | 
|  | 55 |  | 
|  | 56 | struct genapic apic_bigsmp = APIC_INIT("bigsmp", probe_bigsmp); |