[PATCH 2/5] powerpc/futex: KHRAP support for futex ops

2018-10-16 Thread Russell Currey
Wrap the futex operations in KHRAP locks and unlocks. Signed-off-by: Russell Currey --- arch/powerpc/include/asm/futex.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/powerpc/include/asm/futex.h b/arch/powerpc/include/asm/futex.h index 94542776a62d..e0f4227cfd32 100644 --- a/arc

[PATCH 4/5] powerpc/64s: Disable KHRAP with nosmap option

2018-10-16 Thread Russell Currey
KHRAP is similar to SMAP on x86 platforms, so implement support for the same kernel parameter. Signed-off-by: Russell Currey --- arch/powerpc/mm/init_64.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/powerpc/mm/init_64.c b/arch/powerpc/mm/init_64.c index 7a9886f98b0c

[PATCH 1/5] powerpc/64s: Kernel Hypervisor Restricted Access Prevention

2018-10-16 Thread Russell Currey
Kernel Hypervisor Restricted Access Prevention (KHRAP) utilises a feature of the Radix MMU which disallows read and write access to userspace addresses. By utilising this, the kernel is prevented from accessing user data from outside of trusted paths that perform proper safety checks, such as copy

[v9 7/7] dt-bindings: fsl-qdma: Add NXP Layerscpae qDMA controller bindings

2018-10-16 Thread Peng Ma
Document the devicetree bindings for NXP Layerscape qDMA controller which could be found on NXP QorIQ Layerscape SoCs. Signed-off-by: Wen He Signed-off-by: Peng Ma Reviewed-by: Rob Herring --- change in v9: - add required properties such as interrupts,block-number,block-offset e

[v9 6/7] arm64: dts: ls1046a: add qdma device tree nodes

2018-10-16 Thread Peng Ma
add the qDMA device tree nodes for LS1046A devices. Signed-off-by: Wen He Signed-off-by: Peng Ma --- change in v9: - add interrupts for each virtual block - add block-number - add block-offset arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 21 +

[v9 5/7] arm64: dts: ls1043a: add qdma device tree nodes

2018-10-16 Thread Peng Ma
add the qDMA device tree nodes for LS1043A devices. Signed-off-by: Wen He Signed-off-by: Peng Ma --- change in v9: - add interrupts for each virtual block - add block-number - add block-offset arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 22 ++

[v9 3/7] dmaengine: fsl-qdma: Add qDMA controller driver for Layerscape SoCs

2018-10-16 Thread Peng Ma
NXP Queue DMA controller(qDMA) on Layerscape SoCs supports channel virtuallization by allowing DMA jobs to be enqueued into different command queues. Note that this module depends on NXP DPAA. Signed-off-by: Wen He Signed-off-by: Jiaheng Fan Signed-off-by: Peng Ma --- change in v9: - a

[v9 4/7] arm: dts: ls1021a: add qdma device tree nodes

2018-10-16 Thread Peng Ma
add the qDMA device tree nodes for LS1021A devices. Signed-off-by: Wen He Signed-off-by: Peng Ma --- change in v9: - add interrupts for each virtual block - add block-number - add block-offset arch/arm/boot/dts/ls1021a.dtsi | 20 1 files changed,

[v9 2/7] dmaengine: fsldma: Adding macro FSL_DMA_IN/OUT implement for ARM platform

2018-10-16 Thread Peng Ma
This patch add the macro FSL_DMA_IN/OUT implement for ARM platform. Signed-off-by: Wen He Signed-off-by: Peng Ma --- change in v9: - rewrite function fsl_ioread64 and fsl_ioread64be to make a better read drivers/dma/fsldma.h | 59 + 1 f

[v9 1/7] dmaengine: fsldma: Replace DMA_IN/OUT by FSL_DMA_IN/OUT

