[powerpc:next-test] BUILD SUCCESS WITH WARNING 612d6fddf359556217a89c3e42a6c3a6475e2e1d

2022-06-22 Thread kernel test robot
u8500_defconfig arm aspeed_g5_defconfig xtensa defconfig x86_64randconfig-c001 arm randconfig-c002-20220622 ia64 allmodconfig riscv allnoconfig m68k

[powerpc:fixes-test] BUILD SUCCESS f3eac426657d985b97c92fa5f7ae1d43f04721f3

2022-06-22 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git fixes-test branch HEAD: f3eac426657d985b97c92fa5f7ae1d43f04721f3 powerpc/powernv: wire up rng during setup_arch elapsed time: 976m configs tested: 60 configs skipped: 120 The following configs have been built

Re: [RFC PATCH v2 3/3] powerpc/pseries: expose authenticated variables stored in LPAR PKS

2022-06-22 Thread Randy Dunlap
On 6/22/22 14:56, Nayna Jain wrote: > diff --git a/arch/powerpc/platforms/pseries/Kconfig > b/arch/powerpc/platforms/pseries/Kconfig > index 6c1ca487103f..9c52095e20c4 100644 > --- a/arch/powerpc/platforms/pseries/Kconfig > +++ b/arch/powerpc/platforms/pseries/Kconfig > @@ -152,6 +152,23 @@

Re: [RFC PATCH v2 2/3] fs: define a firmware security filesystem named fwsecurityfs

2022-06-22 Thread Nayna
On 6/22/22 18:29, Casey Schaufler wrote: On 6/22/2022 2:56 PM, Nayna Jain wrote: securityfs is meant for linux security subsystems to expose policies/logs or any other information. However, there are various firmware security features which expose their variables for user management via

Re: [RFC PATCH v2 2/3] fs: define a firmware security filesystem named fwsecurityfs

2022-06-22 Thread Casey Schaufler
On 6/22/2022 2:56 PM, Nayna Jain wrote: securityfs is meant for linux security subsystems to expose policies/logs or any other information. However, there are various firmware security features which expose their variables for user management via kernel. There is currently no single place to

[RFC PATCH v2 3/3] powerpc/pseries: expose authenticated variables stored in LPAR PKS

2022-06-22 Thread Nayna Jain
PowerVM Guest Secure boot feature need to expose firmware managed secure variables for user management. These variables store keys for grub/kernel verification and also corresponding denied list. Expose these variables to the userpace via fwsecurityfs. Example: Example: # cd

[RFC PATCH v2 2/3] fs: define a firmware security filesystem named fwsecurityfs

2022-06-22 Thread Nayna Jain
securityfs is meant for linux security subsystems to expose policies/logs or any other information. However, there are various firmware security features which expose their variables for user management via kernel. There is currently no single place to expose these variables. Different platforms

[RFC PATCH v2 0/3] powerpc/pseries: add support for local secure storage called Platform KeyStore(PKS)

2022-06-22 Thread Nayna Jain
PowerVM provides an isolated Platform KeyStore(PKS)[1] storage allocation for each partition(LPAR) with individually managed access controls to store sensitive information securely. Linux Kernel can access this storage by interfacing with hypervisor using a new set of hypervisor calls. PowerVM

[RFC PATCH v2 1/3] powerpc/pseries: define driver for Platform KeyStore

2022-06-22 Thread Nayna Jain
PowerVM provides an isolated Platform Keystore(PKS) storage allocation for each LPAR with individually managed access controls to store sensitive information securely. It provides a new set of hypervisor calls for Linux kernel to access PKS storage. Define PLPKS driver using H_CALL interface to

[linux-next:master] BUILD REGRESSION ac0ba5454ca85162c08dc429fef1999e077ca976

2022-06-22 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: ac0ba5454ca85162c08dc429fef1999e077ca976 Add linux-next specific files for 20220622 Error/Warning reports: https://lore.kernel.org/linux-mm/202206212029.yr5m7cd3-...@intel.com https

