Jiang Liu
ecc527d560
x86, irq, SFI: Use common irqdomain map interface to program IOAPIC pins
...
Refine SFI to use common irqdomain map interface to program IOAPIC pins,
so we can unify the callsite to progam IOAPIC pins.
Signed-off-by: Jiang Liu <[email protected] >
Cc: Konrad Rzeszutek Wilk <[email protected] >
Cc: Tony Luck <[email protected] >
Cc: Joerg Roedel <[email protected] >
Cc: Paul Gortmaker <[email protected] >
Cc: Greg Kroah-Hartman <[email protected] >
Cc: H. Peter Anvin <[email protected] >
Cc: [email protected]
Cc: Benjamin Herrenschmidt <[email protected] >
Cc: Grant Likely <[email protected] >
Cc: Rafael J. Wysocki <[email protected] >
Cc: Bjorn Helgaas <[email protected] >
Cc: Randy Dunlap <[email protected] >
Cc: Yinghai Lu <[email protected] >
Cc: Len Brown <[email protected] >
Cc: David Cohen <[email protected] >
Cc: Kuppuswamy Sathyanarayanan <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected] >
2014-06-21 23:05:43 +02:00
Jiang Liu
1b5d3e00d4
x86, SFI, irq: Provide basic irqdomain support
...
Enhance SFI to provide basic support of irqdomain with identity mapping
between GSIs and IRQs.
Some Intel MID platforms assumes identity mapping between GSI and IRQ,
so we can't dynamically allocate IRQ number on demand.
Signed-off-by: Jiang Liu <[email protected] >
Cc: Konrad Rzeszutek Wilk <[email protected] >
Cc: Tony Luck <[email protected] >
Cc: Joerg Roedel <[email protected] >
Cc: Paul Gortmaker <[email protected] >
Cc: Greg Kroah-Hartman <[email protected] >
Cc: H. Peter Anvin <[email protected] >
Cc: [email protected]
Cc: Benjamin Herrenschmidt <[email protected] >
Cc: Grant Likely <[email protected] >
Cc: Rafael J. Wysocki <[email protected] >
Cc: Bjorn Helgaas <[email protected] >
Cc: Randy Dunlap <[email protected] >
Cc: Yinghai Lu <[email protected] >
Cc: Len Brown <[email protected] >
Cc: David Cohen <[email protected] >
Cc: Kuppuswamy Sathyanarayanan <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected] >
2014-06-21 23:05:43 +02:00
Jiang Liu
44767bfaae
x86, irq: Enhance mp_register_ioapic() to support irqdomain
...
Enhance function mp_register_ioapic() to support irqdomain.
When registering IOAPIC, caller may provide callbacks and parameters
for creating irqdomain. The IOAPIC core will create irqdomain later
if caller has passed in corresponding parameters.
Signed-off-by: Jiang Liu <[email protected] >
Cc: Konrad Rzeszutek Wilk <[email protected] >
Cc: Tony Luck <[email protected] >
Cc: Joerg Roedel <[email protected] >
Cc: Paul Gortmaker <[email protected] >
Cc: Greg Kroah-Hartman <[email protected] >
Cc: [email protected]
Cc: Benjamin Herrenschmidt <[email protected] >
Cc: Grant Likely <[email protected] >
Cc: Rafael J. Wysocki <[email protected] >
Cc: Bjorn Helgaas <[email protected] >
Cc: Randy Dunlap <[email protected] >
Cc: Yinghai Lu <[email protected] >
Cc: Len Brown <[email protected] >
Cc: Pavel Machek <[email protected] >
Cc: Rob Herring <[email protected] >
Cc: Michal Simek <[email protected] >
Cc: Tony Lindgren <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected] >
2014-06-21 23:05:42 +02:00
Jan Beulich
9611dc7a8d
x86: Convert a few mistaken __cpuinit annotations to __init
...
The first two are functions serving as initcalls; the SFI one is
only being called from __init code.
Signed-off-by: Jan Beulich <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2013-01-24 17:12:19 +01:00
Ingo Molnar
1c2a48cf65
Merge branch 'linus' into x86/apic-cleanups
...
Conflicts:
arch/x86/include/asm/io_apic.h
Merge reason: Resolve the conflict, update to a more recent -rc base
Signed-off-by: Ingo Molnar <[email protected] >
2011-01-07 14:14:15 +01:00
Yinghai Lu
cb2ded37fd
x86: Fix APIC ID sizing bug on larger systems, clean up MAX_APICS confusion
...
Found one x2apic pre-enabled system, x2apic_mode suddenly get
corrupted after register some cpus, when compiled
CONFIG_NR_CPUS=255 instead of 512.
It turns out that generic_processor_info() ==> phyid_set(apicid,
phys_cpu_present_map) causes the problem.
phys_cpu_present_map is sized by MAX_APICS bits, and pre-enabled
system some cpus have an apic id > 255.
The variable after phys_cpu_present_map may get corrupted
silently:
ffffffff828e8420 B phys_cpu_present_map
ffffffff828e8440 B apic_verbosity
ffffffff828e8444 B local_apic_timer_c2_ok
ffffffff828e8448 B disable_apic
ffffffff828e844c B x2apic_mode
ffffffff828e8450 B x2apic_disabled
ffffffff828e8454 B num_processors
...
Actually phys_cpu_present_map is referenced via apic id, instead
index. We should use MAX_LOCAL_APIC instead MAX_APICS.
For 64-bit it will be 32768 in all cases. BSS will increase by 4k bytes
on 64-bit:
text data bss dec filename
21696943 4193748 12787712 38678403 vmlinux.before
21696943 4193748 12791808 38682499 vmlinux.after
No change on 32bit.
Finally we can remove MAX_APCIS that was rather confusing.
Signed-off-by: Yinghai Lu <[email protected] >
Cc: H. Peter Anvin <[email protected] >
Cc: "Eric W. Biederman" <[email protected] >
LKML-Reference: <[email protected] >
Signed-off-by: Ingo Molnar <[email protected] >
2011-01-05 14:09:23 +01:00
Yinghai Lu
53301f36f3
x86, sfi: Use register_lapic_address()
...
register_lapic_address() and mp_sfi_register_lapic_address() are
almost identical. Use the common function.
Signed-off-by: Yinghai Lu <[email protected] >
Cc: Suresh Siddha <[email protected] >
Cc: "Eric W. Biederman" <[email protected] >
Cc: Len Brown <[email protected] >
LKML-Reference: <[email protected] >
Signed-off-by: Thomas Gleixner <[email protected] >
2010-12-09 21:52:05 +01:00
Thomas Gleixner
937f961a65
x86: Move sfi to platform
...
Signed-off-by: Thomas Gleixner <[email protected] >
Cc: Len Brown <[email protected] >
Cc: Alan Cox <[email protected] >
2010-10-27 14:30:01 +02:00