Skip to content

Commit 8bfc245

Browse files
committed
Merge branch 'mips-next-3.9' of git://git.linux-mips.org/pub/scm/john/linux-john into mips-for-linux-next
2 parents 612663a + 535237c commit 8bfc245

300 files changed

Lines changed: 5407 additions & 1924 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.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
MIPS CPU interrupt controller
2+
3+
On MIPS the mips_cpu_intc_init() helper can be used to initialize the 8 CPU
4+
IRQs from a devicetree file and create a irq_domain for IRQ controller.
5+
6+
With the irq_domain in place we can describe how the 8 IRQs are wired to the
7+
platforms internal interrupt controller cascade.
8+
9+
Below is an example of a platform describing the cascade inside the devicetree
10+
and the code used to load it inside arch_init_irq().
11+
12+
Required properties:
13+
- compatible : Should be "mti,cpu-interrupt-controller"
14+
15+
Example devicetree:
16+
cpu-irq: cpu-irq@0 {
17+
#address-cells = <0>;
18+
19+
interrupt-controller;
20+
#interrupt-cells = <1>;
21+
22+
compatible = "mti,cpu-interrupt-controller";
23+
};
24+
25+
intc: intc@200 {
26+
compatible = "ralink,rt2880-intc";
27+
reg = <0x200 0x100>;
28+
29+
interrupt-controller;
30+
#interrupt-cells = <1>;
31+
32+
interrupt-parent = <&cpu-irq>;
33+
interrupts = <2>;
34+
};
35+
36+
37+
Example platform irq.c:
38+
static struct of_device_id __initdata of_irq_ids[] = {
39+
{ .compatible = "mti,cpu-interrupt-controller", .data = mips_cpu_intc_init },
40+
{ .compatible = "ralink,rt2880-intc", .data = intc_of_init },
41+
{},
42+
};
43+
44+
void __init arch_init_irq(void)
45+
{
46+
of_irq_init(of_irq_ids);
47+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Lantiq SoC ASC serial controller
2+
3+
Required properties:
4+
- compatible : Should be "lantiq,asc"
5+
- reg : Address and length of the register set for the device
6+
- interrupts: the 3 (tx rx err) interrupt numbers. The interrupt specifier
7+
depends on the interrupt-parent interrupt controller.
8+
9+
Example:
10+
11+
asc1: serial@E100C00 {
12+
compatible = "lantiq,asc";
13+
reg = <0xE100C00 0x400>;
14+
interrupt-parent = <&icu0>;
15+
interrupts = <112 113 114>;
16+
};

‎Documentation/kernel-parameters.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2438,7 +2438,7 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
24382438
real-time workloads. It can also improve energy
24392439
efficiency for asymmetric multiprocessors.
24402440

2441-
rcu_nocbs_poll [KNL,BOOT]
2441+
rcu_nocb_poll [KNL,BOOT]
24422442
Rather than requiring that offloaded CPUs
24432443
(specified by rcu_nocbs= above) explicitly
24442444
awaken the corresponding "rcuoN" kthreads,

‎Documentation/x86/boot.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Protocol 2.10: (Kernel 2.6.31) Added a protocol for relaxed alignment
5757
Protocol 2.11: (Kernel 3.6) Added a field for offset of EFI handover
5858
protocol entry point.
5959

60-
Protocol 2.12: (Kernel 3.9) Added the xloadflags field and extension fields
60+
Protocol 2.12: (Kernel 3.8) Added the xloadflags field and extension fields
6161
to struct boot_params for for loading bzImage and ramdisk
6262
above 4G in 64bit.
6363

‎MAINTAINERS‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1489,7 +1489,7 @@ AVR32 ARCHITECTURE
14891489
M: Haavard Skinnemoen <hskinnemoen@gmail.com>
14901490
M: Hans-Christian Egtvedt <egtvedt@samfundet.no>
14911491
W: http://www.atmel.com/products/AVR32/
1492-
W: http://avr32linux.org/
1492+
W: http://mirror.egtvedt.no/avr32linux.org/
14931493
W: http://avrfreaks.net/
14941494
S: Maintained
14951495
F: arch/avr32/

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
VERSION = 3
22
PATCHLEVEL = 8
33
SUBLEVEL = 0
4-
EXTRAVERSION = -rc6
4+
EXTRAVERSION = -rc7
55
NAME = Unicycling Gorilla
66

77
# *DOCUMENTATION*

‎arch/arm/common/gic.c‎

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,25 @@ void __init gic_cascade_irq(unsigned int gic_nr, unsigned int irq)
351351
irq_set_chained_handler(irq, gic_handle_cascade_irq);
352352
}
353353

