[PATCH]powerpc/mobility: Serialize PRRN and LPM in device tree update

2019-04-26 Thread Juliet Kim
Fix extending start/stop topology update scope during LPM Commit 65b9fdadfc4d ("powerpc/pseries/mobility: Extend start/stop topology update scope") made the change to the duration that topology updates are suppressed during LPM to allow the complete device tree update which leaves the property up

[linuxppc-dev] Patch notification: 3 patches updated

2019-04-26 Thread Patchwork
Hello, The following patches (submitted by you) have been updated in Patchwork: * linuxppc-dev: crash in ppc4xx-rng on canyonland - http://patchwork.ozlabs.org/patch/608253/ - for: Linux PPC development was: New now: Not Applicable * linuxppc-dev: crash in ppc4xx-rng on canyo

[PATCH 2/4] dt-bindings: doc: Reflect new NVMEM of_get_mac_address behaviour

2019-04-26 Thread Petr Štetiar
As of_get_mac_address now supports NVMEM under the hood, we should update the bindings documentation with the new nvmem-cell* properties. While at it, fix also other missing properties supported by of_get_mac_address. Signed-off-by: Petr Štetiar --- Documentation/devicetree/bindings/net/altera_t

[PATCH]powerpc/mobility: Serialize PRRN and LPM in device tree update

2019-04-26 Thread Juliet Kim
Fix extending start/stop topology update scope during LPM Commit 65b9fdadfc4d ("powerpc/pseries/mobility: Extend start/stop topology update scope") made the change to the duration that topology updates are suppressed during LPM to allow the complete device tree update which leaves the property up

[PATCH]powerpc/mobility: Serialize PRRN and LPM in device tree update

2019-04-26 Thread Juilet Kim
Fix extending start/stop topology update scope during LPM Commit 65b9fdadfc4d ("powerpc/pseries/mobility: Extend start/stop topology update scope") made the change to the duration that topology updates are suppressed during LPM to allow the complete device tree update which leaves the property up

[PATCH]powerpc/mobility: Serialize PRRN and LPM in device tree update

2019-04-26 Thread Juilet Kim
Fix extending start/stop topology update scope during LPM Commit 65b9fdadfc4d ("powerpc/pseries/mobility: Extend start/stop topology update scope") made the change to the duration that topology updates are suppressed during LPM to allow the complete device tree update which leaves the property up

[PATCH AUTOSEL 4.19 33/53] powerpc/vdso32: fix CLOCK_MONOTONIC on PPC64

2019-04-26 Thread Sasha Levin
From: Christophe Leroy [ Upstream commit dd9a994fc68d196a052b73747e3366c57d14a09e ] Commit b5b4453e7912 ("powerpc/vdso64: Fix CLOCK_MONOTONIC inconsistencies across Y2038") changed the type of wtom_clock_sec to s64 on PPC64. Therefore, VDSO32 needs to read it with a 4 bytes shift in order to ret

[PATCH AUTOSEL 5.0 44/79] powerpc/vdso32: fix CLOCK_MONOTONIC on PPC64

2019-04-26 Thread Sasha Levin
From: Christophe Leroy [ Upstream commit dd9a994fc68d196a052b73747e3366c57d14a09e ] Commit b5b4453e7912 ("powerpc/vdso64: Fix CLOCK_MONOTONIC inconsistencies across Y2038") changed the type of wtom_clock_sec to s64 on PPC64. Therefore, VDSO32 needs to read it with a 4 bytes shift in order to ret

Re: [RFC PATCH] virtio_ring: Use DMA API if guest memory is encrypted

2019-04-26 Thread Thiago Jung Bauermann
Michael S. Tsirkin writes: > On Wed, Apr 24, 2019 at 10:01:56PM -0300, Thiago Jung Bauermann wrote: >> >> Michael S. Tsirkin writes: >> >> > On Wed, Apr 17, 2019 at 06:42:00PM -0300, Thiago Jung Bauermann wrote: >> >> >> >> Michael S. Tsirkin writes: >> >> >> >> > On Thu, Mar 21, 2019 at 09:0

[PATCH]powerpc/mobility: Serialize PRRN and LPM in device tree update

