Skip to contentSkip to conversation

x86 updates for v2.6.28, phase #10, roundup.

GIT PULL Ingo Molnar 1 participant 1 message Oct 10, 2008

Subsystems (15)
Documentation x86 USB Kbuild +11 more subsystems
lore
Share & tools
lore
#0 lore raw

Linus,

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

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

Remaining x86 topics: x86/xsave, x86/xen, x86/time, x86/setup,

                      x86/dumpstack, x86/cpu, x86/build, x86/spinlocks, 
                      x86/memory-corruption-check, x86/idle, 
                      x86/exports, x86/early-printk, x86/crashdump, 
                      x86/commandline, x86/microcode, x86/quirks.

out-of-topic modifications in x86-v28-for-linus-phase10:
--------------------------------------------------------

MAINTAINERS                        # e7f5b30: x86: AMD microcode patch loading 
drivers/base/power/main.c          # 5394f80: x86: check for and defend against
drivers/usb/host/ehci.h            # 0af3673: usb: move ehci reg def
drivers/video/Kconfig              # a57a5c2: x86 setup: remove remnants of CON
drivers/video/console/Kconfig      # a57a5c2: x86 setup: remove remnants of CON
include/linux/kernel.h             # 9c3254a: x86: fix compile error with corru

# bb577f9: x86: add periodic corruption chec # 5394f80: x86: check for and defend against
include/linux/usb/ehci_def.h # 0af3673: usb: move ehci reg def
scripts/Kbuild.include # 43789e2: kbuild: fix cc-option and cc-opti

Thanks,

Ingo

------------------>
Alexander van Heukelum (8):
dumpstack: x86: move die_nmi to dumpstack_32.c
dumpstack: x86: make printk_address equal
dumpstack: x86: add "end" parameter to valid_stack_ptr and print_context_stack
dumptrace: x86: consistently include loglevel, print stack switch
dumpstack: x86: use log_lvl and unify trace formatting
dumpstack: i386: make kstack= an early boot-param and add oops=panic
dumpstack: x86: various small unification steps
dumpstack: x86: various small unification steps, fix

Alexey Dobriyan (2):
x86 setup: remove remnants of CONFIG_VIDEO_SELECT (read: vga=)
x86: make setup_xstate_init() __init

Andrey Borzenkov (2):
x86: fix ghost EDD devices in /sys again
x86 setup: fix ghost entries under /sys/firmware/edd take 3

Arjan van de Ven (1):
x86: use round_jiffies() for the corruption check timer

Chuck Ebbert (1):
xen: make CONFIG_XEN_SAVE_RESTORE depend on CONFIG_XEN

David Woodhouse (1):
Fix date output in x86 microcode driver.

Dmitry Adamushko (6):
x86-microcode: fix unbalanced use of get_cpu()
x86-microcode: generic interface refactoring
x86, microcode rework, v2
x86: moved microcode.c to microcode_intel.c
x86, microcode_amd: cleanup, mark request_microcode_user() as unsupported x86/microcode: fix sleeping function called from invalid context at kernel/mutex.c

Glauber Costa (13):
x86: use user_mode macro
x86: coalesce tests
x86: set bp field in pt_regs properly
x86: use frame pointer information on x86_64 profile_pc
x86: remove SEGMENT_IS_FLAT_CODE
x86: use user_mode_vm instead of user_mode
x86: bind irq0 irq data to cpu0
x86: factor out irq initialization for x86_64
x86: make init_ISA_irqs nonstatic
x86: rename timer_event_interrupt to timer_interrupt
x86: replace hardcoded number
x86: wrap MCA_bus test around an ifdef
x86: move vgetcpu mode probing to cpu detection

H. Peter Anvin (5):
x86: boot/compressed/Makefile: fix "make clean"
x86: when building image.iso, use isohybrid if it exists
kbuild: fix cc-option and cc-option-yn
x86: prevent binutils from being "smart" and generating NOPLs for us Revert "x86: fix ghost EDD devices in /sys again"

