summit_32.c 17.0 KB
Newer Older
L
Linus Torvalds 已提交
1
/*
D
Dave Jones 已提交
2
 * IBM Summit-Specific Code
L
Linus Torvalds 已提交
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
 *
 * Written By: Matthew Dobson, IBM Corporation
 *
 * Copyright (c) 2003 IBM Corp.
 *
 * All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or (at
 * your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
 * NON INFRINGEMENT.  See the GNU General Public License for more
 * details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 * Send feedback to <colpatch@us.ibm.com>
 *
 */

#include <linux/mm.h>
#include <linux/init.h>
#include <asm/io.h>
A
Akinobu Mita 已提交
32
#include <asm/bios_ebda.h>
I
Ingo Molnar 已提交
33 34 35 36 37 38 39 40 41 42 43

/*
 * APIC driver for the IBM "Summit" chipset.
 */
#include <linux/threads.h>
#include <linux/cpumask.h>
#include <asm/mpspec.h>
#include <asm/apic.h>
#include <asm/smp.h>
#include <asm/fixmap.h>
#include <asm/apicdef.h>
44
#include <asm/ipi.h>
I
Ingo Molnar 已提交
45 46 47 48 49
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/gfp.h>
#include <linux/smp.h>

50
static unsigned summit_get_apic_id(unsigned long x)
I
Ingo Molnar 已提交
51 52 53 54
{
	return (x >> 24) & 0xFF;
}

55
static inline void summit_send_IPI_mask(const struct cpumask *mask, int vector)
I
Ingo Molnar 已提交
56
{
57
	default_send_IPI_mask_sequence_logical(mask, vector);
I
Ingo Molnar 已提交
58 59
}

60
static void summit_send_IPI_allbutself(int vector)
I
Ingo Molnar 已提交
61
{
62
	default_send_IPI_mask_allbutself_logical(cpu_online_mask, vector);
I
Ingo Molnar 已提交
63 64
}

65
static void summit_send_IPI_all(int vector)
I
Ingo Molnar 已提交
66
{
67
	summit_send_IPI_mask(cpu_online_mask, vector);
I
Ingo Molnar 已提交
68 69 70 71 72 73 74
}

#include <asm/tsc.h>

extern int use_cyclone;

#ifdef CONFIG_X86_SUMMIT_NUMA
75
static void setup_summit(void);
I
Ingo Molnar 已提交
76
#else
77
static inline void setup_summit(void) {}
I
Ingo Molnar 已提交
78 79
#endif

80 81
static int summit_mps_oem_check(struct mpc_table *mpc, char *oem,
		char *productid)
I
Ingo Molnar 已提交
82 83 84 85 86 87 88 89 90 91 92 93 94 95
{
	if (!strncmp(oem, "IBM ENSW", 8) &&
			(!strncmp(productid, "VIGIL SMP", 9)
			 || !strncmp(productid, "EXA", 3)
			 || !strncmp(productid, "RUTHLESS SMP", 12))){
		mark_tsc_unstable("Summit based system");
		use_cyclone = 1; /*enable cyclone-timer*/
		setup_summit();
		return 1;
	}
	return 0;
}

/* Hook from generic ACPI tables.c */
96
static int summit_acpi_madt_oem_check(char *oem_id, char *oem_table_id)
I
Ingo Molnar 已提交
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
{
	if (!strncmp(oem_id, "IBM", 3) &&
	    (!strncmp(oem_table_id, "SERVIGIL", 8)
	     || !strncmp(oem_table_id, "EXA", 3))){
		mark_tsc_unstable("Summit based system");
		use_cyclone = 1; /*enable cyclone-timer*/
		setup_summit();
		return 1;
	}
	return 0;
}

struct rio_table_hdr {
	unsigned char version;      /* Version number of this data structure           */
	                            /* Version 3 adds chassis_num & WP_index           */
	unsigned char num_scal_dev; /* # of Scalability devices (Twisters for Vigil)   */
	unsigned char num_rio_dev;  /* # of RIO I/O devices (Cyclones and Winnipegs)   */
} __attribute__((packed));