Re: [PATCH v5 00/33] objtool: add base support for arm64

2022-06-22 Thread Daniel Thompson
On Wed, Jun 22, 2022 at 11:48:47PM +0800, Chen Zhongjin wrote: > This series enables objtool to start doing stack validation and orc > generation on arm64 kernel builds. > > Based on Julien's previous work(1)(2), Now I have finished most of work > for objtool enable on arm64. This series includes

Re: [PATCH v5 5/5] powerpc/crash hp: add crash page helper functions

2022-06-22 Thread Laurent Dufour
On 20/06/2022, 09:01:06, Sourabh Jain wrote: > Define arch_[un]map_crash_pages functions to avoid build issues due to > undefined arch specific function to access crash memory pages. > > A temporary patch to avoid build issues may need some changes in > generic code to avoid this. > > The issue

Re: [PATCH v5 4/5] powerpc/crash hp: add crash hotplug support for kexec_load

2022-06-22 Thread Laurent Dufour
On 20/06/2022, 09:01:05, Sourabh Jain wrote: > A common crash hotplug handler is used for both kexec_load and > kexec_file_load, which is already implemented in earlier patches while > adding support for kexec_file_load. > > To enable the crash hotplug handler to work for kexec_load case the >

Re: [PATCH v5 3/5] powerpc/crash hp: add crash hotplug support for kexec_file_load

2022-06-22 Thread Laurent Dufour
On 20/06/2022, 09:01:04, Sourabh Jain wrote: > Two major changes are done to enable the crash CPU hotplug handler. > Firstly, updated the kexec load path to prepare kimage for hotplug > changes, and secondly, implemented the arch specific crash hotplug > handler. > > On the kexec load path, the

[PATCH v2 12/12] powerpc: wiiu: Add minimal default config

2022-06-22 Thread Ash Logan
Adds a bare-minimum config to get a kernel compiled. Will need some more interesting options once a storage device to boot from is added. Signed-off-by: Ash Logan --- arch/powerpc/configs/wiiu_defconfig | 7 +++ 1 file changed, 7 insertions(+) create mode 100644

[PATCH v2 11/12] powerpc: wiiu: don't enforce flat memory

2022-06-22 Thread Ash Logan
pgtable_32.c:mapin_ram loops over each valid memory range, which means non-contiguous memory just works. Signed-off-by: Ash Logan --- arch/powerpc/mm/init_32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/mm/init_32.c b/arch/powerpc/mm/init_32.c index

[PATCH v2 10/12] powerpc: wiiu: platform support

2022-06-22 Thread Ash Logan
Add platform support for the Nintendo Wii U console. Signed-off-by: Ash Logan Co-developed-by: Roberto Van Eeden Signed-off-by: Roberto Van Eeden Co-developed-by: Emmanuel Gil Peyrot Signed-off-by: Emmanuel Gil Peyrot --- arch/powerpc/platforms/wiiu/Makefile | 2 +-

[PATCH v2 09/12] powerpc: espresso processor support

2022-06-22 Thread Ash Logan
Adds a cputable entry for the "Espresso" processor found on the Nintendo Wii U, which has a PVR unrelated to other 750CL-like chips. Only this revision has been seen in the wild. Signed-off-by: Roberto Van Eeden Signed-off-by: Ash Logan --- arch/powerpc/kernel/cputable.c | 16

[PATCH v2 08/12] powerpc: wiiu: latte interrupt controller support

2022-06-22 Thread Ash Logan
Add support for the "Latte" interrupt controller in the Nintendo Wii U. This controller is used for the entire SoC and is wired to a cascade interrupt on the Espresso controller. Signed-off-by: Ash Logan Co-developed-by: Roberto Van Eeden Signed-off-by: Roberto Van Eeden ---

[PATCH v2 07/12] powerpc: wiiu: espresso interrupt controller support

2022-06-22 Thread Ash Logan
Add support for the "Espresso" interrupt controller in the Nintendo Wii U. Signed-off-by: Ash Logan Co-developed-by: Roberto Van Eeden Signed-off-by: Roberto Van Eeden --- arch/powerpc/platforms/wiiu/Makefile | 1 + arch/powerpc/platforms/wiiu/espresso-pic.c | 183

