Re: [PATCH] fsl: imx-audmix : Use devm_kcalloc() instead of devm_kzalloc()

2020-09-25 Thread Mark Brown
On Mon, 21 Sep 2020 01:59:18 +, Xu Wang wrote: > A multiplication for the size determination of a memory allocation > indicated that an array data structure should be processed. > Thus use the corresponding function "devm_kcalloc". Applied to https://git.kernel.org/pub/scm/linux/kernel/git

Re: [PATCH] fsl: imx-audmix : Replace seq_printf with seq_puts

2020-09-25 Thread Mark Brown
On Wed, 16 Sep 2020 06:14:20 +, Xu Wang wrote: > A multiplication for the size determination of a memory allocation > indicated that an array data structure should be processed. > Thus use the corresponding function "devm_kcalloc". Applied to https://git.kernel.org/pub/scm/linux/kernel/git

Re: [PATCH v2 3/3] selftests/lkdtm: Enable selftest for SLB multihit

2020-09-25 Thread Kees Cook
On Fri, Sep 25, 2020 at 04:01:23PM +0530, Ganesh Goudar wrote: > Add PPC_SLB_MULTIHIT to lkdtm selftest framework. > > Signed-off-by: Ganesh Goudar > --- > tools/testing/selftests/lkdtm/tests.txt | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tools/testing/selftests/lkdtm/tests.txt >

Re: [PATCH v2 2/3] lkdtm/powerpc: Add SLB multihit test

2020-09-25 Thread Kees Cook
On Fri, Sep 25, 2020 at 04:01:22PM +0530, Ganesh Goudar wrote: > Add support to inject slb multihit errors, to test machine > check handling. Thank you for more tests in here! > > Based on work by Mahesh Salgaonkar and Michal Suchánek. > > Cc: Mahesh Salgaonkar > Cc: Michal Suchánek Should t

Re: [PATCH] rpadlpar_io:Add MODULE_DESCRIPTION entries to kernel modules

2020-09-25 Thread Bjorn Helgaas
On Thu, Sep 24, 2020 at 04:41:39PM +1000, Oliver O'Halloran wrote: > On Thu, Sep 24, 2020 at 3:15 PM Mamatha Inamdar > wrote: > > > > This patch adds a brief MODULE_DESCRIPTION to rpadlpar_io kernel modules > > (descriptions taken from Kconfig file) > > > > Signed-off-by: Mamatha Inamdar > > ---

Re: let import_iovec deal with compat_iovecs as well v4

2020-09-25 Thread Al Viro
On Fri, Sep 25, 2020 at 06:51:37AM +0200, Christoph Hellwig wrote: > Hi Al, > > this series changes import_iovec to transparently deal with compat iovec > structures, and then cleanups up a lot of code dupliation. OK, I can live with that. Applied, let's see if it passes smoke tests into -next i

Re: [PATCH v2 2/3] lkdtm/powerpc: Add SLB multihit test

2020-09-25 Thread kernel test robot
Hi Ganesh, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on char-misc/char-misc-testing] [also build test WARNING on powerpc/next v5.9-rc6 next-20200925] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we

[PATCH v2 0/3] powerpc/mce: Fix mce handler and add selftest

2020-09-25 Thread Ganesh Goudar
This patch series fixes mce handling for pseries, Adds LKDTM test for SLB multihit recovery and enables selftest for the same, basically to test MCE handling on pseries/powernv machines running in hash mmu mode. v2: * Remove in_nmi check before calling nmi_enter/exit, as nesting is supported. *

[PATCH v2 1/3] powerpc/mce: remove nmi_enter/exit from real mode handler

2020-09-25 Thread Ganesh Goudar
Use of nmi_enter/exit in real mode handler causes the kernel to panic and reboot on injecting slb mutihit on pseries machine running in hash mmu mode, As these calls try to accesses memory outside RMO region in real mode handler where translation is disabled. Add check to not to use these calls on

[PATCH v2 2/3] lkdtm/powerpc: Add SLB multihit test

2020-09-25 Thread Ganesh Goudar
Add support to inject slb multihit errors, to test machine check handling. Based on work by Mahesh Salgaonkar and Michal Suchánek. Cc: Mahesh Salgaonkar Cc: Michal Suchánek Signed-off-by: Ganesh Goudar --- drivers/misc/lkdtm/Makefile | 4 ++ drivers/misc/lkdtm/core.c| 3 + drivers/mi

[PATCH v2 3/3] selftests/lkdtm: Enable selftest for SLB multihit

2020-09-25 Thread Ganesh Goudar
Add PPC_SLB_MULTIHIT to lkdtm selftest framework. Signed-off-by: Ganesh Goudar --- tools/testing/selftests/lkdtm/tests.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/lkdtm/tests.txt b/tools/testing/selftests/lkdtm/tests.txt index 9d266e79c6a2..7eb3cf91c89e 10064

[PATCH] powerpc/pci: Fix PHB removal/rescan on PowerNV

2020-09-25 Thread Cédric Le Goater
To fix an issue with PHB hotplug on pSeries machine (HPT/XIVE), commit 3a3181e16fbd introduced a PPC specific pcibios_remove_bus() routine to clear all interrupt mappings when the bus is removed. This routine frees an array allocated in pcibios_scan_phb(). This broke PHB hotplug on PowerNV because