[powerpc:merge] BUILD SUCCESS 034dfbf2e25530e4ee252464b397f30a5f55fbb7

2021-01-20 Thread kernel test robot
mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a001-20210120 i386 randconfig-a002-20210120 i386

Re: [PATCH] PCI: dwc: layerscape: convert to builtin_platform_driver()

2021-01-20 Thread Greg Kroah-Hartman
On Wed, Jan 20, 2021 at 08:23:59AM -0600, Rob Herring wrote: > On Wed, Jan 20, 2021 at 4:53 AM Michael Walle wrote: > > > > fw_devlink will defer the probe until all suppliers are ready. We can't > > use builtin_platform_driver_probe() because it doesn't retry after probe > > deferral. Convert it

Re: [PATCH 1/3] tty: hvcs: Drop unnecessary if block

2021-01-20 Thread Tyrel Datwyler
On 1/14/21 9:57 AM, Uwe Kleine-König wrote: > If hvcs_probe() succeeded dev_set_drvdata() is called with a non-NULL > value, and if hvcs_probe() failed hvcs_remove() isn't called. > > So there is no way dev_get_drvdata() can return NULL in hvcs_remove() and > the check can just go away. > >

Re: [RFC PATCH v3 5/6] dt-bindings: of: Add restricted DMA pool

2021-01-20 Thread Robin Murphy
On 2021-01-20 16:53, Rob Herring wrote: On Wed, Jan 06, 2021 at 11:41:23AM +0800, Claire Chang wrote: Introduce the new compatible string, restricted-dma-pool, for restricted DMA. One can specify the address and length of the restricted DMA memory region by restricted-dma-pool in the device

[powerpc:next-test] BUILD SUCCESS 04483fc005f81d678e4fe63e36eab4fb39c5277b

2021-01-20 Thread kernel test robot
allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a001-20210120 i386 randconfig-a002-20210120 i386 randconfig-a004-20210120 i386 randconfig-a006-20210120 i386

Re: [PATCH v3] [PATCH] powerpc/sstep: Check ISA 3.0 instruction validity before emulation

2021-01-20 Thread Michal Suchánek
On Wed, Jan 20, 2021 at 04:43:14PM +0530, Ananth N Mavinakayanahalli wrote: > We currently unconditionally try to emulate newer instructions on older > Power versions that could cause issues. Gate it. Fixes: 350779a29f11 ("powerpc: Handle most loads and stores in instruction emulation code")

Re: [RFC PATCH v3 5/6] dt-bindings: of: Add restricted DMA pool

2021-01-20 Thread Rob Herring
On Wed, Jan 06, 2021 at 11:41:23AM +0800, Claire Chang wrote: > Introduce the new compatible string, restricted-dma-pool, for restricted > DMA. One can specify the address and length of the restricted DMA memory > region by restricted-dma-pool in the device tree. If this goes into DT, I think we

[PATCH 1/2] crypto: talitos - Work around SEC6 ERRATA (AES-CTR mode data size error)

2021-01-20 Thread Christophe Leroy
Talitos Security Engine AESU considers any input data size that is not a multiple of 16 bytes to be an error. This is not a problem in general, except for Counter mode that is a stream cipher and can have an input of any size. Test Manager for ctr(aes) fails on 4th test vector which has a length

[PATCH] powerpc: Fix debug print in smp_setup_cpu_maps

2021-01-20 Thread Fabiano Rosas
When figuring out the number of threads, the debug message prints "1 thread" for the first iteration of the loop, instead of the actual number of threads calculated from the length of the "ibm,ppc-interrupt-server#s" property. * /cpus/PowerPC,POWER8@20... ibm,ppc-interrupt-server#s -> 1

Re: [PATCH] arch: powerpc: mm: book3s64: Fixed spelling architectue -> architecture in line number 1061

2021-01-20 Thread Randy Dunlap
On 1/20/21 6:20 AM, Bhaskar Chowdhury wrote: > s/architectue/architecture/ > > Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap Thanks. Line number in $Subject is just too much. > --- > arch/powerpc/mm/book3s64/radix_pgtable.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

[powerpc:fixes-test] BUILD SUCCESS dd3a44c06f7b4f14e90065bf05d62c255b20005f

2021-01-20 Thread kernel test robot
allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a001-20210120 i386 randconfig-a002-20210120 i386 randconfig-a004-20210120 i386 randconfig-a006-20210120 i386

