[PATCH 5/5] dma-mapping: remove ARCH_NO_COHERENT_DMA_MMAP

2019-07-24 Thread Christoph Hellwig
Now that we never use a default ->mmap implementation, and non-coherent architectures can control the presence of ->mmap support by enabling ARCH_HAS_DMA_COHERENT_TO_PFN for the dma direct implementation there is no need for a global config option to control the availability of dma_common_mmap. Si

[PATCH 3/5] dma-mapping: explicitly wire up ->mmap and ->get_sgtable

2019-07-24 Thread Christoph Hellwig
While the default ->mmap and ->get_sgtable implementations work for the majority of our dma_map_ops impementations they are inherently safe for others that don't use the page allocator or CMA and/or use their own way of remapping not covered by the common code. So remove the defaults if these meth

[PATCH 4/5] dma-mapping: provide a better default ->get_required_mask

2019-07-24 Thread Christoph Hellwig
Most dma_map_ops instances are IOMMUs that work perfectly fine in 32-bits of IOVA space, and the generic direct mapping code already provides its own routines that is intelligent based on the amount of memory actually present. Wire up the dma-direct routine for the ARM direct mapping code as well,

[PATCH 2/5] dma-mapping: move the dma_get_sgtable API comments from arm to common code

2019-07-24 Thread Christoph Hellwig
The comments are spot on and should be near the central API, not just near a single implementation. Signed-off-by: Christoph Hellwig --- arch/arm/mm/dma-mapping.c | 11 --- kernel/dma/mapping.c | 11 +++ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/arch/a

[PATCH 1/5] m68knommu: add a pgprot_noncached stub

2019-07-24 Thread Christoph Hellwig
Provide a pgprot_noncached like all the other nommu ports so that common code can rely on it being able to be present. Note that this is generally code that is not actually run on nommu, but at least we can avoid nasty ifdefs by having a stub. Signed-off-by: Christoph Hellwig --- arch/m68k/incl

remove default fallbacks in dma_map_ops

2019-07-24 Thread Christoph Hellwig
Hi all, we have a few places where the DMA mapping layer has non-trivial default actions that are questionable and/or dangerous. This series instead wires up the mmap, get_sgtable and get_required_mask methods explicitly and cleans up some surrounding areas. This also means we could get rid of t

Re: [alsa-devel] [PATCH 06/10] ASoC: dt-bindings: Document dl_mask property

2019-07-24 Thread Daniel Baluta
On Thu, Jul 25, 2019 at 2:14 AM Nicolin Chen wrote: > > On Mon, Jul 22, 2019 at 03:48:29PM +0300, Daniel Baluta wrote: > > SAI supports up to 8 data lines. This property let the user > > configure how many data lines should be used per transfer > > direction (Tx/Rx). > > > > Signed-off-by: Daniel

Re: [alsa-devel] [PATCH 09/10] ASoC: fsl_sai: Add support for SAI new version

2019-07-24 Thread Daniel Baluta
On Thu, Jul 25, 2019 at 2:32 AM Nicolin Chen wrote: > > On Mon, Jul 22, 2019 at 03:48:32PM +0300, Daniel Baluta wrote: > > New IP version introduces Version ID and Parameter registers > > and optionally added Timestamp feature. > > > > VERID and PARAM registers are placed at the top of registers >

Re: [alsa-devel] [PATCH 08/10] ASoC: dt-bindings: Document fcomb_mode property

2019-07-24 Thread Daniel Baluta
On Thu, Jul 25, 2019 at 2:22 AM Nicolin Chen wrote: > > On Mon, Jul 22, 2019 at 03:48:31PM +0300, Daniel Baluta wrote: > > This allows combining multiple-data-line FIFOs into a > > single-data-line FIFO. > > > > Signed-off-by: Daniel Baluta > > --- > > Documentation/devicetree/bindings/sound/fsl

Re: [alsa-devel] [PATCH 01/10] ASoC: fsl_sai: add of_match data

2019-07-24 Thread Daniel Baluta
On Thu, Jul 25, 2019 at 1:34 AM Nicolin Chen wrote: > > On Mon, Jul 22, 2019 at 03:48:24PM +0300, Daniel Baluta wrote: > > From: Lucas Stach > > > > New revisions of the SAI IP block have even more differences that need > > be taken into account by the driver. To avoid sprinking compatible > > ch

Re: [PATCH v3 9/9] powerpc/eeh: Convert log messages to eeh_edev_* macros