[PATCH v2 06/12] powerpc: wiiu: udbg support for latteipc

2022-06-22 Thread Ash Logan
Add support for using the Latte chipset IPC for udbg on the Nintendo Wii U console. These messages can then be received by a special firmware running on the "Starbuck" coprocessor. Signed-off-by: Ash Logan --- arch/powerpc/Kconfig.debug | 9 ++ arch/powerpc/include/asm/udbg.h

[PATCH v2 05/12] powerpc: wiiu: declare as non-coherent

2022-06-22 Thread Ash Logan
The Nintendo Wii U requires explicit cache handling when interfacing with DMA devices. Signed-off-by: Ash Logan --- arch/powerpc/platforms/Kconfig.cputype | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/Kconfig.cputype

[PATCH v2 04/12] powerpc: wiiu: introduce wiiu platform

2022-06-22 Thread Ash Logan
Adds empty platforms/wiiu for Nintendo Wii U console Signed-off-by: Ash Logan --- arch/powerpc/platforms/Kconfig | 1 + arch/powerpc/platforms/Makefile | 1 + arch/powerpc/platforms/wiiu/Kconfig | 5 + arch/powerpc/platforms/wiiu/Makefile | 1 + 4 files changed, 8 insertions(+)

[PATCH v2 03/12] powerpc: wiiu: bootwrapper support

2022-06-22 Thread Ash Logan
Add support for the Nintendo Wii U game console to the powerpc bootwrapper. Signed-off-by: Ash Logan Co-developed-by: Emmanuel Gil Peyrot Signed-off-by: Emmanuel Gil Peyrot --- arch/powerpc/boot/Makefile| 4 ++ arch/powerpc/boot/wiiu-head.S | 103 ++

[PATCH v2 02/12] powerpc: wiiu: device tree

2022-06-22 Thread Ash Logan
Add a device tree source file for the Nintendo Wii U video game console. Signed-off-by: Ash Logan Co-developed-by: Roberto Van Eeden Signed-off-by: Roberto Van Eeden Co-developed-by: Emmanuel Gil Peyrot Signed-off-by: Emmanuel Gil Peyrot --- v1->v2: Style and formatting changes suggested by

[PATCH v2 01/12] dt-bindings: wiiu: Document the Nintendo Wii U devicetree

2022-06-22 Thread Ash Logan
Adds schema for the various Wii U devicetree nodes used. Signed-off-by: Ash Logan --- .../bindings/powerpc/nintendo/wiiu.yaml | 28 +++ .../powerpc/nintendo/wiiu/espresso-pic.yaml | 42 + .../bindings/powerpc/nintendo/wiiu/gpu7.yaml | 41 +

[PATCH v2 00/12] powerpc: Nintendo Wii U support

2022-06-22 Thread Ash Logan
The following patches add basic support for the Nintendo Wii U video game console, a PowerPC system somewhat similar to the GameCube and Wii. This includes: - devicetree source - bootwrapper support - udbg console to bootloader - early udbg console - interrupt controllers - platform support -

Re: [PATCH kernel] KVM: PPC: Book3s: Fix warning about xics_rm_h_xirr_x

2022-06-22 Thread Greg Kurz
On Wed, 22 Jun 2022 15:52:35 +1000 Alexey Kardashevskiy wrote: > This fixes "no previous prototype": > > arch/powerpc/kvm/book3s_hv_rm_xics.c:482:15: > warning: no previous prototype for 'xics_rm_h_xirr_x' [-Wmissing-prototypes] > > Reported by the kernel test robot. > > Fixes: b22af9041927

Re: [PATCH] powerpc: dts: Add DTS file for CZ.NIC Turris 1.x routers