struct scal_detail {
	unsigned char node_id;      /* Scalability Node ID                             */
	unsigned long CBAR;         /* Address of 1MB register space                   */
	unsigned char port0node;    /* Node ID port connected to: 0xFF=None            */
	unsigned char port0port;    /* Port num port connected to: 0,1,2, or 0xFF=None */
	unsigned char port1node;    /* Node ID port connected to: 0xFF = None          */
	unsigned char port1port;    /* Port num port connected to: 0,1,2, or 0xFF=None */
	unsigned char port2node;    /* Node ID port connected to: 0xFF = None          */
	unsigned char port2port;    /* Port num port connected to: 0,1,2, or 0xFF=None */
	unsigned char chassis_num;  /* 1 based Chassis number (1 = boot node)          */
} __attribute__((packed));

struct rio_detail {
	unsigned char node_id;      /* RIO Node ID                                     */
	unsigned long BBAR;         /* Address of 1MB register space                   */
	unsigned char type;         /* Type of device                                  */
	unsigned char owner_id;     /* For WPEG: Node ID of Cyclone that owns this WPEG*/
	                            /* For CYC:  Node ID of Twister that owns this CYC */
	unsigned char port0node;    /* Node ID port connected to: 0xFF=None            */
	unsigned char port0port;    /* Port num port connected to: 0,1,2, or 0xFF=None */
	unsigned char port1node;    /* Node ID port connected to: 0xFF=None            */
	unsigned char port1port;    /* Port num port connected to: 0,1,2, or 0xFF=None */
	unsigned char first_slot;   /* For WPEG: Lowest slot number below this WPEG    */
	                            /* For CYC:  0                                     */
	unsigned char status;       /* For WPEG: Bit 0 = 1 : the XAPIC is used         */
	                            /*                 = 0 : the XAPIC is not used, ie:*/
	                            /*                     ints fwded to another XAPIC */
	                            /*           Bits1:7 Reserved                      */
	                            /* For CYC:  Bits0:7 Reserved                      */
	unsigned char WP_index;     /* For WPEG: WPEG instance index - lower ones have */
	                            /*           lower slot numbers/PCI bus numbers    */
	                            /* For CYC:  No meaning                            */
	unsigned char chassis_num;  /* 1 based Chassis number                          */
	                            /* For LookOut WPEGs this field indicates the      */
	                            /* Expansion Chassis #, enumerated from Boot       */
	                            /* Node WPEG external port, then Boot Node CYC     */
	                            /* external port, then Next Vigil chassis WPEG     */
	                            /* external port, etc.                             */
	                            /* Shared Lookouts have only 1 chassis number (the */
	                            /* first one assigned)                             */
} __attribute__((packed));


typedef enum {
	CompatTwister = 0,  /* Compatibility Twister               */
	AltTwister    = 1,  /* Alternate Twister of internal 8-way */
	CompatCyclone = 2,  /* Compatibility Cyclone               */
	AltCyclone    = 3,  /* Alternate Cyclone of internal 8-way */
	CompatWPEG    = 4,  /* Compatibility WPEG                  */
	AltWPEG       = 5,  /* Second Planar WPEG                  */
	LookOutAWPEG  = 6,  /* LookOut WPEG                        */
	LookOutBWPEG  = 7,  /* LookOut WPEG                        */
} node_type;

static inline int is_WPEG(struct rio_detail *rio){
	return (rio->type == CompatWPEG || rio->type == AltWPEG ||
		rio->type == LookOutAWPEG || rio->type == LookOutBWPEG);
}

#define SUMMIT_APIC_DFR_VALUE	(APIC_DFR_CLUSTER)

177
static const struct cpumask *summit_target_cpus(void)
I
Ingo Molnar 已提交
178 179 180 181 182
{
	/* CPU_MASK_ALL (0xff) has undefined behaviour with
	 * dest_LowestPrio mode logical clustered apic interrupt routing
	 * Just start on cpu 0.  IRQ balancing will spread load
	 */
183
	return cpumask_of(0);
I
Ingo Molnar 已提交
184 185
}

186
static unsigned long summit_check_apicid_used(physid_mask_t *map, int apicid)
I
Ingo Molnar 已提交
187 188 189 190 191
{
	return 0;
}

/* we don't use the phys_cpu_present_map to indicate apicid presence */
192
static unsigned long summit_check_apicid_present(int bit)
I
Ingo Molnar 已提交
193 194 195 196
{
	return 1;
}