2019-07-24 Thread Sam Bobroff
On Wed, Jul 24, 2019 at 07:47:55PM +1000, Oliver O'Halloran wrote: > On Wed, Jul 24, 2019 at 7:24 PM kbuild test robot wrote: > > > > Hi Sam, > > > > I love your patch! Yet something to improve: > > > > [auto build test ERROR on linus/master] > >

Re: [PATCH 09/10] ASoC: fsl_sai: Add support for SAI new version

2019-07-24 Thread Nicolin Chen
On Mon, Jul 22, 2019 at 03:48:32PM +0300, Daniel Baluta wrote: > New IP version introduces Version ID and Parameter registers > and optionally added Timestamp feature. > > VERID and PARAM registers are placed at the top of registers > address space and some registers are shifted according to > the

Re: [PATCH 08/10] ASoC: dt-bindings: Document fcomb_mode property

2019-07-24 Thread Nicolin Chen
On Mon, Jul 22, 2019 at 03:48:31PM +0300, Daniel Baluta wrote: > This allows combining multiple-data-line FIFOs into a > single-data-line FIFO. > > Signed-off-by: Daniel Baluta > --- > Documentation/devicetree/bindings/sound/fsl-sai.txt | 4 This should be sent to devicetree mail-list also.

Re: [PATCH 06/10] ASoC: dt-bindings: Document dl_mask property

2019-07-24 Thread Nicolin Chen
On Mon, Jul 22, 2019 at 03:48:29PM +0300, Daniel Baluta wrote: > SAI supports up to 8 data lines. This property let the user > configure how many data lines should be used per transfer > direction (Tx/Rx). > > Signed-off-by: Daniel Baluta > --- > Documentation/devicetree/bindings/sound/fsl-sai.t

Re: [PATCH 01/10] ASoC: fsl_sai: add of_match data

2019-07-24 Thread Nicolin Chen
On Mon, Jul 22, 2019 at 03:48:24PM +0300, Daniel Baluta wrote: > From: Lucas Stach > > New revisions of the SAI IP block have even more differences that need > be taken into account by the driver. To avoid sprinking compatible > checks all over the driver move the current differences into of_matc

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-5.3-2 tag

2019-07-24 Thread pr-tracker-bot
The pull request you sent on Wed, 24 Jul 2019 23:42:31 +1000: > https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git > tags/powerpc-5.3-2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/bed38c3e2dca01b358a62b5e73b46e875742fd75 Thank you! -- Deet-doot-do

[PATCH 3/5] arch: wire-up pidfd_wait()

2019-07-24 Thread Christian Brauner
This wires up the pidfd_wait() syscall into all arches at once. Signed-off-by: Christian Brauner Cc: Arnd Bergmann Cc: "Eric W. Biederman" Cc: Kees Cook Cc: Joel Fernandes (Google) Cc: Thomas Gleixner Cc: Jann Horn Cc: David Howells Cc: Andy Lutomirsky Cc: Andrew Morton Cc: Oleg Nesterov

Re: [PATCH v2] powerpc: Wire up clone3 syscall

2019-07-24 Thread Christian Brauner
On Thu, Jul 25, 2019 at 12:02:59AM +1000, Michael Ellerman wrote: > Wire up the new clone3 syscall added in commit 7f192e3cd316 ("fork: > add clone3"). > > This requires a ppc_clone3 wrapper, in order to save the non-volatile > GPRs before calling into the generic syscall code. Otherwise we hit >

Re: [PATCH] powerpc: Wire up clone3 syscall

2019-07-24 Thread Michael Ellerman
Christian Brauner writes: > On Mon, Jul 22, 2019 at 11:22:31PM +1000, Michael Ellerman wrote: >> Wire up the new clone3 syscall added in commit 7f192e3cd316 ("fork: >> add clone3"). >> >> This requires a ppc_clone3 wrapper, in order to save the non-volatile >> GPRs before calling into the generic

[PATCH v2] powerpc: Wire up clone3 syscall

2019-07-24 Thread Michael Ellerman
Wire up the new clone3 syscall added in commit 7f192e3cd316 ("fork: add clone3"). This requires a ppc_clone3 wrapper, in order to save the non-volatile GPRs before calling into the generic syscall code. Otherwise we hit the BUG_ON in CHECK_FULL_REGS in copy_thread(). Lightly tested using Christia

Re: [PATCH] powerpc: Wire up clone3 syscall