2018-10-16 Thread Peng Ma
From: Wen He This patch implement a standard macro call functions is used to NXP dma drivers. Signed-off-by: Wen He Signed-off-by: Peng Ma --- change in v9: - no drivers/dma/fsldma.c | 16 drivers/dma/fsldma.h |4 ++-- 2 files changed, 10 insertions(+), 10 dele

Re: Crash on FSL Book3E due to pte_pgprot()? (was Re: [PATCH v3 12/24] powerpc/mm: use pte helpers in generic code)

2018-10-16 Thread Christophe Leroy
On 10/17/2018 12:59 AM, Michael Ellerman wrote: Christophe Leroy writes: Get rid of platform specific _PAGE_ in powerpc common code and use helpers instead. mm/dump_linuxpagetables.c will be handled separately Reviewed-by: Aneesh Kumar K.V Signed-off-by: Christophe Leroy --- arch/

Re: [PATCH kernel 3/4] powerpc/mm/iommu: Make mm_iommu_new() fail on existing regions

2018-10-16 Thread David Gibson
On Wed, Oct 17, 2018 at 02:34:32PM +1100, Alexey Kardashevskiy wrote: > > > On 17/10/2018 12:00, David Gibson wrote: > > On Mon, Oct 15, 2018 at 08:24:15PM +1100, Alexey Kardashevskiy wrote: > >> Since we are going to have 2 different preregistering helpers, let's > >> make it clear that mm_iommu

Re: [PATCH kernel 3/4] powerpc/mm/iommu: Make mm_iommu_new() fail on existing regions

2018-10-16 Thread Alexey Kardashevskiy
On 17/10/2018 12:00, David Gibson wrote: > On Mon, Oct 15, 2018 at 08:24:15PM +1100, Alexey Kardashevskiy wrote: >> Since we are going to have 2 different preregistering helpers, let's >> make it clear that mm_iommu_new() is only for the normal (i.e. not device) >> memory and for existing areas

Re: [PATCH v4 00/18] of: overlay: validation checks, subsequent fixes

2018-10-16 Thread Frank Rowand
On 10/16/18 02:47, Michael Ellerman wrote: > frowand.l...@gmail.com writes: > >> From: Frank Rowand >> >> Add checks to (1) overlay apply process and (2) memory freeing >> triggered by overlay release. The checks are intended to detect >> possible memory leaks and invalid overlays. >> >> The che

Re: [PATCH kernel 3/4] powerpc/mm/iommu: Make mm_iommu_new() fail on existing regions

2018-10-16 Thread David Gibson
On Mon, Oct 15, 2018 at 08:24:15PM +1100, Alexey Kardashevskiy wrote: > Since we are going to have 2 different preregistering helpers, let's > make it clear that mm_iommu_new() is only for the normal (i.e. not device) > memory and for existing areas mm_iommu_get() should be used instead. > > Signe

Re: [PATCH kernel 1/4] powerpc/mm/iommu: Rename mm_iommu_get

2018-10-16 Thread David Gibson
On Mon, Oct 15, 2018 at 08:24:13PM +1100, Alexey Kardashevskiy wrote: > Normally mm_iommu_get() is supposed to add a reference and > mm_iommu_put() to remove it. However historically mm_iommu_find() does > the referencing and mm_iommu_get() is doing allocation and referencing. > > This is step 1 t

Re: [PATCH kernel 2/4] powerpc/mm/iommu/vfio_spapr_tce: Change mm_iommu_get to reference a region

2018-10-16 Thread David Gibson
On Mon, Oct 15, 2018 at 08:24:14PM +1100, Alexey Kardashevskiy wrote: > We are going to add another helper to preregister device memory so > instead of having mm_iommu_new() which pre-registers the normal memory > and references the region, we need separate helpers for pre-registerign > and referen

Re: [PATCH kernel 3/3] vfio_pci: Add NVIDIA GV100GL [Tesla V100 SXM2] [10de:1db1] subdriver