Harvey Harrison (1):
x86: early_printk.c trivial sparse fixes

Hugh Dickins (1):
x86: add periodic corruption check

Ingo Molnar (8):
x86: usb debug port early console, fix
x86, microcode support: fix build error
x86, microcode: fix symbol exports
x86, microcode: fix module license string
x86, microcode rework, v2, fix
x86: add DMI quirk for AMI BIOS which corrupts address 0xc000 during resume
x86: reserve low 64K on AMI and Phoenix BIOS boxen
x86: add X86_RESERVE_LOW_64K

Jan Beulich (5):
x86: ticket spin locks: fix asm constraints
x86: ticket spin locks: factor out more common code
x86: ticket spin locks: reduce instruction dependencies
x86: init annotations in early_printk() setup
x86: adjust dependencies for CONFIG_X86_CMOV

Jeremy Fitzhardinge (6):
x86: check for and defend against BIOS memory corruption
x86: clean up memory corruption check and add more kernel parameters
x86: default corruption check to off, but put parameter default in Kconfig
x86: fix compile error with corruption checking disabled
xen: clean up x86-64 warnings
xen: remove unused balloon.h

Michal Januszewski (1):
x86: replace a magic number with a named constant in the VESA boot code

Paul Bolle (2):
x86 setup: remove DEF_INITSEG and DEF_SETUPSEG x86 setup: remove IMAGE_OFFSET

Peter Oruba (20):
x86: AMD microcode patch loading support v2
x86: moved Intel microcode patch loader declarations to seperate header file
x86: typedef removal
x86: move per CPU microcode structure declaration to header file
x86: move microcode.c to microcode_intel.c
x86: code split to two parts
x86: structure declaration renaming
x86: add AMD specific declarations
x86: first step of refactoring, introducing microcode_ops
x86: major refactoring
x86: AMD microcode patch loading support
x86: AMD microcode patch loader style corrections
x86: Intel microcode patch loader style corrections
x86: moved function declarations out from AMD microcode patch loader to heade file
x86: minor pointer type cast in AMD microcode patch loader
x86: Microcode patch loader style corrections
x86: Fixed NULL function pointer dereference in AMD microcode patch loader. x86, microcode rework, v2, renaming
x86, microcode rework, v2, renaming cont.
x86: microcode patch loader bugfix

Randy Dunlap (1):
x86, microcode_amd: fix shift warning

