Skip to content

Commit 2f4bf52

Browse files
committed
Merge tag 'powerpc-4.4-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
Pull powerpc updates from Michael Ellerman: - Kconfig: remove BE-only platforms from LE kernel build from Boqun Feng - Refresh ps3_defconfig from Geoff Levand - Emit GNU & SysV hashes for the vdso from Michael Ellerman - Define an enum for the bolted SLB indexes from Anshuman Khandual - Use a local to avoid multiple calls to get_slb_shadow() from Michael Ellerman - Add gettimeofday() benchmark from Michael Neuling - Avoid link stack corruption in __get_datapage() from Michael Neuling - Add virt_to_pfn and use this instead of opencoding from Aneesh Kumar K.V - Add ppc64le_defconfig from Michael Ellerman - pseries: extract of_helpers module from Andy Shevchenko - Correct string length in pseries_of_derive_parent() from Nathan Fontenot - Free the MSI bitmap if it was slab allocated from Denis Kirjanov - Shorten irq_chip name for the SIU from Christophe Leroy - Wait 1s for secondaries to enter OPAL during kexec from Samuel Mendoza-Jonas - Fix _ALIGN_* errors due to type difference, from Aneesh Kumar K.V - powerpc/pseries/hvcserver: don't memset pi_buff if it is null from Colin Ian King - Disable hugepd for 64K page size, from Aneesh Kumar K.V - Differentiate between hugetlb and THP during page walk from Aneesh Kumar K.V - Make PCI non-optional for pseries from Michael Ellerman - Individual System V IPC system calls from Sam bobroff - Add selftest of unmuxed IPC calls from Michael Ellerman - discard .exit.data at runtime from Stephen Rothwell - Delete old orphaned PrPMC 280/2800 DTS and boot file, from Paul Gortmaker - Use of_get_next_parent to simplify code from Christophe Jaillet - Paginate some xmon output from Sam bobroff - Add some more elements to the xmon PACA dump from Michael Ellerman - Allow the tm-syscall selftest to build with old headers from Michael Ellerman - Run EBB selftests only on POWER8 from Denis Kirjanov - Drop CONFIG_TUNE_CELL in favour of CONFIG_CELL_CPU from Michael Ellerman - Avoid reference to potentially freed memory in prom.c from Christophe Jaillet - Quieten boot wrapper output with run_cmd from Geoff Levand - EEH fixes and cleanups from Gavin Shan - Fix recursive fenced PHB on Broadcom shiner adapter from Gavin Shan - Use of_get_next_parent() in of_get_ibm_chip_id() from Michael Ellerman - Fix section mismatch warning in msi_bitmap_alloc() from Denis Kirjanov - Fix ps3-lpm white space from Rudhresh Kumar J - Fix ps3-vuart null dereference from Colin King - nvram: Add missing kfree in error path from Christophe Jaillet - nvram: Fix function name in some errors messages, from Christophe Jaillet - drivers/macintosh: adb: fix misleading Kconfig help text from Aaro Koskinen - agp/uninorth: fix a memleak in create_gatt_table from Denis Kirjanov - cxl: Free virtual PHB when removing from Andrew Donnellan - scripts/kconfig/Makefile: Allow KBUILD_DEFCONFIG to be a target from Michael Ellerman - scripts/kconfig/Makefile: Fix KBUILD_DEFCONFIG check when building with O= from Michael Ellerman - Freescale updates from Scott: Highlights include 64-bit book3e kexec/kdump support, a rework of the qoriq clock driver, device tree changes including qoriq fman nodes, support for a new 85xx board, and some fixes. - MPC5xxx updates from Anatolij: Highlights include a driver for MPC512x LocalPlus Bus FIFO with its device tree binding documentation, mpc512x device tree updates and some minor fixes. * tag 'powerpc-4.4-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux: (106 commits) powerpc/msi: Fix section mismatch warning in msi_bitmap_alloc() powerpc/prom: Use of_get_next_parent() in of_get_ibm_chip_id() powerpc/pseries: Correct string length in pseries_of_derive_parent() powerpc/e6500: hw tablewalk: make sure we invalidate and write to the same tlb entry powerpc/mpc85xx: Add FSL QorIQ DPAA FMan support to the SoC device tree(s) powerpc/mpc85xx: Create dts components for the FSL QorIQ DPAA FMan powerpc/fsl: Add #clock-cells and clockgen label to clockgen nodes powerpc: handle error case in cpm_muram_alloc() powerpc: mpic: use IRQCHIP_SKIP_SET_WAKE instead of redundant mpic_irq_set_wake powerpc/book3e-64: Enable kexec powerpc/book3e-64/kexec: Set "r4 = 0" when entering spinloop powerpc/booke: Only use VIRT_PHYS_OFFSET on booke32 powerpc/book3e-64/kexec: Enable SMP release powerpc/book3e-64/kexec: create an identity TLB mapping powerpc/book3e-64: Don't limit paca to 256 MiB powerpc/book3e/kdump: Enable crash_kexec_wait_realmode powerpc/book3e: support CONFIG_RELOCATABLE powerpc/booke64: Fix args to copy_and_flush powerpc/book3e-64: rename interrupt_end_book3e with __end_interrupts powerpc/e6500: kexec: Handle hardware threads ...
2 parents 2e3078a + 8bdf202 commit 2f4bf52