2018-10-16 Thread Alexey Kardashevskiy
On 17/10/2018 06:08, Alex Williamson wrote: > On Mon, 15 Oct 2018 20:42:33 +1100 > Alexey Kardashevskiy wrote: > >> POWER9 Witherspoon machines come with 4 or 6 V100 GPUs which are not >> pluggable PCIe devices but implement PCIe links for config space and MMIO. >> In addition to that the GPUs

Crash on FSL Book3E due to pte_pgprot()? (was Re: [PATCH v3 12/24] powerpc/mm: use pte helpers in generic code)

2018-10-16 Thread Michael Ellerman
Christophe Leroy writes: > Get rid of platform specific _PAGE_ in powerpc common code and > use helpers instead. > > mm/dump_linuxpagetables.c will be handled separately > > Reviewed-by: Aneesh Kumar K.V > Signed-off-by: Christophe Leroy > --- > arch/powerpc/include/asm/book3s/32/pgtable.h

Re: [PATCH] powerpc/io: remove old GCC version implementation

2018-10-16 Thread Michael Ellerman
Joakim Tjernlund writes: > On Tue, 2018-10-16 at 12:33 +, Christophe Leroy wrote: >> >> >> GCC 4.6 is the minimum supported now. > > Ouch, from kernel 4.19 or earlier even ? Yes. Though to be honest we haven't been testing much with compilers older than that for several years. If you car

Re: [PATCH v06 3/5] migration/memory: Add hotplug READD_MULTIPLE

2018-10-16 Thread Michael Ellerman
Michael Bringmann writes: > On 10/16/2018 02:57 PM, Tyrel Datwyler wrote: >> On 10/15/2018 05:39 PM, Michael Ellerman wrote: >>> Michael Bringmann writes: diff --git a/arch/powerpc/platforms/pseries/hotplug-memory.c b/arch/powerpc/platforms/pseries/hotplug-memory.c index 2b796da..

Re: [PATCH v06 3/5] migration/memory: Add hotplug READD_MULTIPLE

2018-10-16 Thread Michael Ellerman
Tyrel Datwyler writes: > On 10/15/2018 05:39 PM, Michael Ellerman wrote: >> Michael Bringmann writes: >>> diff --git a/arch/powerpc/platforms/pseries/hotplug-memory.c >>> b/arch/powerpc/platforms/pseries/hotplug-memory.c >>> index 2b796da..9c76345 100644 >>> --- a/arch/powerpc/platforms/pseries/

Re: What is an address translation in powerISA jarogn ?

2018-10-16 Thread Benjamin Herrenschmidt
On Tue, 2018-10-16 at 20:58 +0300, Raz wrote: > Section 5.7.3 > "Storage accesses in real, hypervisor real, and virtual real > addressing modes are performed in a manner that depends on the > contents of MSR HV , VPM, VRMASD, HRMOR, RMLS, RMOR (see Chapter 2), > bit 0 of the > effective address (EA

Re: [PATCH v5 3/6] clk: qoriq: increase array size of cmux_to_group

2018-10-16 Thread Stephen Boyd
Quoting Vabhav Sharma (2018-10-14 10:08:00) > From: Yogesh Gaur > > Increase size of cmux_to_group array, to accomdate entry of > -1 termination. > > Added -1, terminated, entry for 4080_cmux_grpX. > > Signed-off-by: Yogesh Gaur > Signed-off-by: Vabhav Sharma > --- Acked-by: Stephen Boyd

Re: [PATCH 4.18 086/135] KVM: PPC: Book3S HV: Dont use compound_order to determine host mapping size

2018-10-16 Thread Paul Mackerras
On Tue, Oct 16, 2018 at 07:05:16PM +0200, Greg Kroah-Hartman wrote: > 4.18-stable review patch. If anyone has any objections, please let me know. > > -- > > From: Nicholas Piggin > > [ Upstream commit 71d29f43b6332badc5598c656616a62575e83342 ] If you take 71d29f43b633 then you

Re: [PATCH v06 3/5] migration/memory: Add hotplug READD_MULTIPLE

