Re: [PATCH] powerpc/xmon: add read-only mode

2019-03-29 Thread Christophe Leroy
Le 29/03/2019 à 05:21, cmr a écrit : Operations which write to memory should be restricted on secure systems and optionally to avoid self-destructive behaviors. Add a config option, XMON_RO, to control default xmon behavior along with kernel cmdline options xmon=ro and xmon=rw for explicit co

[PATCH] powerpc/64s/radix: Fix radix segment exception handling

2019-03-29 Thread Nicholas Piggin
Commit 48e7b76957 ("powerpc/64s/hash: Convert SLB miss handlers to C") broke the radix-mode segment exception handler. In radix mode, this is exception is not an SLB miss, rather it signals that the EA is outside the range translated by any page table. The commit lost the radix feature alternate c

Re: [Qemu-ppc] pseries on qemu-system-ppc64le crashes in doorbell_core_ipi()

2019-03-29 Thread Sebastian Andrzej Siewior
On 2019-03-29 16:20:51 [+1100], Suraj Jitindar Singh wrote: > > Yeah the kernel must have used msgsndp which isn't implemented for TCG > yet. We use doorbells in linux but only for threads which are on the > same core. It is msgsndp as per instruction decode. > And when I try to construct a situ

Re: [PATCH][next] ASoC: fsl: fix spelling mistake: "missign" -> "missing"

2019-03-29 Thread Viorel Suman
On Jo, 2019-03-28 at 15:48 +0530, Mukesh Ojha wrote: > On 3/28/2019 2:58 PM, Colin King wrote: > > > > From: Colin Ian King > > > > There is a spelling mistake in a dev_err message. Fix this. > > > > Signed-off-by: Colin Ian King > > Reviewed-by: Mukesh Ojha Acked-by: Viorel Suman > > -M

[PATCH v1 2/4] powerpc/boot: Add lzma support for uImage

2019-03-29 Thread Christophe Leroy
This patch allows to generate lzma compressed uImage Signed-off-by: Christophe Leroy --- arch/powerpc/Kconfig | 1 + arch/powerpc/boot/Makefile | 2 ++ arch/powerpc/boot/wrapper | 5 - 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kc

[PATCH v1 3/4] powerpc/boot: Add bzip2 support for uImage

2019-03-29 Thread Christophe Leroy
This patch allows to generate bzip2 compressed uImage Signed-off-by: Christophe Leroy --- arch/powerpc/Kconfig | 1 + arch/powerpc/boot/Makefile | 2 ++ arch/powerpc/boot/wrapper | 8 +++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/Kconfig b/arch/power

[PATCH v1 1/4] powerpc/boot: don't force gzipped uImage

2019-03-29 Thread Christophe Leroy
This patch modifies the generation of uImage by handing over the selected compression type instead of forcing gzip Signed-off-by: Christophe Leroy --- arch/powerpc/boot/wrapper | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/boot/wrapper b/arch/powerp

[PATCH v1 4/4] powerpc/boot: Add lzo support for uImage

2019-03-29 Thread Christophe Leroy
This patch allows to generate lzo compressed uImage Signed-off-by: Christophe Leroy --- arch/powerpc/Kconfig | 1 + arch/powerpc/boot/Makefile | 2 ++ arch/powerpc/boot/wrapper | 5 - 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kco

Re: [Qemu-ppc] pseries on qemu-system-ppc64le crashes in doorbell_core_ipi()

2019-03-29 Thread Nicholas Piggin
Suraj Jitindar Singh's on March 29, 2019 3:20 pm: > On Wed, 2019-03-27 at 17:51 +0100, Cédric Le Goater wrote: >> On 3/27/19 5:37 PM, Cédric Le Goater wrote: >> > On 3/27/19 1:36 PM, Sebastian Andrzej Siewior wrote: >> > > With qemu-system-ppc64le -machine pseries -smp 4 I get: >> > > >> > > > #

Re: [PATCH v2] powerpc/vmlinux.lds: Drop binutils < 2.18 workarounds