Yinghai Lu (5):
usb: move ehci reg def
x86: usb debug port early console, v4
x86: fix CONFIG_X86_RESERVE_LOW_64K=y
x86: fix macro with bad_bios_dmi_table
x86: cleanup, remove extra ifdef

 Documentation/kernel-parameters.txt |   26 +-
 MAINTAINERS                         |    5 +
 arch/x86/Kconfig                    |   90 ++++-
 arch/x86/Kconfig.debug              |   13 +
 arch/x86/Makefile_32.cpu            |    5 +
 arch/x86/boot/Makefile              |    5 +-
 arch/x86/boot/compressed/Makefile   |    8 +-
 arch/x86/boot/edd.c                 |    7 +-
 arch/x86/boot/video-vesa.c          |    2 +-
 arch/x86/configs/i386_defconfig     |    1 -
 arch/x86/configs/x86_64_defconfig   |    1 -
 arch/x86/kernel/Makefile            |    6 +-
 arch/x86/kernel/cpu/common.c        |   12 +
 arch/x86/kernel/dumpstack_32.c      |  157 ++++---
 arch/x86/kernel/dumpstack_64.c      |   38 +-
 arch/x86/kernel/early_printk.c      |  766 +++++++++++++++++++++++++++++++-
 arch/x86/kernel/entry_64.S          |    7 +
 arch/x86/kernel/irqinit_64.c        |   43 ++-
 arch/x86/kernel/microcode.c         |  853 -----------------------------------
 arch/x86/kernel/microcode_amd.c     |  435 ++++++++++++++++++
 arch/x86/kernel/microcode_core.c    |  508 +++++++++++++++++++++
 arch/x86/kernel/microcode_intel.c   |  480 ++++++++++++++++++++
 arch/x86/kernel/setup.c             |  196 ++++++++-
 arch/x86/kernel/time_32.c           |    7 +-
 arch/x86/kernel/time_64.c           |   23 +-
 arch/x86/kernel/traps.c             |   37 --
 arch/x86/kernel/xsave.c             |    2 +-
 arch/x86/mm/init_32.c               |    2 +
 arch/x86/mm/init_64.c               |    2 +
 arch/x86/xen/Kconfig                |    4 +-
 arch/x86/xen/enlighten.c            |   61 +--
 arch/x86/xen/xen-asm_64.S           |   20 +-
 drivers/base/power/main.c           |    1 +
 drivers/usb/host/ehci.h             |  138 +------
 drivers/video/Kconfig               |    2 -
 drivers/video/console/Kconfig       |   16 -
 drivers/xen/balloon.c               |    1 -
 include/asm-x86/boot.h              |    2 -
 include/asm-x86/microcode.h         |   47 ++
 include/asm-x86/processor.h         |   35 --
 include/asm-x86/segment.h           |    6 -
 include/asm-x86/spinlock.h          |   60 +--
 include/linux/kernel.h              |   17 +
 include/linux/usb/ehci_def.h        |  160 +++++++
 include/xen/balloon.h               |   61 ---
 scripts/Kbuild.include              |    4 +-
 46 files changed, 2992 insertions(+), 1380 deletions(-)
 delete mode 100644 arch/x86/kernel/microcode.c
 create mode 100644 arch/x86/kernel/microcode_amd.c
 create mode 100644 arch/x86/kernel/microcode_core.c
 create mode 100644 arch/x86/kernel/microcode_intel.c
 create mode 100644 include/asm-x86/microcode.h
 create mode 100644 include/linux/usb/ehci_def.h
 delete mode 100644 include/xen/balloon.h
Documentation/kernel-parameters.txt +25 -1
index c5d891f..998877b 100644
@@ -658,11 +658,12 @@ and is between 256 and 4096 characters. It is defined in the file
 	earlyprintk=	[X86-32,X86-64,SH,BLACKFIN]
 			earlyprintk=vga
 			earlyprintk=serial[,ttySn[,baudrate]]
+			earlyprintk=dbgp
 
 			Append ",keep" to not disable it when the real console
 			takes over.
 
-			Only vga or serial at a time, not both.
+			Only vga or serial or usb debug port at a time.
 
 			Currently only ttyS0 and ttyS1 are supported.
 
@@ -1227,6 +1228,29 @@ and is between 256 and 4096 characters. It is defined in the file
 			         or
 			         memmap=0x10000$0x18690000
 
+	memory_corruption_check=0/1 [X86]
+			Some BIOSes seem to corrupt the first 64k of
+			memory when doing things like suspend/resume.
+			Setting this option will scan the memory
+			looking for corruption.  Enabling this will
+			both detect corruption and prevent the kernel
+			from using the memory being corrupted.
+			However, its intended as a diagnostic tool; if
+			repeatable BIOS-originated corruption always
+			affects the same memory, you can use memmap=
+			to prevent the kernel from using that memory.
+
+	memory_corruption_check_size=size [X86]
+			By default it checks for corruption in the low
+			64k, making this memory unavailable for normal
+			use.  Use this parameter to scan for
+			corruption in more or less memory.
+
+	memory_corruption_check_period=seconds [X86]
+			By default it checks for corruption every 60
+			seconds.  Use this parameter to check at some
+			other rate.  0 disables periodic checking.
+
 	memtest=	[KNL,X86] Enable memtest
 			Format: <integer>
 			range: 0,4 : pattern number