311 files changed

Lines changed: 6522 additions & 1741 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/devicetree/bindings/chosen.txt‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,11 @@ Implementation note: Linux will look for the property "linux,stdout-path" or
4444
on PowerPC "stdout" if "stdout-path" is not found. However, the
4545
"linux,stdout-path" and "stdout" properties are deprecated. New platforms
4646
should only use the "stdout-path" property.
47+
48+
linux,booted-from-kexec
49+
-----------------------
50+
51+
This property is set (currently only on PowerPC, and only needed on
52+
book3e) by some versions of kexec-tools to tell the new kernel that it
53+
is being booted by kexec, as the booting environment may differ (e.g.
54+
a different secondary CPU release mechanism)

‎Documentation/devicetree/bindings/clock/qoriq-clock.txt‎

Lines changed: 50 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
* Clock Block on Freescale QorIQ Platforms
22

3-
Freescale qoriq chips take primary clocking input from the external
3+
Freescale QorIQ chips take primary clocking input from the external
44
SYSCLK signal. The SYSCLK input (frequency) is multiplied using
55
multiple phase locked loops (PLL) to create a variety of frequencies
66
which can then be passed to a variety of internal logic, including
@@ -13,14 +13,16 @@ which the chip complies.
1313
Chassis Version Example Chips
1414
--------------- -------------
1515
1.0 p4080, p5020, p5040
16-
2.0 t4240, b4860, t1040
16+
2.0 t4240, b4860
1717

1818
1. Clock Block Binding
1919

2020
Required properties:
21-
- compatible: Should contain a specific clock block compatible string
22-
and a single chassis clock compatible string.
23-
Clock block strings include, but not limited to, one of the:
21+
- compatible: Should contain a chip-specific clock block compatible
22+
string and (if applicable) may contain a chassis-version clock
23+
compatible string.
24+
25+
Chip-specific strings are of the form "fsl,<chip>-clockgen", such as:
2426
* "fsl,p2041-clockgen"
2527
* "fsl,p3041-clockgen"
2628
* "fsl,p4080-clockgen"
@@ -30,15 +32,14 @@ Required properties:
3032
* "fsl,b4420-clockgen"
3133
* "fsl,b4860-clockgen"
3234
* "fsl,ls1021a-clockgen"
33-
Chassis clock strings include:
35+
Chassis-version clock strings include:
3436
* "fsl,qoriq-clockgen-1.0": for chassis 1.0 clocks
3537
* "fsl,qoriq-clockgen-2.0": for chassis 2.0 clocks
3638
- reg: Describes the address of the device's resources within the
3739
address space defined by its parent bus, and resource zero
3840
represents the clock register set
39-
- clock-frequency: Input system clock frequency
4041

