Paolo Ciarrocchi | 8108576 | 2008-02-20 00:17:34 +0100 | [diff] [blame] | 1 | /* |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | * APIC driver for the IBM "Summit" chipset. |
| 3 | */ |
| 4 | #define APIC_DEFINITION 1 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | #include <linux/threads.h> |
| 6 | #include <linux/cpumask.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | #include <asm/mpspec.h> |
| 8 | #include <asm/genapic.h> |
| 9 | #include <asm/fixmap.h> |
| 10 | #include <asm/apicdef.h> |
| 11 | #include <linux/kernel.h> |
| 12 | #include <linux/string.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | #include <linux/init.h> |
Yinghai Lu | e8c48ef | 2008-07-25 02:17:44 -0700 | [diff] [blame] | 14 | #include <asm/summit/apicdef.h> |
Yinghai Lu | 4696ca5 | 2008-07-11 18:43:10 -0700 | [diff] [blame] | 15 | #include <linux/smp.h> |
Yinghai Lu | e8c48ef | 2008-07-25 02:17:44 -0700 | [diff] [blame] | 16 | #include <asm/summit/apic.h> |
| 17 | #include <asm/summit/ipi.h> |
| 18 | #include <asm/summit/mpparse.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | |
Vivek Goyal | e96763d | 2007-01-11 01:52:44 +0100 | [diff] [blame] | 20 | static int probe_summit(void) |
Paolo Ciarrocchi | 8108576 | 2008-02-20 00:17:34 +0100 | [diff] [blame] | 21 | { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | /* probed later in mptable/ACPI hooks */ |
| 23 | return 0; |
Paolo Ciarrocchi | 8108576 | 2008-02-20 00:17:34 +0100 | [diff] [blame] | 24 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 25 | |
Yinghai Lu | 497c9a1 | 2008-08-19 20:50:28 -0700 | [diff] [blame^] | 26 | static cpumask_t vector_allocation_domain(int cpu) |
| 27 | { |
| 28 | /* Careful. Some cpus do not strictly honor the set of cpus |
| 29 | * specified in the interrupt destination when using lowest |
| 30 | * priority interrupt delivery mode. |
| 31 | * |
| 32 | * In particular there was a hyperthreading cpu observed to |
| 33 | * deliver interrupts to the wrong hyperthread when only one |
| 34 | * hyperthread was specified in the interrupt desitination. |
| 35 | */ |
| 36 | cpumask_t domain = { { [0] = APIC_ALL_CPUS, } }; |
| 37 | return domain; |
| 38 | } |
| 39 | |
Paolo Ciarrocchi | 8108576 | 2008-02-20 00:17:34 +0100 | [diff] [blame] | 40 | struct genapic apic_summit = APIC_INIT("summit", probe_summit); |