Skip to contentSkip to conversation

x86 updates for v2.6.28, phase #6, misc

GIT PULL Ingo Molnar 3 participants 6 messages Oct 10, 2008 – Oct 11, 2008

Subsystems (18)
lore
Share & tools
lore
#0 lore raw

Linus,

Please pull the latest x86-v28-for-linus-phase6 git tree from:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip.git x86-v28-for-linus-phase6

tip/x86/core: various x86 updates independent of the sparse irqs support tree.

out-of-topic modifications in x86-v28-for-linus-phase6:
-------------------------------------------------------
include/linux/kernel.h # d974ae3: generic, memparse(): constify arg
include/linux/mm.h # f7d0b92: mm: define USE_SPLIT_PTLOCKS rath
# 59ea746: MM: virtual address debug
include/linux/mm_types.h # f7d0b92: mm: define USE_SPLIT_PTLOCKS rath
include/linux/mmdebug.h # 7aa413d: x86, MM: virtual address debug, c
# 59ea746: MM: virtual address debug
lib/cmdline.c # d974ae3: generic, memparse(): constify arg
mm/vmalloc.c # 7aa413d: x86, MM: virtual address debug, c
# 59ea746: MM: virtual address debug

Thanks,

Ingo

------------------>
Alex Nixon (10):
x86: add cpu hotplug hooks into smp_ops
x86_32: clean up play_dead
x86: unify x86_32 and x86_64 play_dead into one function
x86: separate generic cpu disabling code from APIC writes in cpu_disable
xen: implement CPU hotplugging
Xen: fix cpu_hotplug.c build by replacing is_running_on_xen() with xen_pv_domain()
Xen: fix cpu_hotplug build when !CONFIG_SMP
x86: build fix for !CONFIG_SMP
x86, xen: fix build when !CONFIG_HOTPLUG_CPU
xen: make CPU hotplug functions static

Alexander van Heukelum (47):
i386: remove kprobes' restore_interrupts in favour of conditional_sti
i386: prepare to convert exceptions to interrupts
i386: convert hardware exception 0 to an interrupt gate
i386: expand exception 3 DO_TRAP macro
i386: convert hardware exception 4 to an interrupt gate
i386: convert hardware exception 5 to an interrupt gate
i386: convert hardware exception 6 to an interrupt gate
i386: convert hardware exception 7 to an interrupt gate
i386: convert hardware exception 9 to an interrupt gate
i386: convert hardware exception 10 to an interrupt gate
i386: convert hardware exception 11 to an interrupt gate
i386: convert hardware exception 12 to an interrupt gate
i386: convert hardware exception 13 to an interrupt gate
i386: convert hardware exception 15 to an interrupt gate
i386: convert hardware exception 16 to an interrupt gate
i386: convert hardware exception 17 to an interrupt gate
i386: convert hardware exception 18 to an interrupt gate
i386: convert hardware exception 19 to an interrupt gate
i386: remove temporary DO_TRAP macros, expanding the last one used
i386: add TRACE_IRQS_OFF to entry_32.S in 'error_code'
i386: add TRACE_IRQS_OFF for exception 1 (debug)
i386: add TRACE_IRQS_OFF for the nmi
i386: add TRACE_IRQS_OFF for the exception 3 (int3)
i386: trace_hardirqs_fixup should now not be necessary: irqs are off.
traps: x86_64: add TRACE_IRQS_OFF in error_entry
traps: x86_64: add TRACE_IRQS_OFF in paranoidentry macro
traps: x86_64: remove trace_hardirqs_fixup from DO_ERROR_INFO macro
traps: x86_64: remove trace_hardirqs_fixup from int3 handler
traps: x86_64: remove trace_hardirqs_fixup from debug handler
traps: x86: remove trace_hardirqs_fixup from pagefault handler
traps: i386: make do_trap more like x86_64
i386: split out dumpstack code from traps_32.c
x86_64: split out dumpstack code from traps_64.c
fix: x86: remove cpu_vendor_dev
x86, traps: split out math_error and simd_math_error
x86, traps, i386: factor out lazy io-bitmap copy
x86, traps: introduce dotraplinkage
x86, traps: converge do_debug handlers
traps: x86: converge trap_init functions
traps: x86_64: make math_state_restore more like i386
traps: i386: use preempt_conditional_sti/cli in do_int3
traps: x86_64: make io_check_error equal to the one on i386
traps: i386: expand clear_mem_error and remove from mach_traps.h
traps: x86_64: use task_pid_nr(tsk) instead of tsk->pid in do_general_protection
traps: x86: various noop-changes preparing for unification of traps_xx.c
traps: x86: make traps_32.c and traps_64.c equal
traps: x86: finalize unification of traps.c

Chuck Ebbert (2):
x86: move prefill_possible_map calling early, fix, V2
x86: allow number of additional hotplug CPUs to be set at compile time, V2

Cyrill Gorcunov (1):
x86: smpboot - check if we have ESR register in wakeup_secondary_cpu

Eduardo Habkost (2):
x86, xen: Use native_pte_flags instead of native_pte_val for .pte_flags
xen_alloc_ptpage: cast PFN_PHYS() argument to unsigned long

Ingo Molnar (10):
x86, MM: virtual address debug, cleanups
x86: x86_{phys,virt}_bits field also for i386, fix
Revert "x86: x86_{phys,virt}_bits field also for i386, fix"
Revert "x86: x86_{phys,virt}_bits field also for i386 (v2)"
x86: print out EBDA/lowmem address
x86: add PCI IDs for AMD Barcelona PCI devices
x86: __show_registers() and __show_regs() API unification, fixlet
x86: remove additional_cpus configurability
Revert "acpi/x86: introduce __apci_map_table, v4"
Revert "acpi: remove final __acpi_map_table mapping before setting acpi_gbl_permanent_mmap"

Jack Steiner (1):
x86, UV: new UV genapic functions for x2apic

Jan Beulich (7):
x86: adjust vmalloc_sync_all() for Xen (2nd try)
x86-64: reduce boot fixmap space
x86-64: slightly stream-line 32-bit syscall entry code
x86: x86_{phys,virt}_bits field also for i386 (v2)
x86-64: fix combining of regions in init_memory_mapping()
x86: make mm/gup.c more virtualization friendly
x86: adjust dependencies for CONFIG_X86_CMOV

Jeremy Fitzhardinge (30):
x86/paravirt/xen: properly fill out the ldt ops
x86: split spinlock implementations out into their own files
x86: fix initialization of 'l' bit in ldt descriptors
xen: fix allocation and use of large ldts
generic, memparse(): constify argument
xen-balloon: fix up sysfs issues
xen-balloon: clean up unused functions
xen: suppress known wrmsrs
xen: compile irq functions without -pg for ftrace
xen: fix allocation and use of large ldts, cleanup
xen: clean up domain mode predicates
x86/paravirt: add spin_lock_flags lock op
xen: clarify locking used when pinning a pagetable.
xen: add xen_ prefixes to make tracing with ftrace easier
xen: save previous spinlock when blocking
xen: add debugfs support
xen: allow interrupts to be enabled while doing a blocking spin
xen: measure how long spinlocks spend blocking
x86: build fix in "xen spinlock updates and performance measurements"
x86: export pv_lock_ops non-GPL
x86: add _PAGE_IOMAP pte flag for IO mappings
x86: remove duplicate early_ioremap declarations
x86: add early_memremap()
x86: use early_memremap() in setup.c
x86-64: don't check for map replacement
x86: use early_ioremap in __acpi_map_table
x86: always explicitly map acpi memory
mm: define USE_SPLIT_PTLOCKS rather than repeating expression
xen: fix pinning when not using split pte locks
acpi: remove final __acpi_map_table mapping before setting acpi_gbl_permanent_mmap

Jiri Slaby (2):
MM: virtual address debug
x86, MM: virtual address debug, v2

Krzysztof Helt (2):
x86: merge winchip-2 and winchip-2a cpu choices
x86: do not allow to optimize flag_is_changeable_p() (rev. 2)

Manfred Spraul (1):
arch/x86/kernel/smpboot.c: Clarify when irq processing begins.

Pekka Enberg (1):
x86: __show_registers() and __show_regs() API unification

Thomas Gleixner (2):
x86: improve UP kernel when CPU-hotplug and SMP is enabled
x86: remove additional_cpus

Vegard Nossum (2):
x86: add memory clobber in switch_to()
x86: fix virt_addr_valid() with CONFIG_DEBUG_VIRTUAL=y, v2

Yinghai Lu (5):
x86: rename discontig_32.c to numa_32.c
x86: change early_ioremap to use slots instead of nesting acpi/x86: introduce __apci_map_table, v4
x86: check dsdt before find oem table for es7000, v2
x86: cpu don't print duplicated vendor string

 arch/x86/Kconfig.cpu                      |   29 +-
 arch/x86/Makefile_32.cpu                  |    1 -
 arch/x86/configs/i386_defconfig           |    1 -
 arch/x86/configs/x86_64_defconfig         |    1 -
 arch/x86/ia32/ia32entry.S                 |   26 +-
 arch/x86/kernel/Makefile                  |    6 +-
 arch/x86/kernel/acpi/boot.c               |   34 +-
 arch/x86/kernel/alternative.c             |    2 +-
 arch/x86/kernel/cpu/common.c              |   48 +-
 arch/x86/kernel/doublefault_32.c          |    2 +-
 arch/x86/kernel/dumpstack_32.c            |  422 ++++++++++
 arch/x86/kernel/dumpstack_64.c            |  565 ++++++++++++++
 arch/x86/kernel/entry_32.S                |   22 +-
 arch/x86/kernel/entry_64.S                |    8 +-
 arch/x86/kernel/es7000_32.c               |   28 +-
 arch/x86/kernel/genx2apic_uv_x.c          |   10 +-
 arch/x86/kernel/head.c                    |    1 +
 arch/x86/kernel/ldt.c                     |    9 +-
 arch/x86/kernel/paravirt-spinlocks.c      |   37 +
 arch/x86/kernel/paravirt.c                |   27 +-
 arch/x86/kernel/process_32.c              |   43 +-
 arch/x86/kernel/process_64.c              |   37 +-
 arch/x86/kernel/setup.c                   |    8 +-
 arch/x86/kernel/smp.c                     |    6 +-
 arch/x86/kernel/smpboot.c                 |  164 +++--
 arch/x86/kernel/tlb_32.c                  |    8 +
 arch/x86/kernel/{traps_32.c => traps.c}   |  860 ++++++++-------------
 arch/x86/kernel/traps_64.c                | 1214 -----------------------------
 arch/x86/kernel/vmlinux_64.lds.S          |    2 +-
 arch/x86/mach-generic/es7000.c            |   20 +-
 arch/x86/mm/Makefile                      |    6 +-
 arch/x86/mm/fault.c                       |   19 +-
 arch/x86/mm/gup.c                         |   10 +-
 arch/x86/mm/init_32.c                     |    2 +-
 arch/x86/mm/init_64.c                     |    9 +-
 arch/x86/mm/ioremap.c                     |  168 ++++-
 arch/x86/mm/{discontig_32.c => numa_32.c} |    0
 arch/x86/xen/Kconfig                      |   10 +-
 arch/x86/xen/Makefile                     |   12 +-
 arch/x86/xen/debugfs.c                    |  123 +++
 arch/x86/xen/debugfs.h                    |   10 +
 arch/x86/xen/enlighten.c                  |  189 ++---
 arch/x86/xen/irq.c                        |  143 ++++
 arch/x86/xen/mmu.c                        |  270 ++++++-
 arch/x86/xen/multicalls.c                 |  115 +++-
 arch/x86/xen/smp.c                        |  245 ++-----
 arch/x86/xen/spinlock.c                   |  428 ++++++++++
 arch/x86/xen/time.c                       |   12 +-
 arch/x86/xen/xen-asm_32.S                 |    2 +-
 arch/x86/xen/xen-asm_64.S                 |    2 +-
 arch/x86/xen/xen-ops.h                    |    8 +
 drivers/block/xen-blkfront.c              |    2 +-
 drivers/char/hvc_xen.c                    |    6 +-
 drivers/input/xen-kbdfront.c              |    4 +-
 drivers/net/xen-netfront.c                |    6 +-
 drivers/video/xen-fbfront.c               |    4 +-
 drivers/xen/Makefile                      |    1 +
 drivers/xen/balloon.c                     |  174 +----
 drivers/xen/cpu_hotplug.c                 |   90 +++
 drivers/xen/events.c                      |   40 +-
 drivers/xen/grant-table.c                 |    2 +-
 drivers/xen/xenbus/xenbus_probe.c         |    8 +-
 include/asm-x86/acpi.h                    |    3 -
 include/asm-x86/desc.h                    |   29 +-
 include/asm-x86/es7000/mpparse.h          |    1 +
 include/asm-x86/fixmap_32.h               |    8 +-
 include/asm-x86/fixmap_64.h               |   16 +-
 include/asm-x86/io.h                      |   15 +-
 include/asm-x86/io_64.h                   |    3 -
 include/asm-x86/irqflags.h                |   21 -
 include/asm-x86/kdebug.h                  |    3 +-
 include/asm-x86/kprobes.h                 |    9 -
 include/asm-x86/mach-default/mach_traps.h |    6 -
 include/asm-x86/mmzone_64.h               |    3 +-
 include/asm-x86/module.h                  |    2 -
 include/asm-x86/nmi.h                     |    4 -
 include/asm-x86/page.h                    |    8 +-
 include/asm-x86/page_32.h                 |   13 +-
 include/asm-x86/paravirt.h                |   20 +
 include/asm-x86/pgtable.h                 |   16 +-
 include/asm-x86/ptrace.h                  |    4 -
 include/asm-x86/smp.h                     |   40 +-
 include/asm-x86/spinlock.h                |    9 +-
 include/asm-x86/system.h                  |    5 +-
 include/asm-x86/tlbflush.h                |   10 +
 include/asm-x86/traps.h                   |   73 +-
 include/asm-x86/xen/hypervisor.h          |   14 +-
 include/linux/kernel.h                    |    2 +-
 include/linux/mm.h                        |   13 +-
 include/linux/mm_types.h                  |   10 +-
 include/linux/mmdebug.h                   |   18 +
 include/linux/sched.h                     |    6 +-
 include/xen/events.h                      |    2 +
 lib/Kconfig.debug                         |    9 +
 lib/cmdline.c                             |    2 +-
 mm/vmalloc.c                              |    7 +
 96 files changed, 3373 insertions(+), 2792 deletions(-)
 create mode 100644 arch/x86/kernel/dumpstack_32.c
 create mode 100644 arch/x86/kernel/dumpstack_64.c
 create mode 100644 arch/x86/kernel/paravirt-spinlocks.c
 rename arch/x86/kernel/{traps_32.c => traps.c} (60%)
 delete mode 100644 arch/x86/kernel/traps_64.c
 rename arch/x86/mm/{discontig_32.c => numa_32.c} (100%)
 create mode 100644 arch/x86/xen/debugfs.c
 create mode 100644 arch/x86/xen/debugfs.h
 create mode 100644 arch/x86/xen/irq.c
 create mode 100644 arch/x86/xen/spinlock.c
 create mode 100644 drivers/xen/cpu_hotplug.c
 create mode 100644 include/linux/mmdebug.h
arch/x86/Kconfig.cpu +10 -19
index f8843c3..52763b7 100644
@@ -38,8 +38,7 @@ config M386
 	  - "Crusoe" for the Transmeta Crusoe series.
 	  - "Efficeon" for the Transmeta Efficeon series.
 	  - "Winchip-C6" for original IDT Winchip.
-	  - "Winchip-2" for IDT Winchip 2.
-	  - "Winchip-2A" for IDT Winchips with 3dNow! capabilities.
+	  - "Winchip-2" for IDT Winchips with 3dNow! capabilities.
 	  - "GeodeGX1" for Geode GX1 (Cyrix MediaGX).
 	  - "Geode GX/LX" For AMD Geode GX and LX processors.
 	  - "CyrixIII/VIA C3" for VIA Cyrix III or VIA C3.
@@ -194,19 +193,11 @@ config MWINCHIPC6
 	  treat this chip as a 586TSC with some extended instructions
 	  and alignment requirements.
 
-config MWINCHIP2
-	bool "Winchip-2"
-	depends on X86_32
-	help
-	  Select this for an IDT Winchip-2.  Linux and GCC
-	  treat this chip as a 586TSC with some extended instructions
-	  and alignment requirements.
-
 config MWINCHIP3D