2019-04-26 Thread Juliet Kim
Fix extending start/stop topology update scope during LPM Commit 65b9fdadfc4d ("powerpc/pseries/mobility: Extend start/stop topology update scope") made the change to the duration that topology updates are suppressed during LPM to allow the complete device tree update which leaves the property up

[PATCH 12/10] powerpc: unbreak DYNAMIC_DEBUG=y build with clang

2019-04-26 Thread Rasmus Villemoes
Current versions of clang does not like the %c modifier in inline assembly for targets other than x86, so any DYNAMIC_DEBUG=y build fails on ppc64. A fix is likely to land in 9.0 (see https://github.com/ClangBuiltLinux/linux/issues/456), but unbreak the build for older versions. Fixes: powerpc: se

Re: BUG: crash in __tlb_remove_page_size with STRICT_KERNEL_RWX on BOOK3S_32

2019-04-26 Thread Segher Boessenkool
On Fri, Apr 26, 2019 at 05:38:50PM +0300, Serge Belyshev wrote: > ---[ Instruction Block Address Translation ]--- > 0: 0xc000-0xc07f 0x Kernel EXEC coherent > 1: 0xc080-0xc087 0x0080 Kernel EXEC coherent > 2: - > 3: - > 4: - > 5: - > 6:

[PATCH v3 3/3] powerpc/mm: print hash info in a helper

2019-04-26 Thread Christophe Leroy
Reduce #ifdef mess by defining a helper to print hash info at startup. In the meantime, remove the display of hash table address to reduce leak of non necessary information. Signed-off-by: Christophe Leroy --- v2: added header to avoid sparse warning v3: rebased due to commit a092a03fa942 ("powe

[PATCH v3 2/3] powerpc/32s: don't try to print hash table address.

2019-04-26 Thread Christophe Leroy
Due to %p, (ptrval) is printed in lieu of the hash table address. showing the hash table address isn't an operationnal need so just don't print it. Signed-off-by: Christophe Leroy --- v2: no change v3: no change arch/powerpc/mm/ppc_mmu_32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletion

[PATCH v3 1/3] powerpc/32s: drop Hash_end

2019-04-26 Thread Christophe Leroy
Hash_end has never been used, drop it. Signed-off-by: Christophe Leroy --- v2: no change v3: no change arch/powerpc/mm/mmu_decl.h | 2 +- arch/powerpc/mm/ppc_mmu_32.c | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/mm/mmu_decl.h b/arch/powerpc/mm/mmu_decl

Re: [PATCH v10 05/18] powerpc/prom_init: don't use string functions from lib/

2019-04-26 Thread Christophe Leroy
Le 13/03/2019 à 00:38, Daniel Axtens a écrit : Hi Christophe, In trying to extend my KASAN implementation to Book3S 64bit, I found one other change needed to prom_init. I don't know if you think it should go in this patch, the next one, or somewhere else entirely - I will leave it up to you.

[PATCH v11 13/13] powerpc/32s: map kasan zero shadow with PAGE_READONLY instead of PAGE_KERNEL_RO

2019-04-26 Thread Christophe Leroy
For hash32, the zero shadow page gets mapped with PAGE_READONLY instead of PAGE_KERNEL_RO, because the PP bits don't provide a RO kernel, so PAGE_KERNEL_RO is equivalent to PAGE_KERNEL. By using PAGE_READONLY, the page is RO for both kernel and user, but this is not a security issue as it contains

[PATCH v11 12/13] powerpc/32s: set up an early static hash table for KASAN.

2019-04-26 Thread Christophe Leroy
KASAN requires early activation of hash table, before memblock() functions are available. This patch implements an early hash_table statically defined in __initdata. During early boot, a single page table is used. For hash32, when doing the final init, one page table is allocated for each PGD en

[PATCH v11 11/13] powerpc/32s: move hash code patching out of MMU_init_hw()

2019-04-26 Thread Christophe Leroy
For KASAN, hash table handling will be activated early for accessing to KASAN shadow areas. In order to avoid any modification of the hash functions while they are still used with the early hash table, the code patching is moved out of MMU_init_hw() and put close to the big-bang switch to the fina

[PATCH v11 10/13] powerpc/32: Add KASAN support

2019-04-26 Thread Christophe Leroy
This patch adds KASAN support for PPC32. The following patch will add an early activation of hash table for book3s. Until then, a warning will be raised if trying to use KASAN on an hash 6xx. To support KASAN, this patch initialises that MMU mapings for accessing to the KASAN shadow area defined i

[PATCH v11 09/13] powerpc: disable KASAN instrumentation on early/critical files.

2019-04-26 Thread Christophe Leroy
All files containing functions run before kasan_early_init() is called must have KASAN instrumentation disabled. For those file, branch profiling also have to be disabled otherwise each if () generates a call to ftrace_likely_update(). Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/Mak

[PATCH v11 08/13] powerpc/32: prepare shadow area for KASAN

2019-04-26 Thread Christophe Leroy
This patch prepares a shadow area for KASAN. The shadow area will be at the top of the kernel virtual memory space above the fixmap area and will occupy one eighth of the total kernel virtual memory space. Signed-off-by: Christophe Leroy --- arch/powerpc/Kconfig.debug| 5 + arch/po

[PATCH v11 07/13] powerpc/32: make KVIRT_TOP dependent on FIXMAP_START

2019-04-26 Thread Christophe Leroy
When we add KASAN shadow area, KVIRT_TOP can't be anymore fixed at 0xfe00. This patch uses FIXADDR_START to define KVIRT_TOP. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/book3s/32/pgtable.h | 13 ++--- arch/powerpc/include/asm/nohash/32/pgtable.h | 13 ++---

[PATCH v11 06/13] powerpc/32: use memset() instead of memset_io() to zero BSS

2019-04-26 Thread Christophe Leroy
Since commit 400c47d81ca38 ("powerpc32: memset: only use dcbz once cache is enabled"), memset() can be used before activation of the cache, so no need to use memset_io() for zeroing the BSS. Acked-by: Dmitry Vyukov Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/early_32.c | 4 ++-- 1 f

[PATCH v11 05/13] powerpc: don't use direct assignation during early boot.

2019-04-26 Thread Christophe Leroy
In kernel/cputable.c, explicitly use memcpy() instead of *y = *x; This will allow GCC to replace it with __memcpy() when KASAN is selected. Acked-by: Dmitry Vyukov Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/cputable.c | 13 ++--- arch/powerpc/kernel/prom_init.c | 10 ++

[PATCH v11 04/13] powerpc/prom_init: don't use string functions from lib/

2019-04-26 Thread Christophe Leroy
When KASAN is active, the string functions in lib/ are doing the KASAN checks. This is too early for prom_init. This patch implements dedicated string functions for prom_init, which will be compiled in with KASAN disabled. Size of prom_init before the patch: textdata bss dec he

[PATCH v11 03/13] powerpc: remove CONFIG_CMDLINE #ifdef mess

2019-04-26 Thread Christophe Leroy
This patch makes CONFIG_CMDLINE defined at all time. It avoids having to enclose related code inside #ifdef CONFIG_CMDLINE Signed-off-by: Christophe Leroy --- arch/powerpc/Kconfig| 6 +++--- arch/powerpc/kernel/prom_init.c | 9 +++-- 2 files changed, 6 insertions(+), 9 deletions(

[PATCH v11 02/13] powerpc: prepare string/mem functions for KASAN

2019-04-26 Thread Christophe Leroy
CONFIG_KASAN implements wrappers for memcpy() memmove() and memset() Those wrappers are doing the verification then call respectively __memcpy() __memmove() and __memset(). The arches are therefore expected to rename their optimised functions that way. For files on which KASAN is inhibited, #defin

[PATCH v11 01/13] powerpc/32: Move early_init() in a separate file

2019-04-26 Thread Christophe Leroy
In preparation of KASAN, move early_init() into a separate file in order to allow deactivation of KASAN for that function. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/Makefile | 2 +- arch/powerpc/kernel/early_32.c | 36 arch/powerpc/kernel/set

[PATCH v11 00/13] KASAN for powerpc/32

2019-04-26 Thread Christophe Leroy
This series adds KASAN support to powerpc/32 32 bits tested on nohash/32 (8xx), book3s/32 (mpc832x ie 603) and qemu mac99 Changes in v11: - Dropped book3e RFC part. - Rebased on latest powerpc merge branch (b251649c77625b7ad4430e518dc0f1608be9edf4). Main impact is in head_32.S do to the merge wi

[PATCH v2 15/15] powerpc/mm: refactor pgd_alloc() and pgd_free() on nohash

2019-04-26 Thread Christophe Leroy
pgd_alloc() and pgd_free() are identical on nohash 32 and 64. Reviewed-by: Aneesh Kumar K.V Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/nohash/32/pgalloc.h | 11 --- arch/powerpc/include/asm/nohash/64/pgalloc.h | 11 --- arch/powerpc/include/asm/nohash/pgalloc.h

[PATCH v2 14/15] powerpc/mm: refactor pmd_pgtable()

2019-04-26 Thread Christophe Leroy
pmd_pgtable() is identical on the 4 subarches, refactor it. Reviewed-by: Aneesh Kumar K.V Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/book3s/32/pgalloc.h | 2 -- arch/powerpc/include/asm/book3s/64/pgalloc.h | 5 - arch/powerpc/include/asm/nohash/32/pgalloc.h | 2 -- arch/po

[PATCH v2 13/15] powerpc/mm: refactor pgtable freeing functions on nohash

2019-04-26 Thread Christophe Leroy
pgtable_free() and others are identical on nohash/32 and 64, so move them into asm/nohash/pgalloc.h Reviewed-by: Aneesh Kumar K.V Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/nohash/32/pgalloc.h | 43 --- arch/powerpc/include/asm/nohash/64/pgalloc.h | 43

[PATCH v2 12/15] powerpc/mm: Only keep one version of pmd_populate() functions on nohash/32

2019-04-26 Thread Christophe Leroy
Use IS_ENABLED(CONFIG_BOOKE) to make single versions of pmd_populate() and pmd_populate_kernel() Reviewed-by: Aneesh Kumar K.V Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/nohash/32/pgalloc.h | 28 1 file changed, 8 insertions(+), 20 deletions(-) di

[PATCH v2 11/15] powerpc/mm: refactor definition of pgtable_cache[]

2019-04-26 Thread Christophe Leroy
pgtable_cache[] is the same for the 4 subarches, lets make it common. Reviewed-by: Aneesh Kumar K.V Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/book3s/32/pgalloc.h | 21 - arch/powerpc/include/asm/book3s/64/pgalloc.h | 22 -- arch/powerpc

[PATCH v2 10/15] powerpc/mm: refactor pte_alloc_one() and pte_free() families definition.

2019-04-26 Thread Christophe Leroy
Functions pte_alloc_one(), pte_alloc_one_kernel(), pte_free(), pte_free_kernel() are identical for the four subarches. This patch moves their definition in a common place. Reviewed-by: Aneesh Kumar K.V Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/book3s/32/pgalloc.h | 25 --

[PATCH v2 09/15] powerpc/mm: inline pte_alloc_one_kernel() and pte_alloc_one() on PPC32

2019-04-26 Thread Christophe Leroy
pte_alloc_one_kernel() and pte_alloc_one() are simple calls to pte_fragment_alloc(), so they are good candidates for inlining as already done on PPC64. Reviewed-by: Aneesh Kumar K.V Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/book3s/32/pgalloc.h | 15 --- arch/power

[PATCH v2 08/15] powerpc/mm: don't use pte_alloc_kernel() until slab is available on PPC32

2019-04-26 Thread Christophe Leroy
In the same way as PPC64, implement early allocation functions and avoid calling pte_alloc_kernel() before slab is available. Reviewed-by: Aneesh Kumar K.V Signed-off-by: Christophe Leroy --- arch/powerpc/mm/pgtable_32.c | 34 -- 1 file changed, 28 insertions(+),

[PATCH v2 05/15] powerpc/mm: get rid of nohash/32/mmu.h and nohash/64/mmu.h

2019-04-26 Thread Christophe Leroy
Those files have no real added values, especially the 64 bit which only includes the common book3e mmu.h which is also included from 32 bits side. So lets do the final inclusion directly from nohash/mmu.h Reviewed-by: Aneesh Kumar K.V Signed-off-by: Christophe Leroy --- arch/powerpc/include/as

[PATCH v2 06/15] powerpc/Kconfig: select PPC_MM_SLICES from subarch type

2019-04-26 Thread Christophe Leroy
Lets select PPC_MM_SLICES from the subarch config item instead of doing it via defaults declaration in the PPC_MM_SLICES item itself. Reviewed-by: Aneesh Kumar K.V Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/Kconfig.cputype | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-

[PATCH v2 07/15] powerpc/book3e: move early_alloc_pgtable() to init section

2019-04-26 Thread Christophe Leroy
early_alloc_pgtable() is only used during init. Reviewed-by: Aneesh Kumar K.V Signed-off-by: Christophe Leroy --- arch/powerpc/mm/pgtable-book3e.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/mm/pgtable-book3e.c b/arch/powerpc/mm/pgtable-book3e.c index 10

[PATCH v2 02/15] powerpc/mm: define __pud_free_tlb() at all time on nohash/64

2019-04-26 Thread Christophe Leroy
CONFIG_PPC_64K_PAGES is not selectable on nohash/64, so get __pud_free_tlb() defined at all time. Reviewed-by: Aneesh Kumar K.V Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/nohash/64/pgalloc.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/powerpc/include/asm/nohash/

[PATCH v2 04/15] powerpc/mm: move pgtable_t in asm/mmu.h

2019-04-26 Thread Christophe Leroy
pgtable_t is now identical for all subarches, move it to the top level asm/mmu.h Reviewed-by: Aneesh Kumar K.V Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/book3s/32/mmu-hash.h | 4 arch/powerpc/include/asm/book3s/64/mmu.h | 8 arch/powerpc/include/asm/mmu.h

[PATCH v2 00/15] Refactor pgalloc stuff

2019-04-26 Thread Christophe Leroy
This series converts book3e64 to pte_fragment and refactor things that are common among subarches. Changes in v2: - Rebased on latest merge branch (b251649c77625b7ad4430e518dc0f1608be9edf4) - Resolved conflicts, especially due to the addition of MAX_PHYSMEM_BITS in asm/nohash/64/mmu.h ==> moved it

[PATCH v2 01/15] powerpc/mm: drop __bad_pte()

2019-04-26 Thread Christophe Leroy
This has never been called (since Kernel has been in git at least), drop it. Reviewed-by: Aneesh Kumar K.V Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/book3s/32/pgalloc.h | 2 -- arch/powerpc/include/asm/nohash/32/pgalloc.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/

[PATCH v2 03/15] powerpc/mm: convert Book3E 64 to pte_fragment

2019-04-26 Thread Christophe Leroy
Book3E 64 is the only subarch not using pte_fragment. In order to allow refactorisation, this patch converts it to pte_fragment. Reviewed-by: Aneesh Kumar K.V Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/mmu_context.h | 6 - arch/powerpc/include/asm/nohash/64/mmu.h

Re: BUG: crash in __tlb_remove_page_size with STRICT_KERNEL_RWX on BOOK3S_32

2019-04-26 Thread Serge Belyshev
Hi! > Could you please compile your kernel with CONFIG_PPC_PTDUMP, and > provide the content of: > > /sys/kernel/debug/kernel_page_tables ---[ Start of kernel VM ]--- 0xe100-0xefff 0x2100 240Mrw present dirty accessed ---[ vmal

Re: [PATCH v4 39/63] Documentation: x86: convert topology.txt to reST

2019-04-26 Thread Changbin Du
On Wed, Apr 24, 2019 at 02:44:07PM -0300, Mauro Carvalho Chehab wrote: > Em Wed, 24 Apr 2019 00:29:08 +0800 > Changbin Du escreveu: > > > This converts the plain text documentation to reStructuredText format and > > add it to Sphinx TOC tree. No essential content change. > > > > Signed-off-by: C

Re: [PATCH v10 15/18] dt-bindings: counter: ftm-quaddec

2019-04-26 Thread Rob Herring
On Tue, Apr 02, 2019 at 03:30:50PM +0900, William Breathitt Gray wrote: > From: Patrick Havelange > > FlexTimer quadrature decoder driver. > > Reviewed-by: Esben Haabendal > Signed-off-by: Patrick Havelange > Signed-off-by: William Breathitt Gray > --- > .../bindings/counter/ftm-quaddec.txt

[PATCH 3/3] powerpc/powernv: remove dead NPU DMA code

2019-04-26 Thread Christoph Hellwig
None of these routines were ever used since they were added to the kernel. Signed-off-by: Christoph Hellwig --- arch/powerpc/include/asm/book3s/64/mmu.h | 3 - arch/powerpc/include/asm/powernv.h | 22 - arch/powerpc/mm/mmu_context_book3s64.c | 2 - arch/powerpc/platforms/powernv/npu

[PATCH 1/3] powerpc/powernv: remove the unused pnv_pci_set_p2p function

2019-04-26 Thread Christoph Hellwig
This function has never been used since it has been added to the tree. We also now have proper PCIe P2P APIs in the core kernel, and any new P2P support should be using those. Signed-off-by: Christoph Hellwig --- arch/powerpc/include/asm/opal.h| 2 - arch/powerpc/include/asm/pnv-pci

remove dead powernv code

2019-04-26 Thread Christoph Hellwig
Hi all, the powerpc powernv port has a fairly large chunk of code that never had any upstream user. We generally strive to not keep dead code around, and this was affirmed at least years Maintainer summit.

[PATCH 2/3] powerpc/powernv: remove pnv_pci_{enable,disable}_tunnel

2019-04-26 Thread Christoph Hellwig
These have been unused ever since they've been added to the kernel. Signed-off-by: Christoph Hellwig --- arch/powerpc/include/asm/pnv-pci.h| 2 - arch/powerpc/platforms/powernv/pci-ioda.c | 4 +- arch/powerpc/platforms/powernv/pci.c | 48 --- arch/powerpc/platf

Re: [PATCH v3 3/3] ASoC: fsl_sai: Move clock operation to PM runtime

2019-04-26 Thread Daniel Baluta
Hi Mark, This is the only patch in the series that wasn't applied. On Mon, Apr 22, 2019 at 10:03 PM Daniel Baluta wrote: > > From: Shengjiu Wang > > Turn off/on clocks when device enters suspend/resume. This > can help saving power. > > As a further optimization, we turn off/on mclk only when S

Re: [PATCH 2/3 v2] ASoC: fsl_sai: Add support for runtime pm

2019-04-26 Thread Daniel Baluta
On Fri, Apr 26, 2019 at 1:01 PM Mark Brown wrote: > > On Sun, Apr 21, 2019 at 07:39:09PM +, Daniel Baluta wrote: > > Basically the same actions as for system PM, so make use > > of pm_runtime_force_suspend/pm_runtime_force_resume. > > This doesn't apply against current code, please check and r

[PATCH][v3] powerpc/lib: remove memcpy_flushcache redundant return

2019-04-26 Thread Li RongQing
Align it with other architectures and none of the callers has been interested its return Signed-off-by: Li RongQing --- v2->v3: remove extern from declaration v1->v2: change memcpy_flushcache declaration in arch/powerpc/include/asm/string.h arch/powerpc/include/asm/string.h | 2 +- arch/power

Re: powerpc hugepage leak caused by 576ed913 "block: use bio_add_page in bio_iov_iter_get_pages"

2019-04-26 Thread Ming Lei
On Fri, Apr 26, 2019 at 12:41 PM David Gibson wrote: > > On Fri, Apr 26, 2019 at 11:05:17AM +1000, David Gibson wrote: > > On Thu, Apr 25, 2019 at 08:19:58AM +0200, Christoph Hellwig wrote: > > > Just curious: What exact trees do you see this with? This area > > > changed a lot with the multipag

Re: [PATCH V3] ASoC: fsl_esai: Add pm runtime function

2019-04-26 Thread S.j. Wang
Hi Mark > > On Mon, Apr 22, 2019 at 02:31:55AM +, S.j. Wang wrote: > > Add pm runtime support and move clock handling there. > > Close the clocks at suspend to reduce the power consumption. > > > > fsl_esai_suspend is replaced by pm_runtime_force_suspend. > > fsl_esai_resume is replaced by pm

Applied "ASoC: fsl_sai: Add missing return 0 in remove()" to the asoc tree

2019-04-26 Thread Mark Brown
The patch ASoC: fsl_sai: Add missing return 0 in remove() has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.2 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) an

Re: [PATCH 2/3 v2] ASoC: fsl_sai: Add support for runtime pm

2019-04-26 Thread Mark Brown
On Sun, Apr 21, 2019 at 07:39:09PM +, Daniel Baluta wrote: > Basically the same actions as for system PM, so make use > of pm_runtime_force_suspend/pm_runtime_force_resume. This doesn't apply against current code, please check and resend. signature.asc Description: PGP signature

Re: [PATCH V3] ASoC: fsl_esai: Add pm runtime function

2019-04-26 Thread Mark Brown
On Mon, Apr 22, 2019 at 02:31:55AM +, S.j. Wang wrote: > Add pm runtime support and move clock handling there. > Close the clocks at suspend to reduce the power consumption. > > fsl_esai_suspend is replaced by pm_runtime_force_suspend. > fsl_esai_resume is replaced by pm_runtime_force_resume.

Re: [PATCH v1 2/7] s390x/mm: Implement arch_remove_memory()

2019-04-26 Thread David Hildenbrand
On 24.04.19 12:25, David Hildenbrand wrote: > Will come in handy when wanting to handle errors after > arch_add_memory(). > > Cc: Martin Schwidefsky > Cc: Heiko Carstens > Cc: Andrew Morton > Cc: Michal Hocko > Cc: Mike Rapoport > Cc: David Hildenbrand > Cc: Vasily Gorbik > Cc: Oscar Salvad

Re: [PATCH v2] mm: Fix modifying of page protection by insert_pfn_pmd()

2019-04-26 Thread Jan Kara
On Thu 25-04-19 17:33:04, Dan Williams wrote: > On Thu, Apr 25, 2019 at 12:32 AM Jan Kara wrote: > > > > On Wed 24-04-19 11:13:48, Dan Williams wrote: > > > On Wed, Apr 24, 2019 at 10:38 AM Matthew Wilcox > > > wrote: > > > > > > > > On Wed, Apr 24, 2019 at 10:13:15AM -0700, Dan Williams wrote:

Re: [PATCH] vfio-pci/nvlink2: Fix potential VMA leak

2019-04-26 Thread Alexey Kardashevskiy
On 20/04/2019 01:37, Greg Kurz wrote: > If vfio_pci_register_dev_region() fails then we should rollback > previous changes, ie. unmap the ATSD registers. > > Signed-off-by: Greg Kurz > --- > drivers/vfio/pci/vfio_pci_nvlink2.c |2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/dri

Re: [PATCH kernel RFC 0/2] powerpc/ioda2: An attempt to allow DMA masks between 32 and 59

2019-04-26 Thread Alexey Kardashevskiy
On 23/04/2019 10:58, Russell Currey wrote: > On Fri, 2019-04-12 at 16:44 +1000, Alexey Kardashevskiy wrote: >> This is an attempt to allow DMA mask 40 or similar which are not >> large >> enough to use either a PHB3 bypass mode or a sketchy bypass. >> >> This is based on sha1 >> 582549e3fbe1 Lin

Re: BUG: crash in __tlb_remove_page_size with STRICT_KERNEL_RWX on BOOK3S_32

2019-04-26 Thread Christophe Leroy
Le 26/04/2019 à 06:54, Serge Belyshev a écrit : Hi! Commit 63b2bc61956 aka "powerpc/mm/32s: Use BATs for STRICT_KERNEL_RWX" caused my old powerbook to crash under I/O. After "dd if=/dev/hda of=/null" the crash happens in seconds. Reverting the commit helps, as well as disabling STRICT_KERNEL

Re: [PATCH v2 05/11] powerpc/mm: get rid of mm_ctx_slice_mask_xxx()

2019-04-26 Thread Aneesh Kumar K.V
Christophe Leroy writes: > Now that slice_mask_for_size() is in mmu.h, the mm_ctx_slice_mask_xxx() > are not needed anymore, so drop them. Note that the 8xx ones where > not used anyway. > Reviewed-by: Aneesh Kumar K.V > Signed-off-by: Christophe Leroy > --- > arch/powerpc/include/asm/book3s