197
static int summit_early_logical_apicid(int cpu)
I
Ingo Molnar 已提交
198 199
{
	int count = 0;
200
	u8 my_id = early_per_cpu(x86_cpu_to_apicid, cpu);
I
Ingo Molnar 已提交
201
	u8 my_cluster = APIC_CLUSTER(my_id);
I
Ingo Molnar 已提交
202 203 204 205 206 207
#ifdef CONFIG_SMP
	u8 lid;
	int i;

	/* Create logical APIC IDs by counting CPUs already in cluster. */
	for (count = 0, i = nr_cpu_ids; --i >= 0; ) {
208
		lid = early_per_cpu(x86_cpu_to_logical_apicid, i);
I
Ingo Molnar 已提交
209
		if (lid != BAD_APICID && APIC_CLUSTER(lid) == my_cluster)
I
Ingo Molnar 已提交
210 211 212 213 214 215
			++count;
	}
#endif
	/* We only have a 4 wide bitmap in cluster mode.  If a deranged
	 * BIOS puts 5 CPUs in one APIC cluster, we're hosed. */
	BUG_ON(count >= XAPIC_DEST_CPUS_SHIFT);
216 217 218 219 220 221 222 223 224
	return my_cluster | (1UL << count);
}

static void summit_init_apic_ldr(void)
{
	int cpu = smp_processor_id();
	unsigned long id = early_per_cpu(x86_cpu_to_logical_apicid, cpu);
	unsigned long val;

I
Ingo Molnar 已提交
225 226 227 228 229 230
	apic_write(APIC_DFR, SUMMIT_APIC_DFR_VALUE);
	val = apic_read(APIC_LDR) & ~APIC_LDR_MASK;
	val |= SET_APIC_LOGICAL_ID(id);
	apic_write(APIC_LDR, val);
}

231
static int summit_apic_id_registered(void)
I
Ingo Molnar 已提交
232 233 234 235
{
	return 1;
}

236
static void summit_setup_apic_routing(void)
I
Ingo Molnar 已提交
237 238 239 240 241
{
	printk("Enabling APIC mode:  Summit.  Using %d I/O APICs\n",
						nr_ioapics);
}

242
static int summit_cpu_present_to_apicid(int mps_cpu)
I
Ingo Molnar 已提交
243 244 245 246 247 248 249
{
	if (mps_cpu < nr_cpu_ids)
		return (int)per_cpu(x86_bios_cpu_apicid, mps_cpu);
	else
		return BAD_APICID;
}

250
static void summit_ioapic_phys_id_map(physid_mask_t *phys_id_map, physid_mask_t *retmap)
I
Ingo Molnar 已提交
251 252
{
	/* For clustered we don't have a good way to do this yet - hack */
253
	physids_promote(0x0FL, retmap);
I
Ingo Molnar 已提交
254 255
}

256
static void summit_apicid_to_cpu_present(int apicid, physid_mask_t *retmap)
I
Ingo Molnar 已提交
257
{
258
	physid_set_mask_of_physid(0, retmap);
I
Ingo Molnar 已提交
259 260
}

T
Thomas Gleixner 已提交
261
static int summit_check_phys_apicid_present(int physical_apicid)
I
Ingo Molnar 已提交
262 263 264 265
{
	return 1;
}

266
static unsigned int summit_cpu_mask_to_apicid(const struct cpumask *cpumask)
I
Ingo Molnar 已提交
267
{
268 269
	unsigned int round = 0;
	int cpu, apicid = 0;
I
Ingo Molnar 已提交
270 271

	/*
J
Jiri Slaby 已提交
272
	 * The cpus in the mask must all be on the apic cluster.
I
Ingo Molnar 已提交
273
	 */
274
	for_each_cpu(cpu, cpumask) {
275
		int new_apicid = early_per_cpu(x86_cpu_to_logical_apicid, cpu);
I
Ingo Molnar 已提交
276

277 278 279
		if (round && APIC_CLUSTER(apicid) != APIC_CLUSTER(new_apicid)) {
			printk("%s: Not a valid mask!\n", __func__);
			return BAD_APICID;
I
Ingo Molnar 已提交
280
		}
281 282
		apicid |= new_apicid;
		round++;
I
Ingo Molnar 已提交
283 284 285 286
	}
	return apicid;
}