MAINTAINERS +5 -0
index 3c124d7..0f5227e 100644
@@ -390,6 +390,11 @@ L:	[email protected]
 T:	git://git.kernel.org/pub/scm/linux/kernel/git/joro/linux-2.6-iommu.git
 S:	Supported
 
+AMD MICROCODE UPDATE SUPPORT
+P:      Peter Oruba
+M:      [email protected]
+S:      Supported
+
 AMS (Apple Motion Sensor) DRIVER
 P:	Stelian Pop
 M:	[email protected]
arch/x86/Kconfig +81 -9

110 lines not on this page · raw message

arch/x86/Kconfig.debug +13 -0
index 092f019..2a3dfbd 100644
@@ -43,6 +43,19 @@ config EARLY_PRINTK
 	  with klogd/syslogd or the X server. You should normally N here,
 	  unless you want to debug such a crash.
 
+config EARLY_PRINTK_DBGP
+	bool "Early printk via EHCI debug port"
+	default n
+	depends on EARLY_PRINTK && PCI
+	help
+	  Write kernel log output directly into the EHCI debug port.
+
+	  This is useful for kernel debugging when your machine crashes very
+	  early before the console code is initialized. For normal operation
+	  it is not recommended because it looks ugly and doesn't cooperate
+	  with klogd/syslogd or the X server. You should normally N here,
+	  unless you want to debug such a crash. You need usb debug device.
+
 config DEBUG_STACKOVERFLOW
 	bool "Check for stack overflows"
 	depends on DEBUG_KERNEL
arch/x86/Makefile_32.cpu +5 -0
index 12bdd85..80177ec 100644
@@ -44,3 +44,8 @@ cflags-$(CONFIG_MGEODEGX1)	+= -march=pentium-mmx
 # cpu entries
 cflags-$(CONFIG_X86_GENERIC) 	+= $(call tune,generic,$(call tune,i686))
 
+# Bug fix for binutils: this option is required in order to keep
+# binutils from generating NOPL instructions against our will.
+ifneq ($(CONFIG_X86_P6_NOP),y)
+cflags-y			+= $(call cc-option,-Wa$(comma)-mtune=generic32,)
+endif
arch/x86/boot/Makefile +2 -3
index 7ee102f..cd48c72 100644
@@ -72,9 +72,7 @@ KBUILD_CFLAGS	:= $(LINUXINCLUDE) -g -Os -D_SETUP -D__KERNEL__ \
 KBUILD_CFLAGS +=   $(call cc-option,-m32)
 KBUILD_AFLAGS	:= $(KBUILD_CFLAGS) -D__ASSEMBLY__
 
-$(obj)/zImage:  IMAGE_OFFSET := 0x1000
 $(obj)/zImage:  asflags-y := $(SVGA_MODE) $(RAMDISK)
-$(obj)/bzImage: IMAGE_OFFSET := 0x100000
 $(obj)/bzImage: ccflags-y := -D__BIG_KERNEL__
 $(obj)/bzImage: asflags-y := $(SVGA_MODE) $(RAMDISK) -D__BIG_KERNEL__
 $(obj)/bzImage: BUILDFLAGS   := -b
@@ -117,7 +115,7 @@ $(obj)/setup.bin: $(obj)/setup.elf FORCE
 	$(call if_changed,objcopy)
 
 $(obj)/compressed/vmlinux: FORCE
-	$(Q)$(MAKE) $(build)=$(obj)/compressed IMAGE_OFFSET=$(IMAGE_OFFSET) $@
+	$(Q)$(MAKE) $(build)=$(obj)/compressed $@
 
 # Set this if you want to pass append arguments to the zdisk/fdimage/isoimage kernel
 FDARGS =
@@ -181,6 +179,7 @@ isoimage: $(BOOTIMAGE)
 	mkisofs -J -r -o $(obj)/image.iso -b isolinux.bin -c boot.cat \
 		-no-emul-boot -boot-load-size 4 -boot-info-table \
 		$(obj)/isoimage
