Skip to content

Commit ff474e8

Browse files
committed
Merge tag 'powerpc-4.3-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
Pull powerpc updates from Michael Ellerman: - support "hybrid" iommu/direct DMA ops for coherent_mask < dma_mask from Benjamin Herrenschmidt - EEH fixes for SRIOV from Gavin - introduce rtas_get_sensor_fast() for IRQ handlers from Thomas Huth - use hardware RNG for arch_get_random_seed_* not arch_get_random_* from Paul Mackerras - seccomp filter support from Michael Ellerman - opal_cec_reboot2() handling for HMIs & machine checks from Mahesh Salgaonkar - add powerpc timebase as a trace clock source from Naveen N. Rao - misc cleanups in the xmon, signal & SLB code from Anshuman Khandual - add an inline function to update POWER8 HID0 from Gautham R. Shenoy - fix pte_pagesize_index() crash on 4K w/64K hash from Michael Ellerman - drop support for 64K local store on 4K kernels from Michael Ellerman - move dma_get_required_mask() from pnv_phb to pci_controller_ops from Andrew Donnellan - initialize distance lookup table from drconf path from Nikunj A Dadhania - enable RTC class support from Vaibhav Jain - disable automatically blocked PCI config from Gavin Shan - add LEDs driver for PowerNV platform from Vasant Hegde - fix endianness issues in the HVSI driver from Laurent Dufour - kexec endian fixes from Samuel Mendoza-Jonas - fix corrupted pdn list from Gavin Shan - fix fenced PHB caused by eeh_slot_error_detail() from Gavin Shan - Freescale updates from Scott: Highlights include 32-bit memcpy/memset optimizations, checksum optimizations, 85xx config fragments and updates, device tree updates, e6500 fixes for non-SMP, and misc cleanup and minor fixes. - a ton of cxl updates & fixes: - add explicit precision specifiers from Rasmus Villemoes - use more common format specifier from Rasmus Villemoes - destroy cxl_adapter_idr on module_exit from Johannes Thumshirn - destroy afu->contexts_idr on release of an afu from Johannes Thumshirn - compile with -Werror from Daniel Axtens - EEH support from Daniel Axtens - plug irq_bitmap getting leaked in cxl_context from Vaibhav Jain - add alternate MMIO error handling from Ian Munsie - allow release of contexts which have been OPENED but not STARTED from Andrew Donnellan - remove use of macro DEFINE_PCI_DEVICE_TABLE from Vaishali Thakkar - release irqs if memory allocation fails from Vaibhav Jain - remove racy attempt to force EEH invocation in reset from Daniel Axtens - fix + cleanup error paths in cxl_dev_context_init from Ian Munsie - fix force unmapping mmaps of contexts allocated through the kernel api from Ian Munsie - set up and enable PSL Timebase from Philippe Bergheaud * tag 'powerpc-4.3-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux: (140 commits) cxl: Set up and enable PSL Timebase cxl: Fix force unmapping mmaps of contexts allocated through the kernel api cxl: Fix + cleanup error paths in cxl_dev_context_init powerpc/eeh: Fix fenced PHB caused by eeh_slot_error_detail() powerpc/pseries: Cleanup on pci_dn_reconfig_notifier() powerpc/pseries: Fix corrupted pdn list powerpc/powernv: Enable LEDS support powerpc/iommu: Set default DMA offset in dma_dev_setup cxl: Remove racy attempt to force EEH invocation in reset cxl: Release irqs if memory allocation fails cxl: Remove use of macro DEFINE_PCI_DEVICE_TABLE powerpc/powernv: Fix mis-merge of OPAL support for LEDS driver powerpc/powernv: Reset HILE before kexec_sequence() powerpc/kexec: Reset secondary cpu endianness before kexec powerpc/hvsi: Fix endianness issues in the HVSI driver leds/powernv: Add driver for PowerNV platform powerpc/powernv: Create LED platform device powerpc/powernv: Add OPAL interfaces for accessing and modifying system LED states powerpc/powernv: Fix the log message when disabling VF cxl: Allow release of contexts which have been OPENED but not STARTED ...
2 parents 4c92b5b + 390fd59 commit ff474e8