287
static unsigned int summit_cpu_mask_to_apicid_and(const struct cpumask *inmask,
I
Ingo Molnar 已提交
288 289
			      const struct cpumask *andmask)
{
290
	int apicid = early_per_cpu(x86_cpu_to_logical_apicid, 0);
I
Ingo Molnar 已提交
291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311
	cpumask_var_t cpumask;

	if (!alloc_cpumask_var(&cpumask, GFP_ATOMIC))
		return apicid;

	cpumask_and(cpumask, inmask, andmask);
	cpumask_and(cpumask, cpumask, cpu_online_mask);
	apicid = summit_cpu_mask_to_apicid(cpumask);

	free_cpumask_var(cpumask);

	return apicid;
}

/*
 * cpuid returns the value latched in the HW at reset, not the APIC ID
 * register's value.  For any box whose BIOS changes APIC IDs, like
 * clustered APIC systems, we must use hard_smp_processor_id.
 *
 * See Intel's IA-32 SW Dev's Manual Vol2 under CPUID.
 */
312
static int summit_phys_pkg_id(int cpuid_apic, int index_msb)
I
Ingo Molnar 已提交
313 314 315 316 317 318 319 320 321 322
{
	return hard_smp_processor_id() >> index_msb;
}

static int probe_summit(void)
{
	/* probed later in mptable/ACPI hooks */
	return 0;
}

323
static void summit_vector_allocation_domain(int cpu, struct cpumask *retmask)
I
Ingo Molnar 已提交
324 325 326 327 328 329 330 331 332
{
	/* Careful. Some cpus do not strictly honor the set of cpus
	 * specified in the interrupt destination when using lowest
	 * priority interrupt delivery mode.
	 *
	 * In particular there was a hyperthreading cpu observed to
	 * deliver interrupts to the wrong hyperthread when only one
	 * hyperthread was specified in the interrupt desitination.
	 */
333 334
	cpumask_clear(retmask);
	cpumask_bits(retmask)[0] = APIC_ALL_CPUS;
I
Ingo Molnar 已提交
335
}
L
Linus Torvalds 已提交
336

I
Ingo Molnar 已提交
337
#ifdef CONFIG_X86_SUMMIT_NUMA
338 339 340
static struct rio_table_hdr *rio_table_hdr;
static struct scal_detail   *scal_devs[MAX_NUMNODES];
static struct rio_detail    *rio_devs[MAX_NUMNODES*4];
L
Linus Torvalds 已提交
341

342
#ifndef CONFIG_X86_NUMAQ
343
static int mp_bus_id_to_node[MAX_MP_BUSSES];
344
#endif
345