-	bool "Winchip-2A/Winchip-3"
+	bool "Winchip-2/Winchip-2A/Winchip-3"
 	depends on X86_32
 	help
-	  Select this for an IDT Winchip-2A or 3.  Linux and GCC
+	  Select this for an IDT Winchip-2, 2A or 3.  Linux and GCC
 	  treat this chip as a 586TSC with some extended instructions
 	  and alignment requirements.  Also enable out of order memory
 	  stores for this CPU, which can increase performance of some
@@ -318,7 +309,7 @@ config X86_L1_CACHE_SHIFT
 	int
 	default "7" if MPENTIUM4 || X86_GENERIC || GENERIC_CPU || MPSC
 	default "4" if X86_ELAN || M486 || M386 || MGEODEGX1
-	default "5" if MWINCHIP3D || MWINCHIP2 || MWINCHIPC6 || MCRUSOE || MEFFICEON || MCYRIXIII || MK6 || MPENTIUMIII || MPENTIUMII || M686 || M586MMX || M586TSC || M586 || MVIAC3_2 || MGEODE_LX
+	default "5" if MWINCHIP3D || MWINCHIPC6 || MCRUSOE || MEFFICEON || MCYRIXIII || MK6 || MPENTIUMIII || MPENTIUMII || M686 || M586MMX || M586TSC || M586 || MVIAC3_2 || MGEODE_LX
 	default "6" if MK7 || MK8 || MPENTIUMM || MCORE2 || MVIAC7
 
 config X86_XADD
@@ -360,7 +351,7 @@ config X86_POPAD_OK
 
 config X86_ALIGNMENT_16
 	def_bool y
-	depends on MWINCHIP3D || MWINCHIP2 || MWINCHIPC6 || MCYRIXIII || X86_ELAN || MK6 || M586MMX || M586TSC || M586 || M486 || MVIAC3_2 || MGEODEGX1
+	depends on MWINCHIP3D || MWINCHIPC6 || MCYRIXIII || X86_ELAN || MK6 || M586MMX || M586TSC || M586 || M486 || MVIAC3_2 || MGEODEGX1
 
 config X86_INTEL_USERCOPY
 	def_bool y
@@ -368,7 +359,7 @@ config X86_INTEL_USERCOPY
 
 config X86_USE_PPRO_CHECKSUM
 	def_bool y
-	depends on MWINCHIP3D || MWINCHIP2 || MWINCHIPC6 || MCYRIXIII || MK7 || MK6 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || MK8 || MVIAC3_2 || MEFFICEON || MGEODE_LX || MCORE2
+	depends on MWINCHIP3D || MWINCHIPC6 || MCYRIXIII || MK7 || MK6 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || MK8 || MVIAC3_2 || MEFFICEON || MGEODE_LX || MCORE2
 
 config X86_USE_3DNOW
 	def_bool y
@@ -376,7 +367,7 @@ config X86_USE_3DNOW
 
 config X86_OOSTORE
 	def_bool y
-	depends on (MWINCHIP3D || MWINCHIP2 || MWINCHIPC6) && MTRR
+	depends on (MWINCHIP3D || MWINCHIPC6) && MTRR
 
 #
 # P6_NOPs are a relatively minor optimization that require a family >=
@@ -396,7 +387,7 @@ config X86_P6_NOP
 
 config X86_TSC
 	def_bool y
-	depends on ((MWINCHIP3D || MWINCHIP2 || MCRUSOE || MEFFICEON || MCYRIXIII || MK7 || MK6 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || M586MMX || M586TSC || MK8 || MVIAC3_2 || MVIAC7 || MGEODEGX1 || MGEODE_LX || MCORE2) && !X86_NUMAQ) || X86_64
+	depends on ((MWINCHIP3D || MCRUSOE || MEFFICEON || MCYRIXIII || MK7 || MK6 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || M586MMX || M586TSC || MK8 || MVIAC3_2 || MVIAC7 || MGEODEGX1 || MGEODE_LX || MCORE2) && !X86_NUMAQ) || X86_64
 
 config X86_CMPXCHG64
 	def_bool y
@@ -406,7 +397,7 @@ config X86_CMPXCHG64
 # generates cmov.
 config X86_CMOV
 	def_bool y
-	depends on (MK7 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || MVIAC3_2 || MVIAC7 || X86_64)
+	depends on (MK8 || MK7 || MCORE2 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || MVIAC3_2 || MVIAC7 || MCRUSOE || MEFFICEON || X86_64)
 
 config X86_MINIMUM_CPU_FAMILY
 	int
@@ -417,7 +408,7 @@ config X86_MINIMUM_CPU_FAMILY
 
 config X86_DEBUGCTLMSR
 	def_bool y
-	depends on !(MK6 || MWINCHIPC6 || MWINCHIP2 || MWINCHIP3D || MCYRIXIII || M586MMX || M586TSC || M586 || M486 || M386)
+	depends on !(MK6 || MWINCHIPC6 || MWINCHIP3D || MCYRIXIII || M586MMX || M586TSC || M586 || M486 || M386)
 
 menuconfig PROCESSOR_SELECT
 	default y
arch/x86/Makefile_32.cpu +0 -1
index e372b58..12bdd85 100644
@@ -28,7 +28,6 @@ cflags-$(CONFIG_MK8)		+= $(call cc-option,-march=k8,-march=athlon)
 cflags-$(CONFIG_MCRUSOE)	+= -march=i686 $(align)-functions=0 $(align)-jumps=0 $(align)-loops=0
 cflags-$(CONFIG_MEFFICEON)	+= -march=i686 $(call tune,pentium3) $(align)-functions=0 $(align)-jumps=0 $(align)-loops=0
 cflags-$(CONFIG_MWINCHIPC6)	+= $(call cc-option,-march=winchip-c6,-march=i586)
-cflags-$(CONFIG_MWINCHIP2)	+= $(call cc-option,-march=winchip2,-march=i586)
 cflags-$(CONFIG_MWINCHIP3D)	+= $(call cc-option,-march=winchip2,-march=i586)
 cflags-$(CONFIG_MCYRIXIII)	+= $(call cc-option,-march=c3,-march=i486) $(align)-functions=0 $(align)-jumps=0 $(align)-loops=0
 cflags-$(CONFIG_MVIAC3_2)	+= $(call cc-option,-march=c3-2,-march=i686)
arch/x86/configs/i386_defconfig +0 -1
index ef9a520..9269ef4 100644
@@ -213,7 +213,6 @@ CONFIG_M686=y
 # CONFIG_MCRUSOE is not set
 # CONFIG_MEFFICEON is not set
 # CONFIG_MWINCHIPC6 is not set
-# CONFIG_MWINCHIP2 is not set
 # CONFIG_MWINCHIP3D is not set
 # CONFIG_MGEODEGX1 is not set
 # CONFIG_MGEODE_LX is not set
arch/x86/configs/x86_64_defconfig +0 -1
index e620ea6..638bc85 100644
@@ -210,7 +210,6 @@ CONFIG_X86_PC=y
 # CONFIG_MCRUSOE is not set
 # CONFIG_MEFFICEON is not set
 # CONFIG_MWINCHIPC6 is not set
-# CONFIG_MWINCHIP2 is not set
 # CONFIG_MWINCHIP3D is not set
 # CONFIG_MGEODEGX1 is not set
 # CONFIG_MGEODE_LX is not set
arch/x86/ia32/ia32entry.S +10 -16
index ffc1bb4..eb43147 100644
@@ -39,11 +39,11 @@
 	.endm 
 
 	/* clobbers %eax */	
-	.macro  CLEAR_RREGS
+	.macro  CLEAR_RREGS _r9=rax
 	xorl 	%eax,%eax
 	movq	%rax,R11(%rsp)
 	movq	%rax,R10(%rsp)
-	movq	%rax,R9(%rsp)
+	movq	%\_r9,R9(%rsp)
 	movq	%rax,R8(%rsp)
 	.endm
 
@@ -52,11 +52,10 @@
 	 * We don't reload %eax because syscall_trace_enter() returned
 	 * the value it wants us to use in the table lookup.
 	 */
-	.macro LOAD_ARGS32 offset
-	movl \offset(%rsp),%r11d
-	movl \offset+8(%rsp),%r10d
+	.macro LOAD_ARGS32 offset, _r9=0
+	.if \_r9
 	movl \offset+16(%rsp),%r9d
-	movl \offset+24(%rsp),%r8d
+	.endif
 	movl \offset+40(%rsp),%ecx
 	movl \offset+48(%rsp),%edx
 	movl \offset+56(%rsp),%esi
@@ -145,7 +144,7 @@ ENTRY(ia32_sysenter_target)
 	SAVE_ARGS 0,0,1
  	/* no need to do an access_ok check here because rbp has been
  	   32bit zero extended */ 
-1:	movl	(%rbp),%r9d
+1:	movl	(%rbp),%ebp
  	.section __ex_table,"a"
  	.quad 1b,ia32_badarg
  	.previous	
@@ -157,7 +156,7 @@ ENTRY(ia32_sysenter_target)
 	cmpl	$(IA32_NR_syscalls-1),%eax
 	ja	ia32_badsys
 sysenter_do_call:
-	IA32_ARG_FIXUP 1
+	IA32_ARG_FIXUP
 sysenter_dispatch:
 	call	*ia32_sys_call_table(,%rax,8)
 	movq	%rax,RAX-ARGOFFSET(%rsp)
@@ -234,20 +233,17 @@ sysexit_audit:
 #endif
 
 sysenter_tracesys:
-	xchgl	%r9d,%ebp
 #ifdef CONFIG_AUDITSYSCALL
 	testl	$(_TIF_WORK_SYSCALL_ENTRY & ~_TIF_SYSCALL_AUDIT),TI_flags(%r10)
 	jz	sysenter_auditsys
 #endif
 	SAVE_REST
 	CLEAR_RREGS
-	movq	%r9,R9(%rsp)
 	movq	$-ENOSYS,RAX(%rsp)/* ptrace can change this for a bad syscall */
 	movq	%rsp,%rdi        /* &pt_regs -> arg1 */
 	call	syscall_trace_enter
 	LOAD_ARGS32 ARGOFFSET  /* reload args from stack in case ptrace changed it */
 	RESTORE_REST
-	xchgl	%ebp,%r9d
 	cmpl	$(IA32_NR_syscalls-1),%eax
 	ja	int_ret_from_sys_call /* sysenter_tracesys has set RAX(%rsp) */
 	jmp	sysenter_do_call
@@ -314,9 +310,9 @@ ENTRY(ia32_cstar_target)
 	testl $_TIF_WORK_SYSCALL_ENTRY,TI_flags(%r10)
 	CFI_REMEMBER_STATE
 	jnz   cstar_tracesys
-cstar_do_call:	
 	cmpl $IA32_NR_syscalls-1,%eax
 	ja  ia32_badsys
+cstar_do_call:
 	IA32_ARG_FIXUP 1
 cstar_dispatch:
 	call *ia32_sys_call_table(,%rax,8)
@@ -357,15 +353,13 @@ cstar_tracesys:
 #endif
 	xchgl %r9d,%ebp
 	SAVE_REST
-	CLEAR_RREGS
-	movq %r9,R9(%rsp)
+	CLEAR_RREGS r9
 	movq $-ENOSYS,RAX(%rsp)	/* ptrace can change this for a bad syscall */
 	movq %rsp,%rdi        /* &pt_regs -> arg1 */
 	call syscall_trace_enter
-	LOAD_ARGS32 ARGOFFSET  /* reload args from stack in case ptrace changed it */
+	LOAD_ARGS32 ARGOFFSET, 1  /* reload args from stack in case ptrace changed it */
 	RESTORE_REST
 	xchgl %ebp,%r9d
-	movl RSP-ARGOFFSET(%rsp), %r8d
 	cmpl $(IA32_NR_syscalls-1),%eax
 	ja int_ret_from_sys_call /* cstar_tracesys has set RAX(%rsp) */
 	jmp cstar_do_call
arch/x86/kernel/Makefile +3 -3
index c9be69f..f6160cc 100644
@@ -10,7 +10,7 @@ ifdef CONFIG_FTRACE
 # Do not profile debug and lowlevel utilities
 CFLAGS_REMOVE_tsc.o = -pg
 CFLAGS_REMOVE_rtc.o = -pg
-CFLAGS_REMOVE_paravirt.o = -pg
+CFLAGS_REMOVE_paravirt-spinlocks.o = -pg
 endif
 
 #
@@ -23,7 +23,7 @@ CFLAGS_hpet.o		:= $(nostackp)
 CFLAGS_tsc.o		:= $(nostackp)
 
 obj-y			:= process_$(BITS).o signal_$(BITS).o entry_$(BITS).o
-obj-y			+= traps_$(BITS).o irq_$(BITS).o
+obj-y			+= traps.o irq_$(BITS).o dumpstack_$(BITS).o
 obj-y			+= time_$(BITS).o ioport.o ldt.o
 obj-y			+= setup.o i8259.o irqinit_$(BITS).o setup_percpu.o
 obj-$(CONFIG_X86_VISWS)	+= visws_quirks.o
@@ -90,7 +90,7 @@ obj-$(CONFIG_DEBUG_NX_TEST)	+= test_nx.o
 obj-$(CONFIG_VMI)		+= vmi_32.o vmiclock_32.o
 obj-$(CONFIG_KVM_GUEST)		+= kvm.o
 obj-$(CONFIG_KVM_CLOCK)		+= kvmclock.o
-obj-$(CONFIG_PARAVIRT)		+= paravirt.o paravirt_patch_$(BITS).o
+obj-$(CONFIG_PARAVIRT)		+= paravirt.o paravirt_patch_$(BITS).o paravirt-spinlocks.o
 obj-$(CONFIG_PARAVIRT_CLOCK)	+= pvclock.o
 
 obj-$(CONFIG_PCSPKR_PLATFORM)	+= pcspeaker.o
arch/x86/kernel/acpi/boot.c +7 -23
index 0ff30ae..e8ddc8b 100644
@@ -121,35 +121,19 @@ enum acpi_irq_model_id acpi_irq_model = ACPI_IRQ_MODEL_PIC;
  */
 char *__init __acpi_map_table(unsigned long phys, unsigned long size)
 {
-	unsigned long base, offset, mapped_size;
-	int idx;
+	static char *prev_map;
+	static unsigned long prev_size;
 
 	if (!phys || !size)
 		return NULL;
 
-	if (phys+size <= (max_low_pfn_mapped << PAGE_SHIFT))
-		return __va(phys);
+	if (prev_map)
+		early_iounmap(prev_map, prev_size);
 
-	offset = phys & (PAGE_SIZE - 1);
-	mapped_size = PAGE_SIZE - offset;
-	clear_fixmap(FIX_ACPI_END);
-	set_fixmap(FIX_ACPI_END, phys);
-	base = fix_to_virt(FIX_ACPI_END);
+	prev_size = size;
+	prev_map = early_ioremap(phys, size);
 
-	/*
-	 * Most cases can be covered by the below.
-	 */
-	idx = FIX_ACPI_END;
-	while (mapped_size < size) {
-		if (--idx < FIX_ACPI_BEGIN)
-			return NULL;	/* cannot handle this */
-		phys += PAGE_SIZE;
-		clear_fixmap(idx);
-		set_fixmap(idx, phys);
-		mapped_size += PAGE_SIZE;
-	}
-
-	return ((unsigned char *)base + offset);
+	return prev_map;
 }
 
 #ifdef CONFIG_PCI_MMCONFIG
arch/x86/kernel/alternative.c +1 -1
index fb04e49..a84ac7b 100644
@@ -444,7 +444,7 @@ void __init alternative_instructions(void)
 					    _text, _etext);
 
 		/* Only switch to UP mode if we don't immediately boot others */
-		if (num_possible_cpus() == 1 || setup_max_cpus <= 1)
+		if (num_present_cpus() == 1 || setup_max_cpus <= 1)
 			alternatives_smp_switch(0);
 	}
 #endif
arch/x86/kernel/cpu/common.c +24 -24

71 lines not on this page · raw message

arch/x86/kernel/doublefault_32.c +1 -1
index a47798b..b4f14c6 100644
@@ -66,6 +66,6 @@ struct tss_struct doublefault_tss __cacheline_aligned = {
 		.ds		= __USER_DS,
 		.fs		= __KERNEL_PERCPU,
 
-		.__cr3		= __pa(swapper_pg_dir)
+		.__cr3		= __pa_nodebug(swapper_pg_dir),
 	}
 };