146 files changed

Lines changed: 3560 additions & 1998 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/ABI/testing/sysfs-class-cxl‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,3 +223,13 @@ Description: write only
223223
Writing 1 will issue a PERST to card which may cause the card
224224
to reload the FPGA depending on load_image_on_perst.
225225
Users: https://github.com/ibm-capi/libcxl
226+
227+
What: /sys/class/cxl/<card>/perst_reloads_same_image
228+
Date: July 2015
229+
Contact: linuxppc-dev@lists.ozlabs.org
230+
Description: read/write
231+
Trust that when an image is reloaded via PERST, it will not
232+
have changed.
233+
0 = don't trust, the image may be different (default)
234+
1 = trust that the image will not change.
235+
Users: https://github.com/ibm-capi/libcxl
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Device Tree binding for LEDs on IBM Power Systems
2+
-------------------------------------------------
3+
4+
Required properties:
5+
- compatible : Should be "ibm,opal-v3-led".
6+
- led-mode : Should be "lightpath" or "guidinglight".
7+
8+
Each location code of FRU/Enclosure must be expressed in the
9+
form of a sub-node.
10+
11+
Required properties for the sub nodes:
12+
- led-types : Supported LED types (attention/identify/fault) provided
13+
in the form of string array.
14+
15+
Example:
16+
17+
leds {
18+
compatible = "ibm,opal-v3-led";
19+
led-mode = "lightpath";
20+
21+
U78C9.001.RST0027-P1-C1 {
22+
led-types = "identify", "fault";
23+
};
24+
...
25+
...
26+
};

‎Documentation/devicetree/bindings/memory-controllers/fsl/ifc.txt‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ Properties:
1818
interrupt (NAND_EVTER_STAT). If there is only one,
1919
that interrupt reports both types of event.
2020

21+
- little-endian : If this property is absent, the big-endian mode will
22+
be in use as default for registers.
2123

2224
- ranges : Each range corresponds to a single chipselect, and covers
2325
the entire access window as configured.
@@ -34,6 +36,7 @@ Example:
3436
#size-cells = <1>;
3537
reg = <0x0 0xffe1e000 0 0x2000>;
3638
interrupts = <16 2 19 2>;
39+
little-endian;
3740

3841
/* NOR, NAND Flashes and CPLD on board */
3942
ranges = <0x0 0x0 0x0 0xee000000 0x02000000
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Freescale Supplement configuration unit (SCFG)
2+
3+
SCFG is the supplemental configuration unit, that provides SoC specific
4+
configuration and status registers for the chip. Such as getting PEX port
5+
status.
6+
7+
Required properties:
8+
9+
- compatible: should be "fsl,<chip>-scfg"
10+
- reg: should contain base address and length of SCFG memory-mapped
11+
registers
12+
13+
Example:
14+
15+
scfg: global-utilities@fc000 {
16+
compatible = "fsl,t1040-scfg";
17+
reg = <0xfc000 0x1000>;
18+
};

‎Documentation/trace/ftrace.txt‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,11 @@ of ftrace. Here is a list of some of the key files:
346346
x86-tsc: Architectures may define their own clocks. For
347347
example, x86 uses its own TSC cycle clock here.
348348

349+
ppc-tb: This uses the powerpc timebase register value.
350+
This is in sync across CPUs and can also be used
351+
to correlate events across hypervisor/guest if
352+
tb_offset is known.
353+
349354
To set a clock, simply echo the clock name into this file.
350355

351356
echo global > trace_clock

‎arch/powerpc/Kconfig‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ config GENERIC_HWEIGHT
8282
bool
8383
default y
8484

85+
config ARCH_HAS_DMA_SET_COHERENT_MASK
86+
bool
87+
8588
config PPC
8689
bool
8790
default y
@@ -155,6 +158,8 @@ config PPC
155158
select HAVE_PERF_EVENTS_NMI if PPC64
156159
select EDAC_SUPPORT
157160
select EDAC_ATOMIC_SCRUB
161+
select ARCH_HAS_DMA_SET_COHERENT_MASK
162+
select HAVE_ARCH_SECCOMP_FILTER
158163