2019-07-24 Thread Michael Ellerman
Christian Brauner writes: > On Wed, Jul 24, 2019 at 12:25:14PM +0700, Arseny Solokha wrote: >> Hi, >> >> may I also ask to provide ppc_clone3 symbol also for 32-bit powerpc? >> Otherwise >> Michael's patch breaks build for me: > > Makes sense. Michael, are you planning on picking this up? :) Ye

[GIT PULL] Please pull powerpc/linux.git powerpc-5.3-2 tag

2019-07-24 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Linus, Please pull some powerpc fixes for 5.3: The following changes since commit 192f0f8e9db7efe4ac98d47f5fa4334e43c1204d: Merge tag 'powerpc-5.3-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux (2019-07-13 16:08:36 -0700)

Re: [PATCH v4 1/3] powerpc/pseries: Update SCM hcall op-codes in hvcall.h

2019-07-24 Thread Michael Ellerman
On Sat, 2019-06-29 at 16:06:08 UTC, Vaibhav Jain wrote: > Update the hvcalls.h to include op-codes for new hcalls introduce to > manage SCM memory. Also update existing hcall definitions to reflect > current papr specification for SCM. > > The removed hcall op-codes H_SCM_MEM_QUERY, H_SCM_BLOCK_CL

Re: [DOC][PATCH v5 1/4] powerpc: Document some HCalls for Storage Class Memory

2019-07-24 Thread Michal Suchánek
On Wed, 24 Jul 2019 11:08:58 +0200 Laurent Dufour wrote: > Le 23/07/2019 à 18:13, Vaibhav Jain a écrit : > > This doc patch provides an initial description of the HCall op-codes > > that are used by Linux kernel running as a guest operating > > system (LPAR) on top of PowerVM or any other sPAPR c

Re: [PATCH v5 0/4] powerpc/papr_scm: Workaround for failure of drc bind after kexec

2019-07-24 Thread Aneesh Kumar K.V
Vaibhav Jain writes: > Presently an error is returned in response to hcall H_SCM_BIND_MEM when a > new kernel boots on lpar via kexec. This prevents papr_scm from registering > drc memory regions with nvdimm. The error reported is of the form below: > > "papr_scm ibm,persistent-memory:ibm,pmemory

Re: [PATCH 5/5] powerpc/64s/radix: Remove redundant pfn_pte bitop, add VM_BUG_ON

