Skip to content

Commit 377b5bf

Browse files
committed
Merge remote-tracking branch 'stable/linux-3.12.y' into rpi-3.12.y
2 parents 01581a5 + 8097be3 commit 377b5bf

183 files changed

Lines changed: 1947 additions & 1127 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/kernel-parameters.txt‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,9 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
343343
no: ACPI OperationRegions are not marked as reserved,
344344
no further checks are performed.
345345

346+
acpi_no_memhotplug [ACPI] Disable memory hotplug. Useful for kdump
347+
kernels.
348+
346349
add_efi_memmap [EFI; X86] Include EFI memory map in
347350
kernel's map of available physical RAM.
348351

‎Documentation/vm/hwpoison.txt‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ PR_MCE_KILL
8484
PR_MCE_KILL_EARLY: Early kill
8585
PR_MCE_KILL_LATE: Late kill
8686
PR_MCE_KILL_DEFAULT: Use system global default
87+
Note that if you want to have a dedicated thread which handles
88+
the SIGBUS(BUS_MCEERR_AO) on behalf of the process, you should
89+
call prctl(PR_MCE_KILL_EARLY) on the designated thread. Otherwise,
90+
the SIGBUS is sent to the main thread.
91+
8792
PR_MCE_KILL_GET
8893
return current mode
8994

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
VERSION = 3
22
PATCHLEVEL = 12
3-
SUBLEVEL = 23
3+
SUBLEVEL = 24
44
EXTRAVERSION =
55
NAME = One Giant Leap for Frogkind
66

‎arch/arm/kernel/stacktrace.c‎

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,16 @@ static int save_trace(struct stackframe *frame, void *d)
8383
return trace->nr_entries >= trace->max_entries;
8484
}
8585

86-
void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace)
86+
/* This must be noinline to so that our skip calculation works correctly */
87+
static noinline void __save_stack_trace(struct task_struct *tsk,
88+
struct stack_trace *trace, unsigned int nosched)
8789
{
8890
struct stack_trace_data data;
8991
struct stackframe frame;
9092

9193
data.trace = trace;
9294
data.skip = trace->skip;
95+
data.no_sched_functions = nosched;
9396

9497
if (tsk != current) {
9598
#ifdef CONFIG_SMP
@@ -102,7 +105,6 @@ void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace)
102105
trace->entries[trace->nr_entries++] = ULONG_MAX;
103106
return;
104107
#else
105-
data.no_sched_functions = 1;
106108
frame.fp = thread_saved_fp(tsk);
107109
frame.sp = thread_saved_sp(tsk);
108110
frame.lr = 0; /* recovered from the stack */
@@ -111,21 +113,27 @@ void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace)
111113
} else {
112114
register unsigned long current_sp asm ("sp");
113115

114-
data.no_sched_functions = 0;
116+
/* We don't want this function nor the caller */
117+
data.skip += 2;
115118
frame.fp = (unsigned long)__builtin_frame_address(0);
116119
frame.sp = current_sp;
117120
frame.lr = (unsigned long)__builtin_return_address(0);
118-
frame.pc = (unsigned long)save_stack_trace_tsk;
121+
frame.pc = (unsigned long)__save_stack_trace;
119122
}
120123

121124
walk_stackframe(&frame, save_trace, &data);
122125
if (trace->nr_entries < trace->max_entries)
123126
trace->entries[trace->nr_entries++] = ULONG_MAX;
124127
}
125128

129+
void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace)
130+
{
131+
__save_stack_trace(tsk, trace, 1);
132+
}
133+
126134
void save_stack_trace(struct stack_trace *trace)
127135
{
128-
save_stack_trace_tsk(current, trace);
136+
__save_stack_trace(current, trace, 0);
129137
}
130138
EXPORT_SYMBOL_GPL(save_stack_trace);
131139
#endif