2018-10-16 Thread Michael Bringmann
On 10/16/2018 02:57 PM, Tyrel Datwyler wrote: > On 10/15/2018 05:39 PM, Michael Ellerman wrote: >> Michael Bringmann writes: >>> diff --git a/arch/powerpc/platforms/pseries/hotplug-memory.c >>> b/arch/powerpc/platforms/pseries/hotplug-memory.c >>> index 2b796da..9c76345 100644 >>> --- a/arch/powe

Re: linux-next: Tree for Oct 15

2018-10-16 Thread Stephen Rothwell
Hi Mike, On Tue, 16 Oct 2018 16:36:56 +0300 Mike Rapoport wrote: > > After some more grepping and spatching I've found these: > > From 8b014bae53a78ab747dbb76b9aff7df4cefcb604 Mon Sep 17 00:00:00 2001 > From: Mike Rapoport > Date: Tue, 16 Oct 2018 16:03:00 +0300 > Subject: [PATCH] memblock: fix

[PATCH] powerpc/ftrace: Handle large kernel configs

2018-10-16 Thread Naveen N. Rao
Currently, we expect to be able to reach ftrace_caller() from all ftrace-enabled functions through a single relative branch. With large kernel configs, we see functions outside of 32MB of ftrace_caller() causing ftrace_init() to bail. In such configurations, gcc/ld emits two types of trampolines f

Re: [PATCH 2/4] mm: speed up mremap by 500x on large regions (v2)

2018-10-16 Thread Joel Fernandes
On Tue, Oct 16, 2018 at 01:29:52PM +0200, Vlastimil Babka wrote: > On 10/16/18 12:33 AM, Joel Fernandes wrote: > > On Mon, Oct 15, 2018 at 02:42:09AM -0700, Christoph Hellwig wrote: > >> On Fri, Oct 12, 2018 at 06:31:58PM -0700, Joel Fernandes (Google) wrote: > >>> Android needs to mremap large reg

Re: linux-next: Tree for Oct 15

2018-10-16 Thread Mike Rapoport
On Mon, Oct 15, 2018 at 03:13:19PM -0700, Andrew Morton wrote: > On Tue, 16 Oct 2018 07:24:39 +1100 Stephen Rothwell > wrote: > > > On Tue, 16 Oct 2018 07:12:40 +1100 Stephen Rothwell > > wrote: > > > > > > On Mon, 15 Oct 2018 11:26:37 -0700 Guenter Roeck > > > wrote: > > > > > > > > ALl ppc

Re: [PATCH v06 3/5] migration/memory: Add hotplug READD_MULTIPLE

2018-10-16 Thread Tyrel Datwyler
On 10/15/2018 05:39 PM, Michael Ellerman wrote: > Michael Bringmann writes: >> diff --git a/arch/powerpc/platforms/pseries/hotplug-memory.c >> b/arch/powerpc/platforms/pseries/hotplug-memory.c >> index 2b796da..9c76345 100644 >> --- a/arch/powerpc/platforms/pseries/hotplug-memory.c >> +++ b/arch/

Re: [PATCH kernel 3/3] vfio_pci: Add NVIDIA GV100GL [Tesla V100 SXM2] [10de:1db1] subdriver

2018-10-16 Thread Alex Williamson
On Mon, 15 Oct 2018 20:42:33 +1100 Alexey Kardashevskiy wrote: > POWER9 Witherspoon machines come with 4 or 6 V100 GPUs which are not > pluggable PCIe devices but implement PCIe links for config space and MMIO. > In addition to that the GPUs are interconnected to each other and also > have direct

What is an address translation in powerISA jarogn ?

2018-10-16 Thread Raz
Section 5.7.3 "Storage accesses in real, hypervisor real, and virtual real addressing modes are performed in a manner that depends on the contents of MSR HV , VPM, VRMASD, HRMOR, RMLS, RMOR (see Chapter 2), bit 0 of the effective address (EA0)," Hello 1. If MSR_IR = 0 and MSR_DR = 0, does it mean

