summit_32.c 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605
  1. /*
  2. * IBM Summit-Specific Code
  3. *
  4. * Written By: Matthew Dobson, IBM Corporation
  5. *
  6. * Copyright (c) 2003 IBM Corp.
  7. *
  8. * All rights reserved.
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License as published by
  12. * the Free Software Foundation; either version 2 of the License, or (at
  13. * your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful, but
  16. * WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
  18. * NON INFRINGEMENT. See the GNU General Public License for more
  19. * details.
  20. *
  21. * You should have received a copy of the GNU General Public License
  22. * along with this program; if not, write to the Free Software
  23. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  24. *
  25. * Send feedback to <colpatch@us.ibm.com>
  26. *
  27. */
  28. #include <linux/mm.h>
  29. #include <linux/init.h>
  30. #include <asm/io.h>
  31. #include <asm/bios_ebda.h>
  32. /*
  33. * APIC driver for the IBM "Summit" chipset.
  34. */
  35. #include <linux/threads.h>
  36. #include <linux/cpumask.h>
  37. #include <asm/mpspec.h>
  38. #include <asm/apic.h>
  39. #include <asm/smp.h>
  40. #include <asm/fixmap.h>
  41. #include <asm/apicdef.h>
  42. #include <asm/ipi.h>
  43. #include <linux/kernel.h>
  44. #include <linux/string.h>
  45. #include <linux/init.h>
  46. #include <linux/gfp.h>
  47. #include <linux/smp.h>
  48. static inline unsigned summit_get_apic_id(unsigned long x)
  49. {
  50. return (x >> 24) & 0xFF;
  51. }
  52. static inline void summit_send_IPI_mask(const cpumask_t *mask, int vector)
  53. {
  54. default_send_IPI_mask_sequence_logical(mask, vector);
  55. }
  56. static inline void summit_send_IPI_allbutself(int vector)
  57. {
  58. cpumask_t mask = cpu_online_map;
  59. cpu_clear(smp_processor_id(), mask);
  60. if (!cpus_empty(mask))
  61. summit_send_IPI_mask(&mask, vector);
  62. }
  63. static inline void summit_send_IPI_all(int vector)
  64. {
  65. summit_send_IPI_mask(&cpu_online_map, vector);
  66. }
  67. #include <asm/tsc.h>
  68. extern int use_cyclone;
  69. #ifdef CONFIG_X86_SUMMIT_NUMA
  70. extern void setup_summit(void);
  71. #else
  72. #define setup_summit() {}
  73. #endif
  74. static inline int
  75. summit_mps_oem_check(struct mpc_table *mpc, char *oem, char *productid)
  76. {
  77. if (!strncmp(oem, "IBM ENSW", 8) &&
  78. (!strncmp(productid, "VIGIL SMP", 9)
  79. || !strncmp(productid, "EXA", 3)
  80. || !strncmp(productid, "RUTHLESS SMP", 12))){
  81. mark_tsc_unstable("Summit based system");
  82. use_cyclone = 1; /*enable cyclone-timer*/
  83. setup_summit();
  84. return 1;
  85. }
  86. return 0;
  87. }
  88. /* Hook from generic ACPI tables.c */
  89. static inline int summit_acpi_madt_oem_check(char *oem_id, char *oem_table_id)
  90. {
  91. if (!strncmp(oem_id, "IBM", 3) &&
  92. (!strncmp(oem_table_id, "SERVIGIL", 8)
  93. || !strncmp(oem_table_id, "EXA", 3))){
  94. mark_tsc_unstable("Summit based system");
  95. use_cyclone = 1; /*enable cyclone-timer*/
  96. setup_summit();
  97. return 1;
  98. }
  99. return 0;
  100. }
  101. struct rio_table_hdr {
  102. unsigned char version; /* Version number of this data structure */
  103. /* Version 3 adds chassis_num & WP_index */
  104. unsigned char num_scal_dev; /* # of Scalability devices (Twisters for Vigil) */
  105. unsigned char num_rio_dev; /* # of RIO I/O devices (Cyclones and Winnipegs) */
  106. } __attribute__((packed));
  107. struct scal_detail {
  108. unsigned char node_id; /* Scalability Node ID */
  109. unsigned long CBAR; /* Address of 1MB register space */
  110. unsigned char port0node; /* Node ID port connected to: 0xFF=None */
  111. unsigned char port0port; /* Port num port connected to: 0,1,2, or 0xFF=None */
  112. unsigned char port1node; /* Node ID port connected to: 0xFF = None */
  113. unsigned char port1port; /* Port num port connected to: 0,1,2, or 0xFF=None */
  114. unsigned char port2node; /* Node ID port connected to: 0xFF = None */
  115. unsigned char port2port; /* Port num port connected to: 0,1,2, or 0xFF=None */
  116. unsigned char chassis_num; /* 1 based Chassis number (1 = boot node) */
  117. } __attribute__((packed));
  118. struct rio_detail {
  119. unsigned char node_id; /* RIO Node ID */
  120. unsigned long BBAR; /* Address of 1MB register space */
  121. unsigned char type; /* Type of device */
  122. unsigned char owner_id; /* For WPEG: Node ID of Cyclone that owns this WPEG*/
  123. /* For CYC: Node ID of Twister that owns this CYC */
  124. unsigned char port0node; /* Node ID port connected to: 0xFF=None */
  125. unsigned char port0port; /* Port num port connected to: 0,1,2, or 0xFF=None */
  126. unsigned char port1node; /* Node ID port connected to: 0xFF=None */
  127. unsigned char port1port; /* Port num port connected to: 0,1,2, or 0xFF=None */
  128. unsigned char first_slot; /* For WPEG: Lowest slot number below this WPEG */
  129. /* For CYC: 0 */
  130. unsigned char status; /* For WPEG: Bit 0 = 1 : the XAPIC is used */
  131. /* = 0 : the XAPIC is not used, ie:*/
  132. /* ints fwded to another XAPIC */
  133. /* Bits1:7 Reserved */
  134. /* For CYC: Bits0:7 Reserved */
  135. unsigned char WP_index; /* For WPEG: WPEG instance index - lower ones have */
  136. /* lower slot numbers/PCI bus numbers */
  137. /* For CYC: No meaning */
  138. unsigned char chassis_num; /* 1 based Chassis number */
  139. /* For LookOut WPEGs this field indicates the */
  140. /* Expansion Chassis #, enumerated from Boot */
  141. /* Node WPEG external port, then Boot Node CYC */
  142. /* external port, then Next Vigil chassis WPEG */
  143. /* external port, etc. */
  144. /* Shared Lookouts have only 1 chassis number (the */
  145. /* first one assigned) */
  146. } __attribute__((packed));
  147. typedef enum {
  148. CompatTwister = 0, /* Compatibility Twister */
  149. AltTwister = 1, /* Alternate Twister of internal 8-way */
  150. CompatCyclone = 2, /* Compatibility Cyclone */
  151. AltCyclone = 3, /* Alternate Cyclone of internal 8-way */
  152. CompatWPEG = 4, /* Compatibility WPEG */
  153. AltWPEG = 5, /* Second Planar WPEG */
  154. LookOutAWPEG = 6, /* LookOut WPEG */
  155. LookOutBWPEG = 7, /* LookOut WPEG */
  156. } node_type;
  157. static inline int is_WPEG(struct rio_detail *rio){
  158. return (rio->type == CompatWPEG || rio->type == AltWPEG ||
  159. rio->type == LookOutAWPEG || rio->type == LookOutBWPEG);
  160. }
  161. /* In clustered mode, the high nibble of APIC ID is a cluster number.
  162. * The low nibble is a 4-bit bitmap. */
  163. #define XAPIC_DEST_CPUS_SHIFT 4
  164. #define XAPIC_DEST_CPUS_MASK ((1u << XAPIC_DEST_CPUS_SHIFT) - 1)
  165. #define XAPIC_DEST_CLUSTER_MASK (XAPIC_DEST_CPUS_MASK << XAPIC_DEST_CPUS_SHIFT)
  166. #define SUMMIT_APIC_DFR_VALUE (APIC_DFR_CLUSTER)
  167. static inline const cpumask_t *summit_target_cpus(void)
  168. {
  169. /* CPU_MASK_ALL (0xff) has undefined behaviour with
  170. * dest_LowestPrio mode logical clustered apic interrupt routing
  171. * Just start on cpu 0. IRQ balancing will spread load
  172. */
  173. return &cpumask_of_cpu(0);
  174. }
  175. static inline unsigned long
  176. summit_check_apicid_used(physid_mask_t bitmap, int apicid)
  177. {
  178. return 0;
  179. }
  180. /* we don't use the phys_cpu_present_map to indicate apicid presence */
  181. static inline unsigned long summit_check_apicid_present(int bit)
  182. {
  183. return 1;
  184. }
  185. #define apicid_cluster(apicid) ((apicid) & XAPIC_DEST_CLUSTER_MASK)
  186. static inline void summit_init_apic_ldr(void)
  187. {
  188. unsigned long val, id;
  189. int count = 0;
  190. u8 my_id = (u8)hard_smp_processor_id();
  191. u8 my_cluster = (u8)apicid_cluster(my_id);
  192. #ifdef CONFIG_SMP
  193. u8 lid;
  194. int i;
  195. /* Create logical APIC IDs by counting CPUs already in cluster. */
  196. for (count = 0, i = nr_cpu_ids; --i >= 0; ) {
  197. lid = cpu_2_logical_apicid[i];
  198. if (lid != BAD_APICID && apicid_cluster(lid) == my_cluster)
  199. ++count;
  200. }
  201. #endif
  202. /* We only have a 4 wide bitmap in cluster mode. If a deranged
  203. * BIOS puts 5 CPUs in one APIC cluster, we're hosed. */
  204. BUG_ON(count >= XAPIC_DEST_CPUS_SHIFT);
  205. id = my_cluster | (1UL << count);
  206. apic_write(APIC_DFR, SUMMIT_APIC_DFR_VALUE);
  207. val = apic_read(APIC_LDR) & ~APIC_LDR_MASK;
  208. val |= SET_APIC_LOGICAL_ID(id);
  209. apic_write(APIC_LDR, val);
  210. }
  211. static inline int summit_apic_id_registered(void)
  212. {
  213. return 1;
  214. }
  215. static inline void summit_setup_apic_routing(void)
  216. {
  217. printk("Enabling APIC mode: Summit. Using %d I/O APICs\n",
  218. nr_ioapics);
  219. }
  220. static inline int summit_apicid_to_node(int logical_apicid)
  221. {
  222. #ifdef CONFIG_SMP
  223. return apicid_2_node[hard_smp_processor_id()];
  224. #else
  225. return 0;
  226. #endif
  227. }
  228. /* Mapping from cpu number to logical apicid */
  229. static inline int summit_cpu_to_logical_apicid(int cpu)
  230. {
  231. #ifdef CONFIG_SMP
  232. if (cpu >= nr_cpu_ids)
  233. return BAD_APICID;
  234. return cpu_2_logical_apicid[cpu];
  235. #else
  236. return logical_smp_processor_id();
  237. #endif
  238. }
  239. static inline int summit_cpu_present_to_apicid(int mps_cpu)
  240. {
  241. if (mps_cpu < nr_cpu_ids)
  242. return (int)per_cpu(x86_bios_cpu_apicid, mps_cpu);
  243. else
  244. return BAD_APICID;
  245. }
  246. static inline physid_mask_t
  247. summit_ioapic_phys_id_map(physid_mask_t phys_id_map)
  248. {
  249. /* For clustered we don't have a good way to do this yet - hack */
  250. return physids_promote(0x0F);
  251. }
  252. static inline physid_mask_t summit_apicid_to_cpu_present(int apicid)
  253. {
  254. return physid_mask_of_physid(0);
  255. }
  256. static inline void summit_setup_portio_remap(void)
  257. {
  258. }
  259. static inline int summit_check_phys_apicid_present(int boot_cpu_physical_apicid)
  260. {
  261. return 1;
  262. }
  263. static inline unsigned int summit_cpu_mask_to_apicid(const cpumask_t *cpumask)
  264. {
  265. int cpus_found = 0;
  266. int num_bits_set;
  267. int apicid;
  268. int cpu;
  269. num_bits_set = cpus_weight(*cpumask);
  270. /* Return id to all */
  271. if (num_bits_set >= nr_cpu_ids)
  272. return 0xFF;
  273. /*
  274. * The cpus in the mask must all be on the apic cluster. If are not
  275. * on the same apicid cluster return default value of target_cpus():
  276. */
  277. cpu = first_cpu(*cpumask);
  278. apicid = summit_cpu_to_logical_apicid(cpu);
  279. while (cpus_found < num_bits_set) {
  280. if (cpu_isset(cpu, *cpumask)) {
  281. int new_apicid = summit_cpu_to_logical_apicid(cpu);
  282. if (apicid_cluster(apicid) !=
  283. apicid_cluster(new_apicid)) {
  284. printk ("%s: Not a valid mask!\n", __func__);
  285. return 0xFF;
  286. }
  287. apicid = apicid | new_apicid;
  288. cpus_found++;
  289. }
  290. cpu++;
  291. }
  292. return apicid;
  293. }
  294. static inline unsigned int
  295. summit_cpu_mask_to_apicid_and(const struct cpumask *inmask,
  296. const struct cpumask *andmask)
  297. {
  298. int apicid = summit_cpu_to_logical_apicid(0);
  299. cpumask_var_t cpumask;
  300. if (!alloc_cpumask_var(&cpumask, GFP_ATOMIC))
  301. return apicid;
  302. cpumask_and(cpumask, inmask, andmask);
  303. cpumask_and(cpumask, cpumask, cpu_online_mask);
  304. apicid = summit_cpu_mask_to_apicid(cpumask);
  305. free_cpumask_var(cpumask);
  306. return apicid;
  307. }
  308. /*
  309. * cpuid returns the value latched in the HW at reset, not the APIC ID
  310. * register's value. For any box whose BIOS changes APIC IDs, like
  311. * clustered APIC systems, we must use hard_smp_processor_id.
  312. *
  313. * See Intel's IA-32 SW Dev's Manual Vol2 under CPUID.
  314. */
  315. static inline int summit_phys_pkg_id(int cpuid_apic, int index_msb)
  316. {
  317. return hard_smp_processor_id() >> index_msb;
  318. }
  319. static int probe_summit(void)
  320. {
  321. /* probed later in mptable/ACPI hooks */
  322. return 0;
  323. }
  324. static void summit_vector_allocation_domain(int cpu, cpumask_t *retmask)
  325. {
  326. /* Careful. Some cpus do not strictly honor the set of cpus
  327. * specified in the interrupt destination when using lowest
  328. * priority interrupt delivery mode.
  329. *
  330. * In particular there was a hyperthreading cpu observed to
  331. * deliver interrupts to the wrong hyperthread when only one
  332. * hyperthread was specified in the interrupt desitination.
  333. */
  334. *retmask = (cpumask_t){ { [0] = APIC_ALL_CPUS, } };
  335. }
  336. #ifdef CONFIG_X86_SUMMIT_NUMA
  337. static struct rio_table_hdr *rio_table_hdr __initdata;
  338. static struct scal_detail *scal_devs[MAX_NUMNODES] __initdata;
  339. static struct rio_detail *rio_devs[MAX_NUMNODES*4] __initdata;
  340. #ifndef CONFIG_X86_NUMAQ
  341. static int mp_bus_id_to_node[MAX_MP_BUSSES] __initdata;
  342. #endif
  343. static int __init setup_pci_node_map_for_wpeg(int wpeg_num, int last_bus)
  344. {
  345. int twister = 0, node = 0;
  346. int i, bus, num_buses;
  347. for (i = 0; i < rio_table_hdr->num_rio_dev; i++) {
  348. if (rio_devs[i]->node_id == rio_devs[wpeg_num]->owner_id) {
  349. twister = rio_devs[i]->owner_id;
  350. break;
  351. }
  352. }
  353. if (i == rio_table_hdr->num_rio_dev) {
  354. printk(KERN_ERR "%s: Couldn't find owner Cyclone for Winnipeg!\n", __func__);
  355. return last_bus;
  356. }
  357. for (i = 0; i < rio_table_hdr->num_scal_dev; i++) {
  358. if (scal_devs[i]->node_id == twister) {
  359. node = scal_devs[i]->node_id;
  360. break;
  361. }
  362. }
  363. if (i == rio_table_hdr->num_scal_dev) {
  364. printk(KERN_ERR "%s: Couldn't find owner Twister for Cyclone!\n", __func__);
  365. return last_bus;
  366. }
  367. switch (rio_devs[wpeg_num]->type) {
  368. case CompatWPEG:
  369. /*
  370. * The Compatibility Winnipeg controls the 2 legacy buses,
  371. * the 66MHz PCI bus [2 slots] and the 2 "extra" buses in case
  372. * a PCI-PCI bridge card is used in either slot: total 5 buses.
  373. */
  374. num_buses = 5;
  375. break;
  376. case AltWPEG:
  377. /*
  378. * The Alternate Winnipeg controls the 2 133MHz buses [1 slot
  379. * each], their 2 "extra" buses, the 100MHz bus [2 slots] and
  380. * the "extra" buses for each of those slots: total 7 buses.
  381. */
  382. num_buses = 7;
  383. break;
  384. case LookOutAWPEG:
  385. case LookOutBWPEG:
  386. /*
  387. * A Lookout Winnipeg controls 3 100MHz buses [2 slots each]
  388. * & the "extra" buses for each of those slots: total 9 buses.
  389. */
  390. num_buses = 9;
  391. break;
  392. default:
  393. printk(KERN_INFO "%s: Unsupported Winnipeg type!\n", __func__);
  394. return last_bus;
  395. }
  396. for (bus = last_bus; bus < last_bus + num_buses; bus++)
  397. mp_bus_id_to_node[bus] = node;
  398. return bus;
  399. }
  400. static int __init build_detail_arrays(void)
  401. {
  402. unsigned long ptr;
  403. int i, scal_detail_size, rio_detail_size;
  404. if (rio_table_hdr->num_scal_dev > MAX_NUMNODES) {
  405. printk(KERN_WARNING "%s: MAX_NUMNODES too low! Defined as %d, but system has %d nodes.\n", __func__, MAX_NUMNODES, rio_table_hdr->num_scal_dev);
  406. return 0;
  407. }
  408. switch (rio_table_hdr->version) {
  409. default:
  410. printk(KERN_WARNING "%s: Invalid Rio Grande Table Version: %d\n", __func__, rio_table_hdr->version);
  411. return 0;
  412. case 2:
  413. scal_detail_size = 11;
  414. rio_detail_size = 13;
  415. break;
  416. case 3:
  417. scal_detail_size = 12;
  418. rio_detail_size = 15;
  419. break;
  420. }
  421. ptr = (unsigned long)rio_table_hdr + 3;
  422. for (i = 0; i < rio_table_hdr->num_scal_dev; i++, ptr += scal_detail_size)
  423. scal_devs[i] = (struct scal_detail *)ptr;
  424. for (i = 0; i < rio_table_hdr->num_rio_dev; i++, ptr += rio_detail_size)
  425. rio_devs[i] = (struct rio_detail *)ptr;
  426. return 1;
  427. }
  428. void __init setup_summit(void)
  429. {
  430. unsigned long ptr;
  431. unsigned short offset;
  432. int i, next_wpeg, next_bus = 0;
  433. /* The pointer to the EBDA is stored in the word @ phys 0x40E(40:0E) */
  434. ptr = get_bios_ebda();
  435. ptr = (unsigned long)phys_to_virt(ptr);
  436. rio_table_hdr = NULL;
  437. offset = 0x180;
  438. while (offset) {
  439. /* The block id is stored in the 2nd word */
  440. if (*((unsigned short *)(ptr + offset + 2)) == 0x4752) {
  441. /* set the pointer past the offset & block id */
  442. rio_table_hdr = (struct rio_table_hdr *)(ptr + offset + 4);
  443. break;
  444. }
  445. /* The next offset is stored in the 1st word. 0 means no more */
  446. offset = *((unsigned short *)(ptr + offset));
  447. }
  448. if (!rio_table_hdr) {
  449. printk(KERN_ERR "%s: Unable to locate Rio Grande Table in EBDA - bailing!\n", __func__);
  450. return;
  451. }
  452. if (!build_detail_arrays())
  453. return;
  454. /* The first Winnipeg we're looking for has an index of 0 */
  455. next_wpeg = 0;
  456. do {
  457. for (i = 0; i < rio_table_hdr->num_rio_dev; i++) {
  458. if (is_WPEG(rio_devs[i]) && rio_devs[i]->WP_index == next_wpeg) {
  459. /* It's the Winnipeg we're looking for! */
  460. next_bus = setup_pci_node_map_for_wpeg(i, next_bus);
  461. next_wpeg++;
  462. break;
  463. }
  464. }
  465. /*
  466. * If we go through all Rio devices and don't find one with
  467. * the next index, it means we've found all the Winnipegs,
  468. * and thus all the PCI buses.
  469. */
  470. if (i == rio_table_hdr->num_rio_dev)
  471. next_wpeg = 0;
  472. } while (next_wpeg != 0);
  473. }
  474. #endif
  475. struct genapic apic_summit = {
  476. .name = "summit",
  477. .probe = probe_summit,
  478. .acpi_madt_oem_check = summit_acpi_madt_oem_check,
  479. .apic_id_registered = summit_apic_id_registered,
  480. .irq_delivery_mode = dest_LowestPrio,
  481. /* logical delivery broadcast to all CPUs: */
  482. .irq_dest_mode = 1,
  483. .target_cpus = summit_target_cpus,
  484. .disable_esr = 1,
  485. .dest_logical = APIC_DEST_LOGICAL,
  486. .check_apicid_used = summit_check_apicid_used,
  487. .check_apicid_present = summit_check_apicid_present,
  488. .vector_allocation_domain = summit_vector_allocation_domain,
  489. .init_apic_ldr = summit_init_apic_ldr,
  490. .ioapic_phys_id_map = summit_ioapic_phys_id_map,
  491. .setup_apic_routing = summit_setup_apic_routing,
  492. .multi_timer_check = NULL,
  493. .apicid_to_node = summit_apicid_to_node,
  494. .cpu_to_logical_apicid = summit_cpu_to_logical_apicid,
  495. .cpu_present_to_apicid = summit_cpu_present_to_apicid,
  496. .apicid_to_cpu_present = summit_apicid_to_cpu_present,
  497. .setup_portio_remap = NULL,
  498. .check_phys_apicid_present = summit_check_phys_apicid_present,
  499. .enable_apic_mode = NULL,
  500. .phys_pkg_id = summit_phys_pkg_id,
  501. .mps_oem_check = summit_mps_oem_check,
  502. .get_apic_id = summit_get_apic_id,
  503. .set_apic_id = NULL,
  504. .apic_id_mask = 0xFF << 24,
  505. .cpu_mask_to_apicid = summit_cpu_mask_to_apicid,
  506. .cpu_mask_to_apicid_and = summit_cpu_mask_to_apicid_and,
  507. .send_IPI_mask = summit_send_IPI_mask,
  508. .send_IPI_mask_allbutself = NULL,
  509. .send_IPI_allbutself = summit_send_IPI_allbutself,
  510. .send_IPI_all = summit_send_IPI_all,
  511. .send_IPI_self = default_send_IPI_self,
  512. .wakeup_cpu = NULL,
  513. .trampoline_phys_low = DEFAULT_TRAMPOLINE_PHYS_LOW,
  514. .trampoline_phys_high = DEFAULT_TRAMPOLINE_PHYS_HIGH,
  515. .wait_for_init_deassert = default_wait_for_init_deassert,
  516. .smp_callin_clear_local_apic = NULL,
  517. .store_NMI_vector = NULL,
  518. .inquire_remote_apic = default_inquire_remote_apic,
  519. .read = native_apic_mem_read,
  520. .write = native_apic_mem_write,
  521. .icr_read = native_apic_icr_read,
  522. .icr_write = native_apic_icr_write,
  523. .wait_icr_idle = native_apic_wait_icr_idle,
  524. .safe_wait_icr_idle = native_safe_apic_wait_icr_idle,
  525. };