+	isohybrid $(obj)/image.iso 2>/dev/null || true
 	rm -rf $(obj)/isoimage
 
 zlilo: $(BOOTIMAGE)
arch/x86/boot/compressed/Makefile +4 -4
index 92fdd35..1771c80 100644
@@ -27,9 +27,8 @@ $(obj)/vmlinux.bin: vmlinux FORCE
 	$(call if_changed,objcopy)
 
 
-ifeq ($(CONFIG_X86_32),y)
-targets += vmlinux.bin.all vmlinux.relocs
-hostprogs-y := relocs
+targets += vmlinux.bin.all vmlinux.relocs relocs
+hostprogs-$(CONFIG_X86_32) += relocs
 
 quiet_cmd_relocs = RELOCS  $@
       cmd_relocs = $(obj)/relocs $< > $@;$(obj)/relocs --abs-relocs $<
@@ -43,6 +42,8 @@ quiet_cmd_relocbin = BUILD   $@
 $(obj)/vmlinux.bin.all: $(vmlinux.bin.all-y) FORCE
 	$(call if_changed,relocbin)
 
+ifeq ($(CONFIG_X86_32),y)
+
 ifdef CONFIG_RELOCATABLE
 $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin.all FORCE
 	$(call if_changed,gzip)
@@ -59,6 +60,5 @@ $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE
 LDFLAGS_piggy.o := -r --format binary --oformat elf64-x86-64 -T
 endif
 
-
 $(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.gz FORCE
 	$(call if_changed,ld)
arch/x86/boot/edd.c +6 -1
index d93cbc6..1aae8f3 100644
@@ -41,6 +41,7 @@ static u32 read_mbr_sig(u8 devno, struct edd_info *ei, u32 *mbrsig)
 	char *mbrbuf_ptr, *mbrbuf_end;
 	u32 buf_base, mbr_base;
 	extern char _end[];
+	u16 mbr_magic;
 
 	sector_size = ei->params.bytes_per_sector;
 	if (!sector_size)
@@ -58,11 +59,15 @@ static u32 read_mbr_sig(u8 devno, struct edd_info *ei, u32 *mbrsig)
 	if (mbrbuf_end > (char *)(size_t)boot_params.hdr.heap_end_ptr)
 		return -1;
 
+	memset(mbrbuf_ptr, 0, sector_size);
 	if (read_mbr(devno, mbrbuf_ptr))
 		return -1;
 
 	*mbrsig = *(u32 *)&mbrbuf_ptr[EDD_MBR_SIG_OFFSET];
-	return 0;
+	mbr_magic = *(u16 *)&mbrbuf_ptr[510];
+
+	/* check for valid MBR magic */
+	return mbr_magic == 0xAA55 ? 0 : -1;
 }
 
 static int get_edd_info(u8 devno, struct edd_info *ei)