41-
Recommended properties:
42+
Optional properties:
4243
- ranges: Allows valid translation between child's address space and
4344
parent's. Must be present if the device has sub-nodes.
4445
- #address-cells: Specifies the number of cells used to represent
@@ -47,8 +48,46 @@ Recommended properties:
4748
- #size-cells: Specifies the number of cells used to represent
4849
the size of an address. Must be present if the device has
4950
sub-nodes and set to 1 if present
51+
- clock-frequency: Input system clock frequency (SYSCLK)
52+
- clocks: If clock-frequency is not specified, sysclk may be provided
53+
as an input clock. Either clock-frequency or clocks must be
54+
provided.
55+
56+
2. Clock Provider
57+
58+
The clockgen node should act as a clock provider, though in older device
59+
trees the children of the clockgen node are the clock providers.
60+
61+
When the clockgen node is a clock provider, #clock-cells = <2>.
62+
The first cell of the clock specifier is the clock type, and the
63+
second cell is the clock index for the specified type.
64+
65+
Type# Name Index Cell
66+
0 sysclk must be 0
67+
1 cmux index (n in CLKCnCSR)
68+
2 hwaccel index (n in CLKCGnHWACSR)
69+
3 fman 0 for fm1, 1 for fm2
70+
4 platform pll 0=pll, 1=pll/2, 2=pll/3, 3=pll/4
71+
72+
3. Example
73+
74+
clockgen: global-utilities@e1000 {
75+
compatible = "fsl,p5020-clockgen", "fsl,qoriq-clockgen-1.0";
76+
clock-frequency = <133333333>;
77+
reg = <0xe1000 0x1000>;
78+
#clock-cells = <2>;
79+
};
80+
81+
fman@400000 {
82+
...
83+
clocks = <&clockgen 3 0>;
84+
...
85+
};
86+
}
87+
4. Legacy Child Nodes
5088

51-
2. Clock Provider/Consumer Binding
89+
NOTE: These nodes are deprecated. Kernels should continue to support
90+
device trees with these nodes, but new device trees should not use them.
5291

