diff options
| -rw-r--r-- | arch/x86/Kconfig.debug | 1 | ||||
| -rw-r--r-- | arch/x86/boot/Makefile | 5 | ||||
| -rw-r--r-- | arch/x86/configs/i386_defconfig | 3 | ||||
| -rw-r--r-- | arch/x86/configs/x86_64_defconfig | 3 | ||||
| -rw-r--r-- | arch/x86/events/core.c | 4 | ||||
| -rw-r--r-- | arch/x86/include/asm/io.h | 4 | ||||
| -rw-r--r-- | arch/x86/include/asm/mmu_context.h | 2 | ||||
| -rw-r--r-- | arch/x86/kernel/acpi/boot.c | 8 | ||||
| -rw-r--r-- | arch/x86/kernel/apic/io_apic.c | 2 | ||||
| -rw-r--r-- | arch/x86/kernel/cpu/amd.c | 1 | ||||
| -rw-r--r-- | arch/x86/kernel/devicetree.c | 3 | ||||
| -rw-r--r-- | arch/x86/math-emu/Makefile | 4 | ||||
| -rw-r--r-- | arch/x86/math-emu/fpu_emu.h | 2 | ||||
| -rw-r--r-- | arch/x86/math-emu/reg_compare.c | 16 | ||||
| -rw-r--r-- | arch/x86/platform/intel-mid/device_libs/platform_max7315.c | 6 | ||||
| -rw-r--r-- | arch/x86/platform/uv/tlb_uv.c | 29 |
16 files changed, 55 insertions, 38 deletions
diff --git a/arch/x86/Kconfig.debug b/arch/x86/Kconfig.debug index fcb7604172ce..cd20ca0b4043 100644 --- a/arch/x86/Kconfig.debug +++ b/arch/x86/Kconfig.debug | |||
| @@ -348,6 +348,7 @@ config X86_DEBUG_FPU | |||
| 348 | 348 | ||
| 349 | config PUNIT_ATOM_DEBUG | 349 | config PUNIT_ATOM_DEBUG |
| 350 | tristate "ATOM Punit debug driver" | 350 | tristate "ATOM Punit debug driver" |
| 351 | depends on PCI | ||
| 351 | select DEBUG_FS | 352 | select DEBUG_FS |
| 352 | select IOSF_MBI | 353 | select IOSF_MBI |
| 353 | ---help--- | 354 | ---help--- |
diff --git a/arch/x86/boot/Makefile b/arch/x86/boot/Makefile index 0d810fb15eac..d88a2fddba8c 100644 --- a/arch/x86/boot/Makefile +++ b/arch/x86/boot/Makefile | |||
| @@ -73,12 +73,13 @@ UBSAN_SANITIZE := n | |||
| 73 | $(obj)/bzImage: asflags-y := $(SVGA_MODE) | 73 | $(obj)/bzImage: asflags-y := $(SVGA_MODE) |
| 74 | 74 | ||
| 75 | quiet_cmd_image = BUILD $@ | 75 | quiet_cmd_image = BUILD $@ |
| 76 | silent_redirect_image = >/dev/null | ||
| 76 | cmd_image = $(obj)/tools/build $(obj)/setup.bin $(obj)/vmlinux.bin \ | 77 | cmd_image = $(obj)/tools/build $(obj)/setup.bin $(obj)/vmlinux.bin \ |
| 77 | $(obj)/zoffset.h $@ | 78 | $(obj)/zoffset.h $@ $($(quiet)redirect_image) |
| 78 | 79 | ||
| 79 | $(obj)/bzImage: $(obj)/setup.bin $(obj)/vmlinux.bin $(obj)/tools/build FORCE | 80 | $(obj)/bzImage: $(obj)/setup.bin $(obj)/vmlinux.bin $(obj)/tools/build FORCE |
| 80 | $(call if_changed,image) | 81 | $(call if_changed,image) |
| 81 | @echo 'Kernel: $@ is ready' ' (#'`cat .version`')' | 82 | @$(kecho) 'Kernel: $@ is ready' ' (#'`cat .version`')' |
| 82 | 83 | ||
| 83 | OBJCOPYFLAGS_vmlinux.bin := -O binary -R .note -R .comment -S | 84 | OBJCOPYFLAGS_vmlinux.bin := -O binary -R .note -R .comment -S |
| 84 | $(obj)/vmlinux.bin: $(obj)/compressed/vmlinux FORCE | 85 | $(obj)/vmlinux.bin: $(obj)/compressed/vmlinux FORCE |
diff --git a/arch/x86/configs/i386_defconfig b/arch/x86/configs/i386_defconfig index 6cf79e1a6830..0eb9f92f3717 100644 --- a/arch/x86/configs/i386_defconfig +++ b/arch/x86/configs/i386_defconfig | |||
| @@ -1,5 +1,4 @@ | |||
| 1 | # CONFIG_64BIT is not set | 1 | # CONFIG_64BIT is not set |
| 2 | CONFIG_EXPERIMENTAL=y | ||
| 3 | # CONFIG_LOCALVERSION_AUTO is not set | 2 | # CONFIG_LOCALVERSION_AUTO is not set |
| 4 | CONFIG_SYSVIPC=y | 3 | CONFIG_SYSVIPC=y |
| 5 | CONFIG_POSIX_MQUEUE=y | 4 | CONFIG_POSIX_MQUEUE=y |
| @@ -125,7 +124,6 @@ CONFIG_NF_CONNTRACK_IPV4=y | |||
| 125 | CONFIG_IP_NF_IPTABLES=y | 124 | CONFIG_IP_NF_IPTABLES=y |
| 126 | CONFIG_IP_NF_FILTER=y | 125 | CONFIG_IP_NF_FILTER=y |
| 127 | CONFIG_IP_NF_TARGET_REJECT=y | 126 | CONFIG_IP_NF_TARGET_REJECT=y |
| 128 | CONFIG_IP_NF_TARGET_ULOG=y | ||
| 129 | CONFIG_NF_NAT=y | 127 | CONFIG_NF_NAT=y |
| 130 | CONFIG_IP_NF_TARGET_MASQUERADE=y | 128 | CONFIG_IP_NF_TARGET_MASQUERADE=y |
| 131 | CONFIG_IP_NF_MANGLE=y | 129 | CONFIG_IP_NF_MANGLE=y |
| @@ -255,7 +253,6 @@ CONFIG_USB_OHCI_HCD=y | |||
| 255 | CONFIG_USB_UHCI_HCD=y | 253 | CONFIG_USB_UHCI_HCD=y |
| 256 | CONFIG_USB_PRINTER=y | 254 | CONFIG_USB_PRINTER=y |
| 257 | CONFIG_USB_STORAGE=y | 255 | CONFIG_USB_STORAGE=y |
| 258 | CONFIG_USB_LIBUSUAL=y | ||
| 259 | CONFIG_EDAC=y | 256 | CONFIG_EDAC=y |
| 260 | CONFIG_RTC_CLASS=y | 257 | CONFIG_RTC_CLASS=y |
| 261 | # CONFIG_RTC_HCTOSYS is not set | 258 | # CONFIG_RTC_HCTOSYS is not set |
diff --git a/arch/x86/configs/x86_64_defconfig b/arch/x86/configs/x86_64_defconfig index de45f57b410d..4a4b16e56d35 100644 --- a/arch/x86/configs/x86_64_defconfig +++ b/arch/x86/configs/x86_64_defconfig | |||
| @@ -1,4 +1,3 @@ | |||
| 1 | CONFIG_EXPERIMENTAL=y | ||
| 2 | # CONFIG_LOCALVERSION_AUTO is not set | 1 | # CONFIG_LOCALVERSION_AUTO is not set |
| 3 | CONFIG_SYSVIPC=y | 2 | CONFIG_SYSVIPC=y |
| 4 | CONFIG_POSIX_MQUEUE=y | 3 | CONFIG_POSIX_MQUEUE=y |
| @@ -124,7 +123,6 @@ CONFIG_NF_CONNTRACK_IPV4=y | |||
| 124 | CONFIG_IP_NF_IPTABLES=y | 123 | CONFIG_IP_NF_IPTABLES=y |
| 125 | CONFIG_IP_NF_FILTER=y | 124 | CONFIG_IP_NF_FILTER=y |
| 126 | CONFIG_IP_NF_TARGET_REJECT=y | 125 | CONFIG_IP_NF_TARGET_REJECT=y |
| 127 | CONFIG_IP_NF_TARGET_ULOG=y | ||
| 128 | CONFIG_NF_NAT=y | 126 | CONFIG_NF_NAT=y |
| 129 | CONFIG_IP_NF_TARGET_MASQUERADE=y | 127 | CONFIG_IP_NF_TARGET_MASQUERADE=y |
| 130 | CONFIG_IP_NF_MANGLE=y | 128 | CONFIG_IP_NF_MANGLE=y |
| @@ -251,7 +249,6 @@ CONFIG_USB_OHCI_HCD=y | |||
| 251 | CONFIG_USB_UHCI_HCD=y | 249 | CONFIG_USB_UHCI_HCD=y |
| 252 | CONFIG_USB_PRINTER=y | 250 | CONFIG_USB_PRINTER=y |
| 253 | CONFIG_USB_STORAGE=y | 251 | CONFIG_USB_STORAGE=y |
| 254 | CONFIG_USB_LIBUSUAL=y | ||
| 255 | CONFIG_EDAC=y | 252 | CONFIG_EDAC=y |
| 256 | CONFIG_RTC_CLASS=y | 253 | CONFIG_RTC_CLASS=y |
| 257 | # CONFIG_RTC_HCTOSYS is not set | 254 | # CONFIG_RTC_HCTOSYS is not set |
diff --git a/arch/x86/events/core.c b/arch/x86/events/core.c index ff1ea2fb9705..8e3db8f642a7 100644 --- a/arch/x86/events/core.c +++ b/arch/x86/events/core.c | |||
| @@ -191,8 +191,8 @@ static void release_pmc_hardware(void) {} | |||
| 191 | 191 | ||
| 192 | static bool check_hw_exists(void) | 192 | static bool check_hw_exists(void) |
| 193 | { | 193 | { |
| 194 | u64 val, val_fail, val_new= ~0; | 194 | u64 val, val_fail = -1, val_new= ~0; |
| 195 | int i, reg, reg_fail, ret = 0; | 195 | int i, reg, reg_fail = -1, ret = 0; |
| 196 | int bios_fail = 0; | 196 | int bios_fail = 0; |
| 197 | int reg_safe = -1; | 197 | int reg_safe = -1; |
| 198 | 198 | ||
diff --git a/arch/x86/include/asm/io.h b/arch/x86/include/asm/io.h index 7afb0e2f07f4..48febf07e828 100644 --- a/arch/x86/include/asm/io.h +++ b/arch/x86/include/asm/io.h | |||
| @@ -328,13 +328,13 @@ static inline unsigned type in##bwl##_p(int port) \ | |||
| 328 | static inline void outs##bwl(int port, const void *addr, unsigned long count) \ | 328 | static inline void outs##bwl(int port, const void *addr, unsigned long count) \ |
| 329 | { \ | 329 | { \ |
| 330 | asm volatile("rep; outs" #bwl \ | 330 | asm volatile("rep; outs" #bwl \ |
| 331 | : "+S"(addr), "+c"(count) : "d"(port)); \ | 331 | : "+S"(addr), "+c"(count) : "d"(port) : "memory"); \ |
| 332 | } \ | 332 | } \ |
| 333 | \ | 333 | \ |
| 334 | static inline void ins##bwl(int port, void *addr, unsigned long count) \ | 334 | static inline void ins##bwl(int port, void *addr, unsigned long count) \ |
| 335 | { \ | 335 | { \ |
| 336 | asm volatile("rep; ins" #bwl \ | 336 | asm volatile("rep; ins" #bwl \ |
| 337 | : "+D"(addr), "+c"(count) : "d"(port)); \ | 337 | : "+D"(addr), "+c"(count) : "d"(port) : "memory"); \ |
| 338 | } | 338 | } |
| 339 | 339 | ||
| 340 | BUILDIO(b, b, char) | 340 | BUILDIO(b, b, char) |
diff --git a/arch/x86/include/asm/mmu_context.h b/arch/x86/include/asm/mmu_context.h index ecfcb6643c9b..265c907d7d4c 100644 --- a/arch/x86/include/asm/mmu_context.h +++ b/arch/x86/include/asm/mmu_context.h | |||
| @@ -293,7 +293,7 @@ static inline unsigned long __get_current_cr3_fast(void) | |||
| 293 | unsigned long cr3 = __pa(this_cpu_read(cpu_tlbstate.loaded_mm)->pgd); | 293 | unsigned long cr3 = __pa(this_cpu_read(cpu_tlbstate.loaded_mm)->pgd); |
| 294 | 294 | ||
| 295 | /* For now, be very restrictive about when this can be called. */ | 295 | /* For now, be very restrictive about when this can be called. */ |
| 296 | VM_WARN_ON(in_nmi() || !in_atomic()); | 296 | VM_WARN_ON(in_nmi() || preemptible()); |
| 297 | 297 | ||
| 298 | VM_BUG_ON(cr3 != __read_cr3()); | 298 | VM_BUG_ON(cr3 != __read_cr3()); |
| 299 | return cr3; | 299 | return cr3; |
diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c index 6bb680671088..7491e73d9253 100644 --- a/arch/x86/kernel/acpi/boot.c +++ b/arch/x86/kernel/acpi/boot.c | |||
| @@ -347,6 +347,14 @@ static void __init mp_override_legacy_irq(u8 bus_irq, u8 polarity, u8 trigger, | |||
| 347 | struct mpc_intsrc mp_irq; | 347 | struct mpc_intsrc mp_irq; |
| 348 | 348 | ||
| 349 | /* | 349 | /* |
| 350 | * Check bus_irq boundary. | ||
| 351 | */ | ||
| 352 | if (bus_irq >= NR_IRQS_LEGACY) { | ||
| 353 | pr_warn("Invalid bus_irq %u for legacy override\n", bus_irq); | ||
| 354 | return; | ||
| 355 | } | ||
| 356 | |||
| 357 | /* | ||
| 350 | * Convert 'gsi' to 'ioapic.pin'. | 358 | * Convert 'gsi' to 'ioapic.pin'. |
| 351 | */ | 359 | */ |
| 352 | ioapic = mp_find_ioapic(gsi); | 360 | ioapic = mp_find_ioapic(gsi); |
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c index b4f5f73febdb..237e9c2341c7 100644 --- a/arch/x86/kernel/apic/io_apic.c +++ b/arch/x86/kernel/apic/io_apic.c | |||
| @@ -2093,7 +2093,7 @@ static inline void __init check_timer(void) | |||
| 2093 | int idx; | 2093 | int idx; |
| 2094 | idx = find_irq_entry(apic1, pin1, mp_INT); | 2094 | idx = find_irq_entry(apic1, pin1, mp_INT); |
| 2095 | if (idx != -1 && irq_trigger(idx)) | 2095 | if (idx != -1 && irq_trigger(idx)) |
| 2096 | unmask_ioapic_irq(irq_get_chip_data(0)); | 2096 | unmask_ioapic_irq(irq_get_irq_data(0)); |
| 2097 | } | 2097 | } |
| 2098 | irq_domain_deactivate_irq(irq_data); | 2098 | irq_domain_deactivate_irq(irq_data); |
| 2099 | irq_domain_activate_irq(irq_data); | 2099 | irq_domain_activate_irq(irq_data); |
diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c index bb5abe8f5fd4..3b9e220621f8 100644 --- a/arch/x86/kernel/cpu/amd.c +++ b/arch/x86/kernel/cpu/amd.c | |||
| @@ -134,6 +134,7 @@ static void init_amd_k6(struct cpuinfo_x86 *c) | |||
| 134 | 134 | ||
| 135 | n = K6_BUG_LOOP; | 135 | n = K6_BUG_LOOP; |
| 136 | f_vide = vide; | 136 | f_vide = vide; |
| 137 | OPTIMIZER_HIDE_VAR(f_vide); | ||
