Skip to content

Commit

Permalink
Merge tag 'powerpc-4.17-1' of git://git.kernel.org/pub/scm/linux/kern…
Browse files Browse the repository at this point in the history
…el/git/powerpc/linux

Pull powerpc updates from Michael Ellerman:
 "Notable changes:

   - Support for 4PB user address space on 64-bit, opt-in via mmap().

   - Removal of POWER4 support, which was accidentally broken in 2016
     and no one noticed, and blocked use of some modern instructions.

   - Workarounds so that the hypervisor can enable Transactional Memory
     on Power9.

   - A series to disable the DAWR (Data Address Watchpoint Register) on
     Power9.

   - More information displayed in the meltdown/spectre_v1/v2 sysfs
     files.

   - A vpermxor (Power8 Altivec) implementation for the raid6 Q
     Syndrome.

   - A big series to make the allocation of our pacas (per cpu area),
     kernel page tables, and per-cpu stacks NUMA aware when using the
     Radix MMU on Power9.

  And as usual many fixes, reworks and cleanups.

  Thanks to: Aaro Koskinen, Alexandre Belloni, Alexey Kardashevskiy,
  Alistair Popple, Andy Shevchenko, Aneesh Kumar K.V, Anshuman Khandual,
  Balbir Singh, Benjamin Herrenschmidt, Christophe Leroy, Christophe
  Lombard, Cyril Bur, Daniel Axtens, Dave Young, Finn Thain, Frederic
  Barrat, Gustavo Romero, Horia Geantă, Jonathan Neuschäfer, Kees Cook,
  Larry Finger, Laurent Dufour, Laurent Vivier, Logan Gunthorpe,
  Madhavan Srinivasan, Mark Greer, Mark Hairgrove, Markus Elfring,
  Mathieu Malaterre, Matt Brown, Matt Evans, Mauricio Faria de Oliveira,
  Michael Neuling, Naveen N. Rao, Nicholas Piggin, Paul Mackerras,
  Philippe Bergheaud, Ram Pai, Rob Herring, Sam Bobroff, Segher
  Boessenkool, Simon Guo, Simon Horman, Stewart Smith, Sukadev
  Bhattiprolu, Suraj Jitindar Singh, Thiago Jung Bauermann, Vaibhav
  Jain, Vaidyanathan Srinivasan, Vasant Hegde, Wei Yongjun"

* tag 'powerpc-4.17-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux: (207 commits)
  powerpc/64s/idle: Fix restore of AMOR on POWER9 after deep sleep
  powerpc/64s: Fix POWER9 DD2.2 and above in cputable features
  powerpc/64s: Fix pkey support in dt_cpu_ftrs, add CPU_FTR_PKEY bit
  powerpc/64s: Fix dt_cpu_ftrs to have restore_cpu clear unwanted LPCR bits
  Revert "powerpc/64s/idle: POWER9 ESL=0 stop avoid save/restore overhead"
  powerpc: iomap.c: introduce io{read|write}64_{lo_hi|hi_lo}
  powerpc: io.h: move iomap.h include so that it can use readq/writeq defs
  cxl: Fix possible deadlock when processing page faults from cxllib
  powerpc/hw_breakpoint: Only disable hw breakpoint if cpu supports it
  powerpc/mm/radix: Update command line parsing for disable_radix
  powerpc/mm/radix: Parse disable_radix commandline correctly.
  powerpc/mm/hugetlb: initialize the pagetable cache correctly for hugetlb
  powerpc/mm/radix: Update pte fragment count from 16 to 256 on radix
  powerpc/mm/keys: Update documentation and remove unnecessary check
  powerpc/64s/idle: POWER9 ESL=0 stop avoid save/restore overhead
  powerpc/64s/idle: Consolidate power9_offline_stop()/power9_idle_stop()
  powerpc/powernv: Always stop secondaries before reboot/shutdown
  powerpc: hard disable irqs in smp_send_stop loop
  powerpc: use NMI IPI for smp_send_stop
  powerpc/powernv: Fix SMT4 forcing idle code
  ...
  • Loading branch information
torvalds committed Apr 7, 2018
2 parents 299f89d + c1b25a1 commit 49a695b
Show file tree
Hide file tree
Showing 275 changed files with 4,643 additions and 2,428 deletions.
14 changes: 11 additions & 3 deletions arch/powerpc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,18 @@ AFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mabi=elfv1)
endif
CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mcmodel=medium,$(call cc-option,-mminimal-toc))
CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mno-pointers-to-nested-functions)

CFLAGS-$(CONFIG_PPC32) := -ffixed-r2 $(MULTIPLEWORD)
CFLAGS-$(CONFIG_PPC32) += $(call cc-option,-mno-readonly-in-sdata)