arch/x86/kernel/dumpstack_32.c new file +422 -0

422 lines not on this page · raw message

arch/x86/kernel/dumpstack_64.c new file +565 -0

565 lines not on this page · raw message

arch/x86/kernel/entry_32.S +8 -14
index 109792b..b21fbfa 100644
@@ -730,6 +730,7 @@ error_code:
 	movl $(__USER_DS), %ecx
 	movl %ecx, %ds
 	movl %ecx, %es
+	TRACE_IRQS_OFF
 	movl %esp,%eax			# pt_regs pointer
 	call *%edi
 	jmp ret_from_exception
@@ -760,20 +761,9 @@ ENTRY(device_not_available)
 	RING0_INT_FRAME
 	pushl $-1			# mark this as an int
 	CFI_ADJUST_CFA_OFFSET 4
-	SAVE_ALL
-	GET_CR0_INTO_EAX
-	testl $0x4, %eax		# EM (math emulation bit)
-	jne device_not_available_emulate
-	preempt_stop(CLBR_ANY)
-	call math_state_restore
-	jmp ret_from_exception
-device_not_available_emulate:
-	pushl $0			# temporary storage for ORIG_EIP
+	pushl $do_device_not_available
 	CFI_ADJUST_CFA_OFFSET 4
-	call math_emulate
-	addl $4, %esp
-	CFI_ADJUST_CFA_OFFSET -4
-	jmp ret_from_exception
+	jmp error_code
 	CFI_ENDPROC
 END(device_not_available)
 
@@ -814,6 +804,7 @@ debug_stack_correct:
 	pushl $-1			# mark this as an int
 	CFI_ADJUST_CFA_OFFSET 4
 	SAVE_ALL
+	TRACE_IRQS_OFF
 	xorl %edx,%edx			# error code 0
 	movl %esp,%eax			# pt_regs pointer
 	call do_debug
@@ -858,6 +849,7 @@ nmi_stack_correct:
 	pushl %eax
 	CFI_ADJUST_CFA_OFFSET 4
 	SAVE_ALL
+	TRACE_IRQS_OFF
 	xorl %edx,%edx		# zero error code
 	movl %esp,%eax		# pt_regs pointer
 	call do_nmi
@@ -898,6 +890,7 @@ nmi_espfix_stack:
 	pushl %eax
 	CFI_ADJUST_CFA_OFFSET 4
 	SAVE_ALL
+	TRACE_IRQS_OFF
 	FIXUP_ESPFIX_STACK		# %eax == %esp
 	xorl %edx,%edx			# zero error code
 	call do_nmi
@@ -928,6 +921,7 @@ KPROBE_ENTRY(int3)
 	pushl $-1			# mark this as an int
 	CFI_ADJUST_CFA_OFFSET 4
 	SAVE_ALL
+	TRACE_IRQS_OFF
 	xorl %edx,%edx		# zero error code
 	movl %esp,%eax		# pt_regs pointer
 	call do_int3
@@ -1030,7 +1024,7 @@ ENTRY(machine_check)
 	RING0_INT_FRAME
 	pushl $0
 	CFI_ADJUST_CFA_OFFSET 4
-	pushl machine_check_vector
+	pushl $do_machine_check
 	CFI_ADJUST_CFA_OFFSET 4
 	jmp error_code
 	CFI_ENDPROC
arch/x86/kernel/entry_64.S +6 -2
index cf3a0b2..104fa65 100644
@@ -932,6 +932,9 @@ END(spurious_interrupt)
 	.if \ist
 	movq	%gs:pda_data_offset, %rbp
 	.endif
+	.if \irqtrace
+	TRACE_IRQS_OFF
+	.endif
 	movq %rsp,%rdi
 	movq ORIG_RAX(%rsp),%rsi
 	movq $-1,ORIG_RAX(%rsp)
@@ -1058,7 +1061,8 @@ KPROBE_ENTRY(error_entry)
 	je  error_kernelspace
 error_swapgs:	
 	SWAPGS
-error_sti:	
+error_sti:
+	TRACE_IRQS_OFF
 	movq %rdi,RDI(%rsp) 	
 	CFI_REL_OFFSET	rdi,RDI
 	movq %rsp,%rdi
@@ -1232,7 +1236,7 @@ ENTRY(simd_coprocessor_error)
 END(simd_coprocessor_error)
 
 ENTRY(device_not_available)
-	zeroentry math_state_restore
+	zeroentry do_device_not_available
 END(device_not_available)
 
 	/* runs on exception stack */
arch/x86/kernel/es7000_32.c +23 -5
index 849e5cd..f454c78 100644
@@ -109,6 +109,7 @@ struct oem_table {
 };
 
 extern int find_unisys_acpi_oem_table(unsigned long *oem_addr);
+extern void unmap_unisys_acpi_oem_table(unsigned long oem_addr);
 #endif
 
 struct mip_reg {
@@ -243,21 +244,38 @@ parse_unisys_oem (char *oemptr)
 }
 
 #ifdef CONFIG_ACPI
-int __init
-find_unisys_acpi_oem_table(unsigned long *oem_addr)
+static unsigned long oem_addrX;
+static unsigned long oem_size;
+int __init find_unisys_acpi_oem_table(unsigned long *oem_addr)
 {
 	struct acpi_table_header *header = NULL;
 	int i = 0;
-	while (ACPI_SUCCESS(acpi_get_table("OEM1", i++, &header))) {
+	acpi_size tbl_size;
+
+	while (ACPI_SUCCESS(acpi_get_table_with_size("OEM1", i++, &header, &tbl_size))) {
 		if (!memcmp((char *) &header->oem_id, "UNISYS", 6)) {
 			struct oem_table *t = (struct oem_table *)header;
-			*oem_addr = (unsigned long)__acpi_map_table(t->OEMTableAddr,
-								    t->OEMTableSize);
+
+			oem_addrX = t->OEMTableAddr;
+			oem_size = t->OEMTableSize;
+			early_acpi_os_unmap_memory(header, tbl_size);
+
+			*oem_addr = (unsigned long)__acpi_map_table(oem_addrX,
+								    oem_size);
 			return 0;
 		}
+		early_acpi_os_unmap_memory(header, tbl_size);
 	}
 	return -1;
 }
+
+void __init unmap_unisys_acpi_oem_table(unsigned long oem_addr)
+{
+	if (!oem_addr)
+		return;
+
+	__acpi_unmap_table((char *)oem_addr, oem_size);
+}
 #endif
 
 static void
arch/x86/kernel/genx2apic_uv_x.c +4 -6
index ae2ffc8..7b0ff40 100644
@@ -114,7 +114,7 @@ static void uv_send_IPI_one(int cpu, int vector)
 	unsigned long val, apicid, lapicid;
 	int pnode;
 
-	apicid = per_cpu(x86_cpu_to_apicid, cpu); /* ZZZ - cache node-local ? */
+	apicid = per_cpu(x86_cpu_to_apicid, cpu);
 	lapicid = apicid & 0x3f;		/* ZZZ macro needed */
 	pnode = uv_apicid_to_pnode(apicid);
 	val =
@@ -202,12 +202,10 @@ static unsigned int phys_pkg_id(int index_msb)
 	return uv_read_apic_id() >> index_msb;
 }
 
-#ifdef ZZZ		/* Needs x2apic patch */
 static void uv_send_IPI_self(int vector)
 {
 	apic_write(APIC_SELF_IPI, vector);
 }