5392
Most of the bindings are from the common clock binding[1].
5493
[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
@@ -82,7 +121,7 @@ Recommended properties:
82121
- reg: Should be the offset and length of clock block base address.
83122
The length should be 4.
84123

85-
Example for clock block and clock provider:
124+
Legacy Example:
86125
/ {
87126
clockgen: global-utilities@e1000 {
88127
compatible = "fsl,p5020-clockgen", "fsl,qoriq-clockgen-1.0";
@@ -142,7 +181,7 @@ Example for clock block and clock provider:
142181
};
143182
};
144183

145-
Example for clock consumer:
184+
Example for legacy clock consumer:
146185

147186
/ {
148187
cpu0: PowerPC,e5500@0 {
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
* Maxim (Dallas) DS26522 Dual T1/E1/J1 Transceiver
2+
3+
Required properties:
4+
- compatible: Should contain "maxim,ds26522".
5+
- reg: SPI CS.
6+
- spi-max-frequency: SPI clock.
7+
8+
Example:
9+
slic@1 {
10+
compatible = "maxim,ds26522";
11+
reg = <1>;
12+
spi-max-frequency = <2000000>; /* input clock */
13+
};
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Freescale MPC512x LocalPlus Bus FIFO (called SCLPC in the Reference Manual)
2+
3+
Required properties:
4+
- compatible: should be "fsl,mpc512x-lpbfifo";
5+
- reg: should contain the offset and length of SCLPC register set;
6+
- interrupts: should contain the interrupt specifier for SCLPC; syntax of an
7+
interrupt client node is described in interrupt-controller/interrupts.txt;
8+
- dmas: should contain the DMA specifier for SCLPC as described at
9+
dma/dma.txt and dma/mpc512x-dma.txt;
10+
- dma-names: should be "rx-tx";
11+
12+
Example:
13+
14+
sclpc@10100 {
15+
compatible = "fsl,mpc512x-lpbfifo";
16+
reg = <0x10100 0x50>;
17+
interrupts = <7 0x8>;
18+
dmas = <&dma0 26>;
19+
dma-names = "rx-tx";
20+
};
21+

‎arch/powerpc/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ config PPC64_SUPPORTS_MEMORY_FAILURE
419419

420420
config KEXEC
421421
bool "kexec system call"
422-
depends on (PPC_BOOK3S || FSL_BOOKE || (44x && !SMP))
422+
depends on (PPC_BOOK3S || FSL_BOOKE || (44x && !SMP)) || PPC_BOOK3E
423423
select KEXEC_CORE
424424
help
425425
kexec is a system call that implements the ability to shutdown your

‎arch/powerpc/Makefile‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,6 @@ CFLAGS-$(CONFIG_E500) += $(call cc-option,-mcpu=8540 -msoft-float,-mcpu=powerpc)
157157
endif
158158
endif
159159

160-
CFLAGS-$(CONFIG_TUNE_CELL) += $(call cc-option,-mtune=cell)
161-
162160
asinstr := $(call as-instr,lis 9$(comma)foo@high,-DHAVE_AS_ATHIGH=1)
163161

164162
KBUILD_CPPFLAGS += -Iarch/$(ARCH) $(asinstr)
@@ -288,6 +286,10 @@ PHONY += pseries_le_defconfig
288286
pseries_le_defconfig:
289287
$(call merge_into_defconfig,pseries_defconfig,le)
290288

289+
PHONY += ppc64le_defconfig
290+
ppc64le_defconfig:
291+
$(call merge_into_defconfig,ppc64_defconfig,le)
292+
291293
PHONY += mpc85xx_defconfig
292294
mpc85xx_defconfig:
293295
$(call merge_into_defconfig,mpc85xx_basic_defconfig,\

‎arch/powerpc/boot/Makefile‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,9 @@ $(obj)/cuImage.initrd.%: vmlinux $(obj)/%.dtb $(wrapperbits)
364364
$(obj)/cuImage.%: vmlinux $(obj)/%.dtb $(wrapperbits)
365365
$(call if_changed,wrap,cuboot-$*,,$(obj)/$*.dtb)
366366

367+
$(obj)/cuImage.%: vmlinux $(obj)/fsl/%.dtb $(wrapperbits)
368+
$(call if_changed,wrap,cuboot-$*,,$(obj)/fsl/$*.dtb)
369+
367370
$(obj)/simpleImage.initrd.%: vmlinux $(obj)/%.dtb $(wrapperbits)
368371
$(call if_changed,wrap,simpleboot-$*,,$(obj)/$*.dtb,$(obj)/ramdisk.image.gz)
369372

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* this software, even if advised of the possibility of such damage.
3333
*/
3434

35-
/include/ "fsl/b4420si-pre.dtsi"
35+
/include/ "b4420si-pre.dtsi"
3636
/include/ "b4qds.dtsi"
3737

3838
/ {
@@ -47,4 +47,4 @@
4747

4848
};
4949

50-
/include/ "fsl/b4420si-post.dtsi"
50+
/include/ "b4420si-post.dtsi"

‎arch/powerpc/boot/dts/fsl/b4420si-post.dtsi‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@
8989
compatible = "fsl,b4420-rcpm", "fsl,qoriq-rcpm-2.0";
9090
};
9191

92-
L2: l2-cache-controller@c20000 {
92+
L2_1: l2-cache-controller@c20000 {
9393
compatible = "fsl,b4420-l2-cache-controller";
94+
reg = <0xc20000 0x40000>;
95+
next-level-cache = <&cpc>;
9496
};
9597
};

‎arch/powerpc/boot/dts/fsl/b4420si-pre.dtsi‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* B4420 Silicon/SoC Device Tree Source (pre include)
33
*
4-
* Copyright 2012 Freescale Semiconductor, Inc.
4+
* Copyright 2012 - 2015 Freescale Semiconductor, Inc.
55
*
66
* Redistribution and use in source and binary forms, with or without
77
* modification, are permitted provided that the following conditions are met:
@@ -54,8 +54,13 @@
5454
dma0 = &dma0;
5555
dma1 = &dma1;
5656
sdhc = &sdhc;
57-
};
5857

58+
fman0 = &fman0;
59+
ethernet0 = &enet0;
60+
ethernet1 = &enet1;
61+
ethernet2 = &enet2;
62+
ethernet3 = &enet3;
63+
};
5964

6065
cpus {
6166
#address-cells = <1>;
@@ -65,14 +70,14 @@
6570
device_type = "cpu";
6671
reg = <0 1>;
6772
clocks = <&mux0>;
68-
next-level-cache = <&L2>;
73+
next-level-cache = <&L2_1>;
6974
fsl,portid-mapping = <0x80000000>;
7075
};
7176
cpu1: PowerPC,e6500@2 {
7277
device_type = "cpu";
7378
reg = <2 3>;
7479
clocks = <&mux0>;
75-
next-level-cache = <&L2>;
80+
next-level-cache = <&L2_1>;
7681
fsl,portid-mapping = <0x80000000>;
7782
};
7883
};

0 commit comments

Comments
 (0)