ifeq ($(CONFIG_PPC_BOOK3S_64),y)
CFLAGS-$(CONFIG_GENERIC_CPU) += $(call cc-option,-mtune=power7,-mtune=power4)
CFLAGS-$(CONFIG_GENERIC_CPU) += -mcpu=power4
ifeq ($(CONFIG_CPU_LITTLE_ENDIAN),y)
CFLAGS-$(CONFIG_GENERIC_CPU) += -mcpu=power8
CFLAGS-$(CONFIG_GENERIC_CPU) += $(call cc-option,-mtune=power9,-mtune=power8)
else
CFLAGS-$(CONFIG_GENERIC_CPU) += $(call cc-option,-mtune=power7,$(call cc-option,-mtune=power5))
CFLAGS-$(CONFIG_GENERIC_CPU) += $(call cc-option,-mcpu=power5,-mcpu=power4)
endif
else
CFLAGS-$(CONFIG_GENERIC_CPU) += -mcpu=powerpc64
endif
Expand All @@ -166,11 +173,11 @@ ifdef CONFIG_MPROFILE_KERNEL
endif

CFLAGS-$(CONFIG_CELL_CPU) += $(call cc-option,-mcpu=cell)
CFLAGS-$(CONFIG_POWER4_CPU) += $(call cc-option,-mcpu=power4)
CFLAGS-$(CONFIG_POWER5_CPU) += $(call cc-option,-mcpu=power5)
CFLAGS-$(CONFIG_POWER6_CPU) += $(call cc-option,-mcpu=power6)
CFLAGS-$(CONFIG_POWER7_CPU) += $(call cc-option,-mcpu=power7)
CFLAGS-$(CONFIG_POWER8_CPU) += $(call cc-option,-mcpu=power8)
CFLAGS-$(CONFIG_POWER9_CPU) += $(call cc-option,-mcpu=power9)

# Altivec option not allowed with e500mc64 in GCC.
ifeq ($(CONFIG_ALTIVEC),y)
Expand Down Expand Up @@ -243,6 +250,7 @@ endif
cpu-as-$(CONFIG_4xx) += -Wa,-m405
cpu-as-$(CONFIG_ALTIVEC) += $(call as-option,-Wa$(comma)-maltivec)
cpu-as-$(CONFIG_E200) += -Wa,-me200
cpu-as-$(CONFIG_PPC_BOOK3S_64) += -Wa,-mpower4

KBUILD_AFLAGS += $(cpu-as-y)
KBUILD_CFLAGS += $(cpu-as-y)
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/acadia.dts
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,6 @@
};

chosen {
linux,stdout-path = "/plb/opb/serial@ef600300";
stdout-path = "/plb/opb/serial@ef600300";
};
};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/adder875-redboot.dts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,6 @@
};

chosen {
linux,stdout-path = &console;
stdout-path = &console;
};
};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/adder875-uboot.dts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,6 @@
};

chosen {
linux,stdout-path = &console;
stdout-path = &console;
};
};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/akebono.dts
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,6 @@
};

chosen {
linux,stdout-path = &UART0;
stdout-path = &UART0;
};
};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/amigaone.dts
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,6 @@
};

chosen {
linux,stdout-path = "/pci@80000000/isa@7/serial@3f8";
stdout-path = "/pci@80000000/isa@7/serial@3f8";
};
};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/asp834x-redboot.dts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@

chosen {
bootargs = "console=ttyS0,38400 root=/dev/mtdblock3 rootfstype=jffs2";
linux,stdout-path = &serial0;
stdout-path = &serial0;
};

};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/bamboo.dts
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,6 @@
};

chosen {
linux,stdout-path = "/plb/opb/serial@ef600300";
stdout-path = "/plb/opb/serial@ef600300";
};
};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/c2k.dts
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,6 @@
};
};
chosen {
linux,stdout-path = &MPSC0;
stdout-path = &MPSC0;
};
};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/currituck.dts
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,6 @@
};

chosen {
linux,stdout-path = &UART0;
stdout-path = &UART0;
};
};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/digsy_mtc.dts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
};

rtc@56 {
compatible = "mc,rv3029c2";
compatible = "microcrystal,rv3029";
reg = <0x56>;
};

Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/ebony.dts
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,6 @@
};

chosen {
linux,stdout-path = "/plb/opb/serial@40000200";
stdout-path = "/plb/opb/serial@40000200";
};
};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/eiger.dts
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@

};
chosen {
linux,stdout-path = "/plb/opb/serial@ef600200";
stdout-path = "/plb/opb/serial@ef600200";
};

};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/ep405.dts
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,6 @@
};

chosen {
linux,stdout-path = "/plb/opb/serial@ef600300";
stdout-path = "/plb/opb/serial@ef600300";
};
};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/fsl/mvme7100.dts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
};

chosen {
linux,stdout-path = &serial0;
stdout-path = &serial0;
};
};

Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/fsp2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@
};

chosen {
linux,stdout-path = "/plb/opb/serial@b0020000";
stdout-path = "/plb/opb/serial@b0020000";
bootargs = "console=ttyS0,115200 rw log_buf_len=32768 debug";
};
};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/holly.dts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,6 @@
};

