Skip to content

Commit 45e713e

Browse files
committed
Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
* 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: intr_remapping: Fix section mismatch in ir_dev_scope_init() intel-iommu: Fix section mismatch in dmar_parse_rmrr_atsr_dev() x86, amd: Fix up numa_node information for AMD CPU family 15h model 0-0fh northbridge functions x86, AMD: Correct align_va_addr documentation x86/rtc, mrst: Don't register a platform RTC device for for Intel MID platforms x86/mrst: Battery fixes x86/paravirt: PTE updates in k(un)map_atomic need to be synchronous, regardless of lazy_mmu mode x86: Fix "Acer Aspire 1" reboot hang x86/mtrr: Resolve inconsistency with Intel processor manual x86: Document rdmsr_safe restrictions x86, microcode: Fix the failure path of microcode update driver init code Add TAINT_FIRMWARE_WORKAROUND on MTRR fixup x86/mpparse: Account for bus types other than ISA and PCI x86, mrst: Change the pmic_gpio device type to IPC mrst: Added some platform data for the SFI translations x86,mrst: Power control commands update x86/reboot: Blacklist Dell OptiPlex 990 known to require PCI reboot x86, UV: Fix UV2 hub part number x86: Add user_mode_vm check in stack_overflow_check
2 parents 232ea34 + 61ed26e commit 45e713e

19 files changed

Lines changed: 164 additions & 39 deletions

File tree

‎Documentation/kernel-parameters.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,8 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
315315
CPU-intensive style benchmark, and it can vary highly in
316316
a microbenchmark depending on workload and compiler.
317317

318-
1: only for 32-bit processes
319-
2: only for 64-bit processes
318+
32: only for 32-bit processes
319+
64: only for 64-bit processes
320320
on: enable for both 32- and 64-bit processes
321321
off: disable for both 32- and 64-bit processes
322322

‎arch/x86/include/asm/intel_scu_ipc.h‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@
33

44
#include <linux/notifier.h>
55

6-
#define IPCMSG_VRTC 0xFA /* Set vRTC device */
7-
8-
/* Command id associated with message IPCMSG_VRTC */
9-
#define IPC_CMD_VRTC_SETTIME 1 /* Set time */
10-
#define IPC_CMD_VRTC_SETALARM 2 /* Set alarm */
6+
#define IPCMSG_WARM_RESET 0xF0
7+
#define IPCMSG_COLD_RESET 0xF1
8+
#define IPCMSG_SOFT_RESET 0xF2
9+
#define IPCMSG_COLD_BOOT 0xF3
10+
11+
#define IPCMSG_VRTC 0xFA /* Set vRTC device */
12+
/* Command id associated with message IPCMSG_VRTC */
13+
#define IPC_CMD_VRTC_SETTIME 1 /* Set time */
14+
#define IPC_CMD_VRTC_SETALARM 2 /* Set alarm */
1115

1216
/* Read single register */
1317
int intel_scu_ipc_ioread8(u16 addr, u8 *data);

‎arch/x86/include/asm/mrst.h‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,20 @@ enum mrst_cpu_type {
3131
};
3232

3333
extern enum mrst_cpu_type __mrst_cpu_chip;
34+
35+
#ifdef CONFIG_X86_INTEL_MID
36+
3437
static inline enum mrst_cpu_type mrst_identify_cpu(void)
3538
{
3639
return __mrst_cpu_chip;
3740
}
3841

42+
#else /* !CONFIG_X86_INTEL_MID */
43+
44+
#define mrst_identify_cpu() (0)
45+
46+
#endif /* !CONFIG_X86_INTEL_MID */
47+
3948
enum mrst_timer_options {
4049
MRST_TIMER_DEFAULT,
4150
MRST_TIMER_APBT_ONLY,

‎arch/x86/include/asm/msr.h‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,14 @@ static inline int wrmsr_safe(unsigned msr, unsigned low, unsigned high)
169169
return native_write_msr_safe(msr, low, high);
170170
}
171171