-#endif
 
 struct genapic apic_x2apic_uv_x = {
 	.name = "UV large system",
@@ -215,15 +213,15 @@ struct genapic apic_x2apic_uv_x = {
 	.int_delivery_mode = dest_Fixed,
 	.int_dest_mode = (APIC_DEST_PHYSICAL != 0),
 	.target_cpus = uv_target_cpus,
-	.vector_allocation_domain = uv_vector_allocation_domain,/* Fixme ZZZ */
+	.vector_allocation_domain = uv_vector_allocation_domain,
 	.apic_id_registered = uv_apic_id_registered,
 	.init_apic_ldr = uv_init_apic_ldr,
 	.send_IPI_all = uv_send_IPI_all,
 	.send_IPI_allbutself = uv_send_IPI_allbutself,
 	.send_IPI_mask = uv_send_IPI_mask,
-	/* ZZZ.send_IPI_self = uv_send_IPI_self, */
+	.send_IPI_self = uv_send_IPI_self,
 	.cpu_mask_to_apicid = uv_cpu_mask_to_apicid,
-	.phys_pkg_id = phys_pkg_id,	/* Fixme ZZZ */
+	.phys_pkg_id = phys_pkg_id,
 	.get_apic_id = get_apic_id,
 	.set_apic_id = set_apic_id,
 	.apic_id_mask = (0xFFFFFFFFu),
arch/x86/kernel/head.c +1 -0
index 3e66bd3..1dcb0f1 100644
@@ -35,6 +35,7 @@ void __init reserve_ebda_region(void)
 
 	/* start of EBDA area */
 	ebda_addr = get_bios_ebda();
+	printk(KERN_INFO "BIOS EBDA/lowmem at: %08x/%08x\n", ebda_addr, lowmem);
 
 	/* Fixup: bios puts an EBDA in the top 64K segment */
 	/* of conventional memory, but does not adjust lowmem. */
arch/x86/kernel/ldt.c +8 -1
index 0ed5f93..eee32b4 100644
@@ -52,6 +52,8 @@ static int alloc_ldt(mm_context_t *pc, int mincount, int reload)
 	memset(newldt + oldsize * LDT_ENTRY_SIZE, 0,
 	       (mincount - oldsize) * LDT_ENTRY_SIZE);
 
+	paravirt_alloc_ldt(newldt, mincount);
+
 #ifdef CONFIG_X86_64
 	/* CHECKME: Do we really need this ? */
 	wmb();
@@ -74,6 +76,7 @@ static int alloc_ldt(mm_context_t *pc, int mincount, int reload)
 #endif
 	}
 	if (oldsize) {
+		paravirt_free_ldt(oldldt, oldsize);
 		if (oldsize * LDT_ENTRY_SIZE > PAGE_SIZE)
 			vfree(oldldt);
 		else
@@ -85,10 +88,13 @@ static int alloc_ldt(mm_context_t *pc, int mincount, int reload)
 static inline int copy_ldt(mm_context_t *new, mm_context_t *old)
 {
 	int err = alloc_ldt(new, old->size, 0);
+	int i;
 
 	if (err < 0)
 		return err;
-	memcpy(new->ldt, old->ldt, old->size * LDT_ENTRY_SIZE);
+
+	for(i = 0; i < old->size; i++)
+		write_ldt_entry(new->ldt, i, old->ldt + i * LDT_ENTRY_SIZE);
 	return 0;
 }
 
@@ -125,6 +131,7 @@ void destroy_context(struct mm_struct *mm)
 		if (mm == current->active_mm)
 			clear_LDT();
 #endif
+		paravirt_free_ldt(mm->context.ldt, mm->context.size);
 		if (mm->context.size * LDT_ENTRY_SIZE > PAGE_SIZE)
 			vfree(mm->context.ldt);
 		else
arch/x86/kernel/paravirt-spinlocks.c new file +37 -0
new file mode 100644
index 0000000..0e9f198
@@ -0,0 +1,37 @@
+/*
+ * Split spinlock implementation out into its own file, so it can be
+ * compiled in a FTRACE-compatible way.
+ */
+#include <linux/spinlock.h>
+#include <linux/module.h>
+
+#include <asm/paravirt.h>
+
+static void default_spin_lock_flags(struct raw_spinlock *lock, unsigned long flags)
+{
+	__raw_spin_lock(lock);
+}
+
+struct pv_lock_ops pv_lock_ops = {
+#ifdef CONFIG_SMP
+	.spin_is_locked = __ticket_spin_is_locked,
+	.spin_is_contended = __ticket_spin_is_contended,
+
+	.spin_lock = __ticket_spin_lock,
+	.spin_lock_flags = default_spin_lock_flags,
+	.spin_trylock = __ticket_spin_trylock,
+	.spin_unlock = __ticket_spin_unlock,
+#endif
+};
+EXPORT_SYMBOL(pv_lock_ops);
+
+void __init paravirt_use_bytelocks(void)
+{
+#ifdef CONFIG_SMP
+	pv_lock_ops.spin_is_locked = __byte_spin_is_locked;
+	pv_lock_ops.spin_is_contended = __byte_spin_is_contended;
+	pv_lock_ops.spin_lock = __byte_spin_lock;
+	pv_lock_ops.spin_trylock = __byte_spin_trylock;
+	pv_lock_ops.spin_unlock = __byte_spin_unlock;
+#endif
+}
arch/x86/kernel/paravirt.c +4 -23
index 6b0bb73..e4c8fb6 100644
@@ -268,17 +268,6 @@ enum paravirt_lazy_mode paravirt_get_lazy_mode(void)
 	return __get_cpu_var(paravirt_lazy_mode);
 }
 
-void __init paravirt_use_bytelocks(void)
-{
-#ifdef CONFIG_SMP
-	pv_lock_ops.spin_is_locked = __byte_spin_is_locked;
-	pv_lock_ops.spin_is_contended = __byte_spin_is_contended;
-	pv_lock_ops.spin_lock = __byte_spin_lock;
-	pv_lock_ops.spin_trylock = __byte_spin_trylock;
-	pv_lock_ops.spin_unlock = __byte_spin_unlock;
-#endif
-}
-
 struct pv_info pv_info = {
 	.name = "bare hardware",
 	.paravirt_enabled = 0,
@@ -349,6 +338,10 @@ struct pv_cpu_ops pv_cpu_ops = {
 	.write_ldt_entry = native_write_ldt_entry,
 	.write_gdt_entry = native_write_gdt_entry,
 	.write_idt_entry = native_write_idt_entry,
+
+	.alloc_ldt = paravirt_nop,
+	.free_ldt = paravirt_nop,
+
 	.load_sp0 = native_load_sp0,
 
 #if defined(CONFIG_X86_32) || defined(CONFIG_IA32_EMULATION)
@@ -460,18 +453,6 @@ struct pv_mmu_ops pv_mmu_ops = {
 	.set_fixmap = native_set_fixmap,
 };
 
-struct pv_lock_ops pv_lock_ops = {
-#ifdef CONFIG_SMP
-	.spin_is_locked = __ticket_spin_is_locked,
-	.spin_is_contended = __ticket_spin_is_contended,
-
-	.spin_lock = __ticket_spin_lock,
-	.spin_trylock = __ticket_spin_trylock,
-	.spin_unlock = __ticket_spin_unlock,
-#endif
-};
-EXPORT_SYMBOL(pv_lock_ops);
-
 EXPORT_SYMBOL_GPL(pv_time_ops);
 EXPORT_SYMBOL    (pv_cpu_ops);
 EXPORT_SYMBOL    (pv_mmu_ops);
arch/x86/kernel/process_32.c +4 -39

65 lines not on this page · raw message

arch/x86/kernel/process_64.c +13 -24
index 2a8ccb9..410cc5f 100644
@@ -86,30 +86,12 @@ void exit_idle(void)
 	__exit_idle();
 }
 
-#ifdef CONFIG_HOTPLUG_CPU
-DECLARE_PER_CPU(int, cpu_state);
-
-#include <linux/nmi.h>
-/* We halt the CPU with physical CPU hotplug */
-static inline void play_dead(void)
-{
-	idle_task_exit();
-	c1e_remove_cpu(raw_smp_processor_id());
-
-	mb();
-	/* Ack it */
-	__get_cpu_var(cpu_state) = CPU_DEAD;
-
-	local_irq_disable();
-	/* mask all interrupts, flush any and all caches, and halt */
-	wbinvd_halt();
-}
-#else
+#ifndef CONFIG_SMP
 static inline void play_dead(void)
 {
 	BUG();
 }
-#endif /* CONFIG_HOTPLUG_CPU */
+#endif
 
 /*
  * The idle thread. There's no useful work to be
@@ -154,7 +136,7 @@ void cpu_idle(void)
 }
 
 /* Prints also some state that isn't saved in the pt_regs */
-void __show_regs(struct pt_regs *regs)
+void __show_regs(struct pt_regs *regs, int all)
 {
 	unsigned long cr0 = 0L, cr2 = 0L, cr3 = 0L, cr4 = 0L, fs, gs, shadowgs;
 	unsigned long d0, d1, d2, d3, d6, d7;
@@ -193,13 +175,20 @@ void __show_regs(struct pt_regs *regs)
 	rdmsrl(MSR_GS_BASE, gs);
 	rdmsrl(MSR_KERNEL_GS_BASE, shadowgs);
 
+	if (!all)
+		return;
+
+	printk(KERN_INFO "FS:  %016lx(%04x) GS:%016lx(%04x) knlGS:%016lx\n",
+	       fs, fsindex, gs, gsindex, shadowgs);
+
+	if (!all)
+		return;
+
 	cr0 = read_cr0();
 	cr2 = read_cr2();
 	cr3 = read_cr3();
 	cr4 = read_cr4();
 
-	printk(KERN_INFO "FS:  %016lx(%04x) GS:%016lx(%04x) knlGS:%016lx\n",
-	       fs, fsindex, gs, gsindex, shadowgs);
 	printk(KERN_INFO "CS:  %04x DS: %04x ES: %04x CR0: %016lx\n", cs, ds,
 			es, cr0);
 	printk(KERN_INFO "CR2: %016lx CR3: %016lx CR4: %016lx\n", cr2, cr3,
@@ -218,7 +207,7 @@ void __show_regs(struct pt_regs *regs)
 void show_regs(struct pt_regs *regs)
 {
 	printk(KERN_INFO "CPU %d:", smp_processor_id());
-	__show_regs(regs);
+	__show_regs(regs, 1);
 	show_trace(NULL, regs, (void *)(regs + 1), regs->bp);
 }
 
arch/x86/kernel/setup.c +4 -4
index 46c98ef..09ee73a 100644
@@ -302,7 +302,7 @@ static void __init relocate_initrd(void)
 		if (clen > MAX_MAP_CHUNK-slop)
 			clen = MAX_MAP_CHUNK-slop;
 		mapaddr = ramdisk_image & PAGE_MASK;
-		p = early_ioremap(mapaddr, clen+slop);
+		p = early_memremap(mapaddr, clen+slop);
 		memcpy(q, p+slop, clen);
 		early_iounmap(p, clen+slop);
 		q += clen;
@@ -379,7 +379,7 @@ static void __init parse_setup_data(void)
 		return;
 	pa_data = boot_params.hdr.setup_data;
 	while (pa_data) {
-		data = early_ioremap(pa_data, PAGE_SIZE);
+		data = early_memremap(pa_data, PAGE_SIZE);
 		switch (data->type) {
 		case SETUP_E820_EXT:
 			parse_e820_ext(data, pa_data);
@@ -402,7 +402,7 @@ static void __init e820_reserve_setup_data(void)
 		return;
 	pa_data = boot_params.hdr.setup_data;
 	while (pa_data) {
-		data = early_ioremap(pa_data, sizeof(*data));
+		data = early_memremap(pa_data, sizeof(*data));
 		e820_update_range(pa_data, sizeof(*data)+data->len,
 			 E820_RAM, E820_RESERVED_KERN);
 		found = 1;
@@ -428,7 +428,7 @@ static void __init reserve_early_setup_data(void)
 		return;
 	pa_data = boot_params.hdr.setup_data;
 	while (pa_data) {
-		data = early_ioremap(pa_data, sizeof(*data));
+		data = early_memremap(pa_data, sizeof(*data));
 		sprintf(buf, "setup data %x", data->type);
 		reserve_early(pa_data, pa_data+sizeof(*data)+data->len, buf);
 		pa_data = data->next;
arch/x86/kernel/smp.c +5 -1
index 361b7a4..18f9b19 100644
@@ -214,12 +214,16 @@ void smp_call_function_single_interrupt(struct pt_regs *regs)
 struct smp_ops smp_ops = {
 	.smp_prepare_boot_cpu = native_smp_prepare_boot_cpu,
 	.smp_prepare_cpus = native_smp_prepare_cpus,
-	.cpu_up = native_cpu_up,
 	.smp_cpus_done = native_smp_cpus_done,
 
 	.smp_send_stop = native_smp_send_stop,
 	.smp_send_reschedule = native_smp_send_reschedule,
 
+	.cpu_up = native_cpu_up,
+	.cpu_die = native_cpu_die,
+	.cpu_disable = native_cpu_disable,
+	.play_dead = native_play_dead,
+
 	.send_call_func_ipi = native_send_call_func_ipi,
 	.send_call_func_single_ipi = native_send_call_func_single_ipi,
 };
arch/x86/kernel/smpboot.c +95 -69

241 lines not on this page · raw message

arch/x86/kernel/tlb_32.c +8 -0
index fec1ece..e00534b 100644
@@ -241,3 +241,11 @@ void flush_tlb_all(void)
 	on_each_cpu(do_flush_tlb_all, NULL, 1);
 }
 
+void reset_lazy_tlbstate(void)
+{
+	int cpu = raw_smp_processor_id();
+
+	per_cpu(cpu_tlbstate, cpu).state = 0;
+	per_cpu(cpu_tlbstate, cpu).active_mm = &init_mm;
+}
+
arch/x86/kernel/traps.c renamed from arch/x86/kernel/traps_32.c +337 -523

924 lines not on this page · raw message

arch/x86/kernel/traps_64.c deleted +0 -1214

1,214 lines not on this page · raw message

arch/x86/kernel/vmlinux_64.lds.S +1 -1
index 201e81a..46e0544 100644

Lines of this file are not shown. View the raw message.

arch/x86/mach-generic/es7000.c +15 -5
index 520cca0..6513d41 100644

Lines of this file are not shown. View the raw message.

arch/x86/mm/Makefile +1 -5
index dfb932d..59f89b4 100644

Lines of this file are not shown. View the raw message.

arch/x86/mm/fault.c +6 -13
index 8f92cac..3f2b896 100644

Lines of this file are not shown. View the raw message.

arch/x86/mm/gup.c +5 -5
index 007bb06..4ba373c 100644

Lines of this file are not shown. View the raw message.

arch/x86/mm/init_32.c +1 -1
index c3789bb..c67d78d 100644

Lines of this file are not shown. View the raw message.

arch/x86/mm/init_64.c +3 -6
index 365eaea..747f6c9 100644

Lines of this file are not shown. View the raw message.

arch/x86/mm/ioremap.c +134 -34

168 lines not on this page · raw message

arch/x86/mm/numa_32.c renamed from arch/x86/mm/discontig_32.c +0 -0
similarity index 100%
rename from arch/x86/mm/discontig_32.c
rename to arch/x86/mm/numa_32.c
arch/x86/xen/Kconfig +9 -1
index 3815e42..d3e6846 100644

Lines of this file are not shown. View the raw message.

arch/x86/xen/Makefile +10 -2
index 59c1e53..3139479 100644

Lines of this file are not shown. View the raw message.

arch/x86/xen/debugfs.c new file +123 -0

123 lines not on this page · raw message

arch/x86/xen/debugfs.h new file +10 -0
new file mode 100644
index 0000000..e281320

Lines of this file are not shown. View the raw message.

arch/x86/xen/enlighten.c +72 -117

189 lines not on this page · raw message

arch/x86/xen/irq.c new file +143 -0

143 lines not on this page · raw message

arch/x86/xen/mmu.c +230 -40

270 lines not on this page · raw message

arch/x86/xen/multicalls.c +113 -2

115 lines not on this page · raw message

arch/x86/xen/smp.c +66 -179

245 lines not on this page · raw message

arch/x86/xen/spinlock.c new file +428 -0

428 lines not on this page · raw message

arch/x86/xen/time.c +9 -3
index 685b774..004ba86 100644

Lines of this file are not shown. View the raw message.

arch/x86/xen/xen-asm_32.S +1 -1
index 2497a30..42786f5 100644

Lines of this file are not shown. View the raw message.

arch/x86/xen/xen-asm_64.S +1 -1
index 7f58304..3b9bda4 100644

Lines of this file are not shown. View the raw message.

arch/x86/xen/xen-ops.h +8 -0
index dd3c231..d7422dc 100644

Lines of this file are not shown. View the raw message.

drivers/block/xen-blkfront.c +1 -1
index 3ca643c..d5e7532 100644

Lines of this file are not shown. View the raw message.

drivers/char/hvc_xen.c +3 -3
index 6b70aa6..538ceea 100644

Lines of this file are not shown. View the raw message.

drivers/input/xen-kbdfront.c +2 -2
index 9ce3b3b..3ab6362 100644

Lines of this file are not shown. View the raw message.

drivers/net/xen-netfront.c +3 -3
index c749bdb..3c3dd40 100644

Lines of this file are not shown. View the raw message.

drivers/video/xen-fbfront.c +2 -2
index 47ed39b..a463b3d 100644

Lines of this file are not shown. View the raw message.

drivers/xen/Makefile +1 -0
index 363286c..d2a8fdf 100644

Lines of this file are not shown. View the raw message.

drivers/xen/balloon.c +15 -159

174 lines not on this page · raw message

drivers/xen/cpu_hotplug.c new file +90 -0

90 lines not on this page · raw message

drivers/xen/events.c +29 -11
index 0e0c285..c3290bc 100644

Lines of this file are not shown. View the raw message.

drivers/xen/grant-table.c +1 -1
index e9e1116..06592b9 100644

Lines of this file are not shown. View the raw message.

drivers/xen/xenbus/xenbus_probe.c +4 -4
index 57ceb53..7f24a98 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/acpi.h +0 -3
index 392e173..672e1e1 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/desc.h +19 -10
index b73fea5..f06adac 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/es7000/mpparse.h +1 -0
index 7b5c889..ed5a3ca 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/fixmap_32.h +2 -6
index 784e3e7..c6fde10 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/fixmap_64.h +6 -10
index dafb24b..a6ff01d 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/io.h +1 -14
index 72b7719..a233f83 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/io_64.h +0 -3
index 64429e9..ee6e086 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/irqflags.h +0 -21
index 424acb4..2bdab21 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/kdebug.h +1 -2
index 5ec3ad3..fbbab66 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/kprobes.h +0 -9
index bd84078..8a0748d 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/mach-default/mach_traps.h +0 -6
index de9ac3f..ff8778f 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/mmzone_64.h +1 -2
index 626b03a..6480f33 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/module.h +0 -2
index 48dc3e0..864f200 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/nmi.h +0 -4
index d5e715f..a53f829 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/page.h +7 -1
index c915747..d4f1d57 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/page_32.h +12 -1
index 72f7305..e8d80d1 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/paravirt.h +20 -0
index d7d358a..8d6ae2f 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/pgtable.h +13 -3
index ed93245..182f9d4 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/ptrace.h +0 -4
index ac578f1..a202552 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/smp.h +28 -12
index 29324c1..a6afc29 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/spinlock.h +7 -2
index 93adae3..8badab0 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/system.h +4 -1
index 34505dd..b20c894 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/tlbflush.h +10 -0
index ef68b76..3cdd08b 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/traps.h +36 -37

73 lines not on this page · raw message

include/asm-x86/xen/hypervisor.h +12 -2
index 0ef3a88..445a247 100644

Lines of this file are not shown. View the raw message.

include/linux/kernel.h +1 -1
index 2651f80..75d81f1 100644

Lines of this file are not shown. View the raw message.

include/linux/mm.h +4 -9
index 72a15dc..c61ba10 100644

Lines of this file are not shown. View the raw message.

include/linux/mm_types.h +6 -4
index bf33413..9d49fa3 100644

Lines of this file are not shown. View the raw message.

include/linux/mmdebug.h new file +18 -0
new file mode 100644
index 0000000..8a55098

Lines of this file are not shown. View the raw message.

include/linux/sched.h +3 -3
index 3d9120c..272c353 100644

Lines of this file are not shown. View the raw message.

include/xen/events.h +2 -0
index 4680ff3..0d5f1ad 100644

Lines of this file are not shown. View the raw message.

lib/Kconfig.debug +9 -0
index 0b50481..082235b 100644

Lines of this file are not shown. View the raw message.

lib/cmdline.c +1 -1
index 5ba8a94..f5f3ad8 100644

Lines of this file are not shown. View the raw message.

mm/vmalloc.c +7 -0
index 85b9a0d..bba06c4 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.

#1 lore raw
Quoted 11 lines · Ingo Molnar

out-of-topic modifications in x86-v28-for-linus-phase6:
-------------------------------------------------------
include/linux/kernel.h # d974ae3: generic, memparse(): constify
arg include/linux/mm.h # f7d0b92: mm: define
USE_SPLIT_PTLOCKS rath # 59ea746: MM: virtual address debug
include/linux/mm_types.h # f7d0b92: mm: define USE_SPLIT_PTLOCKS
rath include/linux/mmdebug.h # 7aa413d: x86, MM: virtual address
debug, c # 59ea746: MM: virtual address debug lib/cmdline.c
# d974ae3: generic, memparse(): constify arg mm/vmalloc.c
# 7aa413d: x86, MM: virtual address debug, c # 59ea746: MM:
virtual address debug

How come these kinds of things go into the x86 tree? Can't they be sent to other maintainer first (probably Andrew, in the case of random -mm stuff).

OK, it's pretty trivial stuff, but just on principle I can't see an advantage, and only disadvantages to doing this (and also I see the vmalloc change clashed with the vmalloc rewrite in -mm).

#2 lore raw
Quoted 17 lines · Nick Piggin
Quoted 12 lines · Ingo Molnar

out-of-topic modifications in x86-v28-for-linus-phase6:
-------------------------------------------------------
include/linux/kernel.h # d974ae3: generic, memparse(): constify
arg include/linux/mm.h # f7d0b92: mm: define
USE_SPLIT_PTLOCKS rath # 59ea746: MM: virtual address debug
include/linux/mm_types.h # f7d0b92: mm: define USE_SPLIT_PTLOCKS
rath include/linux/mmdebug.h # 7aa413d: x86, MM: virtual address
debug, c # 59ea746: MM: virtual address debug lib/cmdline.c
# d974ae3: generic, memparse(): constify arg mm/vmalloc.c
# 7aa413d: x86, MM: virtual address debug, c # 59ea746: MM:
virtual address debug

Quoted 7 lines

How come these kinds of things go into the x86 tree? Can't they be sent to other maintainer first (probably Andrew, in the case of random -mm stuff).

OK, it's pretty trivial stuff, but just on principle I can't see an advantage, and only disadvantages to doing this (and also I see the vmalloc change clashed with the vmalloc rewrite in -mm).

The memparse and split ptlocks changes went past Andrew. They ended up in Ingo's tree because 1) they're pretty trivial, and 2) there's x86-specific stuff which depends on them. Don't know about the vmalloc change.

J

#3 lore raw
Quoted 23 lines · Jeremy Fitzhardinge
Quoted 22 lines · Nick Piggin
Quoted 4 lines · Ingo Molnar

out-of-topic modifications in x86-v28-for-linus-phase6:
-------------------------------------------------------
include/linux/kernel.h # d974ae3: generic, memparse(): constify
arg include/linux/mm.h # f7d0b92: mm: define

Quoted 9 lines

USE_SPLIT_PTLOCKS rath # 59ea746: MM: virtual address debug
include/linux/mm_types.h # f7d0b92: mm: define USE_SPLIT_PTLOCKS
rath include/linux/mmdebug.h # 7aa413d: x86, MM: virtual address
debug, c # 59ea746: MM: virtual address debug lib/cmdline.c
# d974ae3: generic, memparse(): constify arg mm/vmalloc.c
# 7aa413d: x86, MM: virtual address debug, c #
59ea746: MM:
virtual address debug

How come these kinds of things go into the x86 tree? Can't they be sent to other maintainer first (probably Andrew, in the case of random -mm stuff).

Quoted 8 lines
Quoted 3 lines

OK, it's pretty trivial stuff, but just on principle I can't see an advantage, and only disadvantages to doing this (and also I see the vmalloc change clashed with the vmalloc rewrite in -mm).

The memparse and split ptlocks changes went past Andrew. They ended up in Ingo's tree because 1) they're pretty trivial, and 2) there's x86-specific stuff which depends on them. Don't know about the vmalloc change.

yeah, correct, as Jeremy already noted they had dependencies with PAT and other ioremap relevant changes in the x86 tree so it had to be layered.

Nevertheless they are in their separate tree as well: tip/x86/mm-debug. Here's the relevant commits:

5f5ddc2: Merge branch 'x86/core' into x86/mm-debug
daa9176: Merge branch 'linus' into x86/mm-debug 7aa413d: x86, MM: virtual address debug, cleanups
a1bf963: x86, MM: virtual address debug, v2 59ea746: MM: virtual address debug

if you look at the diffstat:

 arch/x86/kernel/doublefault_32.c |    2 +-
 arch/x86/mm/ioremap.c            |   33 ++++++++++++++++++++++++++-------
 include/asm-x86/mmzone_64.h      |    3 +--
 include/asm-x86/page_32.h        |    5 +++++
 include/linux/mm.h               |    7 +------
 include/linux/mmdebug.h          |   18 ++++++++++++++++++
 lib/Kconfig.debug                |    9 +++++++++
 mm/vmalloc.c                     |    7 +++++++
 8 files changed, 68 insertions(+), 16 deletions(-)

it's 90% x86 relevant and we obviously wanted it well-tested, and as can be seen from the log our caution to keep this separated was prudent: the v1 version of this patch caused crashes.

Since this was rather trivial and was pending in the last cycle already so i didnt send a separate pull request - i already erred on the side of sending too many pull requests than too few.

If we sent a separate pull request for every tree we maintain we'd have to send 96 pull requests to Linus in this cycle (!), for all these topic trees:

core/debug core/futexes core/lib core/locking core/misc core/percpu core/printk core/rcu core/resources core/signal core/softirq core/softlockup core/xen cpus4096 fastboot genirq irq/sparseirq kmemcheck kmemcheck-bitfields kmemcheck2 oprofile out-of-tree safe-poison-pointers sched/core sched/cpu-hotplug sched/cpusets sched/devel sched/rt stackprotector timers/clockevents timers/clocksource timers/hpet timers/hpet-percpu timers/hrtimers timers/ntp timers/posixtimers tracing/core tracing/fastboot tracing/ftrace tracing/markers tracing/mmiotrace tracing/nmisafe tracing/pipe tracing/ring-buffer tracing/stack-tracer tracing/urgent usb-for-greg x86/alternatives x86/apic x86/build x86/cleanups x86/commandline x86/core x86/cpu x86/crashdump x86/debug x86/defconfig x86/devel x86/doc x86/dumpstack x86/early-printk x86/exports x86/gart x86/header-guards x86/idle x86/iommu x86/memory-corruption-check x86/microcode x86/mm x86/mm-debug x86/mtrr x86/nmi-watchdog x86/oprofile x86/paravirt x86/pat x86/pci-ioapic-boot-irq-quirks x86/pebs x86/prototypes x86/ptrace x86/quirks x86/reboot x86/setup x86/signal x86/sparse-fixes x86/spinlocks x86/time x86/tracehook x86/traps x86/tsc x86/unify-cpu-detect x86/urgent x86/uv x86/vmalloc x86/x2apic x86/xen x86/xsave

And Stephen and Andrew would have to resolve conflicts and dependencies between 96 separate trees.

So we try to settle for some reasonable middle ground.

Ingo

#5 lore raw
In reply to Ingo Molnar
Quoted 6 lines · Ingo Molnar

Linus,

Please pull the latest x86-v28-for-linus-phase6 git tree from:

tip/x86/core: various x86 updates independent of the sparse irqs support tree.

updated pull request below. Beyond the x86/pat updates, it grew these fresh commits:

43603c8: x86, debug: print more information about unknown CPUs 6bee185: Merge branch 'x86/quirks' into x86/core
8d89adf: x86: SB450: deprioritize DMI quirks
33fb0e4: x86: SB450: skip IRQ0 override if it is not routed to INT2 of IOAPIC

pull request is relative to x86-v28-for-linus-phase5-B.

Ingo

----------------->
Linus,

Please pull the latest x86-v28-for-linus-phase6-B git tree from:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip.git x86-v28-for-linus-phase6-B

out-of-topic modifications in x86-v28-for-linus-phase6-B:
---------------------------------------------------------
include/linux/kernel.h # d974ae3: generic, memparse(): constify arg
include/linux/mm.h # f7d0b92: mm: define USE_SPLIT_PTLOCKS rath
# 59ea746: MM: virtual address debug
include/linux/mm_types.h # f7d0b92: mm: define USE_SPLIT_PTLOCKS rath
include/linux/mmdebug.h # 7aa413d: x86, MM: virtual address debug, c
# 59ea746: MM: virtual address debug
lib/cmdline.c # d974ae3: generic, memparse(): constify arg
mm/vmalloc.c # 7aa413d: x86, MM: virtual address debug, c
# 59ea746: MM: virtual address debug

Thanks,

Ingo

------------------>
Alex Nixon (10):
x86: add cpu hotplug hooks into smp_ops
x86_32: clean up play_dead
x86: unify x86_32 and x86_64 play_dead into one function
x86: separate generic cpu disabling code from APIC writes in cpu_disable
xen: implement CPU hotplugging
Xen: fix cpu_hotplug.c build by replacing is_running_on_xen() with xen_pv_domain()
Xen: fix cpu_hotplug build when !CONFIG_SMP
x86: build fix for !CONFIG_SMP
x86, xen: fix build when !CONFIG_HOTPLUG_CPU
xen: make CPU hotplug functions static

Alexander van Heukelum (47):
i386: remove kprobes' restore_interrupts in favour of conditional_sti
i386: prepare to convert exceptions to interrupts
i386: convert hardware exception 0 to an interrupt gate
i386: expand exception 3 DO_TRAP macro
i386: convert hardware exception 4 to an interrupt gate
i386: convert hardware exception 5 to an interrupt gate
i386: convert hardware exception 6 to an interrupt gate
i386: convert hardware exception 7 to an interrupt gate
i386: convert hardware exception 9 to an interrupt gate
i386: convert hardware exception 10 to an interrupt gate
i386: convert hardware exception 11 to an interrupt gate
i386: convert hardware exception 12 to an interrupt gate
i386: convert hardware exception 13 to an interrupt gate
i386: convert hardware exception 15 to an interrupt gate
i386: convert hardware exception 16 to an interrupt gate
i386: convert hardware exception 17 to an interrupt gate
i386: convert hardware exception 18 to an interrupt gate
i386: convert hardware exception 19 to an interrupt gate
i386: remove temporary DO_TRAP macros, expanding the last one used
i386: add TRACE_IRQS_OFF to entry_32.S in 'error_code'
i386: add TRACE_IRQS_OFF for exception 1 (debug)
i386: add TRACE_IRQS_OFF for the nmi
i386: add TRACE_IRQS_OFF for the exception 3 (int3)
i386: trace_hardirqs_fixup should now not be necessary: irqs are off.
traps: x86_64: add TRACE_IRQS_OFF in error_entry
traps: x86_64: add TRACE_IRQS_OFF in paranoidentry macro
traps: x86_64: remove trace_hardirqs_fixup from DO_ERROR_INFO macro
traps: x86_64: remove trace_hardirqs_fixup from int3 handler
traps: x86_64: remove trace_hardirqs_fixup from debug handler
traps: x86: remove trace_hardirqs_fixup from pagefault handler
traps: i386: make do_trap more like x86_64
i386: split out dumpstack code from traps_32.c
x86_64: split out dumpstack code from traps_64.c
fix: x86: remove cpu_vendor_dev
x86, traps: split out math_error and simd_math_error
x86, traps, i386: factor out lazy io-bitmap copy
x86, traps: introduce dotraplinkage
x86, traps: converge do_debug handlers
traps: x86: converge trap_init functions
traps: x86_64: make math_state_restore more like i386
traps: i386: use preempt_conditional_sti/cli in do_int3
traps: x86_64: make io_check_error equal to the one on i386
traps: i386: expand clear_mem_error and remove from mach_traps.h
traps: x86_64: use task_pid_nr(tsk) instead of tsk->pid in do_general_protection
traps: x86: various noop-changes preparing for unification of traps_xx.c
traps: x86: make traps_32.c and traps_64.c equal
traps: x86: finalize unification of traps.c

Andreas Herrmann (1):
x86: SB450: skip IRQ0 override if it is not routed to INT2 of IOAPIC

Chuck Ebbert (2):
x86: move prefill_possible_map calling early, fix, V2
x86: allow number of additional hotplug CPUs to be set at compile time, V2

Cyrill Gorcunov (1):
x86: smpboot - check if we have ESR register in wakeup_secondary_cpu

Eduardo Habkost (2):
x86, xen: Use native_pte_flags instead of native_pte_val for .pte_flags
xen_alloc_ptpage: cast PFN_PHYS() argument to unsigned long

Ingo Molnar (11):
x86, MM: virtual address debug, cleanups
x86: x86_{phys,virt}_bits field also for i386, fix
Revert "x86: x86_{phys,virt}_bits field also for i386, fix"
Revert "x86: x86_{phys,virt}_bits field also for i386 (v2)"
x86: print out EBDA/lowmem address
x86: add PCI IDs for AMD Barcelona PCI devices
x86: __show_registers() and __show_regs() API unification, fixlet
x86: remove additional_cpus configurability
Revert "acpi/x86: introduce __apci_map_table, v4"
Revert "acpi: remove final __acpi_map_table mapping before setting acpi_gbl_permanent_mmap"
x86: SB450: deprioritize DMI quirks

Jack Steiner (1):
x86, UV: new UV genapic functions for x2apic

Jan Beulich (7):
x86: adjust vmalloc_sync_all() for Xen (2nd try)
x86-64: reduce boot fixmap space
x86-64: slightly stream-line 32-bit syscall entry code
x86: x86_{phys,virt}_bits field also for i386 (v2)
x86-64: fix combining of regions in init_memory_mapping()
x86: make mm/gup.c more virtualization friendly
x86: adjust dependencies for CONFIG_X86_CMOV

Jeremy Fitzhardinge (30):
x86/paravirt/xen: properly fill out the ldt ops
x86: split spinlock implementations out into their own files
x86: fix initialization of 'l' bit in ldt descriptors
xen: fix allocation and use of large ldts
generic, memparse(): constify argument
xen-balloon: fix up sysfs issues
xen-balloon: clean up unused functions
xen: suppress known wrmsrs
xen: compile irq functions without -pg for ftrace
xen: fix allocation and use of large ldts, cleanup
xen: clean up domain mode predicates
x86/paravirt: add spin_lock_flags lock op
xen: clarify locking used when pinning a pagetable.
xen: add xen_ prefixes to make tracing with ftrace easier
xen: save previous spinlock when blocking
xen: add debugfs support
xen: allow interrupts to be enabled while doing a blocking spin
xen: measure how long spinlocks spend blocking
x86: build fix in "xen spinlock updates and performance measurements"
x86: export pv_lock_ops non-GPL
x86: add _PAGE_IOMAP pte flag for IO mappings
x86: remove duplicate early_ioremap declarations
x86: add early_memremap()
x86: use early_memremap() in setup.c
x86-64: don't check for map replacement
x86: use early_ioremap in __acpi_map_table
x86: always explicitly map acpi memory
mm: define USE_SPLIT_PTLOCKS rather than repeating expression
xen: fix pinning when not using split pte locks
acpi: remove final __acpi_map_table mapping before setting acpi_gbl_permanent_mmap

Jiri Slaby (2):
MM: virtual address debug
x86, MM: virtual address debug, v2

Krzysztof Helt (2):
x86: merge winchip-2 and winchip-2a cpu choices
x86: do not allow to optimize flag_is_changeable_p() (rev. 2)

Manfred Spraul (1):
arch/x86/kernel/smpboot.c: Clarify when irq processing begins.

Pekka Enberg (1):
x86: __show_registers() and __show_regs() API unification

Thomas Gleixner (2):
x86: improve UP kernel when CPU-hotplug and SMP is enabled
x86: remove additional_cpus

Vegard Nossum (2):
x86: add memory clobber in switch_to()
x86: fix virt_addr_valid() with CONFIG_DEBUG_VIRTUAL=y, v2

Yinghai Lu (5):
x86: rename discontig_32.c to numa_32.c
x86: change early_ioremap to use slots instead of nesting acpi/x86: introduce __apci_map_table, v4
x86: check dsdt before find oem table for es7000, v2
x86: cpu don't print duplicated vendor string

 arch/x86/Kconfig.cpu                      |   29 +-
 arch/x86/Makefile_32.cpu                  |    1 -
 arch/x86/configs/i386_defconfig           |    1 -
 arch/x86/configs/x86_64_defconfig         |    1 -
 arch/x86/ia32/ia32entry.S                 |   26 +-
 arch/x86/kernel/Makefile                  |    6 +-
 arch/x86/kernel/acpi/boot.c               |   42 +-
 arch/x86/kernel/alternative.c             |    2 +-
 arch/x86/kernel/cpu/common.c              |   48 +-
 arch/x86/kernel/doublefault_32.c          |    2 +-
 arch/x86/kernel/dumpstack_32.c            |  422 ++++++++++
 arch/x86/kernel/dumpstack_64.c            |  565 ++++++++++++++
 arch/x86/kernel/early-quirks.c            |   48 ++
 arch/x86/kernel/entry_32.S                |   22 +-
 arch/x86/kernel/entry_64.S                |    8 +-
 arch/x86/kernel/es7000_32.c               |   28 +-
 arch/x86/kernel/genx2apic_uv_x.c          |   10 +-
 arch/x86/kernel/head.c                    |    1 +
 arch/x86/kernel/ldt.c                     |    9 +-
 arch/x86/kernel/paravirt-spinlocks.c      |   37 +
 arch/x86/kernel/paravirt.c                |   27 +-
 arch/x86/kernel/process_32.c              |  768 ------------------
 arch/x86/kernel/process_64.c              |   37 +-
 arch/x86/kernel/setup.c                   |    8 +-
 arch/x86/kernel/smp.c                     |    6 +-
 arch/x86/kernel/smpboot.c                 |  164 +++--
 arch/x86/kernel/tlb_32.c                  |    8 +
 arch/x86/kernel/{traps_32.c => traps.c}   |  860 ++++++++-------------
 arch/x86/kernel/traps_64.c                | 1214 -----------------------------
 arch/x86/kernel/vmlinux_64.lds.S          |    2 +-
 arch/x86/mach-generic/es7000.c            |   20 +-
 arch/x86/mm/Makefile                      |    6 +-
 arch/x86/mm/fault.c                       |   19 +-
 arch/x86/mm/gup.c                         |   10 +-
 arch/x86/mm/init_32.c                     |    2 +-
 arch/x86/mm/init_64.c                     |    9 +-
 arch/x86/mm/ioremap.c                     |  168 ++++-
 arch/x86/mm/{discontig_32.c => numa_32.c} |    0
 arch/x86/xen/Kconfig                      |   10 +-
 arch/x86/xen/Makefile                     |   12 +-
 arch/x86/xen/debugfs.c                    |  123 +++
 arch/x86/xen/debugfs.h                    |   10 +
 arch/x86/xen/enlighten.c                  |  189 ++---
 arch/x86/xen/irq.c                        |  143 ++++
 arch/x86/xen/mmu.c                        |  270 ++++++-
 arch/x86/xen/multicalls.c                 |  115 +++-
 arch/x86/xen/smp.c                        |  245 ++-----
 arch/x86/xen/spinlock.c                   |  428 ++++++++++
 arch/x86/xen/time.c                       |   12 +-
 arch/x86/xen/xen-asm_32.S                 |    2 +-
 arch/x86/xen/xen-asm_64.S                 |    2 +-
 arch/x86/xen/xen-ops.h                    |    8 +
 drivers/block/xen-blkfront.c              |    2 +-
 drivers/char/hvc_xen.c                    |    6 +-
 drivers/input/xen-kbdfront.c              |    4 +-
 drivers/net/xen-netfront.c                |    6 +-
 drivers/video/xen-fbfront.c               |    4 +-
 drivers/xen/Makefile                      |    1 +
 drivers/xen/balloon.c                     |  174 +----
 drivers/xen/cpu_hotplug.c                 |   90 +++
 drivers/xen/events.c                      |   40 +-
 drivers/xen/grant-table.c                 |    2 +-
 drivers/xen/xenbus/xenbus_probe.c         |    8 +-
 include/asm-x86/acpi.h                    |    3 -
 include/asm-x86/desc.h                    |   29 +-
 include/asm-x86/dma-mapping.h             |    1 -
 include/asm-x86/es7000/mpparse.h          |    1 +
 include/asm-x86/fixmap_32.h               |    8 +-
 include/asm-x86/fixmap_64.h               |   16 +-
 include/asm-x86/io.h                      |   15 +-
 include/asm-x86/io_64.h                   |    3 -
 include/asm-x86/irqflags.h                |   21 -
 include/asm-x86/kdebug.h                  |    3 +-
 include/asm-x86/kprobes.h                 |    9 -
 include/asm-x86/mach-default/mach_traps.h |    6 -
 include/asm-x86/mmzone_64.h               |    3 +-
 include/asm-x86/module.h                  |    2 -
 include/asm-x86/nmi.h                     |    4 -
 include/asm-x86/page.h                    |    8 +-
 include/asm-x86/page_32.h                 |   13 +-
 include/asm-x86/paravirt.h                |   20 +
 include/asm-x86/pgtable.h                 |   16 +-
 include/asm-x86/ptrace.h                  |    4 -
 include/asm-x86/smp.h                     |   40 +-
 include/asm-x86/spinlock.h                |    9 +-
 include/asm-x86/system.h                  |    5 +-
 include/asm-x86/tlbflush.h                |   10 +
 include/asm-x86/traps.h                   |   73 +-
 include/asm-x86/xen/hypervisor.h          |   14 +-
 include/linux/kernel.h                    |    2 +-
 include/linux/mm.h                        |   13 +-
 include/linux/mm_types.h                  |   10 +-
 include/linux/mmdebug.h                   |   18 +
 include/linux/sched.h                     |    6 +-
 include/xen/events.h                      |    2 +
 lib/Kconfig.debug                         |    9 +
 lib/cmdline.c                             |    2 +-
 mm/vmalloc.c                              |    7 +
 98 files changed, 3425 insertions(+), 3522 deletions(-)
 create mode 100644 arch/x86/kernel/dumpstack_32.c
 create mode 100644 arch/x86/kernel/dumpstack_64.c
 create mode 100644 arch/x86/kernel/paravirt-spinlocks.c
 delete mode 100644 arch/x86/kernel/process_32.c
 rename arch/x86/kernel/{traps_32.c => traps.c} (60%)
 delete mode 100644 arch/x86/kernel/traps_64.c
 rename arch/x86/mm/{discontig_32.c => numa_32.c} (100%)
 create mode 100644 arch/x86/xen/debugfs.c
 create mode 100644 arch/x86/xen/debugfs.h
 create mode 100644 arch/x86/xen/irq.c
 create mode 100644 arch/x86/xen/spinlock.c
 create mode 100644 drivers/xen/cpu_hotplug.c
 create mode 100644 include/linux/mmdebug.h
arch/x86/Kconfig.cpu +10 -19
index f8843c3..52763b7 100644
@@ -38,8 +38,7 @@ config M386
 	  - "Crusoe" for the Transmeta Crusoe series.
 	  - "Efficeon" for the Transmeta Efficeon series.
 	  - "Winchip-C6" for original IDT Winchip.
-	  - "Winchip-2" for IDT Winchip 2.
-	  - "Winchip-2A" for IDT Winchips with 3dNow! capabilities.
+	  - "Winchip-2" for IDT Winchips with 3dNow! capabilities.
 	  - "GeodeGX1" for Geode GX1 (Cyrix MediaGX).
 	  - "Geode GX/LX" For AMD Geode GX and LX processors.
 	  - "CyrixIII/VIA C3" for VIA Cyrix III or VIA C3.
@@ -194,19 +193,11 @@ config MWINCHIPC6
 	  treat this chip as a 586TSC with some extended instructions
 	  and alignment requirements.
 
-config MWINCHIP2
-	bool "Winchip-2"
-	depends on X86_32
-	help
-	  Select this for an IDT Winchip-2.  Linux and GCC
-	  treat this chip as a 586TSC with some extended instructions
-	  and alignment requirements.
-
 config MWINCHIP3D
-	bool "Winchip-2A/Winchip-3"
+	bool "Winchip-2/Winchip-2A/Winchip-3"
 	depends on X86_32
 	help
-	  Select this for an IDT Winchip-2A or 3.  Linux and GCC
+	  Select this for an IDT Winchip-2, 2A or 3.  Linux and GCC
 	  treat this chip as a 586TSC with some extended instructions
 	  and alignment requirements.  Also enable out of order memory
 	  stores for this CPU, which can increase performance of some
@@ -318,7 +309,7 @@ config X86_L1_CACHE_SHIFT
 	int
 	default "7" if MPENTIUM4 || X86_GENERIC || GENERIC_CPU || MPSC
 	default "4" if X86_ELAN || M486 || M386 || MGEODEGX1
-	default "5" if MWINCHIP3D || MWINCHIP2 || MWINCHIPC6 || MCRUSOE || MEFFICEON || MCYRIXIII || MK6 || MPENTIUMIII || MPENTIUMII || M686 || M586MMX || M586TSC || M586 || MVIAC3_2 || MGEODE_LX
+	default "5" if MWINCHIP3D || MWINCHIPC6 || MCRUSOE || MEFFICEON || MCYRIXIII || MK6 || MPENTIUMIII || MPENTIUMII || M686 || M586MMX || M586TSC || M586 || MVIAC3_2 || MGEODE_LX
 	default "6" if MK7 || MK8 || MPENTIUMM || MCORE2 || MVIAC7
 
 config X86_XADD
@@ -360,7 +351,7 @@ config X86_POPAD_OK
 
 config X86_ALIGNMENT_16
 	def_bool y
-	depends on MWINCHIP3D || MWINCHIP2 || MWINCHIPC6 || MCYRIXIII || X86_ELAN || MK6 || M586MMX || M586TSC || M586 || M486 || MVIAC3_2 || MGEODEGX1
+	depends on MWINCHIP3D || MWINCHIPC6 || MCYRIXIII || X86_ELAN || MK6 || M586MMX || M586TSC || M586 || M486 || MVIAC3_2 || MGEODEGX1
 
 config X86_INTEL_USERCOPY
 	def_bool y
@@ -368,7 +359,7 @@ config X86_INTEL_USERCOPY
 
 config X86_USE_PPRO_CHECKSUM
 	def_bool y
-	depends on MWINCHIP3D || MWINCHIP2 || MWINCHIPC6 || MCYRIXIII || MK7 || MK6 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || MK8 || MVIAC3_2 || MEFFICEON || MGEODE_LX || MCORE2
+	depends on MWINCHIP3D || MWINCHIPC6 || MCYRIXIII || MK7 || MK6 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || MK8 || MVIAC3_2 || MEFFICEON || MGEODE_LX || MCORE2
 
 config X86_USE_3DNOW
 	def_bool y
@@ -376,7 +367,7 @@ config X86_USE_3DNOW
 
 config X86_OOSTORE
 	def_bool y
-	depends on (MWINCHIP3D || MWINCHIP2 || MWINCHIPC6) && MTRR
+	depends on (MWINCHIP3D || MWINCHIPC6) && MTRR
 
 #
 # P6_NOPs are a relatively minor optimization that require a family >=
@@ -396,7 +387,7 @@ config X86_P6_NOP
 
 config X86_TSC
 	def_bool y
-	depends on ((MWINCHIP3D || MWINCHIP2 || MCRUSOE || MEFFICEON || MCYRIXIII || MK7 || MK6 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || M586MMX || M586TSC || MK8 || MVIAC3_2 || MVIAC7 || MGEODEGX1 || MGEODE_LX || MCORE2) && !X86_NUMAQ) || X86_64
+	depends on ((MWINCHIP3D || MCRUSOE || MEFFICEON || MCYRIXIII || MK7 || MK6 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || M586MMX || M586TSC || MK8 || MVIAC3_2 || MVIAC7 || MGEODEGX1 || MGEODE_LX || MCORE2) && !X86_NUMAQ) || X86_64
 
 config X86_CMPXCHG64
 	def_bool y
@@ -406,7 +397,7 @@ config X86_CMPXCHG64
 # generates cmov.
 config X86_CMOV
 	def_bool y
-	depends on (MK7 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || MVIAC3_2 || MVIAC7 || X86_64)
+	depends on (MK8 || MK7 || MCORE2 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || MVIAC3_2 || MVIAC7 || MCRUSOE || MEFFICEON || X86_64)
 
 config X86_MINIMUM_CPU_FAMILY
 	int
@@ -417,7 +408,7 @@ config X86_MINIMUM_CPU_FAMILY
 
 config X86_DEBUGCTLMSR
 	def_bool y
-	depends on !(MK6 || MWINCHIPC6 || MWINCHIP2 || MWINCHIP3D || MCYRIXIII || M586MMX || M586TSC || M586 || M486 || M386)
+	depends on !(MK6 || MWINCHIPC6 || MWINCHIP3D || MCYRIXIII || M586MMX || M586TSC || M586 || M486 || M386)
 
 menuconfig PROCESSOR_SELECT
 	default y
arch/x86/Makefile_32.cpu +0 -1
index e372b58..12bdd85 100644
@@ -28,7 +28,6 @@ cflags-$(CONFIG_MK8)		+= $(call cc-option,-march=k8,-march=athlon)
 cflags-$(CONFIG_MCRUSOE)	+= -march=i686 $(align)-functions=0 $(align)-jumps=0 $(align)-loops=0
 cflags-$(CONFIG_MEFFICEON)	+= -march=i686 $(call tune,pentium3) $(align)-functions=0 $(align)-jumps=0 $(align)-loops=0
 cflags-$(CONFIG_MWINCHIPC6)	+= $(call cc-option,-march=winchip-c6,-march=i586)
-cflags-$(CONFIG_MWINCHIP2)	+= $(call cc-option,-march=winchip2,-march=i586)
 cflags-$(CONFIG_MWINCHIP3D)	+= $(call cc-option,-march=winchip2,-march=i586)
 cflags-$(CONFIG_MCYRIXIII)	+= $(call cc-option,-march=c3,-march=i486) $(align)-functions=0 $(align)-jumps=0 $(align)-loops=0
 cflags-$(CONFIG_MVIAC3_2)	+= $(call cc-option,-march=c3-2,-march=i686)
arch/x86/configs/i386_defconfig +0 -1
index ef9a520..9269ef4 100644
@@ -213,7 +213,6 @@ CONFIG_M686=y
 # CONFIG_MCRUSOE is not set
 # CONFIG_MEFFICEON is not set
 # CONFIG_MWINCHIPC6 is not set
-# CONFIG_MWINCHIP2 is not set
 # CONFIG_MWINCHIP3D is not set
 # CONFIG_MGEODEGX1 is not set
 # CONFIG_MGEODE_LX is not set
arch/x86/configs/x86_64_defconfig +0 -1
index e620ea6..638bc85 100644
@@ -210,7 +210,6 @@ CONFIG_X86_PC=y
 # CONFIG_MCRUSOE is not set
 # CONFIG_MEFFICEON is not set
 # CONFIG_MWINCHIPC6 is not set
-# CONFIG_MWINCHIP2 is not set
 # CONFIG_MWINCHIP3D is not set
 # CONFIG_MGEODEGX1 is not set
 # CONFIG_MGEODE_LX is not set
arch/x86/ia32/ia32entry.S +10 -16
index ffc1bb4..eb43147 100644
@@ -39,11 +39,11 @@
 	.endm 
 
 	/* clobbers %eax */	
-	.macro  CLEAR_RREGS
+	.macro  CLEAR_RREGS _r9=rax
 	xorl 	%eax,%eax
 	movq	%rax,R11(%rsp)
 	movq	%rax,R10(%rsp)
-	movq	%rax,R9(%rsp)
+	movq	%\_r9,R9(%rsp)
 	movq	%rax,R8(%rsp)
 	.endm
 
@@ -52,11 +52,10 @@
 	 * We don't reload %eax because syscall_trace_enter() returned
 	 * the value it wants us to use in the table lookup.
 	 */
-	.macro LOAD_ARGS32 offset
-	movl \offset(%rsp),%r11d
-	movl \offset+8(%rsp),%r10d
+	.macro LOAD_ARGS32 offset, _r9=0
+	.if \_r9
 	movl \offset+16(%rsp),%r9d
-	movl \offset+24(%rsp),%r8d
+	.endif
 	movl \offset+40(%rsp),%ecx
 	movl \offset+48(%rsp),%edx
 	movl \offset+56(%rsp),%esi
@@ -145,7 +144,7 @@ ENTRY(ia32_sysenter_target)
 	SAVE_ARGS 0,0,1
  	/* no need to do an access_ok check here because rbp has been
  	   32bit zero extended */ 
-1:	movl	(%rbp),%r9d
+1:	movl	(%rbp),%ebp
  	.section __ex_table,"a"
  	.quad 1b,ia32_badarg
  	.previous	
@@ -157,7 +156,7 @@ ENTRY(ia32_sysenter_target)
 	cmpl	$(IA32_NR_syscalls-1),%eax
 	ja	ia32_badsys
 sysenter_do_call:
-	IA32_ARG_FIXUP 1
+	IA32_ARG_FIXUP
 sysenter_dispatch:
 	call	*ia32_sys_call_table(,%rax,8)
 	movq	%rax,RAX-ARGOFFSET(%rsp)
@@ -234,20 +233,17 @@ sysexit_audit:
 #endif
 
 sysenter_tracesys:
-	xchgl	%r9d,%ebp
 #ifdef CONFIG_AUDITSYSCALL
 	testl	$(_TIF_WORK_SYSCALL_ENTRY & ~_TIF_SYSCALL_AUDIT),TI_flags(%r10)
 	jz	sysenter_auditsys
 #endif
 	SAVE_REST
 	CLEAR_RREGS
-	movq	%r9,R9(%rsp)
 	movq	$-ENOSYS,RAX(%rsp)/* ptrace can change this for a bad syscall */
 	movq	%rsp,%rdi        /* &pt_regs -> arg1 */
 	call	syscall_trace_enter
 	LOAD_ARGS32 ARGOFFSET  /* reload args from stack in case ptrace changed it */
 	RESTORE_REST
-	xchgl	%ebp,%r9d
 	cmpl	$(IA32_NR_syscalls-1),%eax
 	ja	int_ret_from_sys_call /* sysenter_tracesys has set RAX(%rsp) */
 	jmp	sysenter_do_call
@@ -314,9 +310,9 @@ ENTRY(ia32_cstar_target)
 	testl $_TIF_WORK_SYSCALL_ENTRY,TI_flags(%r10)
 	CFI_REMEMBER_STATE
 	jnz   cstar_tracesys
-cstar_do_call:	
 	cmpl $IA32_NR_syscalls-1,%eax
 	ja  ia32_badsys
+cstar_do_call:
 	IA32_ARG_FIXUP 1
 cstar_dispatch:
 	call *ia32_sys_call_table(,%rax,8)
@@ -357,15 +353,13 @@ cstar_tracesys:
 #endif
 	xchgl %r9d,%ebp
 	SAVE_REST
-	CLEAR_RREGS
-	movq %r9,R9(%rsp)
+	CLEAR_RREGS r9
 	movq $-ENOSYS,RAX(%rsp)	/* ptrace can change this for a bad syscall */
 	movq %rsp,%rdi        /* &pt_regs -> arg1 */
 	call syscall_trace_enter
-	LOAD_ARGS32 ARGOFFSET  /* reload args from stack in case ptrace changed it */
+	LOAD_ARGS32 ARGOFFSET, 1  /* reload args from stack in case ptrace changed it */
 	RESTORE_REST
 	xchgl %ebp,%r9d
-	movl RSP-ARGOFFSET(%rsp), %r8d
 	cmpl $(IA32_NR_syscalls-1),%eax
 	ja int_ret_from_sys_call /* cstar_tracesys has set RAX(%rsp) */
 	jmp cstar_do_call
arch/x86/kernel/Makefile +3 -3
index c9be69f..f6160cc 100644
@@ -10,7 +10,7 @@ ifdef CONFIG_FTRACE
 # Do not profile debug and lowlevel utilities
 CFLAGS_REMOVE_tsc.o = -pg
 CFLAGS_REMOVE_rtc.o = -pg
-CFLAGS_REMOVE_paravirt.o = -pg
+CFLAGS_REMOVE_paravirt-spinlocks.o = -pg
 endif
 
 #
@@ -23,7 +23,7 @@ CFLAGS_hpet.o		:= $(nostackp)
 CFLAGS_tsc.o		:= $(nostackp)
 
 obj-y			:= process_$(BITS).o signal_$(BITS).o entry_$(BITS).o
-obj-y			+= traps_$(BITS).o irq_$(BITS).o
+obj-y			+= traps.o irq_$(BITS).o dumpstack_$(BITS).o
 obj-y			+= time_$(BITS).o ioport.o ldt.o
 obj-y			+= setup.o i8259.o irqinit_$(BITS).o setup_percpu.o
 obj-$(CONFIG_X86_VISWS)	+= visws_quirks.o
@@ -90,7 +90,7 @@ obj-$(CONFIG_DEBUG_NX_TEST)	+= test_nx.o
 obj-$(CONFIG_VMI)		+= vmi_32.o vmiclock_32.o
 obj-$(CONFIG_KVM_GUEST)		+= kvm.o
 obj-$(CONFIG_KVM_CLOCK)		+= kvmclock.o
-obj-$(CONFIG_PARAVIRT)		+= paravirt.o paravirt_patch_$(BITS).o
+obj-$(CONFIG_PARAVIRT)		+= paravirt.o paravirt_patch_$(BITS).o paravirt-spinlocks.o
 obj-$(CONFIG_PARAVIRT_CLOCK)	+= pvclock.o
 
 obj-$(CONFIG_PCSPKR_PLATFORM)	+= pcspeaker.o
arch/x86/kernel/acpi/boot.c +17 -25

60 lines not on this page · raw message

arch/x86/kernel/alternative.c +1 -1
index fb04e49..a84ac7b 100644
@@ -444,7 +444,7 @@ void __init alternative_instructions(void)
 					    _text, _etext);
 
 		/* Only switch to UP mode if we don't immediately boot others */
-		if (num_possible_cpus() == 1 || setup_max_cpus <= 1)
+		if (num_present_cpus() == 1 || setup_max_cpus <= 1)
 			alternatives_smp_switch(0);
 	}
 #endif
arch/x86/kernel/cpu/common.c +24 -24

71 lines not on this page · raw message

arch/x86/kernel/doublefault_32.c +1 -1
index a47798b..b4f14c6 100644
@@ -66,6 +66,6 @@ struct tss_struct doublefault_tss __cacheline_aligned = {
 		.ds		= __USER_DS,
 		.fs		= __KERNEL_PERCPU,
 
-		.__cr3		= __pa(swapper_pg_dir)
+		.__cr3		= __pa_nodebug(swapper_pg_dir),
 	}
 };
arch/x86/kernel/dumpstack_32.c new file +422 -0

422 lines not on this page · raw message

arch/x86/kernel/dumpstack_64.c new file +565 -0

565 lines not on this page · raw message

arch/x86/kernel/early-quirks.c +48 -0

60 lines not on this page · raw message

arch/x86/kernel/entry_32.S +8 -14
index 109792b..b21fbfa 100644
@@ -730,6 +730,7 @@ error_code:
 	movl $(__USER_DS), %ecx
 	movl %ecx, %ds
 	movl %ecx, %es
+	TRACE_IRQS_OFF
 	movl %esp,%eax			# pt_regs pointer
 	call *%edi
 	jmp ret_from_exception
@@ -760,20 +761,9 @@ ENTRY(device_not_available)
 	RING0_INT_FRAME
 	pushl $-1			# mark this as an int
 	CFI_ADJUST_CFA_OFFSET 4
-	SAVE_ALL
-	GET_CR0_INTO_EAX
-	testl $0x4, %eax		# EM (math emulation bit)
-	jne device_not_available_emulate
-	preempt_stop(CLBR_ANY)
-	call math_state_restore
-	jmp ret_from_exception
-device_not_available_emulate:
-	pushl $0			# temporary storage for ORIG_EIP
+	pushl $do_device_not_available
 	CFI_ADJUST_CFA_OFFSET 4
-	call math_emulate
-	addl $4, %esp
-	CFI_ADJUST_CFA_OFFSET -4
-	jmp ret_from_exception
+	jmp error_code
 	CFI_ENDPROC
 END(device_not_available)
 
@@ -814,6 +804,7 @@ debug_stack_correct:
 	pushl $-1			# mark this as an int
 	CFI_ADJUST_CFA_OFFSET 4
 	SAVE_ALL
+	TRACE_IRQS_OFF
 	xorl %edx,%edx			# error code 0
 	movl %esp,%eax			# pt_regs pointer
 	call do_debug
@@ -858,6 +849,7 @@ nmi_stack_correct:
 	pushl %eax
 	CFI_ADJUST_CFA_OFFSET 4
 	SAVE_ALL
+	TRACE_IRQS_OFF
 	xorl %edx,%edx		# zero error code
 	movl %esp,%eax		# pt_regs pointer
 	call do_nmi
@@ -898,6 +890,7 @@ nmi_espfix_stack:
 	pushl %eax
 	CFI_ADJUST_CFA_OFFSET 4
 	SAVE_ALL
+	TRACE_IRQS_OFF
 	FIXUP_ESPFIX_STACK		# %eax == %esp
 	xorl %edx,%edx			# zero error code
 	call do_nmi
@@ -928,6 +921,7 @@ KPROBE_ENTRY(int3)
 	pushl $-1			# mark this as an int
 	CFI_ADJUST_CFA_OFFSET 4
 	SAVE_ALL
+	TRACE_IRQS_OFF
 	xorl %edx,%edx		# zero error code
 	movl %esp,%eax		# pt_regs pointer
 	call do_int3
@@ -1030,7 +1024,7 @@ ENTRY(machine_check)
 	RING0_INT_FRAME
 	pushl $0
 	CFI_ADJUST_CFA_OFFSET 4
-	pushl machine_check_vector
+	pushl $do_machine_check
 	CFI_ADJUST_CFA_OFFSET 4
 	jmp error_code
 	CFI_ENDPROC
arch/x86/kernel/entry_64.S +6 -2
index cf3a0b2..104fa65 100644
@@ -932,6 +932,9 @@ END(spurious_interrupt)
 	.if \ist
 	movq	%gs:pda_data_offset, %rbp
 	.endif
+	.if \irqtrace
+	TRACE_IRQS_OFF
+	.endif
 	movq %rsp,%rdi
 	movq ORIG_RAX(%rsp),%rsi
 	movq $-1,ORIG_RAX(%rsp)
@@ -1058,7 +1061,8 @@ KPROBE_ENTRY(error_entry)
 	je  error_kernelspace
 error_swapgs:	
 	SWAPGS
-error_sti:	
+error_sti:
+	TRACE_IRQS_OFF
 	movq %rdi,RDI(%rsp) 	
 	CFI_REL_OFFSET	rdi,RDI
 	movq %rsp,%rdi
@@ -1232,7 +1236,7 @@ ENTRY(simd_coprocessor_error)
 END(simd_coprocessor_error)
 
 ENTRY(device_not_available)
-	zeroentry math_state_restore
+	zeroentry do_device_not_available
 END(device_not_available)
 
 	/* runs on exception stack */
arch/x86/kernel/es7000_32.c +23 -5
index 849e5cd..f454c78 100644
@@ -109,6 +109,7 @@ struct oem_table {
 };
 
 extern int find_unisys_acpi_oem_table(unsigned long *oem_addr);
+extern void unmap_unisys_acpi_oem_table(unsigned long oem_addr);
 #endif
 
 struct mip_reg {
@@ -243,21 +244,38 @@ parse_unisys_oem (char *oemptr)
 }
 
 #ifdef CONFIG_ACPI
-int __init
-find_unisys_acpi_oem_table(unsigned long *oem_addr)
+static unsigned long oem_addrX;
+static unsigned long oem_size;
+int __init find_unisys_acpi_oem_table(unsigned long *oem_addr)
 {
 	struct acpi_table_header *header = NULL;
 	int i = 0;
-	while (ACPI_SUCCESS(acpi_get_table("OEM1", i++, &header))) {
+	acpi_size tbl_size;
+
+	while (ACPI_SUCCESS(acpi_get_table_with_size("OEM1", i++, &header, &tbl_size))) {
 		if (!memcmp((char *) &header->oem_id, "UNISYS", 6)) {
 			struct oem_table *t = (struct oem_table *)header;
-			*oem_addr = (unsigned long)__acpi_map_table(t->OEMTableAddr,
-								    t->OEMTableSize);
+
+			oem_addrX = t->OEMTableAddr;
+			oem_size = t->OEMTableSize;
+			early_acpi_os_unmap_memory(header, tbl_size);
+
+			*oem_addr = (unsigned long)__acpi_map_table(oem_addrX,
+								    oem_size);
 			return 0;
 		}
+		early_acpi_os_unmap_memory(header, tbl_size);
 	}
 	return -1;
 }
+
+void __init unmap_unisys_acpi_oem_table(unsigned long oem_addr)
+{
+	if (!oem_addr)
+		return;
+
+	__acpi_unmap_table((char *)oem_addr, oem_size);
+}
 #endif
 
 static void
arch/x86/kernel/genx2apic_uv_x.c +4 -6
index ae2ffc8..7b0ff40 100644
@@ -114,7 +114,7 @@ static void uv_send_IPI_one(int cpu, int vector)
 	unsigned long val, apicid, lapicid;
 	int pnode;
 
-	apicid = per_cpu(x86_cpu_to_apicid, cpu); /* ZZZ - cache node-local ? */
+	apicid = per_cpu(x86_cpu_to_apicid, cpu);
 	lapicid = apicid & 0x3f;		/* ZZZ macro needed */
 	pnode = uv_apicid_to_pnode(apicid);
 	val =
@@ -202,12 +202,10 @@ static unsigned int phys_pkg_id(int index_msb)
 	return uv_read_apic_id() >> index_msb;
 }
 
-#ifdef ZZZ		/* Needs x2apic patch */
 static void uv_send_IPI_self(int vector)
 {
 	apic_write(APIC_SELF_IPI, vector);
 }
-#endif
 
 struct genapic apic_x2apic_uv_x = {
 	.name = "UV large system",
@@ -215,15 +213,15 @@ struct genapic apic_x2apic_uv_x = {
 	.int_delivery_mode = dest_Fixed,
 	.int_dest_mode = (APIC_DEST_PHYSICAL != 0),
 	.target_cpus = uv_target_cpus,
-	.vector_allocation_domain = uv_vector_allocation_domain,/* Fixme ZZZ */
+	.vector_allocation_domain = uv_vector_allocation_domain,
 	.apic_id_registered = uv_apic_id_registered,
 	.init_apic_ldr = uv_init_apic_ldr,
 	.send_IPI_all = uv_send_IPI_all,
 	.send_IPI_allbutself = uv_send_IPI_allbutself,
 	.send_IPI_mask = uv_send_IPI_mask,
-	/* ZZZ.send_IPI_self = uv_send_IPI_self, */
+	.send_IPI_self = uv_send_IPI_self,
 	.cpu_mask_to_apicid = uv_cpu_mask_to_apicid,
-	.phys_pkg_id = phys_pkg_id,	/* Fixme ZZZ */
+	.phys_pkg_id = phys_pkg_id,
 	.get_apic_id = get_apic_id,
 	.set_apic_id = set_apic_id,
 	.apic_id_mask = (0xFFFFFFFFu),
arch/x86/kernel/head.c +1 -0
index 3e66bd3..1dcb0f1 100644
@@ -35,6 +35,7 @@ void __init reserve_ebda_region(void)
 
 	/* start of EBDA area */
 	ebda_addr = get_bios_ebda();
+	printk(KERN_INFO "BIOS EBDA/lowmem at: %08x/%08x\n", ebda_addr, lowmem);
 
 	/* Fixup: bios puts an EBDA in the top 64K segment */
 	/* of conventional memory, but does not adjust lowmem. */
arch/x86/kernel/ldt.c +8 -1
index 0ed5f93..eee32b4 100644
@@ -52,6 +52,8 @@ static int alloc_ldt(mm_context_t *pc, int mincount, int reload)
 	memset(newldt + oldsize * LDT_ENTRY_SIZE, 0,
 	       (mincount - oldsize) * LDT_ENTRY_SIZE);
 
+	paravirt_alloc_ldt(newldt, mincount);
+
 #ifdef CONFIG_X86_64
 	/* CHECKME: Do we really need this ? */
 	wmb();
@@ -74,6 +76,7 @@ static int alloc_ldt(mm_context_t *pc, int mincount, int reload)
 #endif
 	}
 	if (oldsize) {
+		paravirt_free_ldt(oldldt, oldsize);
 		if (oldsize * LDT_ENTRY_SIZE > PAGE_SIZE)
 			vfree(oldldt);
 		else
@@ -85,10 +88,13 @@ static int alloc_ldt(mm_context_t *pc, int mincount, int reload)
 static inline int copy_ldt(mm_context_t *new, mm_context_t *old)
 {
 	int err = alloc_ldt(new, old->size, 0);
+	int i;
 
 	if (err < 0)
 		return err;
-	memcpy(new->ldt, old->ldt, old->size * LDT_ENTRY_SIZE);
+
+	for(i = 0; i < old->size; i++)
+		write_ldt_entry(new->ldt, i, old->ldt + i * LDT_ENTRY_SIZE);
 	return 0;
 }
 
@@ -125,6 +131,7 @@ void destroy_context(struct mm_struct *mm)
 		if (mm == current->active_mm)
 			clear_LDT();
 #endif
+		paravirt_free_ldt(mm->context.ldt, mm->context.size);
 		if (mm->context.size * LDT_ENTRY_SIZE > PAGE_SIZE)
 			vfree(mm->context.ldt);
 		else
arch/x86/kernel/paravirt-spinlocks.c new file +37 -0
new file mode 100644
index 0000000..0e9f198
@@ -0,0 +1,37 @@
+/*
+ * Split spinlock implementation out into its own file, so it can be
+ * compiled in a FTRACE-compatible way.
+ */
+#include <linux/spinlock.h>
+#include <linux/module.h>
+
+#include <asm/paravirt.h>
+
+static void default_spin_lock_flags(struct raw_spinlock *lock, unsigned long flags)
+{
+	__raw_spin_lock(lock);
+}
+
+struct pv_lock_ops pv_lock_ops = {
+#ifdef CONFIG_SMP
+	.spin_is_locked = __ticket_spin_is_locked,
+	.spin_is_contended = __ticket_spin_is_contended,
+
+	.spin_lock = __ticket_spin_lock,
+	.spin_lock_flags = default_spin_lock_flags,
+	.spin_trylock = __ticket_spin_trylock,
+	.spin_unlock = __ticket_spin_unlock,
+#endif
+};
+EXPORT_SYMBOL(pv_lock_ops);
+
+void __init paravirt_use_bytelocks(void)
+{
+#ifdef CONFIG_SMP
+	pv_lock_ops.spin_is_locked = __byte_spin_is_locked;
+	pv_lock_ops.spin_is_contended = __byte_spin_is_contended;
+	pv_lock_ops.spin_lock = __byte_spin_lock;
+	pv_lock_ops.spin_trylock = __byte_spin_trylock;
+	pv_lock_ops.spin_unlock = __byte_spin_unlock;
+#endif
+}
arch/x86/kernel/paravirt.c +4 -23
index 6b0bb73..e4c8fb6 100644
@@ -268,17 +268,6 @@ enum paravirt_lazy_mode paravirt_get_lazy_mode(void)
 	return __get_cpu_var(paravirt_lazy_mode);
 }
 
-void __init paravirt_use_bytelocks(void)
-{
-#ifdef CONFIG_SMP
-	pv_lock_ops.spin_is_locked = __byte_spin_is_locked;
-	pv_lock_ops.spin_is_contended = __byte_spin_is_contended;
-	pv_lock_ops.spin_lock = __byte_spin_lock;
-	pv_lock_ops.spin_trylock = __byte_spin_trylock;
-	pv_lock_ops.spin_unlock = __byte_spin_unlock;
-#endif
-}
-
 struct pv_info pv_info = {
 	.name = "bare hardware",
 	.paravirt_enabled = 0,
@@ -349,6 +338,10 @@ struct pv_cpu_ops pv_cpu_ops = {
 	.write_ldt_entry = native_write_ldt_entry,
 	.write_gdt_entry = native_write_gdt_entry,
 	.write_idt_entry = native_write_idt_entry,
+
+	.alloc_ldt = paravirt_nop,
+	.free_ldt = paravirt_nop,
+
 	.load_sp0 = native_load_sp0,
 
 #if defined(CONFIG_X86_32) || defined(CONFIG_IA32_EMULATION)
@@ -460,18 +453,6 @@ struct pv_mmu_ops pv_mmu_ops = {
 	.set_fixmap = native_set_fixmap,
 };
 
-struct pv_lock_ops pv_lock_ops = {
-#ifdef CONFIG_SMP
-	.spin_is_locked = __ticket_spin_is_locked,
-	.spin_is_contended = __ticket_spin_is_contended,
-
-	.spin_lock = __ticket_spin_lock,
-	.spin_trylock = __ticket_spin_trylock,
-	.spin_unlock = __ticket_spin_unlock,
-#endif
-};
-EXPORT_SYMBOL(pv_lock_ops);
-
 EXPORT_SYMBOL_GPL(pv_time_ops);
 EXPORT_SYMBOL    (pv_cpu_ops);
 EXPORT_SYMBOL    (pv_mmu_ops);
arch/x86/kernel/process_32.c deleted +0 -768

768 lines not on this page · raw message

arch/x86/kernel/process_64.c +13 -24
index 2a8ccb9..410cc5f 100644
@@ -86,30 +86,12 @@ void exit_idle(void)
 	__exit_idle();
 }
 
-#ifdef CONFIG_HOTPLUG_CPU
-DECLARE_PER_CPU(int, cpu_state);
-
-#include <linux/nmi.h>
-/* We halt the CPU with physical CPU hotplug */
-static inline void play_dead(void)
-{
-	idle_task_exit();
-	c1e_remove_cpu(raw_smp_processor_id());
-
-	mb();
-	/* Ack it */
-	__get_cpu_var(cpu_state) = CPU_DEAD;
-
-	local_irq_disable();
-	/* mask all interrupts, flush any and all caches, and halt */
-	wbinvd_halt();
-}
-#else
+#ifndef CONFIG_SMP
 static inline void play_dead(void)
 {
 	BUG();
 }
-#endif /* CONFIG_HOTPLUG_CPU */
+#endif
 
 /*
  * The idle thread. There's no useful work to be
@@ -154,7 +136,7 @@ void cpu_idle(void)
 }
 
 /* Prints also some state that isn't saved in the pt_regs */
-void __show_regs(struct pt_regs *regs)
+void __show_regs(struct pt_regs *regs, int all)
 {
 	unsigned long cr0 = 0L, cr2 = 0L, cr3 = 0L, cr4 = 0L, fs, gs, shadowgs;
 	unsigned long d0, d1, d2, d3, d6, d7;
@@ -193,13 +175,20 @@ void __show_regs(struct pt_regs *regs)
 	rdmsrl(MSR_GS_BASE, gs);
 	rdmsrl(MSR_KERNEL_GS_BASE, shadowgs);
 
+	if (!all)
+		return;
+
+	printk(KERN_INFO "FS:  %016lx(%04x) GS:%016lx(%04x) knlGS:%016lx\n",
+	       fs, fsindex, gs, gsindex, shadowgs);
+
+	if (!all)
+		return;
+
 	cr0 = read_cr0();
 	cr2 = read_cr2();
 	cr3 = read_cr3();
 	cr4 = read_cr4();
 
-	printk(KERN_INFO "FS:  %016lx(%04x) GS:%016lx(%04x) knlGS:%016lx\n",
-	       fs, fsindex, gs, gsindex, shadowgs);
 	printk(KERN_INFO "CS:  %04x DS: %04x ES: %04x CR0: %016lx\n", cs, ds,
 			es, cr0);
 	printk(KERN_INFO "CR2: %016lx CR3: %016lx CR4: %016lx\n", cr2, cr3,
@@ -218,7 +207,7 @@ void __show_regs(struct pt_regs *regs)
 void show_regs(struct pt_regs *regs)
 {
 	printk(KERN_INFO "CPU %d:", smp_processor_id());
-	__show_regs(regs);
+	__show_regs(regs, 1);
 	show_trace(NULL, regs, (void *)(regs + 1), regs->bp);
 }
 
arch/x86/kernel/setup.c +4 -4
index 46c98ef..09ee73a 100644
@@ -302,7 +302,7 @@ static void __init relocate_initrd(void)
 		if (clen > MAX_MAP_CHUNK-slop)
 			clen = MAX_MAP_CHUNK-slop;
 		mapaddr = ramdisk_image & PAGE_MASK;
-		p = early_ioremap(mapaddr, clen+slop);
+		p = early_memremap(mapaddr, clen+slop);
 		memcpy(q, p+slop, clen);
 		early_iounmap(p, clen+slop);
 		q += clen;
@@ -379,7 +379,7 @@ static void __init parse_setup_data(void)
 		return;
 	pa_data = boot_params.hdr.setup_data;
 	while (pa_data) {
-		data = early_ioremap(pa_data, PAGE_SIZE);
+		data = early_memremap(pa_data, PAGE_SIZE);
 		switch (data->type) {
 		case SETUP_E820_EXT:
 			parse_e820_ext(data, pa_data);
@@ -402,7 +402,7 @@ static void __init e820_reserve_setup_data(void)
 		return;
 	pa_data = boot_params.hdr.setup_data;
 	while (pa_data) {
-		data = early_ioremap(pa_data, sizeof(*data));
+		data = early_memremap(pa_data, sizeof(*data));
 		e820_update_range(pa_data, sizeof(*data)+data->len,
 			 E820_RAM, E820_RESERVED_KERN);
 		found = 1;
@@ -428,7 +428,7 @@ static void __init reserve_early_setup_data(void)
 		return;
 	pa_data = boot_params.hdr.setup_data;
 	while (pa_data) {
-		data = early_ioremap(pa_data, sizeof(*data));
+		data = early_memremap(pa_data, sizeof(*data));
 		sprintf(buf, "setup data %x", data->type);
 		reserve_early(pa_data, pa_data+sizeof(*data)+data->len, buf);
 		pa_data = data->next;
arch/x86/kernel/smp.c +5 -1
index 361b7a4..18f9b19 100644
@@ -214,12 +214,16 @@ void smp_call_function_single_interrupt(struct pt_regs *regs)
 struct smp_ops smp_ops = {
 	.smp_prepare_boot_cpu = native_smp_prepare_boot_cpu,
 	.smp_prepare_cpus = native_smp_prepare_cpus,
-	.cpu_up = native_cpu_up,
 	.smp_cpus_done = native_smp_cpus_done,
 
 	.smp_send_stop = native_smp_send_stop,
 	.smp_send_reschedule = native_smp_send_reschedule,
 
+	.cpu_up = native_cpu_up,
+	.cpu_die = native_cpu_die,
+	.cpu_disable = native_cpu_disable,
+	.play_dead = native_play_dead,
+
 	.send_call_func_ipi = native_send_call_func_ipi,
 	.send_call_func_single_ipi = native_send_call_func_single_ipi,
 };
arch/x86/kernel/smpboot.c +95 -69

241 lines not on this page · raw message

arch/x86/kernel/tlb_32.c +8 -0
index fec1ece..e00534b 100644
@@ -241,3 +241,11 @@ void flush_tlb_all(void)
 	on_each_cpu(do_flush_tlb_all, NULL, 1);
 }
 
+void reset_lazy_tlbstate(void)
+{
+	int cpu = raw_smp_processor_id();
+
+	per_cpu(cpu_tlbstate, cpu).state = 0;
+	per_cpu(cpu_tlbstate, cpu).active_mm = &init_mm;
+}
+
arch/x86/kernel/traps.c renamed from arch/x86/kernel/traps_32.c +337 -523

143 lines not on this page · raw message

arch/x86/kernel/traps_64.c deleted +0 -1214

1,214 lines not on this page · raw message

arch/x86/kernel/vmlinux_64.lds.S +1 -1
index 201e81a..46e0544 100644

Lines of this file are not shown. View the raw message.

arch/x86/mach-generic/es7000.c +15 -5
index 520cca0..6513d41 100644

Lines of this file are not shown. View the raw message.

arch/x86/mm/Makefile +1 -5
index dfb932d..59f89b4 100644

Lines of this file are not shown. View the raw message.

arch/x86/mm/fault.c +6 -13
index 8f92cac..3f2b896 100644

Lines of this file are not shown. View the raw message.

arch/x86/mm/gup.c +5 -5
index 007bb06..4ba373c 100644

Lines of this file are not shown. View the raw message.

arch/x86/mm/init_32.c +1 -1
index c3789bb..c67d78d 100644

Lines of this file are not shown. View the raw message.

arch/x86/mm/init_64.c +3 -6
index 83e13f2..8bd797b 100644

Lines of this file are not shown. View the raw message.

arch/x86/mm/ioremap.c +134 -34

168 lines not on this page · raw message

arch/x86/mm/numa_32.c renamed from arch/x86/mm/discontig_32.c +0 -0
similarity index 100%
rename from arch/x86/mm/discontig_32.c
rename to arch/x86/mm/numa_32.c
arch/x86/xen/Kconfig +9 -1
index 3815e42..d3e6846 100644

Lines of this file are not shown. View the raw message.

arch/x86/xen/Makefile +10 -2
index 59c1e53..3139479 100644

Lines of this file are not shown. View the raw message.

arch/x86/xen/debugfs.c new file +123 -0

123 lines not on this page · raw message

arch/x86/xen/debugfs.h new file +10 -0
new file mode 100644
index 0000000..e281320

Lines of this file are not shown. View the raw message.

arch/x86/xen/enlighten.c +72 -117

189 lines not on this page · raw message

arch/x86/xen/irq.c new file +143 -0

143 lines not on this page · raw message

arch/x86/xen/mmu.c +230 -40

270 lines not on this page · raw message

arch/x86/xen/multicalls.c +113 -2

115 lines not on this page · raw message

arch/x86/xen/smp.c +66 -179

245 lines not on this page · raw message

arch/x86/xen/spinlock.c new file +428 -0

428 lines not on this page · raw message

arch/x86/xen/time.c +9 -3
index 685b774..004ba86 100644

Lines of this file are not shown. View the raw message.

arch/x86/xen/xen-asm_32.S +1 -1
index 2497a30..42786f5 100644

Lines of this file are not shown. View the raw message.

arch/x86/xen/xen-asm_64.S +1 -1
index 7f58304..3b9bda4 100644

Lines of this file are not shown. View the raw message.

arch/x86/xen/xen-ops.h +8 -0
index dd3c231..d7422dc 100644

Lines of this file are not shown. View the raw message.

drivers/block/xen-blkfront.c +1 -1
index 3ca643c..d5e7532 100644

Lines of this file are not shown. View the raw message.

drivers/char/hvc_xen.c +3 -3
index 6b70aa6..538ceea 100644

Lines of this file are not shown. View the raw message.

drivers/input/xen-kbdfront.c +2 -2
index 9ce3b3b..3ab6362 100644

Lines of this file are not shown. View the raw message.

drivers/net/xen-netfront.c +3 -3
index c749bdb..3c3dd40 100644

Lines of this file are not shown. View the raw message.

drivers/video/xen-fbfront.c +2 -2
index 47ed39b..a463b3d 100644

Lines of this file are not shown. View the raw message.

drivers/xen/Makefile +1 -0
index 363286c..d2a8fdf 100644

Lines of this file are not shown. View the raw message.

drivers/xen/balloon.c +15 -159

174 lines not on this page · raw message

drivers/xen/cpu_hotplug.c new file +90 -0

90 lines not on this page · raw message

drivers/xen/events.c +29 -11
index 0e0c285..c3290bc 100644

Lines of this file are not shown. View the raw message.

drivers/xen/grant-table.c +1 -1
index e9e1116..06592b9 100644

Lines of this file are not shown. View the raw message.

drivers/xen/xenbus/xenbus_probe.c +4 -4
index 57ceb53..7f24a98 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/acpi.h +0 -3
index 392e173..672e1e1 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/desc.h +19 -10
index b73fea5..f06adac 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/dma-mapping.h +0 -1
index 0fff2e0..219c33d 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/es7000/mpparse.h +1 -0
index 7b5c889..ed5a3ca 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/fixmap_32.h +2 -6
index 784e3e7..c6fde10 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/fixmap_64.h +6 -10
index dafb24b..a6ff01d 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/io.h +1 -14
index 72b7719..a233f83 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/io_64.h +0 -3
index 64429e9..ee6e086 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/irqflags.h +0 -21
index 424acb4..2bdab21 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/kdebug.h +1 -2
index 5ec3ad3..fbbab66 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/kprobes.h +0 -9
index bd84078..8a0748d 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/mach-default/mach_traps.h +0 -6
index de9ac3f..ff8778f 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/mmzone_64.h +1 -2
index 626b03a..6480f33 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/module.h +0 -2
index 48dc3e0..864f200 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/nmi.h +0 -4
index d5e715f..a53f829 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/page.h +7 -1
index c915747..d4f1d57 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/page_32.h +12 -1
index 72f7305..e8d80d1 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/paravirt.h +20 -0
index d7d358a..8d6ae2f 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/pgtable.h +13 -3
index ed93245..182f9d4 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/ptrace.h +0 -4
index ac578f1..a202552 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/smp.h +28 -12
index 29324c1..a6afc29 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/spinlock.h +7 -2
index 93adae3..8badab0 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/system.h +4 -1
index 34505dd..b20c894 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/tlbflush.h +10 -0
index ef68b76..3cdd08b 100644

Lines of this file are not shown. View the raw message.

include/asm-x86/traps.h +36 -37

73 lines not on this page · raw message

include/asm-x86/xen/hypervisor.h +12 -2
index 0ef3a88..445a247 100644

Lines of this file are not shown. View the raw message.

include/linux/kernel.h +1 -1
index 2651f80..75d81f1 100644

Lines of this file are not shown. View the raw message.

include/linux/mm.h +4 -9
index 72a15dc..c61ba10 100644

Lines of this file are not shown. View the raw message.

include/linux/mm_types.h +6 -4
index bf33413..9d49fa3 100644

Lines of this file are not shown. View the raw message.

include/linux/mmdebug.h new file +18 -0
new file mode 100644
index 0000000..8a55098

Lines of this file are not shown. View the raw message.

include/linux/sched.h +3 -3
index 3d9120c..272c353 100644

Lines of this file are not shown. View the raw message.

include/xen/events.h +2 -0
index 4680ff3..0d5f1ad 100644

Lines of this file are not shown. View the raw message.

lib/Kconfig.debug +9 -0
index 0b50481..082235b 100644

Lines of this file are not shown. View the raw message.

lib/cmdline.c +1 -1
index 5ba8a94..f5f3ad8 100644

Lines of this file are not shown. View the raw message.

mm/vmalloc.c +7 -0
index 85b9a0d..bba06c4 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.

#4 lore raw
In reply to Ingo Molnar
Quoted 25 lines · Ingo Molnar
Quoted 24 lines · Jeremy Fitzhardinge
Quoted 22 lines · Nick Piggin
Quoted 5 lines · Ingo Molnar

out-of-topic modifications in x86-v28-for-linus-phase6:
-------------------------------------------------------
include/linux/kernel.h # d974ae3: generic, memparse():
constify arg include/linux/mm.h # f7d0b92: mm: define
USE_SPLIT_PTLOCKS rath # 59ea746: MM: virtual address debug

Quoted 8 lines

include/linux/mm_types.h # f7d0b92: mm: define
USE_SPLIT_PTLOCKS rath include/linux/mmdebug.h # 7aa413d:
x86, MM: virtual address debug, c # 59ea746: MM: virtual address debug lib/cmdline.c
# d974ae3: generic, memparse(): constify arg mm/vmalloc.c
# 7aa413d: x86, MM: virtual address debug, c #
59ea746: MM:
virtual address debug

How come these kinds of things go into the x86 tree? Can't they be sent to other maintainer first (probably Andrew, in the case of random -mm stuff).

OK, it's pretty trivial stuff, but just on principle I can't see an advantage, and only disadvantages to doing this (and also I see the vmalloc change clashed with the vmalloc rewrite in -mm).

Quoted 8 lines
Quoted 4 lines

The memparse and split ptlocks changes went past Andrew. They ended up in Ingo's tree because 1) they're pretty trivial, and 2) there's x86-specific stuff which depends on them. Don't know about the vmalloc change.

yeah, correct, as Jeremy already noted they had dependencies with PAT and other ioremap relevant changes in the x86 tree so it had to be layered.

OK fair enough. I thought the virtual address debug stuff was a bit more significant touching common code.