‎arch/arm/mach-omap1/board-h2.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ static struct omap_usb_config h2_usb_config __initdata = {
343343
/* usb1 has a Mini-AB port and external isp1301 transceiver */
344344
.otg = 2,
345345

346-
#ifdef CONFIG_USB_GADGET_OMAP
346+
#if IS_ENABLED(CONFIG_USB_OMAP)
347347
.hmc_mode = 19, /* 0:host(off) 1:dev|otg 2:disabled */
348348
/* .hmc_mode = 21,*/ /* 0:host(off) 1:dev(loopback) 2:host(loopback) */
349349
#elif defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE)

‎arch/arm/mach-omap1/board-h3.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ static struct omap_usb_config h3_usb_config __initdata = {
366366
/* usb1 has a Mini-AB port and external isp1301 transceiver */
367367
.otg = 2,
368368

369-
#ifdef CONFIG_USB_GADGET_OMAP
369+
#if IS_ENABLED(CONFIG_USB_OMAP)
370370
.hmc_mode = 19, /* 0:host(off) 1:dev|otg 2:disabled */
371371
#elif defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE)
372372
/* NONSTANDARD CABLE NEEDED (B-to-Mini-B) */

‎arch/arm/mach-omap1/board-innovator.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ static struct omap_usb_config h2_usb_config __initdata = {
312312
/* usb1 has a Mini-AB port and external isp1301 transceiver */
313313
.otg = 2,
314314

315-
#ifdef CONFIG_USB_GADGET_OMAP
315+
#if IS_ENABLED(CONFIG_USB_OMAP)
316316
.hmc_mode = 19, /* 0:host(off) 1:dev|otg 2:disabled */
317317
/* .hmc_mode = 21,*/ /* 0:host(off) 1:dev(loopback) 2:host(loopback) */
318318
#elif defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE)

‎arch/arm/mach-omap1/board-osk.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ static struct omap_usb_config osk_usb_config __initdata = {
280280
* be used, with a NONSTANDARD gender-bending cable/dongle, as
281281
* a peripheral.
282282
*/
283-
#ifdef CONFIG_USB_GADGET_OMAP
283+
#if IS_ENABLED(CONFIG_USB_OMAP)
284284
.register_dev = 1,
285285
.hmc_mode = 0,
286286
#else

‎arch/arm/mm/hugetlbpage.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,3 @@ int pmd_huge(pmd_t pmd)
5656
{
5757
return pmd_val(pmd) && !(pmd_val(pmd) & PMD_TABLE_BIT);
5858
}
59-
60-
int pmd_huge_support(void)
61-
{
62-
return 1;
63-
}

‎arch/arm/mm/proc-v7-3level.S‎

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@ ENTRY(cpu_v7_switch_mm)
6464
mov pc, lr
6565
ENDPROC(cpu_v7_switch_mm)
6666

67+
#ifdef __ARMEB__
68+
#define rl r3
69+
#define rh r2
70+
#else
71+
#define rl r2
72+
#define rh r3
73+
#endif
74+
6775
/*
6876
* cpu_v7_set_pte_ext(ptep, pte)
6977
*
@@ -73,13 +81,13 @@ ENDPROC(cpu_v7_switch_mm)
7381
*/
7482
ENTRY(cpu_v7_set_pte_ext)
7583
#ifdef CONFIG_MMU
76-
tst r2, #L_PTE_VALID
84+
tst rl, #L_PTE_VALID
7785
beq 1f
78-
tst r3, #1 << (57 - 32) @ L_PTE_NONE
79-
bicne r2, #L_PTE_VALID
86+
tst rh, #1 << (57 - 32) @ L_PTE_NONE
87+
bicne rl, #L_PTE_VALID
8088
bne 1f
81-
tst r3, #1 << (55 - 32) @ L_PTE_DIRTY
82-
orreq r2, #L_PTE_RDONLY
89+
tst rh, #1 << (55 - 32) @ L_PTE_DIRTY
90+
orreq rl, #L_PTE_RDONLY
8391
1: strd r2, r3, [r0]
8492
ALT_SMP(W(nop))
8593
ALT_UP (mcr p15, 0, r0, c7, c10, 1) @ flush_pte

0 commit comments

Comments
 (0)