2019-03-29 Thread Segher Boessenkool
Hi! On Fri, Mar 29, 2019 at 05:14:53PM +1030, Joel Stanley wrote: > - NOTES :kernel :notes > + NOTES I think this still need to be NOTES :kernel or the linker will complain. Did you try to build ppc64_defconfig? (And I do not know if there are any tools that expect the notes i

[PATCH v1 1/4] powerpc/mm: change #include "mmu_decl.h" to

2019-03-29 Thread Christophe Leroy
This patch make inclusion of mmu_decl.h independant of the location of the file including it. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/40x_mmu.c| 2 +- arch/powerpc/mm/44x_mmu.c| 2 +- arch/powerpc/mm/8xx_mmu.c| 2 +- arch/powerpc/mm/dma-noncoherent

[PATCH v1 0/4] powerpc: Split arch/powerpc/mm/ directory

2019-03-29 Thread Christophe Leroy
arch/powerpc/mm/ contains many files that are specific to subarches. This series splits arch/powerpc/mm/ in three subparts: - arch/powerpc/mm/book3s64 - arch/powerpc/mm/book3s32 - arch/powerpc/mm/nohash Christophe Leroy (4): powerpc/mm: change #include "mmu_decl.h" to powerpc/mm: Move book3s

[PATCH v1 2/4] powerpc/mm: Move book3s64 specifics in subdirectory mm/book3s64

2019-03-29 Thread Christophe Leroy
Many files in arch/powerpc/mm are only for book3S64. This patch creates a subdirectory for them. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/Makefile | 25 +++ arch/powerpc/mm/book3s64/Makefile | 28 ++ arch/p

[PATCH v1 3/4] powerpc/mm: Move book3s32 specifics in subdirectory mm/book3s64

2019-03-29 Thread Christophe Leroy
Several files in arch/powerpc/mm are only for book3S32. This patch creates a subdirectory for them. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/Makefile| 3 +-- arch/powerpc/mm/book3s32/Makefile | 6 ++ arch/powerpc/mm/{ => book3s32}/hash

[PATCH v1 4/4] powerpc/mm: Move nohash specifics in subdirectory mm/nohash

2019-03-29 Thread Christophe Leroy
Many files in arch/powerpc/mm are only for nohash. This patch creates a subdirectory for them. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/Makefile | 17 + arch/powerpc/mm/{ => nohash}/40x_mmu.c| 0 arch/powerpc/mm/{ => nohash}/44x_mm

Re: [RFC PATCH 1/3] powernv/mce: reduce mce console logs to lesser lines.

2019-03-29 Thread Mahesh Jagannath Salgaonkar
On 3/29/19 5:50 AM, Michael Ellerman wrote: > Hi Mahesh, > > Thanks for doing this series. > > Mahesh J Salgaonkar writes: >> From: Mahesh Salgaonkar >> >> Also add cpu number while displaying mce log. This will help cleaner logs >> when mce hits on multiple cpus simultaneously. > > Can you in

Re: [RFC PATCH 2/3] powernv/mce: Print correct severity for mce error.

2019-03-29 Thread Mahesh Jagannath Salgaonkar
On 3/29/19 5:53 AM, Michael Ellerman wrote: > Mahesh J Salgaonkar writes: >> diff --git a/arch/powerpc/include/asm/mce.h b/arch/powerpc/include/asm/mce.h >> index 8d0b1c24c636..314ed3f13d59 100644 >> --- a/arch/powerpc/include/asm/mce.h >> +++ b/arch/powerpc/include/asm/mce.h >> @@ -110,17 +110,18

[PATCH stable v4.14 00/32] powerpc spectre backports for 4.14

2019-03-29 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Greg, Please queue up these powerpc patches for 4.14 if you have no objections. cheers Christophe Leroy (1): powerpc/fsl: Fix the flush of branch predictor. Diana Craciun (16): powerpc/64: Disable the speculation barrier from the command li

[PATCH stable v4.14 01/32] powerpc/64s: Add support for ori barrier_nospec patching

2019-03-29 Thread Michael Ellerman
From: Michal Suchanek commit 2eea7f067f495e33b8b116b35b5988ab2b8aec55 upstream. Based on the RFI patching. This is required to be able to disable the speculation barrier. Only one barrier type is supported and it does nothing when the firmware does not enable it. Also re-patching modules is not

[PATCH stable v4.14 02/32] powerpc/64s: Patch barrier_nospec in modules

2019-03-29 Thread Michael Ellerman
From: Michal Suchanek commit 815069ca57c142eb71d27439bc27f41a433a67b3 upstream. Note that unlike RFI which is patched only in kernel the nospec state reflects settings at the time the module was loaded. Iterating all modules and re-patching every time the settings change is not implemented. Ba

[PATCH stable v4.14 03/32] powerpc/64s: Enable barrier_nospec based on firmware settings

2019-03-29 Thread Michael Ellerman
From: Michal Suchanek commit cb3d6759a93c6d0aea1c10deb6d00e111c29c19c upstream. Check what firmware told us and enable/disable the barrier_nospec as appropriate. We err on the side of enabling the barrier, as it's no-op on older systems, see the comment for more detail. Signed-off-by: Michael

[PATCH stable v4.14 04/32] powerpc: Use barrier_nospec in copy_from_user()

2019-03-29 Thread Michael Ellerman
commit ddf35cf3764b5a182b178105f57515b42e2634f8 upstream. Based on the x86 commit doing the same. See commit 304ec1b05031 ("x86/uaccess: Use __uaccess_begin_nospec() and uaccess_try_nospec") and b3bbfb3fb5d2 ("x86: Introduce __uaccess_begin_nospec() and uaccess_try_nospec") for more detail. In a

[PATCH stable v4.14 05/32] powerpc/64: Use barrier_nospec in syscall entry

2019-03-29 Thread Michael Ellerman
commit 51973a815c6b46d7b23b68d6af371ad1c9d503ca upstream. Our syscall entry is done in assembly so patch in an explicit barrier_nospec. Based on a patch by Michal Suchanek. Signed-off-by: Michal Suchanek Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/entry_64.S | 10 ++ 1 fil

[PATCH stable v4.14 06/32] powerpc/64s: Enhance the information in cpu_show_spectre_v1()

2019-03-29 Thread Michael Ellerman
From: Michal Suchanek commit a377514519b9a20fa1ea9adddbb4129573129cef upstream. We now have barrier_nospec as mitigation so print it in cpu_show_spectre_v1() when enabled. Signed-off-by: Michal Suchanek Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/security.c | 3 +++ 1 file change

[PATCH stable v4.14 07/32] powerpc64s: Show ori31 availability in spectre_v1 sysfs file not v2

2019-03-29 Thread Michael Ellerman
commit 6d44acae1937b81cf8115ada8958e04f601f3f2e upstream. When I added the spectre_v2 information in sysfs, I included the availability of the ori31 speculation barrier. Although the ori31 barrier can be used to mitigate v2, it's primarily intended as a spectre v1 mitigation. Spectre v2 is mitiga

[PATCH stable v4.14 08/32] powerpc/64: Disable the speculation barrier from the command line

2019-03-29 Thread Michael Ellerman
From: Diana Craciun commit cf175dc315f90185128fb061dc05b6fbb211aa2f upstream. The speculation barrier can be disabled from the command line with the parameter: "nospectre_v1". Signed-off-by: Diana Craciun Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/security.c | 12 +++- 1

[PATCH stable v4.14 09/32] powerpc/64: Make stf barrier PPC_BOOK3S_64 specific.

2019-03-29 Thread Michael Ellerman
From: Diana Craciun commit 6453b532f2c8856a80381e6b9a1f5ea2f12294df upstream. NXP Book3E platforms are not vulnerable to speculative store bypass, so make the mitigations PPC_BOOK3S_64 specific. Signed-off-by: Diana Craciun Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/security.c |

[PATCH stable v4.14 10/32] powerpc/64: Add CONFIG_PPC_BARRIER_NOSPEC

2019-03-29 Thread Michael Ellerman
commit 179ab1cbf883575c3a585bcfc0f2160f1d22a149 upstream. Add a config symbol to encode which platforms support the barrier_nospec speculation barrier. Currently this is just Book3S 64 but we will add Book3E in a future patch. Signed-off-by: Diana Craciun Signed-off-by: Michael Ellerman --- ar

[PATCH stable v4.14 11/32] powerpc/64: Call setup_barrier_nospec() from setup_arch()

2019-03-29 Thread Michael Ellerman
commit af375eefbfb27cbb5b831984e66d724a40d26b5c upstream. Currently we require platform code to call setup_barrier_nospec(). But if we add an empty definition for the !CONFIG_PPC_BARRIER_NOSPEC case then we can call it in setup_arch(). Signed-off-by: Diana Craciun Signed-off-by: Michael Ellerman

[PATCH stable v4.14 12/32] powerpc/64: Make meltdown reporting Book3S 64 specific

2019-03-29 Thread Michael Ellerman
From: Diana Craciun commit 406d2b6ae3420f5bb2b3db6986dc6f0b6dbb637b upstream. In a subsequent patch we will enable building security.c for Book3E. However the NXP platforms are not vulnerable to Meltdown, so make the Meltdown vulnerability reporting PPC_BOOK3S_64 specific. Signed-off-by: Diana

[PATCH stable v4.14 13/32] powerpc/fsl: Add barrier_nospec implementation for NXP PowerPC Book3E

2019-03-29 Thread Michael Ellerman
From: Diana Craciun commit ebcd1bfc33c7a90df941df68a6e5d4018c022fba upstream. Implement the barrier_nospec as a isync;sync instruction sequence. The implementation uses the infrastructure built for BOOK3S 64. Signed-off-by: Diana Craciun [mpe: Split out of larger patch] Signed-off-by: Michael

[PATCH stable v4.14 14/32] powerpc/fsl: Sanitize the syscall table for NXP PowerPC 32 bit platforms

2019-03-29 Thread Michael Ellerman
From: Diana Craciun commit c28218d4abbf4f2035495334d8bfcba64bda4787 upstream. Used barrier_nospec to sanitize the syscall table. Signed-off-by: Diana Craciun Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/entry_32.S | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arc

[PATCH stable v4.14 15/32] powerpc/asm: Add a patch_site macro & helpers for patching instructions

2019-03-29 Thread Michael Ellerman
commit 06d0bbc6d0f56dacac3a79900e9a9a0d5972d818 upstream. Add a macro and some helper C functions for patching single asm instructions. The gas macro means we can do something like: 1:nop patch_site 1b, patch__foo Which is less visually distracting than defining a GLOBAL symbol at

[PATCH stable v4.14 17/32] powerpc/64s: Add support for software count cache flush

2019-03-29 Thread Michael Ellerman
commit ee13cb249fabdff8b90aaff61add347749280087 upstream. Some CPU revisions support a mode where the count cache needs to be flushed by software on context switch. Additionally some revisions may have a hardware accelerated flush, in which case the software flush sequence can be shortened. If we

[PATCH stable v4.14 16/32] powerpc/64s: Add new security feature flags for count cache flush

2019-03-29 Thread Michael Ellerman
commit dc8c6cce9a26a51fc19961accb978217a3ba8c75 upstream. Add security feature flags to indicate the need for software to flush the count cache on context switch, and for the presence of a hardware assisted count cache flush. Signed-off-by: Michael Ellerman --- arch/powerpc/include/asm/security

[PATCH stable v4.14 18/32] powerpc/pseries: Query hypervisor for count cache flush settings

2019-03-29 Thread Michael Ellerman
commit ba72dc171954b782a79d25e0f4b3ed91090c3b1e upstream. Use the existing hypercall to determine the appropriate settings for the count cache flush, and then call the generic powerpc code to set it up based on the security feature flags. Signed-off-by: Michael Ellerman --- arch/powerpc/include

[PATCH stable v4.14 19/32] powerpc/powernv: Query firmware for count cache flush settings

2019-03-29 Thread Michael Ellerman
commit 99d54754d3d5f896a8f616b0b6520662bc99d66b upstream. Look for fw-features properties to determine the appropriate settings for the count cache flush, and then call the generic powerpc code to set it up based on the security feature flags. Signed-off-by: Michael Ellerman --- arch/powerpc/pl

[PATCH stable v4.14 20/32] powerpc/fsl: Add infrastructure to fixup branch predictor flush

2019-03-29 Thread Michael Ellerman
From: Diana Craciun commit 76a5eaa38b15dda92cd6964248c39b5a6f3a4e9d upstream. In order to protect against speculation attacks (Spectre variant 2) on NXP PowerPC platforms, the branch predictor should be flushed when the privillege level is changed. This patch is adding the infrastructure to fixu

[PATCH stable v4.14 21/32] powerpc/fsl: Add macro to flush the branch predictor

2019-03-29 Thread Michael Ellerman
From: Diana Craciun commit 1cbf8990d79ff69da8ad09e8a3df014e1494462b upstream. The BUCSR register can be used to invalidate the entries in the branch prediction mechanisms. Signed-off-by: Diana Craciun Signed-off-by: Michael Ellerman --- arch/powerpc/include/asm/ppc_asm.h | 10 ++ 1 f

[PATCH stable v4.14 22/32] powerpc/fsl: Fix spectre_v2 mitigations reporting

2019-03-29 Thread Michael Ellerman
From: Diana Craciun commit 7d8bad99ba5a22892f0cad6881289fdc3875a930 upstream. Currently for CONFIG_PPC_FSL_BOOK3E the spectre_v2 file is incorrect: $ cat /sys/devices/system/cpu/vulnerabilities/spectre_v2 "Mitigation: Software count cache flush" Which is wrong. Fix it to report vulnerable

[PATCH stable v4.14 23/32] powerpc/fsl: Emulate SPRN_BUCSR register

2019-03-29 Thread Michael Ellerman
From: Diana Craciun commit 98518c4d8728656db349f875fcbbc7c126d4c973 upstream. In order to flush the branch predictor the guest kernel performs writes to the BUCSR register which is hypervisor privilleged. However, the branch predictor is flushed at each KVM entry, so the branch predictor has bee

[PATCH stable v4.14 24/32] powerpc/fsl: Add nospectre_v2 command line argument

2019-03-29 Thread Michael Ellerman
From: Diana Craciun commit f633a8ad636efb5d4bba1a047d4a0f1ef719aa06 upstream. When the command line argument is present, the Spectre variant 2 mitigations are disabled. Signed-off-by: Diana Craciun Signed-off-by: Michael Ellerman --- arch/powerpc/include/asm/setup.h | 5 + arch/powerpc/

[PATCH stable v4.14 25/32] powerpc/fsl: Flush the branch predictor at each kernel entry (64bit)

2019-03-29 Thread Michael Ellerman
From: Diana Craciun commit 10c5e83afd4a3f01712d97d3bb1ae34d5b74a185 upstream. In order to protect against speculation attacks on indirect branches, the branch predictor is flushed at kernel entry to protect for the following situations: - userspace process attacking another userspace process - u

[PATCH stable v4.14 26/32] powerpc/fsl: Flush the branch predictor at each kernel entry (32 bit)

2019-03-29 Thread Michael Ellerman
From: Diana Craciun commit 7fef436295bf6c05effe682c8797dfcb0deb112a upstream. In order to protect against speculation attacks on indirect branches, the branch predictor is flushed at kernel entry to protect for the following situations: - userspace process attacking another userspace process - u

[PATCH stable v4.14 27/32] powerpc/fsl: Flush branch predictor when entering KVM

2019-03-29 Thread Michael Ellerman
From: Diana Craciun commit e7aa61f47b23afbec41031bc47ca8d6cb6516abc upstream. Switching from the guest to host is another place where the speculative accesses can be exploited. Flush the branch predictor when entering KVM. Signed-off-by: Diana Craciun Signed-off-by: Michael Ellerman --- arch

[PATCH stable v4.14 28/32] powerpc/fsl: Enable runtime patching if nospectre_v2 boot arg is used

2019-03-29 Thread Michael Ellerman
From: Diana Craciun commit 3bc8ea8603ae4c1e09aca8de229ad38b8091fcb3 upstream. If the user choses not to use the mitigations, replace the code sequence with nops. Signed-off-by: Diana Craciun Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/setup-common.c | 1 + 1 file changed, 1 inser

[PATCH stable v4.14 29/32] powerpc/fsl: Update Spectre v2 reporting

2019-03-29 Thread Michael Ellerman
From: Diana Craciun commit dfa88658fb0583abb92e062c7a9cd5a5b94f2a46 upstream. Report branch predictor state flush as a mitigation for Spectre variant 2. Signed-off-by: Diana Craciun Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/security.c | 5 - 1 file changed, 4 insertions(+),

[PATCH stable v4.14 30/32] powerpc/fsl: Fixed warning: orphan section `__btb_flush_fixup'

2019-03-29 Thread Michael Ellerman
From: Diana Craciun commit 039daac5526932ec731e4499613018d263af8b3e upstream. Fixed the following build warning: powerpc-linux-gnu-ld: warning: orphan section `__btb_flush_fixup' from `arch/powerpc/kernel/head_44x.o' being placed in section `__btb_flush_fixup'. Signed-off-by: Diana Craciun Sig

[PATCH stable v4.14 31/32] powerpc/fsl: Fix the flush of branch predictor.

2019-03-29 Thread Michael Ellerman
From: Christophe Leroy commit 27da80719ef132cf8c80eb406d5aeb37dddf78cc upstream. The commit identified below adds MC_BTB_FLUSH macro only when CONFIG_PPC_FSL_BOOK3E is defined. This results in the following error on some configs (seen several times with kisskb randconfig_defconfig) arch/powerpc

[PATCH stable v4.14 32/32] powerpc/security: Fix spectre_v2 reporting

2019-03-29 Thread Michael Ellerman
commit 92edf8df0ff2ae86cc632eeca0e651fd8431d40d upstream. When I updated the spectre_v2 reporting to handle software count cache flush I got the logic wrong when there's no software count cache enabled at all. The result is that on systems with the software count cache flush disabled we print:

CONFIG_ARCH_SUPPORTS_INT128: Why not mips, s390, powerpc, and alpha?

2019-03-29 Thread George Spelvin
(Cross-posted in case there are generic issues; please trim if discussion wanders into single-architecture details.) I was working on some scaling code that can benefit from 64x64->128-bit multiplies. GCC supports an __int128 type on processors with hardware support (including z/Arch and MIPS64),

[PATCH 04/13] soc/fsl/qman-portal: map CENA area in the iommu

2019-03-29 Thread laurentiu . tudor
From: Laurentiu Tudor Add a one-to-one iommu mapping for qman portal CENA register area. This is required for QMAN stashing to work without faults behind an iommu. Signed-off-by: Laurentiu Tudor --- drivers/soc/fsl/qbman/qman_portal.c | 17 + 1 file changed, 17 insertions(+) d

[PATCH 11/13] dpaa_eth: fix iova handling for contiguous frames

2019-03-29 Thread laurentiu . tudor
From: Laurentiu Tudor The driver relies on the no longer valid assumption that dma addresses (iovas) are identical to physical addressees and uses phys_to_virt() to make iova -> vaddr conversions. Fix this by adding a function that does proper iova -> phys conversions using the iommu api and upda

[PATCH 13/13] dpaa_eth: fix SG frame cleanup

2019-03-29 Thread laurentiu . tudor
From: Laurentiu Tudor Fix issue with the entry indexing in the sg frame cleanup code being off-by-1. This problem showed up when doing some basic iperf tests and manifested in traffic coming to a halt. Signed-off-by: Laurentiu Tudor Acked-by: Madalin Bucur --- drivers/net/ethernet/freescale/d

[PATCH 00/13] Prerequisites for NXP LS104xA SMMU enablement

2019-03-29 Thread laurentiu . tudor
From: Laurentiu Tudor This patch series contains several fixes in preparation for SMMU support on NXP LS1043A and LS1046A chips. Once these get picked up, I'll submit the actual SMMU enablement patches consisting in the required device tree changes. This patch series contains only part of the pr

[PATCH 10/13] dpaa_eth: base dma mappings on the fman rx port

2019-03-29 Thread laurentiu . tudor
From: Laurentiu Tudor The dma transactions initiator is the rx fman port so that's the device that the dma mappings should be done. Previously the mappings were done through the MAC device which makes no sense because it's neither dma-able nor connected in any way to smmu. Signed-off-by: Laurent

[PATCH 07/13] fsl/fman: backup and restore ICID registers

2019-03-29 Thread laurentiu . tudor
From: Laurentiu Tudor During probing, FMAN is reset thus losing all its register settings. Backup port ICID registers before reset and restore them after, similarly to how it's done on powerpc / PAMU based platforms. This also has the side effect of disabling the old code path (liodn backup/resto

[PATCH 08/13] fsl/fman: add API to get the device behind a fman port

2019-03-29 Thread laurentiu . tudor
From: Laurentiu Tudor Add an API that retrieves the 'struct device' that the specified fman port probed against. The new API will be used in a subsequent iommu enablement related patch. Signed-off-by: Laurentiu Tudor Acked-by: Madalin Bucur --- drivers/net/ethernet/freescale/fman/fman_port.c

[PATCH 05/13] soc/fsl/bqman: page align iommu mapping sizes

2019-03-29 Thread laurentiu . tudor
From: Laurentiu Tudor Prior to calling iommu_map()/iommu_unmap() page align the size or failures such as below could happen: iommu: unaligned: iova 0x... pa 0x... size 0x4000 min_pagesz 0x1 qman_portal 5.qman-portal: failed to iommu_map() -22 Seen when booted a kernel compiled with

[PATCH 09/13] dpaa_eth: defer probing after qbman

2019-03-29 Thread laurentiu . tudor
From: Laurentiu Tudor Enabling SMMU altered the order of device probing causing the dpaa1 ethernet driver to get probed before qbman and causing a boot crash. Add predictability in the probing order by deferring the ethernet driver probe after qbman and portals by using the recently introduced qb

[PATCH 03/13] soc/fsl/qman: map FQD and PFDR areas in the iommu

2019-03-29 Thread laurentiu . tudor
From: Laurentiu Tudor Add a one-to-one iommu mapping for qman private data memory areas (FQD and PFDR). This is required for QMAN to work without faults behind an iommu. Signed-off-by: Laurentiu Tudor --- drivers/soc/fsl/qbman/qman_ccsr.c | 15 +++ 1 file changed, 15 insertions(+)

[PATCH 01/13] soc/fsl/qman: fixup liodns only on ppc targets

2019-03-29 Thread laurentiu . tudor
From: Laurentiu Tudor ARM SoCs use SMMU so the liodn fixup done in the qman driver is no longer making sense and it also breaks the ICID settings inherited from u-boot. Do the fixups only for PPC targets. Signed-off-by: Laurentiu Tudor --- drivers/soc/fsl/qbman/qman_ccsr.c | 2 ++ 1 file chang

[PATCH 02/13] soc/fsl/bman: map FBPR area in the iommu

2019-03-29 Thread laurentiu . tudor
From: Laurentiu Tudor Add a one-to-one iommu mapping for bman private data memory (FBPR). This is required for BMAN to work without faults behind an iommu. Signed-off-by: Laurentiu Tudor --- drivers/soc/fsl/qbman/bman_ccsr.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/driv

[PATCH 06/13] soc/fsl/qbman_portals: add APIs to retrieve the probing status

2019-03-29 Thread laurentiu . tudor
From: Laurentiu Tudor Add a couple of new APIs to check the probing status of the required cpu bound qman and bman portals: 'int bman_portals_probed()' and 'int qman_portals_probed()'. They return the following values. * 1 if qman/bman portals were all probed correctly * 0 if qman/bman porta

[PATCH 12/13] dpaa_eth: fix iova handling for sg frames

2019-03-29 Thread laurentiu . tudor
From: Laurentiu Tudor The driver relies on the no longer valid assumption that dma addresses (iovas) are identical to physical addressees and uses phys_to_virt() to make iova -> vaddr conversions. Fix this also for scatter-gather frames using the iova -> phys conversion function added in the prev

Re: [PATCH 02/13] soc/fsl/bman: map FBPR area in the iommu

2019-03-29 Thread Robin Murphy
On 29/03/2019 14:00, laurentiu.tu...@nxp.com wrote: From: Laurentiu Tudor Add a one-to-one iommu mapping for bman private data memory (FBPR). This is required for BMAN to work without faults behind an iommu. Signed-off-by: Laurentiu Tudor --- drivers/soc/fsl/qbman/bman_ccsr.c | 11 +

Re: [PATCH stable v4.14 00/32] powerpc spectre backports for 4.14

2019-03-29 Thread Greg KH
On Fri, Mar 29, 2019 at 10:25:48PM +1100, Michael Ellerman wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi Greg, > > Please queue up these powerpc patches for 4.14 if you have no objections. Some of these also need to go to 4.19, right? Want me to add them there, or are you goin

Patch "[PATCH stable v4.14 10/32] powerpc/64: Add CONFIG_PPC_BARRIER_NOSPEC" has been added to the 4.14-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled [PATCH stable v4.14 10/32] powerpc/64: Add CONFIG_PPC_BARRIER_NOSPEC to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the

Patch "[PATCH stable v4.14 11/32] powerpc/64: Call setup_barrier_nospec() from setup_arch()" has been added to the 4.14-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled [PATCH stable v4.14 11/32] powerpc/64: Call setup_barrier_nospec() from setup_arch() to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The

Patch "[PATCH stable v4.14 08/32] powerpc/64: Disable the speculation barrier from the command line" has been added to the 4.14-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled [PATCH stable v4.14 08/32] powerpc/64: Disable the speculation barrier from the command line to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summ

Patch "[PATCH stable v4.14 12/32] powerpc/64: Make meltdown reporting Book3S 64 specific" has been added to the 4.14-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled [PATCH stable v4.14 12/32] powerpc/64: Make meltdown reporting Book3S 64 specific to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The fi

Patch "[PATCH stable v4.14 09/32] powerpc/64: Make stf barrier PPC_BOOK3S_64 specific." has been added to the 4.14-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled [PATCH stable v4.14 09/32] powerpc/64: Make stf barrier PPC_BOOK3S_64 specific. to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The file

Patch "[PATCH stable v4.14 16/32] powerpc/64s: Add new security feature flags for count cache flush" has been added to the 4.14-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled [PATCH stable v4.14 16/32] powerpc/64s: Add new security feature flags for count cache flush to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summ

Patch "[PATCH stable v4.14 21/32] powerpc/fsl: Add macro to flush the branch predictor" has been added to the 4.14-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled [PATCH stable v4.14 21/32] powerpc/fsl: Add macro to flush the branch predictor to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The file

Patch "[PATCH stable v4.14 24/32] powerpc/fsl: Add nospectre_v2 command line argument" has been added to the 4.14-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled [PATCH stable v4.14 24/32] powerpc/fsl: Add nospectre_v2 command line argument to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filen

Patch "[PATCH stable v4.14 01/32] powerpc/64s: Add support for ori barrier_nospec patching" has been added to the 4.14-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled [PATCH stable v4.14 01/32] powerpc/64s: Add support for ori barrier_nospec patching to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The

Patch "[PATCH stable v4.14 17/32] powerpc/64s: Add support for software count cache flush" has been added to the 4.14-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled [PATCH stable v4.14 17/32] powerpc/64s: Add support for software count cache flush to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The f

Patch "[PATCH stable v4.14 03/32] powerpc/64s: Enable barrier_nospec based on firmware settings" has been added to the 4.14-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled [PATCH stable v4.14 03/32] powerpc/64s: Enable barrier_nospec based on firmware settings to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

Patch "[PATCH stable v4.14 06/32] powerpc/64s: Enhance the information in cpu_show_spectre_v1()" has been added to the 4.14-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled [PATCH stable v4.14 06/32] powerpc/64s: Enhance the information in cpu_show_spectre_v1() to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

Patch "[PATCH stable v4.14 02/32] powerpc/64s: Patch barrier_nospec in modules" has been added to the 4.14-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled [PATCH stable v4.14 02/32] powerpc/64s: Patch barrier_nospec in modules to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of t

Patch "[PATCH stable v4.14 15/32] powerpc/asm: Add a patch_site macro & helpers for patching instructions" has been added to the 4.14-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled [PATCH stable v4.14 15/32] powerpc/asm: Add a patch_site macro & helpers for patching instructions to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;

Patch "[PATCH stable v4.14 13/32] powerpc/fsl: Add barrier_nospec implementation for NXP PowerPC Book3E" has been added to the 4.14-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled [PATCH stable v4.14 13/32] powerpc/fsl: Add barrier_nospec implementation for NXP PowerPC Book3E to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=

Patch "[PATCH stable v4.14 20/32] powerpc/fsl: Add infrastructure to fixup branch predictor flush" has been added to the 4.14-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled [PATCH stable v4.14 20/32] powerpc/fsl: Add infrastructure to fixup branch predictor flush to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summar

Patch "[PATCH stable v4.14 05/32] powerpc/64: Use barrier_nospec in syscall entry" has been added to the 4.14-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled [PATCH stable v4.14 05/32] powerpc/64: Use barrier_nospec in syscall entry to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename o

Patch "[PATCH stable v4.14 28/32] powerpc/fsl: Enable runtime patching if nospectre_v2 boot arg is used" has been added to the 4.14-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled [PATCH stable v4.14 28/32] powerpc/fsl: Enable runtime patching if nospectre_v2 boot arg is used to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=

Patch "[PATCH stable v4.14 19/32] powerpc/powernv: Query firmware for count cache flush settings" has been added to the 4.14-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled [PATCH stable v4.14 19/32] powerpc/powernv: Query firmware for count cache flush settings to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

Patch "[PATCH stable v4.14 18/32] powerpc/pseries: Query hypervisor for count cache flush settings" has been added to the 4.14-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled [PATCH stable v4.14 18/32] powerpc/pseries: Query hypervisor for count cache flush settings to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summa

Patch "[PATCH stable v4.14 22/32] powerpc/fsl: Fix spectre_v2 mitigations reporting" has been added to the 4.14-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled [PATCH stable v4.14 22/32] powerpc/fsl: Fix spectre_v2 mitigations reporting to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename

Patch "[PATCH stable v4.14 31/32] powerpc/fsl: Fix the flush of branch predictor." has been added to the 4.14-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled [PATCH stable v4.14 31/32] powerpc/fsl: Fix the flush of branch predictor. to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename o

Patch "[PATCH stable v4.14 30/32] powerpc/fsl: Fixed warning: orphan section `__btb_flush_fixup'" has been added to the 4.14-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled [PATCH stable v4.14 30/32] powerpc/fsl: Fixed warning: orphan section `__btb_flush_fixup' to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

Patch "[PATCH stable v4.14 27/32] powerpc/fsl: Flush branch predictor when entering KVM" has been added to the 4.14-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled [PATCH stable v4.14 27/32] powerpc/fsl: Flush branch predictor when entering KVM to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The fil

Patch "[PATCH stable v4.14 26/32] powerpc/fsl: Flush the branch predictor at each kernel entry (32 bit)" has been added to the 4.14-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled [PATCH stable v4.14 26/32] powerpc/fsl: Flush the branch predictor at each kernel entry (32 bit) to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=

Patch "[PATCH stable v4.14 25/32] powerpc/fsl: Flush the branch predictor at each kernel entry (64bit)" has been added to the 4.14-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled [PATCH stable v4.14 25/32] powerpc/fsl: Flush the branch predictor at each kernel entry (64bit) to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=s

Patch "[PATCH stable v4.14 14/32] powerpc/fsl: Sanitize the syscall table for NXP PowerPC 32 bit platforms" has been added to the 4.14-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled [PATCH stable v4.14 14/32] powerpc/fsl: Sanitize the syscall table for NXP PowerPC 32 bit platforms to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git

Patch "[PATCH stable v4.14 29/32] powerpc/fsl: Update Spectre v2 reporting" has been added to the 4.14-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled [PATCH stable v4.14 29/32] powerpc/fsl: Update Spectre v2 reporting to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the p

Patch "[PATCH stable v4.14 23/32] powerpc/fsl: Emulate SPRN_BUCSR register" has been added to the 4.14-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled [PATCH stable v4.14 23/32] powerpc/fsl: Emulate SPRN_BUCSR register to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the p

Patch "[PATCH stable v4.14 04/32] powerpc: Use barrier_nospec in copy_from_user()" has been added to the 4.14-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled [PATCH stable v4.14 04/32] powerpc: Use barrier_nospec in copy_from_user() to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename o

Patch "[PATCH stable v4.14 07/32] powerpc64s: Show ori31 availability in spectre_v1 sysfs file not v2" has been added to the 4.14-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled [PATCH stable v4.14 07/32] powerpc64s: Show ori31 availability in spectre_v1 sysfs file not v2 to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=su

Patch "[PATCH stable v4.14 32/32] powerpc/security: Fix spectre_v2 reporting" has been added to the 4.14-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled [PATCH stable v4.14 32/32] powerpc/security: Fix spectre_v2 reporting to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the

Patch "powerpc/fsl: Add infrastructure to fixup branch predictor flush" has been added to the 4.19-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled powerpc/fsl: Add infrastructure to fixup branch predictor flush to the 4.19-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch

  1   2   >