bigsmp.c 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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
  6. #include <linux/config.h>
  7. #include <linux/threads.h>
  8. #include <linux/cpumask.h>
  9. #include <asm/mpspec.h>
  10. #include <asm/genapic.h>
  11. #include <asm/fixmap.h>
  12. #include <asm/apicdef.h>
  13. #include <linux/kernel.h>
  14. #include <linux/smp.h>
  15. #include <linux/init.h>
  16. #include <linux/dmi.h>
  17. #include <asm/mach-bigsmp/mach_apic.h>
  18. #include <asm/mach-bigsmp/mach_apicdef.h>
  19. #include <asm/mach-bigsmp/mach_ipi.h>
  20. #include <asm/mach-default/mach_mpparse.h>
  21. static int dmi_bigsmp; /* can be set by dmi scanners */
  22. static __init int hp_ht_bigsmp(struct dmi_system_id *d)
  23. {
  24. #ifdef CONFIG_X86_GENERICARCH
  25. printk(KERN_NOTICE "%s detected: force use of apic=bigsmp\n", d->ident);
  26. dmi_bigsmp = 1;
  27. #endif
  28. return 0;
  29. }
  30. static struct dmi_system_id __initdata bigsmp_dmi_table[] = {
  31. { hp_ht_bigsmp, "HP ProLiant DL760 G2", {
  32. DMI_MATCH(DMI_BIOS_VENDOR, "HP"),
  33. DMI_MATCH(DMI_BIOS_VERSION, "P44-"),
  34. }},
  35. { hp_ht_bigsmp, "HP ProLiant DL740", {
  36. DMI_MATCH(DMI_BIOS_VENDOR, "HP"),
  37. DMI_MATCH(DMI_BIOS_VERSION, "P47-"),
  38. }},
  39. { }
  40. };
  41. static __init int probe_bigsmp(void)
  42. {
  43. if (def_to_bigsmp)
  44. dmi_bigsmp = 1;
  45. else
  46. dmi_check_system(bigsmp_dmi_table);
  47. return dmi_bigsmp;
  48. }
  49. struct genapic apic_bigsmp = APIC_INIT("bigsmp", probe_bigsmp);