[PATCH 2/2] crypto: talitos - Fix ctr(aes) on SEC1

2021-01-20 Thread Christophe Leroy
While ctr(aes) requires the use of a special descriptor on SEC2 (see commit 70d355ccea89 ("crypto: talitos - fix ctr-aes-talitos")), that special descriptor doesn't work on SEC1, see commit e738c5f15562 ("powerpc/8xx: Add DT node for using the SEC engine of the MPC885"). However, the common

Re: [PATCH] powerpc/64: prevent replayed interrupt handlers from running softirqs

2021-01-20 Thread Athira Rajeev
On 20-Jan-2021, at 1:20 PM, Nicholas Piggin wrote:Running softirqs enables interrupts, which can then end up recursinginto the irq soft-mask code we're adjusting, including replayinginterrupts itself, which might be theoretically unbounded.This abridged trace shows how this can occur:! NIP

linux-next: build failure on power pc

2021-01-20 Thread Yury Norov
Hi all, I found the power pc build broken on today's linux-next (647060f3b592). My compiler is: yury:linux$ powerpc-linux-gnu-gcc --version powerpc-linux-gnu-gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for

Re: [PATCH] PCI: dwc: layerscape: convert to builtin_platform_driver()

2021-01-20 Thread Michael Walle
Am 2021-01-20 20:02, schrieb Saravana Kannan: On Wed, Jan 20, 2021 at 6:24 AM Rob Herring wrote: On Wed, Jan 20, 2021 at 4:53 AM Michael Walle wrote: > > fw_devlink will defer the probe until all suppliers are ready. We can't > use builtin_platform_driver_probe() because it doesn't retry

Re: [RFC PATCH v3 5/6] dt-bindings: of: Add restricted DMA pool

2021-01-20 Thread Rob Herring
On Wed, Jan 20, 2021 at 11:30 AM Robin Murphy wrote: > > On 2021-01-20 16:53, Rob Herring wrote: > > On Wed, Jan 06, 2021 at 11:41:23AM +0800, Claire Chang wrote: > >> Introduce the new compatible string, restricted-dma-pool, for restricted > >> DMA. One can specify the address and length of the

Re: [PATCH] PCI: dwc: layerscape: convert to builtin_platform_driver()