172-
/* rdmsr with exception handling */
172+
/*
173+
* rdmsr with exception handling.
174+
*
175+
* Please note that the exception handling works only after we've
176+
* switched to the "smart" #GP handler in trap_init() which knows about
177+
* exception tables - using this macro earlier than that causes machine
178+
* hangs on boxes which do not implement the @msr in the first argument.
179+
*/
173180
#define rdmsr_safe(msr, p1, p2) \
174181
({ \
175182
int __err; \

‎arch/x86/include/asm/uv/uv_mmrs.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757

5858
#define UV1_HUB_PART_NUMBER 0x88a5
5959
#define UV2_HUB_PART_NUMBER 0x8eb8
60+
#define UV2_HUB_PART_NUMBER_X 0x1111
6061

6162
/* Compat: if this #define is present, UV headers support UV2 */
6263
#define UV2_HUB_IS_SUPPORTED 1

‎arch/x86/kernel/apic/x2apic_uv_x.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ static int __init early_get_pnodeid(void)
9393

9494
if (node_id.s.part_number == UV2_HUB_PART_NUMBER)
9595
uv_min_hub_revision_id += UV2_HUB_REVISION_BASE - 1;
96+
if (node_id.s.part_number == UV2_HUB_PART_NUMBER_X)
97+
uv_min_hub_revision_id += UV2_HUB_REVISION_BASE - 1;
9698

9799
uv_hub_info->hub_revision = uv_min_hub_revision_id;
98100
pnode = (node_id.s.node_id >> 1) & ((1 << m_n_config.s.n_skt) - 1);

‎arch/x86/kernel/cpu/mtrr/generic.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,7 @@ static void generic_get_mtrr(unsigned int reg, unsigned long *base,
547547

548548
if (tmp != mask_lo) {
549549
printk(KERN_WARNING "mtrr: your BIOS has configured an incorrect mask, fixing it.\n");
550+
add_taint(TAINT_FIRMWARE_WORKAROUND);
550551
mask_lo = tmp;
551552
}
552553
}
@@ -693,6 +694,7 @@ static void prepare_set(void) __acquires(set_atomicity_lock)
693694

694695
/* Disable MTRRs, and set the default type to uncached */
695696
mtrr_wrmsr(MSR_MTRRdefType, deftype_lo & ~0xcff, deftype_hi);
697+
wbinvd();
696698
}
697699

698700
static void post_set(void) __releases(set_atomicity_lock)

‎arch/x86/kernel/irq_64.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ static inline void stack_overflow_check(struct pt_regs *regs)
3838
#ifdef CONFIG_DEBUG_STACKOVERFLOW
3939
u64 curbase = (u64)task_stack_page(current);
4040

41+
if (user_mode_vm(regs))
42+
return;
43+
4144
WARN_ONCE(regs->sp >= curbase &&
4245
regs->sp <= curbase + THREAD_SIZE &&
4346
regs->sp < curbase + sizeof(struct thread_info) +

‎arch/x86/kernel/microcode_core.c‎

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ static int __init microcode_dev_init(void)
256256
return 0;
257257
}
258258

259-
static void microcode_dev_exit(void)
259+
static void __exit microcode_dev_exit(void)
260260
{
261261
misc_deregister(&microcode_dev);
262262
}
@@ -519,10 +519,8 @@ static int __init microcode_init(void)
519519

520520
microcode_pdev = platform_device_register_simple("microcode", -1,
521521
NULL, 0);
522-
if (IS_ERR(microcode_pdev)) {
523-
microcode_dev_exit();
522+
if (IS_ERR(microcode_pdev))
524523
return PTR_ERR(microcode_pdev);
525-
}
526524

527525
get_online_cpus();
528526
mutex_lock(&microcode_mutex);
@@ -532,14 +530,12 @@ static int __init microcode_init(void)
532530
mutex_unlock(&microcode_mutex);
533531
put_online_cpus();
534532

535-
if (error) {
536-
platform_device_unregister(microcode_pdev);
537-
return error;
538-
}
533+
if (error)
534+
goto out_pdev;
539535

540536
error = microcode_dev_init();
541537
if (error)
542-
return error;
538+
goto out_sysdev_driver;
543539

544540
register_syscore_ops(&mc_syscore_ops);
545541
register_hotcpu_notifier(&mc_cpu_notifier);
@@ -548,6 +544,20 @@ static int __init microcode_init(void)
548544
" <tigran@aivazian.fsnet.co.uk>, Peter Oruba\n");
549545

550546
return 0;
547+
548+
out_sysdev_driver:
549+
get_online_cpus();
550+
mutex_lock(&microcode_mutex);
551+
552+
sysdev_driver_unregister(&cpu_sysdev_class, &mc_sysdev_driver);
553+
554+
mutex_unlock(&microcode_mutex);
555+
put_online_cpus();
556+
557+
out_pdev:
558+
platform_device_unregister(microcode_pdev);
559+
return error;
560+
551561
}
552562
module_init(microcode_init);
553563

‎arch/x86/kernel/mpparse.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ static void __init MP_bus_info(struct mpc_bus *m)
9595
}
9696
#endif
9797

98+
set_bit(m->busid, mp_bus_not_pci);
9899
if (strncmp(str, BUSTYPE_ISA, sizeof(BUSTYPE_ISA) - 1) == 0) {
99-
set_bit(m->busid, mp_bus_not_pci);
100100
#if defined(CONFIG_EISA) || defined(CONFIG_MCA)
101101
mp_bus_id_to_type[m->busid] = MP_BUS_ISA;
102102
#endif

0 commit comments

Comments
 (0)