[PATCH 4.18 086/135] KVM: PPC: Book3S HV: Dont use compound_order to determine host mapping size

2018-10-16 Thread Greg Kroah-Hartman
4.18-stable review patch. If anyone has any objections, please let me know. -- From: Nicholas Piggin [ Upstream commit 71d29f43b6332badc5598c656616a62575e83342 ] THP paths can defer splitting compound pages until after the actual remap and TLB flushes to split a huge PMD/PUD.

[PATCH v2] powerpc/topology: Update numa mask when cpu node mapping changes

2018-10-16 Thread Srikar Dronamraju
Commit 2ea626306810 ("powerpc/topology: Get topology for shared processors at boot") will update the cpu node topology for shared lpars on PowerVM. However shared lpars on PowerVM also support VPHN and PRRN events. On receiving a VPHN, PRRN events, cpu to node mapping might change. Scheduler main

Re: Stack protector crash in pnv_smp_cpu_kill_self()

2018-10-16 Thread Segher Boessenkool
On Wed, Oct 17, 2018 at 12:21:50AM +1100, Michael Ellerman wrote: > Christophe LEROY writes: > > > Looks like a lack of initialisation of the canary for the non-boot CPUs > > on SMP, you applied this morning the patch I sent you for that. > > > > Is the patch in ? > > Yeah it is. > > $ git l

Re: [PATCH v06 3/5] migration/memory: Add hotplug READD_MULTIPLE

2018-10-16 Thread Michael Bringmann
On 10/15/2018 07:39 PM, Michael Ellerman wrote: > Michael Bringmann writes: >> diff --git a/arch/powerpc/platforms/pseries/hotplug-memory.c >> b/arch/powerpc/platforms/pseries/hotplug-memory.c >> index 2b796da..9c76345 100644 >> --- a/arch/powerpc/platforms/pseries/hotplug-memory.c >> +++ b/arch/

Re: Stack protector crash in pnv_smp_cpu_kill_self()

2018-10-16 Thread Michael Ellerman
Christophe LEROY writes: > Looks like a lack of initialisation of the canary for the non-boot CPUs > on SMP, you applied this morning the patch I sent you for that. > > Is the patch in ? Yeah it is. $ git log --oneline 4ffe713b7587 arch/powerpc/kernel/smp.c 8e8a31d7fd54 powerpc: Use cpu_sm

Re: [PATCH] powerpc/io: remove old GCC version implementation

2018-10-16 Thread Christophe LEROY
Le 16/10/2018 à 14:49, Joakim Tjernlund a écrit : On Tue, 2018-10-16 at 12:33 +, Christophe Leroy wrote: GCC 4.6 is the minimum supported now. Ouch, from kernel 4.19 or earlier even ? Don't know, see https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=caf

[PATCH v2 5/5] mm: optimise pte dirty/accessed bit setting by demand based pte insertion

2018-10-16 Thread Nicholas Piggin
Similarly to the previous patch, this tries to optimise dirty/accessed bits in ptes to avoid access costs of hardware setting them. Signed-off-by: Nicholas Piggin --- mm/huge_memory.c | 12 mm/memory.c | 9 ++--- 2 files changed, 14 insertions(+), 7 deletions(-) diff --gi

[PATCH v2 4/5] mm/cow: optimise pte dirty bit handling in fork

2018-10-16 Thread Nicholas Piggin
fork clears dirty/accessed bits from new ptes in the child. This logic has existed since mapped page reclaim was done by scanning ptes when it may have been quite important. Today with physical based pte scanning, there is less reason to clear these bits, so this patch avoids clearing the dirty bit

[PATCH v2 3/5] mm/cow: optimise pte accessed bit handling in fork

2018-10-16 Thread Nicholas Piggin
fork clears dirty/accessed bits from new ptes in the child. This logic has existed since mapped page reclaim was done by scanning ptes when it may have been quite important. Today with physical based pte scanning, there is less reason to clear these bits, so this patch avoids clearing the accessed