159164
config GENERIC_CSUM
160165
def_bool CPU_LITTLE_ENDIAN
@@ -514,11 +519,6 @@ config NODES_SPAN_OTHER_NODES
514519
def_bool y
515520
depends on NEED_MULTIPLE_NODES
516521

517-
config PPC_HAS_HASH_64K
518-
bool
519-
depends on PPC64
520-
default n
521-
522522
config STDBINUTILS
523523
bool "Using standard binutils settings"
524524
depends on 44x
@@ -560,16 +560,16 @@ config PPC_4K_PAGES
560560
bool "4k page size"
561561

562562
config PPC_16K_PAGES
563-
bool "16k page size" if 44x || PPC_8xx
563+
bool "16k page size"
564+
depends on 44x || PPC_8xx
564565

565566
config PPC_64K_PAGES
566-
bool "64k page size" if 44x || PPC_STD_MMU_64 || PPC_BOOK3E_64
567-
depends on !PPC_FSL_BOOK3E
568-
select PPC_HAS_HASH_64K if PPC_STD_MMU_64
567+
bool "64k page size"
568+
depends on !PPC_FSL_BOOK3E && (44x || PPC_STD_MMU_64 || PPC_BOOK3E_64)
569569

570570
config PPC_256K_PAGES
571-
bool "256k page size" if 44x
572-
depends on !STDBINUTILS
571+
bool "256k page size"
572+
depends on 44x && !STDBINUTILS
573573
help
574574
Make the page size 256k.
575575

‎arch/powerpc/Makefile‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,26 @@ PHONY += pseries_le_defconfig
288288
pseries_le_defconfig:
289289
$(call merge_into_defconfig,pseries_defconfig,le)
290290

291+
PHONY += mpc85xx_defconfig
292+
mpc85xx_defconfig:
293+
$(call merge_into_defconfig,mpc85xx_basic_defconfig,\
294+
85xx-32bit 85xx-hw fsl-emb-nonhw)
295+
296+
PHONY += mpc85xx_smp_defconfig
297+
mpc85xx_smp_defconfig:
298+
$(call merge_into_defconfig,mpc85xx_basic_defconfig,\
299+
85xx-32bit 85xx-smp 85xx-hw fsl-emb-nonhw)
300+
301+
PHONY += corenet32_smp_defconfig
302+
corenet32_smp_defconfig:
303+
$(call merge_into_defconfig,corenet_basic_defconfig,\
304+
85xx-32bit 85xx-smp 85xx-hw fsl-emb-nonhw)
305+
306+
PHONY += corenet64_smp_defconfig
307+
corenet64_smp_defconfig:
308+
$(call merge_into_defconfig,corenet_basic_defconfig,\
309+
85xx-64bit 85xx-smp altivec 85xx-hw fsl-emb-nonhw)
310+
291311
define archhelp
292312
@echo '* zImage - Build default images selected by kernel config'
293313
@echo ' zImage.* - Compressed kernel image (arch/$(ARCH)/boot/zImage.*)'

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175

176176
/include/ "pq3-gpio-0.dtsi"
177177

178-
display@10000 {
178+
display: display@10000 {
179179
compatible = "fsl,diu", "fsl,p1022-diu";
180180
reg = <0x10000 1000>;
181181
interrupts = <64 2 0 0>;

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050
pci0 = &pci0;
5151
pci1 = &pci1;
5252
pci2 = &pci2;
53+
vga = &display;
54+
display = &display;
5355
};
5456

5557
cpus {

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,11 @@
484484
reg = <0xea000 0x4000>;
485485
};
486486

487+
scfg: global-utilities@fc000 {
488+
compatible = "fsl,t1040-scfg";
489+
reg = <0xfc000 0x1000>;
490+
};
491+
487492
/include/ "elo3-dma-0.dtsi"
488493
/include/ "elo3-dma-1.dtsi"
489494
/include/ "qoriq-espi-0.dtsi"

0 commit comments

Comments
 (0)