arch/x86/boot/video-vesa.c +1 -1
index 401ad99..1e6fe02 100644
@@ -224,7 +224,7 @@ static void vesa_store_pm_info(void)
 static void vesa_store_mode_params_graphics(void)
 {
 	/* Tell the kernel we're in VESA graphics mode */
-	boot_params.screen_info.orig_video_isVGA = 0x23;
+	boot_params.screen_info.orig_video_isVGA = VIDEO_TYPE_VLFB;
 
 	/* Mode parameters */
 	boot_params.screen_info.vesa_attributes = vminfo.mode_attr;
arch/x86/configs/i386_defconfig +0 -1
index c54b710..13b8c86 100644
@@ -1533,7 +1533,6 @@ CONFIG_BACKLIGHT_CLASS_DEVICE=y
 CONFIG_VGA_CONSOLE=y
 CONFIG_VGACON_SOFT_SCROLLBACK=y
 CONFIG_VGACON_SOFT_SCROLLBACK_SIZE=64
-CONFIG_VIDEO_SELECT=y
 CONFIG_DUMMY_CONSOLE=y
 # CONFIG_FRAMEBUFFER_CONSOLE is not set
 CONFIG_LOGO=y
arch/x86/configs/x86_64_defconfig +0 -1
index 638bc85..f0a03d7 100644
@@ -1504,7 +1504,6 @@ CONFIG_BACKLIGHT_CLASS_DEVICE=y
 CONFIG_VGA_CONSOLE=y
 CONFIG_VGACON_SOFT_SCROLLBACK=y
 CONFIG_VGACON_SOFT_SCROLLBACK_SIZE=64
-CONFIG_VIDEO_SELECT=y
 CONFIG_DUMMY_CONSOLE=y
 # CONFIG_FRAMEBUFFER_CONSOLE is not set
 CONFIG_LOGO=y
arch/x86/kernel/Makefile +5 -1
index 4dc47a3..cb6ade4 100644
@@ -51,7 +51,6 @@ obj-$(CONFIG_X86_BIOS_REBOOT)	+= reboot.o
 obj-$(CONFIG_MCA)		+= mca_32.o
 obj-$(CONFIG_X86_MSR)		+= msr.o
 obj-$(CONFIG_X86_CPUID)		+= cpuid.o
-obj-$(CONFIG_MICROCODE)		+= microcode.o
 obj-$(CONFIG_PCI)		+= early-quirks.o
 apm-y				:= apm_32.o
 obj-$(CONFIG_APM)		+= apm.o
@@ -100,6 +99,11 @@ scx200-y			+= scx200_32.o
 
 obj-$(CONFIG_OLPC)		+= olpc.o
 
+microcode-y				:= microcode_core.o
+microcode-$(CONFIG_MICROCODE_INTEL)	+= microcode_intel.o
+microcode-$(CONFIG_MICROCODE_AMD)	+= microcode_amd.o
+obj-$(CONFIG_MICROCODE)			+= microcode.o
+
 ###
 # 64 bit specific files
 ifeq ($(CONFIG_X86_64),y)
arch/x86/kernel/cpu/common.c +12 -0
index e378a16..db08541 100644
@@ -730,12 +730,24 @@ static void __cpuinit identify_cpu(struct cpuinfo_x86 *c)
 #endif
 }
 
+#ifdef CONFIG_X86_64
+static void vgetcpu_set_mode(void)
+{
+	if (cpu_has(&boot_cpu_data, X86_FEATURE_RDTSCP))
+		vgetcpu_mode = VGETCPU_RDTSCP;
+	else
+		vgetcpu_mode = VGETCPU_LSL;
+}
+#endif
+
 void __init identify_boot_cpu(void)
 {
 	identify_cpu(&boot_cpu_data);
 #ifdef CONFIG_X86_32
 	sysenter_setup();
 	enable_sep_cpu();
+#else
+	vgetcpu_set_mode();
 #endif
 }
 
arch/x86/kernel/dumpstack_32.c +91 -66

295 lines not on this page · raw message

arch/x86/kernel/dumpstack_64.c +23 -15
index 6f15050..086cc81 100644
@@ -16,15 +16,18 @@
 
 #include <asm/stacktrace.h>
 
+#define STACKSLOTS_PER_LINE 4
+#define get_bp(bp) asm("movq %%rbp, %0" : "=r" (bp) :)
+
 int panic_on_unrecovered_nmi;