[PATCH v2 2/5] mm/cow: don't bother write protecting already write-protected huge pages

2018-10-16 Thread Nicholas Piggin
This is the HugePage / THP equivalent for 1b2de5d039c8 ("mm/cow: don't bother write protecting already write-protected pages"). Signed-off-by: Nicholas Piggin --- mm/huge_memory.c | 14 ++ mm/hugetlb.c | 2 +- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/mm/hu

[PATCH v2 1/5] nios2: update_mmu_cache clear the old entry from the TLB

2018-10-16 Thread Nicholas Piggin
Fault paths like do_read_fault will install a Linux pte with the young bit clear. The CPU will fault again because the TLB has not been updated, this time a valid pte exists so handle_pte_fault will just set the young bit with ptep_set_access_flags, which flushes the TLB. The TLB is flushed so the

[PATCH v2 0/5] mm: dirty/accessed pte optimisations

2018-10-16 Thread Nicholas Piggin
Since v1 I fixed the hang in nios2, split the fork patch into two as Linus asked, and added hugetlb code for the "don't bother write protecting already writeprotected" patch. Please consider this for more cooking in -mm. Thanks, Nick Nicholas Piggin (5): nios2: update_mmu_cache clear the old e

Re: [PATCH] powerpc/io: remove old GCC version implementation

2018-10-16 Thread Joakim Tjernlund
On Tue, 2018-10-16 at 12:33 +, Christophe Leroy wrote: > > > GCC 4.6 is the minimum supported now. Ouch, from kernel 4.19 or earlier even ? Jocke

[PATCH] powerpc/io: remove old GCC version implementation

2018-10-16 Thread Christophe Leroy
GCC 4.6 is the minimum supported now. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/io.h | 20 1 file changed, 20 deletions(-) diff --git a/arch/powerpc/include/asm/io.h b/arch/powerpc/include/asm/io.h index 0a034519957d..3ef40b703c4a 100644 --- a/arch/powerp

Re: [PATCH 2/4] mm: speed up mremap by 500x on large regions (v2)

2018-10-16 Thread Vlastimil Babka
On 10/16/18 12:33 AM, Joel Fernandes wrote: > On Mon, Oct 15, 2018 at 02:42:09AM -0700, Christoph Hellwig wrote: >> On Fri, Oct 12, 2018 at 06:31:58PM -0700, Joel Fernandes (Google) wrote: >>> Android needs to mremap large regions of memory during memory management >>> related operations. >> >> Jus

[PATCH v3] powerpc/pseries: Export raw per-CPU VPA data via debugfs

2018-10-16 Thread Aravinda Prasad
This patch exports the raw per-CPU VPA data via debugfs. A per-CPU file is created which exports the VPA data of that CPU to help debug some of the VPA related issues or to analyze the per-CPU VPA related statistics. v3: Removed offline CPU check. v2: Included offline CPU check and other review c

Re: [PATCH 1/3] powerpc: Split user/kernel definitions of struct pt_regs

2018-10-16 Thread Michael Ellerman
Madhavan Srinivasan writes: > On Monday 15 October 2018 04:38 PM, Michael Ellerman wrote: >> Madhavan Srinivasan writes: >> >>> On Saturday 13 October 2018 04:26 PM, Michael Ellerman wrote: ... At the moment they're still identical, and we check that at build time. That's because we hav

Re: [PATCH] driver core: device: add BUS_ATTR_WO macro

2018-10-16 Thread Greg KH
On Tue, Oct 02, 2018 at 09:43:35AM +, Ioana Ciornei wrote: > > > Add BUS_ATTR_WO macro to make it easier to add attributes without > > > auditing the mode settings. Also, use the newly added macro where > > > appropriate. > > > > > > Signed-off-by: Ioana Ciornei > > > --- > > > arch/powerpc/p

Re: [PATCH v4 00/18] of: overlay: validation checks, subsequent fixes