2021-01-20 Thread Michael Walle
[RESEND, fat-fingered the buttons of my mail client and converted all CCs to BCCs :(] Am 2021-01-20 20:02, schrieb Saravana Kannan: On Wed, Jan 20, 2021 at 6:24 AM Rob Herring wrote: On Wed, Jan 20, 2021 at 4:53 AM Michael Walle wrote: > > fw_devlink will defer the probe until all

[PATCH] arch: powerpc: mm: book3s64: Fixed spelling architectue -> architecture in line number 1061

2021-01-20 Thread Bhaskar Chowdhury
s/architectue/architecture/ Signed-off-by: Bhaskar Chowdhury --- arch/powerpc/mm/book3s64/radix_pgtable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/mm/book3s64/radix_pgtable.c b/arch/powerpc/mm/book3s64/radix_pgtable.c index 98f0b243c1ab..8b8f1451e944

Re: [PATCH 1/2] crypto: talitos - Work around SEC6 ERRATA (AES-CTR mode data size error)

2021-01-20 Thread Ard Biesheuvel
On Wed, 20 Jan 2021 at 19:59, Christophe Leroy wrote: > > Talitos Security Engine AESU considers any input > data size that is not a multiple of 16 bytes to be an error. > This is not a problem in general, except for Counter mode > that is a stream cipher and can have an input of any size. > >

Re: [PATCH 1/2] crypto: talitos - Work around SEC6 ERRATA (AES-CTR mode data size error)

2021-01-20 Thread Christophe Leroy
Le 20/01/2021 à 23:23, Ard Biesheuvel a écrit : On Wed, 20 Jan 2021 at 19:59, Christophe Leroy wrote: Talitos Security Engine AESU considers any input data size that is not a multiple of 16 bytes to be an error. This is not a problem in general, except for Counter mode that is a stream

[PATCH] powerpc: fix AKEBONO build failures

2021-01-20 Thread Randy Dunlap
On 1/20/21 1:29 PM, Yury Norov wrote: > Hi all, > > I found the power pc build broken on today's > linux-next (647060f3b592). Darn, I was building linux-5.11-rc4. I'll try linux-next after I send this. --- From: Randy Dunlap Fulfill AKEBONO Kconfig requirements. Fixes these Kconfig warnings

Re: [PATCH] powerpc: fix AKEBONO build failures

2021-01-20 Thread Yury Norov
On Wed, Jan 20, 2021 at 10:10 PM Randy Dunlap wrote: > > On 1/20/21 1:29 PM, Yury Norov wrote: > > Hi all, > > > > I found the power pc build broken on today's > > linux-next (647060f3b592). > > Darn, I was building linux-5.11-rc4. > > I'll try linux-next after I send this. > > --- > From: Randy

Re: [PATCH v3] [PATCH] powerpc/sstep: Check ISA 3.0 instruction validity before emulation

2021-01-20 Thread Sandipan Das
On 20/01/21 4:43 pm, Ananth N Mavinakayanahalli wrote: > We currently unconditionally try to emulate newer instructions on older > Power versions that could cause issues. Gate it. > > Signed-off-by: Ananth N Mavinakayanahalli > --- > > [v3] Addressed Naveen's comments on scv and addpcis >

[PATCH 02/13] module: add a module_loaded helper

2021-01-20 Thread Christoph Hellwig
Add a helper that takes modules_mutex and uses find_module to check if a given module is loaded. This provides a better abstraction for the two callers, and allows to unexport modules_mutex and find_module. Signed-off-by: Christoph Hellwig --- drivers/gpu/drm/drm_fb_helper.c | 7 +--

[PATCH net] ibmvnic: device remove has higher precedence over reset

2021-01-20 Thread Lijun Pan
Returning -EBUSY in ibmvnic_remove() does not actually hold the removal procedure since driver core doesn't care for the return value (see __device_release_driver() in drivers/base/dd.c calling dev->bus->remove()) though vio_bus_remove (in arch/powerpc/platforms/pseries/vio.c) records the return

[PATCH 01/13] powerpc/powernv: remove get_cxl_module

2021-01-20 Thread Christoph Hellwig
The static inline get_cxl_module function is entirely unused, remove it. Signed-off-by: Christoph Hellwig --- arch/powerpc/platforms/powernv/pci-cxl.c | 22 -- 1 file changed, 22 deletions(-) diff --git a/arch/powerpc/platforms/powernv/pci-cxl.c

Re: [PATCH 1/2] crypto: talitos - Work around SEC6 ERRATA (AES-CTR mode data size error)

2021-01-20 Thread Ard Biesheuvel
On Thu, 21 Jan 2021 at 06:35, Christophe Leroy wrote: > > > > Le 20/01/2021 à 23:23, Ard Biesheuvel a écrit : > > On Wed, 20 Jan 2021 at 19:59, Christophe Leroy > > wrote: > >> > >> Talitos Security Engine AESU considers any input > >> data size that is not a multiple of 16 bytes to be an error.

module loader dead code removal and cleanusp

2021-01-20 Thread Christoph Hellwig
Hi all, this series removes support for long term unused export types and cleans up various loose ends in the module loader. Diffstat: arch/arm/configs/bcm2835_defconfig |1 arch/arm/configs/mxs_defconfig |1 arch/mips/configs/nlm_xlp_defconfig |1

Re: [PATCH] PCI: dwc: layerscape: convert to builtin_platform_driver()

2021-01-20 Thread Michael Walle
Am 2021-01-20 20:47, schrieb Saravana Kannan: On Wed, Jan 20, 2021 at 11:28 AM Michael Walle wrote: [RESEND, fat-fingered the buttons of my mail client and converted all CCs to BCCs :(] Am 2021-01-20 20:02, schrieb Saravana Kannan: > On Wed, Jan 20, 2021 at 6:24 AM Rob Herring wrote: >> >>

Re: [RFC PATCH v3 5/6] dt-bindings: of: Add restricted DMA pool

2021-01-20 Thread Robin Murphy
On 2021-01-20 21:31, Rob Herring wrote: On Wed, Jan 20, 2021 at 11:30 AM Robin Murphy wrote: On 2021-01-20 16:53, Rob Herring wrote: On Wed, Jan 06, 2021 at 11:41:23AM +0800, Claire Chang wrote: Introduce the new compatible string, restricted-dma-pool, for restricted DMA. One can specify

Re: [PATCH][next] scsi: ibmvfc: Fix spelling mistake "succeded" -> "succeeded"

2021-01-20 Thread Martin K. Petersen
Colin, > There is a spelling mistake in a ibmvfc_dbg debug message. Fix it. Applied to 5.12/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 6/6] powerpc/rtas: constrain user region allocation to RMA

2021-01-20 Thread Nathan Lynch
Michael Ellerman writes: > Nathan Lynch writes: >> Michael Ellerman writes: >>> Nathan Lynch writes: Memory locations passed as arguments from the OS to RTAS usually need to be addressable in 32-bit mode and must reside in the Real Mode Area. On PAPR guests, the RMA starts at

Re: [PATCH v5 00/21] ibmvfc: initial MQ development/enablement

2021-01-20 Thread Martin K. Petersen
On Thu, 14 Jan 2021 14:31:27 -0600, Tyrel Datwyler wrote: > Recent updates in pHyp Firmware and VIOS releases provide new infrastructure > towards enabling Subordinate Command Response Queues (Sub-CRQs) such that each > Sub-CRQ is a channel backed by an actual hardware queue in the FC stack on

RE: [PATCH 2/2] powerpc/44x: Remove STDBINUTILS kconfig option

2021-01-20 Thread David Laight
From: Christophe Leroy > Sent: 20 January 2021 07:49 > > STDBINUTILS is just a toggle to allow 256k page size > to appear in the possible page sizes list for the 44x. > > Make 256k page size appear all the time with an > explicit warning on binutils, and remove this unneccessary > STDBINUTILS

Re: [PATCH] [PATCH] powerpc/sstep: Check ISA 3.0 instruction validity before emulation

2021-01-20 Thread Naveen N. Rao
On 2021/01/20 03:16PM, Ananth N Mavinakayanahalli wrote: > We currently unconditionally try to newer emulate instructions on older ^ never? Or: "emulate newer"? > Power versions that could cause issues. Gate it. > >

Re: [PATCH] [PATCH] powerpc/sstep: Check ISA 3.0 instruction validity before emulation

2021-01-20 Thread Ananth N Mavinakayanahalli
On 1/20/21 3:44 PM, Naveen N. Rao wrote: On 2021/01/20 03:16PM, Ananth N Mavinakayanahalli wrote: ... diff --git a/arch/powerpc/lib/sstep.c b/arch/powerpc/lib/sstep.c index bf7a7d62ae8b..ed119858e5e9 100644 --- a/arch/powerpc/lib/sstep.c +++ b/arch/powerpc/lib/sstep.c @@ -1528,6 +1528,8 @@

[PATCH] [PATCH] powerpc/sstep: Check ISA 3.0 instruction validity before emulation

2021-01-20 Thread Ananth N Mavinakayanahalli
We currently unconditionally try to newer emulate instructions on older Power versions that could cause issues. Gate it. Signed-off-by: Ananth N Mavinakayanahalli --- arch/powerpc/lib/sstep.c | 40 1 file changed, 40 insertions(+) diff --git

[PATCH] [PATCH V2] powerpc/sstep: Check ISA 3.0 instruction validity before emulation

2021-01-20 Thread Ananth N Mavinakayanahalli
We currently unconditionally try to emulate newer instructions on older Power versions that could cause issues. Gate it. Signed-off-by: Ananth N Mavinakayanahalli --- arch/powerpc/lib/sstep.c | 40 1 file changed, 40 insertions(+) diff --git

Re: [PATCH v6 25/39] powerpc: convert interrupt handlers to use wrappers

2021-01-20 Thread kernel test robot
Hi Nicholas, I love your patch! Yet something to improve: [auto build test ERROR on powerpc/next] [also build test ERROR on v5.11-rc4 next-20210120] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented

[PATCH v3] [PATCH] powerpc/sstep: Check ISA 3.0 instruction validity before emulation

2021-01-20 Thread Ananth N Mavinakayanahalli
We currently unconditionally try to emulate newer instructions on older Power versions that could cause issues. Gate it. Signed-off-by: Ananth N Mavinakayanahalli --- [v3] Addressed Naveen's comments on scv and addpcis [v2] Fixed description arch/powerpc/lib/sstep.c | 46

Re: [PATCH v6 25/39] powerpc: convert interrupt handlers to use wrappers

2021-01-20 Thread kernel test robot
Hi Nicholas, I love your patch! Perhaps something to improve: [auto build test WARNING on powerpc/next] [also build test WARNING on v5.11-rc4 next-20210120] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented

Re: [PATCH 6/6] powerpc/rtas: constrain user region allocation to RMA

2021-01-20 Thread Michael Ellerman
Nathan Lynch writes: > Alexey Kardashevskiy writes: >> On 16/01/2021 02:38, Nathan Lynch wrote: >>> Alexey Kardashevskiy writes: On 15/01/2021 09:00, Nathan Lynch wrote: > Memory locations passed as arguments from the OS to RTAS usually need > to be addressable in 32-bit mode and

Re: [PATCH 6/6] powerpc/rtas: constrain user region allocation to RMA

2021-01-20 Thread Michael Ellerman
Nathan Lynch writes: > Michael Ellerman writes: >> Nathan Lynch writes: >>> Memory locations passed as arguments from the OS to RTAS usually need >>> to be addressable in 32-bit mode and must reside in the Real Mode >>> Area. On PAPR guests, the RMA starts at logical address 0 and is the >>>

[PATCH] PCI: dwc: layerscape: convert to builtin_platform_driver()

2021-01-20 Thread Michael Walle
fw_devlink will defer the probe until all suppliers are ready. We can't use builtin_platform_driver_probe() because it doesn't retry after probe deferral. Convert it to builtin_platform_driver(). Fixes: e590474768f1 ("driver core: Set fw_devlink=on by default") Signed-off-by: Michael Walle ---

Re: [PATCH] powerpc/uprobes: Don't allow probe on suffix of prefixed instruction

2021-01-20 Thread Ravi Bangoria
On 1/19/21 10:56 PM, Oleg Nesterov wrote: On 01/19, Ravi Bangoria wrote: Probe on 2nd word of a prefixed instruction is invalid scenario and should be restricted. I don't understand this ppc-specific problem, but... So far (upto Power9), instruction size was fixed - 4 bytes. But Power10

Re: [PATCH] PCI: dwc: layerscape: convert to builtin_platform_driver()

2021-01-20 Thread Rob Herring
On Wed, Jan 20, 2021 at 4:53 AM Michael Walle wrote: > > fw_devlink will defer the probe until all suppliers are ready. We can't > use builtin_platform_driver_probe() because it doesn't retry after probe > deferral. Convert it to builtin_platform_driver(). If builtin_platform_driver_probe()

Re: [PATCH 1/4] KVM: PPC: Book3S HV: Remove support for running HPT guest on RPT host without mixed mode support

2021-01-20 Thread Fabiano Rosas
Nicholas Piggin writes: > Excerpts from Fabiano Rosas's message of January 20, 2021 7:07 am: >> Nicholas Piggin writes: >> >>> Excerpts from Fabiano Rosas's message of January 19, 2021 11:46 am: Resending because the previous got spam-filtered: Nicholas Piggin writes:

Re: [PATCH] PCI: dwc: layerscape: convert to builtin_platform_driver()

2021-01-20 Thread Michael Walle
Am 2021-01-20 15:23, schrieb Rob Herring: On Wed, Jan 20, 2021 at 4:53 AM Michael Walle wrote: fw_devlink will defer the probe until all suppliers are ready. We can't use builtin_platform_driver_probe() because it doesn't retry after probe deferral. Convert it to builtin_platform_driver().

[PATCH] powerpc: Fix build error in paravirt.h

2021-01-20 Thread Michal Suchanek
./arch/powerpc/include/asm/paravirt.h:83:44: error: implicit declaration of function 'smp_processor_id'; did you mean 'raw_smp_processor_id'? smp_processor_id is defined in linux/smp.h but it is not included. The build error happens only when the patch is applied to 5.3 kernel but it only works

Re: [PATCH v3] [PATCH] powerpc/sstep: Check ISA 3.0 instruction validity before emulation

2021-01-20 Thread Naveen N. Rao
On 2021/01/20 04:43PM, Ananth N Mavinakayanahalli wrote: > We currently unconditionally try to emulate newer instructions on older > Power versions that could cause issues. Gate it. > > Signed-off-by: Ananth N Mavinakayanahalli > --- > > [v3] Addressed Naveen's comments on scv and addpcis >