chosen {
linux,stdout-path = "/tsi109@c0000000/serial@7808";
stdout-path = "/tsi109@c0000000/serial@7808";
};
};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/hotfoot.dts
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,6 @@
};

chosen {
linux,stdout-path = &UART0;
stdout-path = &UART0;
};
};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/icon.dts
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,6 @@
};

chosen {
linux,stdout-path = "/plb/opb/serial@f0000200";
stdout-path = "/plb/opb/serial@f0000200";
};
};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/iss4xx-mpic.dts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,6 @@
};

chosen {
linux,stdout-path = "/plb/opb/serial@40000200";
stdout-path = "/plb/opb/serial@40000200";
};
};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/iss4xx.dts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,6 @@
};

chosen {
linux,stdout-path = "/plb/opb/serial@40000200";
stdout-path = "/plb/opb/serial@40000200";
};
};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/katmai.dts
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,6 @@
};

chosen {
linux,stdout-path = "/plb/opb/serial@f0000200";
stdout-path = "/plb/opb/serial@f0000200";
};
};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/klondike.dts
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,6 @@
};

chosen {
linux,stdout-path = "/plb/opb/serial@50001000";
stdout-path = "/plb/opb/serial@50001000";
};
};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/ksi8560.dts
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,6 @@


chosen {
linux,stdout-path = "/soc/cpm/serial@91a00";
stdout-path = "/soc/cpm/serial@91a00";
};
};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/media5200.dts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
};

chosen {
linux,stdout-path = &console;
stdout-path = &console;
};

cpus {
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/mpc8272ads.dts
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,6 @@
};

chosen {
linux,stdout-path = "/soc/cpm/serial@11a00";
stdout-path = "/soc/cpm/serial@11a00";
};
};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/mpc866ads.dts
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,6 @@
};

chosen {
linux,stdout-path = "/soc/cpm/serial@a80";
stdout-path = "/soc/cpm/serial@a80";
};
};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/mpc885ads.dts
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,6 @@
};

chosen {
linux,stdout-path = "/soc/cpm/serial@a80";
stdout-path = "/soc/cpm/serial@a80";
};
};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/mvme5100.dts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
};

chosen {
linux,stdout-path = &serial0;
stdout-path = &serial0;
};

};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/obs600.dts
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,6 @@
};
};
chosen {
linux,stdout-path = "/plb/opb/serial@ef600200";
stdout-path = "/plb/opb/serial@ef600200";
};
};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/pq2fads.dts
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,6 @@
};

chosen {
linux,stdout-path = "/soc/cpm/serial@11a00";
stdout-path = "/soc/cpm/serial@11a00";
};
};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/rainier.dts
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@
};

chosen {
linux,stdout-path = "/plb/opb/serial@ef600300";
stdout-path = "/plb/opb/serial@ef600300";
bootargs = "console=ttyS0,115200";
};
};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/redwood.dts
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@


chosen {
linux,stdout-path = "/plb/opb/serial@ef600200";
stdout-path = "/plb/opb/serial@ef600200";
};

};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/sam440ep.dts
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,6 @@
};

chosen {
linux,stdout-path = "/plb/opb/serial@ef600300";
stdout-path = "/plb/opb/serial@ef600300";
};
};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/sequoia.dts
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@
};

chosen {
linux,stdout-path = "/plb/opb/serial@ef600300";
stdout-path = "/plb/opb/serial@ef600300";
bootargs = "console=ttyS0,115200";
};
};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/storcenter.dts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,6 @@
};

chosen {
linux,stdout-path = &serial0;
stdout-path = &serial0;
};
};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/taishan.dts
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,6 @@
};

chosen {
linux,stdout-path = "/plb/opb/serial@40000300";
stdout-path = "/plb/opb/serial@40000300";
};
};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/virtex440-ml507.dts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
} ;
chosen {
bootargs = "console=ttyS0 root=/dev/ram";
linux,stdout-path = &RS232_Uart_1;
stdout-path = &RS232_Uart_1;
} ;
cpus {
#address-cells = <1>;
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/virtex440-ml510.dts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
} ;
chosen {
bootargs = "console=ttyS0 root=/dev/ram";
linux,stdout-path = "/plb@0/serial@83e00000";
stdout-path = "/plb@0/serial@83e00000";
} ;
cpus {
#address-cells = <1>;
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/walnut.dts
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,6 @@
};

chosen {
linux,stdout-path = "/plb/opb/serial@ef600300";
stdout-path = "/plb/opb/serial@ef600300";
};
};
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/warp.dts
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,6 @@
};

chosen {
linux,stdout-path = "/plb/opb/serial@ef600300";
stdout-path = "/plb/opb/serial@ef600300";
};
};
Loading

0 comments on commit 49a695b

Please sign in to comment.