2018-10-16 Thread Michael Ellerman
frowand.l...@gmail.com writes: > From: Frank Rowand > > Add checks to (1) overlay apply process and (2) memory freeing > triggered by overlay release. The checks are intended to detect > possible memory leaks and invalid overlays. > > The checks revealed bugs in existing code. Fixed the bugs. >

Re: linux-next: qemu boot failures with today's linux-next

2018-10-16 Thread Michael Ellerman
Stephen Rothwell writes: >> > Booting Linux via __start() @ 0x0040 ... >> >> If you git Ctrl-a-c you should get the qemu prompt. Then you can run >> 'info registers' to print the regs and maybe see where it's stuck. >> >> And/or build with EARLY_DEBUG_LPAR to get early console output

Patch "KVM: PPC: Book3S HV: Don't use compound_order to determine host mapping size" has been added to the 4.18-stable tree

2018-10-16 Thread gregkh
This is a note to let you know that I've just added the patch titled KVM: PPC: Book3S HV: Don't use compound_order to determine host mapping size to the 4.18-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename

Re: [PATCH V3 1/2] mm: Add get_user_pages_cma_migrate

2018-10-16 Thread Aneesh Kumar K.V
Alexey Kardashevskiy writes: > On 16/10/2018 18:16, Aneesh Kumar K.V wrote: >> Alexey Kardashevskiy writes: >> >>> + } + } + } + if (!list_empty(&cma_page_list)) { + /* + * drop the above get_user_pages reference. +

Re: [PATCH kernel v2] powerpc/ioda/npu: Call skiboot's hot reset hook when disabling NPU2

2018-10-16 Thread Alexey Kardashevskiy
On 16/10/2018 18:32, Alistair Popple wrote: > On Tuesday, 16 October 2018 1:22:53 PM AEDT Alexey Kardashevskiy wrote: >> >> On 16/10/2018 13:19, Alistair Popple wrote: reset_ntl() does what npu2_dev_procedure_reset() does plus more stuff, there nothing really in npu2_dev_procedure_rese

Re: [PATCH V3 1/2] mm: Add get_user_pages_cma_migrate

2018-10-16 Thread Alexey Kardashevskiy
On 16/10/2018 18:16, Aneesh Kumar K.V wrote: > Alexey Kardashevskiy writes: > >> On 18/09/2018 21:58, Aneesh Kumar K.V wrote: >>> This helper does a get_user_pages_fast and if it find pages in the CMA area >>> it will try to migrate them before taking page reference. This makes sure >>> that

Re: [PATCH] powerpc/pseries: Export maximum memory value

2018-10-16 Thread Aravinda Prasad
On Wednesday 10 October 2018 10:19 PM, Naveen N. Rao wrote: > Nathan Fontenot wrote: >> On 10/10/2018 05:22 AM, Aravinda Prasad wrote: >>> This patch exports the maximum possible amount of memory >>> configured on the system via /proc/powerpc/lparcfg. >>> >>> Signed-off-by: Aravinda Prasad >>>

Re: [PATCH kernel v2] powerpc/ioda/npu: Call skiboot's hot reset hook when disabling NPU2

2018-10-16 Thread Alistair Popple
On Tuesday, 16 October 2018 1:22:53 PM AEDT Alexey Kardashevskiy wrote: > > On 16/10/2018 13:19, Alistair Popple wrote: > >> reset_ntl() does what npu2_dev_procedure_reset() does plus more stuff, > >> there nothing really in npu2_dev_procedure_reset() which reset_ntl() > >> does not do already fro

Re: [PATCH V3 1/2] mm: Add get_user_pages_cma_migrate

2018-10-16 Thread Aneesh Kumar K.V
Alexey Kardashevskiy writes: > On 18/09/2018 21:58, Aneesh Kumar K.V wrote: >> This helper does a get_user_pages_fast and if it find pages in the CMA area >> it will try to migrate them before taking page reference. This makes sure >> that >> we don't keep non-movable pages (due to page referenc