2019-07-24 Thread Aneesh Kumar K.V
Nicholas Piggin writes: > pfn_pte is never given a pte above the addressable physical memory > limit, so the masking is redundant. In case of a software bug, it > is not obviously better to silently truncate the pfn than to corrupt > the pte (either one will result in memory corruption or crashes

Re: [PATCH 4/5] powerpc/64: Add VIRTUAL_BUG_ON checks for __va and __pa addresses

2019-07-24 Thread Aneesh Kumar K.V
Nicholas Piggin writes: > Ensure __va is given a physical address below PAGE_OFFSET, and __pa is > given a virtual address above PAGE_OFFSET. > Reviewed-by: Aneesh Kumar K.V > Signed-off-by: Nicholas Piggin > --- > arch/powerpc/include/asm/page.h | 14 -- > 1 file changed, 12 ins

Re: [PATCH 3/5] powerpc/perf: fix imc allocation failure handling

2019-07-24 Thread Aneesh Kumar K.V
Nicholas Piggin writes: > The alloc_pages_node return value should be tested for failure > before being passed to page_address. > Reviewed-by: Aneesh Kumar K.V This need Fixes: tag? It fix a real crash unlike the other patch in this series? > Cc: Madhavan Srinivasan > Tested-by: Anju T Sud

Re: [PATCH 2/5] powerpc/64s/radix: Fix memory hot-unplug page table split

2019-07-24 Thread Aneesh Kumar K.V
Nicholas Piggin writes: > create_physical_mapping expects physical addresses, but splitting > these mapping on hot unplug is supplying virtual (effective) > addresses. > > [I'm not sure how to test this one] > Memory hot unplug with kvm? Reviewed-by: Aneesh Kumar K.V > Cc: Balbir Singh > Fi

Re: [PATCH 1/5] powerpc/64s/radix: Fix memory hotplug section page table creation

2019-07-24 Thread Aneesh Kumar K.V
Nicholas Piggin writes: > create_physical_mapping expects physical addresses, but creating and > splitting these mappings after boot is supplying virtual (effective) > addresses. This can be irritated by booting with mem= to limit memory > then probing an unused physical memory range: > > echo

Re: [PATCH 2/2] powerpc: expose secure variables via sysfs

2019-07-24 Thread Oliver O'Halloran
On Wed, Jul 24, 2019 at 12:35 AM Nayna wrote: > > On 07/05/2019 02:05 AM, Michael Ellerman wrote: > > Hi Nayna, > > Hi Michael, Oliver, > > > Nayna Jain writes: > >> As part of PowerNV secure boot support, OS verification keys are stored > >> and controlled by OPAL as secure variables. These need

Re: [PATCH v3 9/9] powerpc/eeh: Convert log messages to eeh_edev_* macros

2019-07-24 Thread Oliver O'Halloran
On Wed, Jul 24, 2019 at 7:24 PM kbuild test robot wrote: > > Hi Sam, > > I love your patch! Yet something to improve: > > [auto build test ERROR on linus/master] > [also build test ERROR on v5.3-rc1 next-20190724] > [if your patch is applied to the wrong git tree, please d

Re: [PATCH v5 4/4] powerpc/papr_scm: Force a scm-unbind if initial scm-bind fails

2019-07-24 Thread Oliver O'Halloran
On Wed, Jul 24, 2019 at 7:27 PM Laurent Dufour wrote: > > Le 24/07/2019 à 11:24, Oliver O'Halloran a écrit : > > On Wed, Jul 24, 2019 at 7:17 PM Laurent Dufour > > wrote: > >> > >> Le 23/07/2019 à 18:13, Vaibhav Jain a écrit : > >>> *snip* > >>> @@ -404,6 +409,14 @@ static int papr_scm_probe(stru

Re: [PATCH] powerpc: Wire up clone3 syscall

2019-07-24 Thread Christian Brauner
On Wed, Jul 24, 2019 at 12:25:14PM +0700, Arseny Solokha wrote: > Hi, > > may I also ask to provide ppc_clone3 symbol also for 32-bit powerpc? Otherwise > Michael's patch breaks build for me: Makes sense. Michael, are you planning on picking this up? :) Christian > > powerpc-e500v2-linux-gnu

Re: [PATCH v5 4/4] powerpc/papr_scm: Force a scm-unbind if initial scm-bind fails

2019-07-24 Thread Laurent Dufour
Le 24/07/2019 à 11:24, Oliver O'Halloran a écrit : On Wed, Jul 24, 2019 at 7:17 PM Laurent Dufour wrote: Le 23/07/2019 à 18:13, Vaibhav Jain a écrit : *snip* @@ -404,6 +409,14 @@ static int papr_scm_probe(struct platform_device *pdev) /* request the hypervisor to bind this region to s

Re: [PATCH v3 9/9] powerpc/eeh: Convert log messages to eeh_edev_* macros

2019-07-24 Thread kbuild test robot
Hi Sam, I love your patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.3-rc1 next-20190724] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits

Re: [PATCH v5 4/4] powerpc/papr_scm: Force a scm-unbind if initial scm-bind fails

2019-07-24 Thread Oliver O'Halloran
On Wed, Jul 24, 2019 at 7:17 PM Laurent Dufour wrote: > > Le 23/07/2019 à 18:13, Vaibhav Jain a écrit : > > *snip* > > @@ -404,6 +409,14 @@ static int papr_scm_probe(struct platform_device *pdev) > > > > /* request the hypervisor to bind this region to somewhere in memory > > */ > > r

Re: [PATCH v5 4/4] powerpc/papr_scm: Force a scm-unbind if initial scm-bind fails

2019-07-24 Thread Laurent Dufour
Le 23/07/2019 à 18:13, Vaibhav Jain a écrit : In some cases initial bind of scm memory for an lpar can fail if previously it wasn't released using a scm-unbind hcall. This situation can arise due to panic of the previous kernel or forced lpar fadump. In such cases the H_SCM_BIND_MEM return a H_OV

Re: [DOC][PATCH v5 1/4] powerpc: Document some HCalls for Storage Class Memory

2019-07-24 Thread Laurent Dufour
Le 23/07/2019 à 18:13, Vaibhav Jain a écrit : This doc patch provides an initial description of the HCall op-codes that are used by Linux kernel running as a guest operating system (LPAR) on top of PowerVM or any other sPAPR compliant hyper-visor (e.g qemu). Apart from documenting the HCalls the

Re: [alsa-devel] [PATCH 05/10] ASoC: fsl_sai: Add support to enable multiple data lines

2019-07-24 Thread Daniel Baluta
On Mon, Jul 22, 2019 at 3:58 PM Lucas Stach wrote: > > Am Montag, den 22.07.2019, 15:48 +0300 schrieb Daniel Baluta: > > SAI supports up to 8 Rx/Tx data lines which can be enabled > > using TCE/RCE bits of TCR3/RCR3 registers. > > > > Data lines to be enabled are read from DT fsl,dl_mask property.

[PATCH 5/5] powerpc/64s/radix: Remove redundant pfn_pte bitop, add VM_BUG_ON

2019-07-24 Thread Nicholas Piggin
pfn_pte is never given a pte above the addressable physical memory limit, so the masking is redundant. In case of a software bug, it is not obviously better to silently truncate the pfn than to corrupt the pte (either one will result in memory corruption or crashes), so there is no reason to add th

[PATCH 4/5] powerpc/64: Add VIRTUAL_BUG_ON checks for __va and __pa addresses

2019-07-24 Thread Nicholas Piggin
Ensure __va is given a physical address below PAGE_OFFSET, and __pa is given a virtual address above PAGE_OFFSET. Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/page.h | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/include/asm/page.h

[PATCH 3/5] powerpc/perf: fix imc allocation failure handling

2019-07-24 Thread Nicholas Piggin
The alloc_pages_node return value should be tested for failure before being passed to page_address. Cc: Madhavan Srinivasan Tested-by: Anju T Sudhakar Signed-off-by: Nicholas Piggin --- arch/powerpc/perf/imc-pmu.c | 29 ++--- 1 file changed, 18 insertions(+), 11 deletio

[PATCH 2/5] powerpc/64s/radix: Fix memory hot-unplug page table split

2019-07-24 Thread Nicholas Piggin
create_physical_mapping expects physical addresses, but splitting these mapping on hot unplug is supplying virtual (effective) addresses. [I'm not sure how to test this one] Cc: Balbir Singh Fixes: 4dd5f8a99e791 ("powerpc/mm/radix: Split linear mapping on hot-unplug") Signed-off-by: Nicholas Pig

[PATCH 1/5] powerpc/64s/radix: Fix memory hotplug section page table creation

2019-07-24 Thread Nicholas Piggin
create_physical_mapping expects physical addresses, but creating and splitting these mappings after boot is supplying virtual (effective) addresses. This can be irritated by booting with mem= to limit memory then probing an unused physical memory range: echo > /sys/devices/system/memory/probe

[PATCH v2] crypto: nx: nx-842-powernv: Add of_node_put() before return

2019-07-24 Thread Nishka Dasgupta
Each iteration of for_each_compatible_node puts the previous node, but in the case of a return from the middle of the loop, there is no put, thus causing a memory leak. Add an of_node_put before the return. Issue found with Coccinelle. Acked-by: Stewart Smith Signed-off-by: Nishka Dasgupta ---

[PATCH v5 1/3] PM: wakeup: Add routine to help fetch wakeup source object.

2019-07-24 Thread Ran Wang
Some user might want to go through all registered wakeup sources and doing things accordingly. For example, SoC PM driver might need to do HW programming to prevent powering down specific IP which wakeup source depending on. So add this API to help walk through all registered wakeup source objects

[PATCH v5 3/3] soc: fsl: add RCPM driver

2019-07-24 Thread Ran Wang
The NXP's QorIQ Processors based on ARM Core have RCPM module (Run Control and Power Management), which performs all device-level tasks associated with power management such as wakeup source control. This driver depends on PM wakeup source framework which help to collect wake information. Signed-

[PATCH v5 2/3] Documentation: dt: binding: fsl: Add 'little-endian' and update Chassis define

2019-07-24 Thread Ran Wang
By default, QorIQ SoC's RCPM register block is Big Endian. But there are some exceptions, such as LS1088A and LS2088A, are Little Endian. So add this optional property to help identify them. Actually LS2021A and other Layerscapes won't totally follow Chassis 2.1, so separate them from powerpc SoC.

Re: [PATCH] crypto: nx: nx-842-powernv: Add of_node_put() before return

2019-07-24 Thread Stewart Smith
Nishka Dasgupta writes: > Each iteration of for_each_child_of_node puts the previous node, but This is for_each_compatible_node. otherwise looks okay, Acked-by: Stewart Smith -- Stewart Smith OPAL Architect, IBM.

Re: [PATCH] ibmvfc: fix WARN_ON during event pool release

2019-07-24 Thread Martin K. Petersen
Tyrel, > While removing an ibmvfc client adapter a WARN_ON like the following > WARN_ON is seen in the kernel log: Applied to 5.3/scsi-fixes, thanks! -- Martin K. Petersen Oracle Linux Engineering