-int kstack_depth_to_print = 12;
+int kstack_depth_to_print = 3 * STACKSLOTS_PER_LINE;
 static unsigned int code_bytes = 64;
 static int die_counter;
 
 void printk_address(unsigned long address, int reliable)
 {
-	printk(" [<%016lx>] %s%pS\n",
-			address, reliable ?	"" : "? ", (void *) address);
+	printk(" [<%p>] %s%pS\n", (void *) address,
+			reliable ? "" : "? ", (void *) address);
 }
 
 static unsigned long *in_exception_stack(unsigned cpu, unsigned long stack,
@@ -141,7 +144,7 @@ print_context_stack(struct thread_info *tinfo,
 
 		addr = *stack;
 		if (__kernel_text_address(addr)) {
-			if ((unsigned long) stack == bp + 8) {
+			if ((unsigned long) stack == bp + sizeof(long)) {
 				ops->address(data, addr, 1);
 				frame = frame->next_frame;
 				bp = (unsigned long) frame;
@@ -177,7 +180,7 @@ void dump_trace(struct task_struct *task, struct pt_regs *regs,
 	if (!bp) {
 		if (task == current) {
 			/* Grab bp right from our regs */
-			asm("movq %%rbp, %0" : "=r" (bp) : );
+			get_bp(bp);
 		} else {
 			/* bp is the last reg pushed by switch_to */
 			bp = *(unsigned long *) task->thread.sp;
@@ -247,24 +250,29 @@ EXPORT_SYMBOL(dump_trace);
 static void
 print_trace_warning_symbol(void *data, char *msg, unsigned long symbol)
 {
+	printk(data);
 	print_symbol(msg, symbol);
 	printk("\n");
 }
 
 static void print_trace_warning(void *data, char *msg)
 {
-	printk("%s\n", msg);
+	printk("%s%s\n", (char *)data, msg);
 }
 
 static int print_trace_stack(void *data, char *name)
 {
-	printk(" <%s> ", name);
+	printk("%s <%s> ", (char *)data, name);
 	return 0;
 }
 
+/*
+ * Print one address/symbol entries per line.
+ */
 static void print_trace_address(void *data, unsigned long addr, int reliable)
 {
 	touch_nmi_watchdog();
+	printk(data);
 	printk_address(addr, reliable);
 }
 
@@ -279,7 +287,7 @@ static void
 show_trace_log_lvl(struct task_struct *task, struct pt_regs *regs,
 		unsigned long *stack, unsigned long bp, char *log_lvl)
 {
-	printk("Call Trace:\n");
+	printk("%sCall Trace:\n", log_lvl);
 	dump_trace(task, regs, stack, bp, &print_trace_ops, log_lvl);
 }
 
@@ -324,8 +332,8 @@ show_stack_log_lvl(struct task_struct *task, struct pt_regs *regs,
 		if (((long) stack & (THREAD_SIZE-1)) == 0)
 			break;
 		}
-		if (i && ((i % 4) == 0))
-			printk("\n");
+		if (i && ((i % STACKSLOTS_PER_LINE) == 0))
+			printk("\n%s", log_lvl);
 		printk(" %016lx", *stack++);
 		touch_nmi_watchdog();
 	}
@@ -348,7 +356,7 @@ void dump_stack(void)
 
 #ifdef CONFIG_FRAME_POINTER
 	if (!bp)
-		asm("movq %%rbp, %0" : "=r" (bp) : );
+		get_bp(bp);
 #endif
 
 	printk("Pid: %d, comm: %.20s %s %s %.*s\n",
@@ -383,15 +391,15 @@ void show_registers(struct pt_regs *regs)
 		unsigned char c;
 		u8 *ip;
 
-		printk("Stack: ");
+		printk(KERN_EMERG "Stack:\n");
 		show_stack_log_lvl(NULL, regs, (unsigned long *)sp,
-				regs->bp, "");
+				regs->bp, KERN_EMERG);
 
 		printk(KERN_EMERG "Code: ");
 
 		ip = (u8 *)regs->ip - code_prologue;
 		if (ip < (u8 *)PAGE_OFFSET || probe_kernel_address(ip, c)) {
-			/* try starting at RIP */
+			/* try starting at IP */
 			ip = (u8 *)regs->ip;
 			code_len = code_len - code_prologue + 1;
 		}
@@ -470,7 +478,7 @@ void __kprobes oops_end(unsigned long flags, struct pt_regs *regs, int signr)
 
 int __kprobes __die(const char *str, struct pt_regs *regs, long err)
 {
-	printk(KERN_EMERG "%s: %04lx [%u] ", str, err & 0xffff, ++die_counter);
+	printk(KERN_EMERG "%s: %04lx [#%d] ", str, err & 0xffff, ++die_counter);
 #ifdef CONFIG_PREEMPT
 	printk("PREEMPT ");
 #endif
arch/x86/kernel/early_printk.c +761 -5

838 lines not on this page · raw message

arch/x86/kernel/entry_64.S +7 -0
index 104fa65..1db6ce4 100644
@@ -667,6 +667,13 @@ END(stub_rt_sigreturn)
 	SAVE_ARGS
 	leaq -ARGOFFSET(%rsp),%rdi	# arg1 for handler
 	pushq %rbp
+	/*
+	 * Save rbp twice: One is for marking the stack frame, as usual, and the
+	 * other, to fill pt_regs properly. This is because bx comes right
+	 * before the last saved register in that structure, and not bp. If the
+	 * base pointer were in the place bx is today, this would not be needed.
+	 */
+	movq %rbp, -8(%rsp)
 	CFI_ADJUST_CFA_OFFSET	8
 	CFI_REL_OFFSET		rbp, 0
 	movq %rsp,%rbp
arch/x86/kernel/irqinit_64.c +27 -16

68 lines not on this page · raw message

arch/x86/kernel/microcode.c deleted +0 -853

853 lines not on this page · raw message

arch/x86/kernel/microcode_amd.c new file +435 -0

435 lines not on this page · raw message

arch/x86/kernel/microcode_core.c new file +508 -0

52 lines not on this page · raw message

arch/x86/kernel/microcode_intel.c new file +480 -0

480 lines not on this page · raw message

arch/x86/kernel/setup.c +194 -2

196 lines not on this page · raw message

arch/x86/kernel/time_32.c +4 -3
index bbecf8b..77b400f 100644

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

arch/x86/kernel/time_64.c +16 -7
index e3d49c5..cb19d65 100644

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

arch/x86/kernel/traps.c +0 -37
index ffb131f..e062974 100644

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

arch/x86/kernel/xsave.c +1 -1
index 07713d6..ed5274a 100644

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

arch/x86/mm/init_32.c +2 -0
index d3fc121..1dcba3a 100644

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

arch/x86/mm/init_64.c +2 -0
index 747f6c9..a624017 100644

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

arch/x86/xen/Kconfig +2 -2
index d3e6846..87b9ab1 100644

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

arch/x86/xen/enlighten.c +10 -51

61 lines not on this page · raw message

arch/x86/xen/xen-asm_64.S +17 -3
index 3b9bda4..05794c5 100644

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

drivers/base/power/main.c +1 -0
index 273a944..bf6d355 100644

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

drivers/usb/host/ehci.h +1 -137

138 lines not on this page · raw message

drivers/video/Kconfig +0 -2
index 70d135e..3773d7d 100644

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

drivers/video/console/Kconfig +0 -16
index 06f87b0..2f50a80 100644

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

drivers/xen/balloon.c +0 -1
index a51f3e1..8c83abc 100644

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

include/asm-x86/boot.h +0 -2
index 825de5d..1d63bd5 100644

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

include/asm-x86/microcode.h new file +47 -0

47 lines not on this page · raw message

include/asm-x86/processor.h +0 -35
index c7d3546..ee7cbb3 100644

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

include/asm-x86/segment.h +0 -6
index ea5f0a8..5d6e694 100644

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

include/asm-x86/spinlock.h +25 -35

60 lines not on this page · raw message

include/linux/kernel.h +17 -0
index 75d81f1..b8fd749 100644

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

include/linux/usb/ehci_def.h new file +160 -0

160 lines not on this page · raw message

include/xen/balloon.h deleted +0 -61

61 lines not on this page · raw message

scripts/Kbuild.include +2 -2
index d64e6ba..982dcae 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.