2022-06-22 Thread Pali Rohár
On Thursday 09 June 2022 12:19:00 Pali Rohár wrote: > On Tuesday 24 May 2022 11:23:32 Pali Rohár wrote: > > On Wednesday 11 May 2022 16:37:12 Pali Rohár wrote: > > > CZ.NIC Turris 1.0 and 1.1 are open source routers, they have dual-core > > > PowerPC Freescale P2020 CPU and are based on Freescale

Re: [PATCH RESEND v2 0/7] soc: fsl: guts: cleanups and serial_number support

2022-06-22 Thread Michael Walle
Am 2022-04-04 11:56, schrieb Michael Walle: [Resend because of new development cycle. Shawn, can this series get through your tree? Sorry you weren't on CC on the former submissions.] This series converts the guts driver from a platform driver to just an core_initcall. The driver itself cannot

[PATCH] powerpc/kvm: don't crash on missing rng, and use darn

2022-06-22 Thread Jason A. Donenfeld
On POWER8 systems that don't have ibm,power-rng available, a guest that ignores the KVM_CAP_PPC_HWRNG flag and calls H_RANDOM anyway will dereference a NULL pointer. And on machines with darn instead of ibm,power-rng, H_RANDOM won't work at all. This patch kills two birds with one stone, by

[PATCH] powerpc/powernv: rename remaining rng powernv_ functions to pnv_

2022-06-22 Thread Jason A. Donenfeld
The preferred nomenclature is pnv_, not powernv_, but rng.c used powernv_ for some reason, which isn't consistent with the rest. A recent commit added a few pnv_ functions to rng.c, making the file a bit of a mishmash. This commit just replaces the rest of them. Cc: Michael Ellerman Fixes:

Re: [PATCH] powerc: Update asm-prototypes.h comment

2022-06-22 Thread Michael Ellerman
Russell Currey writes: > On Fri, 2022-06-17 at 18:02 +1000, Michael Ellerman wrote: >> This header was recently cleaned up in commit 76222808fc25 ("powerpc: >> Move C prototypes out of asm-prototypes.h"), update the comment to >> reflect it's proper purpose. >> >> Signed-off-by: Michael Ellerman

Re: [PATCH v2 3/4] powerpc/watchdog: introduce a LPM factor

2022-06-22 Thread kernel test robot
://download.01.org/0day-ci/archive/20220622/202206221732.aujj8kwm-...@intel.com/config) compiler: powerpc-linux-gcc (GCC) 11.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin

Re: [PATCH v5 1/5] powerpc/kexec: make update_cpus_node non-static

2022-06-22 Thread Sourabh Jain
On 21/06/22 14:29, Laurent Dufour wrote: On 20/06/2022, 09:01:02, Sourabh Jain wrote: Make the update_cpus_node function non-static and export it for usage in other kexec components. The update_cpus_node definition is moved to core_64.c so that it can be used with both kexec_load and

Re: [PATCH] powerc: Update asm-prototypes.h comment

2022-06-22 Thread Russell Currey
On Fri, 2022-06-17 at 18:02 +1000, Michael Ellerman wrote: > This header was recently cleaned up in commit 76222808fc25 ("powerpc: > Move C prototypes out of asm-prototypes.h"), update the comment to > reflect it's proper purpose. > > Signed-off-by: Michael Ellerman Hi Michael, subject says

[PATCH] macintosh: Add missing of_node_get() in do_attach()

2022-06-22 Thread Liang He
We need a of_node_get() for of_find_compatible_node() to keep refcount balance. Signed-off-by: Liang He --- drivers/macintosh/therm_windtunnel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/macintosh/therm_windtunnel.c b/drivers/macintosh/therm_windtunnel.c index

Re: [PATCH RFC] drivers/usb/ehci-fsl: Fix interrupt setup in host mode.

2022-06-22 Thread Greg KH
On Tue, Jun 21, 2022 at 11:09:41PM +0100, Darren Stevens wrote: > In patch a1a2b7125e1079 (Drop static setup of IRQ resource from DT > core) we stopped platform_get_resource() from returning the IRQ, as all > drivers were supposed to have switched to platform_get_irq() > Unfortunately the