346
static int setup_pci_node_map_for_wpeg(int wpeg_num, int last_bus)
L
Linus Torvalds 已提交
347 348 349 350
{
	int twister = 0, node = 0;
	int i, bus, num_buses;

351 352
	for (i = 0; i < rio_table_hdr->num_rio_dev; i++) {
		if (rio_devs[i]->node_id == rio_devs[wpeg_num]->owner_id) {
L
Linus Torvalds 已提交
353 354 355 356
			twister = rio_devs[i]->owner_id;
			break;
		}
	}
357
	if (i == rio_table_hdr->num_rio_dev) {
358
		printk(KERN_ERR "%s: Couldn't find owner Cyclone for Winnipeg!\n", __func__);
L
Linus Torvalds 已提交
359 360 361
		return last_bus;
	}

362 363
	for (i = 0; i < rio_table_hdr->num_scal_dev; i++) {
		if (scal_devs[i]->node_id == twister) {
L
Linus Torvalds 已提交
364 365 366 367
			node = scal_devs[i]->node_id;
			break;
		}
	}
368
	if (i == rio_table_hdr->num_scal_dev) {
369
		printk(KERN_ERR "%s: Couldn't find owner Twister for Cyclone!\n", __func__);
L
Linus Torvalds 已提交
370 371 372
		return last_bus;
	}

373
	switch (rio_devs[wpeg_num]->type) {
L
Linus Torvalds 已提交
374
	case CompatWPEG:
375 376
		/*
		 * The Compatibility Winnipeg controls the 2 legacy buses,
L
Linus Torvalds 已提交
377 378 379 380 381 382
		 * the 66MHz PCI bus [2 slots] and the 2 "extra" buses in case
		 * a PCI-PCI bridge card is used in either slot: total 5 buses.
		 */
		num_buses = 5;
		break;
	case AltWPEG:
383 384
		/*
		 * The Alternate Winnipeg controls the 2 133MHz buses [1 slot
L
Linus Torvalds 已提交
385 386 387 388 389 390 391
		 * each], their 2 "extra" buses, the 100MHz bus [2 slots] and
		 * the "extra" buses for each of those slots: total 7 buses.
		 */
		num_buses = 7;
		break;
	case LookOutAWPEG:
	case LookOutBWPEG:
392 393
		/*
		 * A Lookout Winnipeg controls 3 100MHz buses [2 slots each]
L
Linus Torvalds 已提交
394 395 396 397 398
		 * & the "extra" buses for each of those slots: total 9 buses.
		 */
		num_buses = 9;
		break;
	default:
399
		printk(KERN_INFO "%s: Unsupported Winnipeg type!\n", __func__);
L
Linus Torvalds 已提交
400 401 402
		return last_bus;
	}

403
	for (bus = last_bus; bus < last_bus + num_buses; bus++)
L
Linus Torvalds 已提交
404 405 406 407
		mp_bus_id_to_node[bus] = node;
	return bus;
}

408
static int build_detail_arrays(void)
L
Linus Torvalds 已提交
409 410 411 412
{
	unsigned long ptr;
	int i, scal_detail_size, rio_detail_size;

413
	if (rio_table_hdr->num_scal_dev > MAX_NUMNODES) {
414
		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);
L
Linus Torvalds 已提交
415 416 417
		return 0;
	}

418
	switch (rio_table_hdr->version) {
L
Linus Torvalds 已提交
419
	default:
420
		printk(KERN_WARNING "%s: Invalid Rio Grande Table Version: %d\n", __func__, rio_table_hdr->version);
L
Linus Torvalds 已提交
421 422 423 424 425 426 427 428 429 430 431 432
		return 0;
	case 2:
		scal_detail_size = 11;
		rio_detail_size = 13;
		break;
	case 3:
		scal_detail_size = 12;
		rio_detail_size = 15;
		break;
	}

	ptr = (unsigned long)rio_table_hdr + 3;
433
	for (i = 0; i < rio_table_hdr->num_scal_dev; i++, ptr += scal_detail_size)
L
Linus Torvalds 已提交
434 435
		scal_devs[i] = (struct scal_detail *)ptr;

436
	for (i = 0; i < rio_table_hdr->num_rio_dev; i++, ptr += rio_detail_size)
L
Linus Torvalds 已提交
437 438 439 440 441
		rio_devs[i] = (struct rio_detail *)ptr;

	return 1;
}

442
void setup_summit(void)
L
Linus Torvalds 已提交
443 444 445 446 447 448
{
	unsigned long		ptr;
	unsigned short		offset;
	int			i, next_wpeg, next_bus = 0;

	/* The pointer to the EBDA is stored in the word @ phys 0x40E(40:0E) */
A
Akinobu Mita 已提交
449 450
	ptr = get_bios_ebda();
	ptr = (unsigned long)phys_to_virt(ptr);
L
Linus Torvalds 已提交
451 452 453

	rio_table_hdr = NULL;
	offset = 0x180;
454
	while (offset) {
L
Linus Torvalds 已提交
455
		/* The block id is stored in the 2nd word */
456
		if (*((unsigned short *)(ptr + offset + 2)) == 0x4752) {
L
Linus Torvalds 已提交
457 458 459 460 461 462 463
			/* set the pointer past the offset & block id */
			rio_table_hdr = (struct rio_table_hdr *)(ptr + offset + 4);
			break;
		}
		/* The next offset is stored in the 1st word.  0 means no more */
		offset = *((unsigned short *)(ptr + offset));
	}
464
	if (!rio_table_hdr) {
465
		printk(KERN_ERR "%s: Unable to locate Rio Grande Table in EBDA - bailing!\n", __func__);
L
Linus Torvalds 已提交
466 467 468 469 470 471 472 473 474
		return;
	}

	if (!build_detail_arrays())
		return;

	/* The first Winnipeg we're looking for has an index of 0 */
	next_wpeg = 0;
	do {
475 476
		for (i = 0; i < rio_table_hdr->num_rio_dev; i++) {
			if (is_WPEG(rio_devs[i]) && rio_devs[i]->WP_index == next_wpeg) {
L
Linus Torvalds 已提交
477 478 479 480 481 482 483 484 485 486 487 488 489 490 491
				/* It's the Winnipeg we're looking for! */
				next_bus = setup_pci_node_map_for_wpeg(i, next_bus);
				next_wpeg++;
				break;
			}
		}
		/*
		 * If we go through all Rio devices and don't find one with
		 * the next index, it means we've found all the Winnipegs,
		 * and thus all the PCI buses.
		 */
		if (i == rio_table_hdr->num_rio_dev)
			next_wpeg = 0;
	} while (next_wpeg != 0);
}
I
Ingo Molnar 已提交
492
#endif
I
Ingo Molnar 已提交
493