354+
static u8 gic_get_cpumask(struct gic_chip_data *gic)
355+
{
356+
void __iomem *base = gic_data_dist_base(gic);
357+
u32 mask, i;
358+
359+
for (i = mask = 0; i < 32; i += 4) {
360+
mask = readl_relaxed(base + GIC_DIST_TARGET + i);
361+
mask |= mask >> 16;
362+
mask |= mask >> 8;
363+
if (mask)
364+
break;
365+
}
366+
367+
if (!mask)
368+
pr_crit("GIC CPU mask not found - kernel will fail to boot.\n");
369+
370+
return mask;
371+
}
372+
354373
static void __init gic_dist_init(struct gic_chip_data *gic)
355374
{
356375
unsigned int i;
@@ -369,7 +388,9 @@ static void __init gic_dist_init(struct gic_chip_data *gic)
369388
/*
370389
* Set all global interrupts to this CPU only.
371390
*/
372-
cpumask = readl_relaxed(base + GIC_DIST_TARGET + 0);
391+
cpumask = gic_get_cpumask(gic);
392+
cpumask |= cpumask << 8;
393+
cpumask |= cpumask << 16;
373394
for (i = 32; i < gic_irqs; i += 4)
374395
writel_relaxed(cpumask, base + GIC_DIST_TARGET + i * 4 / 4);
375396

@@ -400,7 +421,7 @@ static void __cpuinit gic_cpu_init(struct gic_chip_data *gic)
400421
* Get what the GIC says our CPU mask is.
401422
*/
402423
BUG_ON(cpu >= NR_GIC_CPU_IF);
403-
cpu_mask = readl_relaxed(dist_base + GIC_DIST_TARGET + 0);
424+
cpu_mask = gic_get_cpumask(gic);
404425
gic_cpu_map[cpu] = cpu_mask;
405426

406427
/*

‎arch/arm/include/asm/memory.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*/
3838
#define PAGE_OFFSET UL(CONFIG_PAGE_OFFSET)
3939
#define TASK_SIZE (UL(CONFIG_PAGE_OFFSET) - UL(0x01000000))
40-
#define TASK_UNMAPPED_BASE (UL(CONFIG_PAGE_OFFSET) / 3)
40+
#define TASK_UNMAPPED_BASE ALIGN(TASK_SIZE / 3, SZ_16M)
4141

4242
/*
4343
* The maximum size of a 26-bit user space task.

‎arch/arm/mach-exynos/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ config MACH_EXYNOS4_DT
414414
select CPU_EXYNOS4210
415415
select HAVE_SAMSUNG_KEYPAD if INPUT_KEYBOARD
416416
select PINCTRL
417-
select PINCTRL_EXYNOS4
417+
select PINCTRL_EXYNOS
418418
select USE_OF
419419
help
420420
Machine support for Samsung Exynos4 machine with device tree enabled.

‎arch/arm/mach-realview/include/mach/irqs-eb.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
/*
116116
* Only define NR_IRQS if less than NR_IRQS_EB
117117
*/
118-
#define NR_IRQS_EB (IRQ_EB_GIC_START + 96)
118+
#define NR_IRQS_EB (IRQ_EB_GIC_START + 128)
119119

120120
#if defined(CONFIG_MACH_REALVIEW_EB) \
121121
&& (!defined(NR_IRQS) || (NR_IRQS < NR_IRQS_EB))

0 commit comments

Comments
 (0)