494
struct apic apic_summit = {
I
Ingo Molnar 已提交
495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535

	.name				= "summit",
	.probe				= probe_summit,
	.acpi_madt_oem_check		= summit_acpi_madt_oem_check,
	.apic_id_registered		= summit_apic_id_registered,

	.irq_delivery_mode		= dest_LowestPrio,
	/* logical delivery broadcast to all CPUs: */
	.irq_dest_mode			= 1,

	.target_cpus			= summit_target_cpus,
	.disable_esr			= 1,
	.dest_logical			= APIC_DEST_LOGICAL,
	.check_apicid_used		= summit_check_apicid_used,
	.check_apicid_present		= summit_check_apicid_present,

	.vector_allocation_domain	= summit_vector_allocation_domain,
	.init_apic_ldr			= summit_init_apic_ldr,

	.ioapic_phys_id_map		= summit_ioapic_phys_id_map,
	.setup_apic_routing		= summit_setup_apic_routing,
	.multi_timer_check		= NULL,
	.cpu_present_to_apicid		= summit_cpu_present_to_apicid,
	.apicid_to_cpu_present		= summit_apicid_to_cpu_present,
	.setup_portio_remap		= NULL,
	.check_phys_apicid_present	= summit_check_phys_apicid_present,
	.enable_apic_mode		= NULL,
	.phys_pkg_id			= summit_phys_pkg_id,
	.mps_oem_check			= summit_mps_oem_check,

	.get_apic_id			= summit_get_apic_id,
	.set_apic_id			= NULL,
	.apic_id_mask			= 0xFF << 24,

	.cpu_mask_to_apicid		= summit_cpu_mask_to_apicid,
	.cpu_mask_to_apicid_and		= summit_cpu_mask_to_apicid_and,

	.send_IPI_mask			= summit_send_IPI_mask,
	.send_IPI_mask_allbutself	= NULL,
	.send_IPI_allbutself		= summit_send_IPI_allbutself,
	.send_IPI_all			= summit_send_IPI_all,
536
	.send_IPI_self			= default_send_IPI_self,
I
Ingo Molnar 已提交
537 538 539 540 541 542 543 544

	.trampoline_phys_low		= DEFAULT_TRAMPOLINE_PHYS_LOW,
	.trampoline_phys_high		= DEFAULT_TRAMPOLINE_PHYS_HIGH,

	.wait_for_init_deassert		= default_wait_for_init_deassert,

	.smp_callin_clear_local_apic	= NULL,
	.inquire_remote_apic		= default_inquire_remote_apic,
Y
Yinghai Lu 已提交
545 546 547 548 549 550 551

	.read				= native_apic_mem_read,
	.write				= native_apic_mem_write,
	.icr_read			= native_apic_icr_read,
	.icr_write			= native_apic_icr_write,
	.wait_icr_idle			= native_apic_wait_icr_idle,
	.safe_wait_icr_idle		= native_safe_apic_wait_icr_idle,
552

553
	.x86_32_early_logical_apicid	= summit_early_logical_apicid,
I
Ingo Molnar 已提交
554
};