[GIT PULL] Please pull powerpc/linux.git powerpc-6.0-3 tag

2022-08-19 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull some more powerpc fixes for 6.0: The following changes since commit 568035b01cfb107af8d2e4bd2fb9aea22cf5b868: Linux 6.0-rc1 (2022-08-14 15:50:18 -0700) are available in the git repository at:

Re: [PATCH] powerpc/boot: Convert more files to use SPDX tags

2022-08-19 Thread Michael Ellerman
Greg KH writes: > On Fri, Aug 19, 2022 at 09:04:30PM +1000, Michael Ellerman wrote: >> These files are all plain GPL 2.0, with a second sentence about being >> licensed as-is. >> >> Similar to the rule in commit 577b61cee5b2 ("treewide: Replace GPLv2 >> boilerplate/reference with SPDX -

Re: [PATCH] MAINTAINERS: Remove myself as EEH maintainer

2022-08-19 Thread Michael Ellerman
Bjorn Helgaas writes: > On Sat, Aug 06, 2022 at 06:53:01PM +1000, Russell Currey wrote: >> I haven't touched EEH in a long time I don't have much knowledge of the >> subsystem at this point either, so it's misleading to have me as a >> maintainer. >> >> I remain grateful to Oliver for picking up

Re: [RESEND PATCH net-next v4 00/25] net: dpaa: Cleanups in preparation for phylink conversion

2022-08-19 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (master) by Jakub Kicinski : On Thu, 18 Aug 2022 12:16:24 -0400 you wrote: > This series contains several cleanup patches for dpaa/fman. While they > are intended to prepare for a phylink conversion, they stand on their > own. This series was

Re: [PATCH] net: move from strlcpy with unused retval to strscpy

2022-08-19 Thread Tom Lendacky
On 8/18/22 16:00, Wolfram Sang wrote: Follow the advice of the below link and prefer 'strscpy' in this subsystem. Conversion is 1:1 because the return value is not used. Generated by a coccinelle script. Link:

Re: [PATCH] net: move from strlcpy with unused retval to strscpy

2022-08-19 Thread Geoff Levand
Hi Wolfram, On 8/18/22 14:00, Wolfram Sang wrote: > Follow the advice of the below link and prefer 'strscpy' in this > subsystem. Conversion is 1:1 because the return value is not used. > Generated by a coccinelle script. > > Link: >

Re: [PATCH] block: move from strlcpy with unused retval to strscpy

2022-08-19 Thread Christoph Böhmwalder
Am 18.08.22 um 22:59 schrieb Wolfram Sang: > Follow the advice of the below link and prefer 'strscpy' in this > subsystem. Conversion is 1:1 because the return value is not used. > Generated by a coccinelle script. > > Link: >

Re: [PATCH] kernel: exit: cleanup release_thread()

2022-08-19 Thread Russell King (Oracle)
On Fri, Aug 19, 2022 at 09:44:06AM +0800, Kefeng Wang wrote: > Only x86 has own release_thread(), introduce a new weak > release_thread() function to clean empty definitions in > other ARCHs. > > Signed-off-by: Kefeng Wang ... > arch/arm/include/asm/processor.h| 3 --- >

Re: [PATCH] kernel: exit: cleanup release_thread()

2022-08-19 Thread Geert Uytterhoeven
Hi Kefeng, On Fri, Aug 19, 2022 at 3:39 AM Kefeng Wang wrote: > Only x86 has own release_thread(), introduce a new weak > release_thread() function to clean empty definitions in > other ARCHs. > > Signed-off-by: Kefeng Wang > arch/m68k/include/asm/processor.h | 5 - Acked-by: Geert

Re: [PATCH] powerpc: Add support for early debugging via Serial 16550 console

2022-08-19 Thread Randy Dunlap
On 8/19/22 15:38, Pali Rohár wrote: > On Friday 19 August 2022 15:34:14 Randy Dunlap wrote: >> Hi-- >> >> On 8/19/22 14:12, Pali Rohár wrote: >>> Currently powerpc early debugging contains lot of platform specific >>> options, but does not support standard UART / serial 16550 console. >>> >>>

Re: [PATCH] powerpc: Add support for early debugging via Serial 16550 console

2022-08-19 Thread Pali Rohár
On Friday 19 August 2022 15:34:14 Randy Dunlap wrote: > Hi-- > > On 8/19/22 14:12, Pali Rohár wrote: > > Currently powerpc early debugging contains lot of platform specific > > options, but does not support standard UART / serial 16550 console. > > > > Later legacy_serial.c code supports

Re: [PATCH] powerpc: Add support for early debugging via Serial 16550 console

2022-08-19 Thread Randy Dunlap
Hi-- On 8/19/22 14:12, Pali Rohár wrote: > Currently powerpc early debugging contains lot of platform specific > options, but does not support standard UART / serial 16550 console. > > Later legacy_serial.c code supports registering UART as early debug console > from device tree but it is not

[PATCH v4 3/3] block: sed-opal: keystore access for SED Opal keys

2022-08-19 Thread gjoyce
From: Greg Joyce Allow for permanent SED authentication keys by reading/writing to the SED Opal non-volatile keystore. Signed-off-by: Greg Joyce --- block/sed-opal.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/block/sed-opal.c b/block/sed-opal.c

[PATCH v4 2/3] powerpc/pseries: PLPKS SED Opal keystore support

2022-08-19 Thread gjoyce
From: Greg Joyce Define operations for SED Opal to read/write keys from POWER LPAR Platform KeyStore(PLPKS). This allows for non-volatile storage of SED Opal keys. Signed-off-by: Greg Joyce --- arch/powerpc/platforms/pseries/Makefile | 1 +

[PATCH v4 0/3] generic and PowerPC SED Opal keystore

2022-08-19 Thread gjoyce
From: Greg Joyce Generic functions have been defined for accessing SED Opal keys. The generic functions are defined as weak so that they may be superseded by keystore specific versions. PowerPC/pseries versions of these functions provide read/write access to SED Opal keys in the PLPKS keystore.

[PATCH v4 1/3] block: sed-opal: SED Opal keystore

2022-08-19 Thread gjoyce
From: Greg Joyce Add read and write functions that allow SED Opal keys to stored in a permanent keystore. Signed-off-by: Greg Joyce --- block/Makefile | 2 +- block/sed-opal-key.c | 23 +++ include/linux/sed-opal-key.h | 15 +++ 3 files

Re: [PATCH] powerpc: export cpu_smallcore_map for modules

2022-08-19 Thread Alex Deucher
On Fri, Aug 19, 2022 at 6:18 PM Randy Dunlap wrote: > > Fix build error when CONFIG_DRM_AMDGPU=m: > > ERROR: modpost: "cpu_smallcore_map" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] > undefined! > > by exporting 'cpu_smallcore_map' just as other per_cpu > symbols are exported. > >

Re: [PATCH] powerpc: export cpu_smallcore_map for modules

2022-08-19 Thread Felix Kuehling
On 2022-08-19 17:01, Randy Dunlap wrote: Fix build error when CONFIG_DRM_AMDGPU=m: ERROR: modpost: "cpu_smallcore_map" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined! by exporting 'cpu_smallcore_map' just as other per_cpu symbols are exported. drivers/gpu/drm/amd/amdkfd/kfd_device.c

[PATCH] powerpc: Add support for early debugging via Serial 16550 console

2022-08-19 Thread Pali Rohár
Currently powerpc early debugging contains lot of platform specific options, but does not support standard UART / serial 16550 console. Later legacy_serial.c code supports registering UART as early debug console from device tree but it is not early during booting, but rather later after machine

[PATCH] powerpc: export cpu_smallcore_map for modules

2022-08-19 Thread Randy Dunlap
Fix build error when CONFIG_DRM_AMDGPU=m: ERROR: modpost: "cpu_smallcore_map" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined! by exporting 'cpu_smallcore_map' just as other per_cpu symbols are exported. drivers/gpu/drm/amd/amdkfd/kfd_device.c calls cpu_smt_mask(). This is an inline function

Re: [PATCH] MAINTAINERS: Remove myself as EEH maintainer

2022-08-19 Thread Bjorn Helgaas
On Sat, Aug 06, 2022 at 06:53:01PM +1000, Russell Currey wrote: > I haven't touched EEH in a long time I don't have much knowledge of the > subsystem at this point either, so it's misleading to have me as a > maintainer. > > I remain grateful to Oliver for picking up my slack over the years. > >

[PATCH 7/7] powerpc: dts: turris1x.dts: Remove "fsl,P2020RDB-PC" compatible string

2022-08-19 Thread Pali Rohár
"fsl,P2020RDB-PC" compatible string was present in Turris 1.x DTS file just because Linux kernel required it for proper detection of P2020 processor during boot. This was quite a hack as CZ,NIC Turris 1.x is not compatible with Freescale P2020-RDB-PC board. Now when kernel has generic unified

[PATCH 1/7] powerpc/85xx: Mark mpc85xx_rdb_pic_init() as static

2022-08-19 Thread Pali Rohár
Function mpc85xx_rdb_pic_init() is not used out of the mpc85xx_rdb.c file. Signed-off-by: Pali Rohár --- arch/powerpc/platforms/85xx/mpc85xx_rdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/85xx/mpc85xx_rdb.c

[PATCH 5/7] powerpc/85xx: p2020: Define just one machine description

2022-08-19 Thread Pali Rohár
Combine machine descriptions and code of all P2020 boards into just one generic unified P2020 machine description. This allows kernel to boot on any P2020-based board with P2020 DTS file without need to patch kernel and define a new machine description in 85xx powerpc platform directory.

[PATCH 6/7] powerpc/85xx: p2020: Enable boards by new config option CONFIG_P2020

2022-08-19 Thread Pali Rohár
Generic unified P2020 machine description which supports all P2020-based boards is now in separate file p2020.c. So create a separate config option CONFIG_P2020 for it. Previously machine descriptions for P2020 boards were enabled by CONFIG_MPC85xx_DS or CONFIG_MPC85xx_RDB option. So set

[PATCH 3/7] powerpc/85xx: p2020: Move all P2020 machine descriptions to p2020.c

2022-08-19 Thread Pali Rohár
This moves machine descriptions and all related code for all P2020 boards into new p2020.c source file. This is preparation for code deduplication and providing one unified machine description for all P2020 boards. Signed-off-by: Pali Rohár --- arch/powerpc/platforms/85xx/Makefile |

[PATCH 4/7] powerpc/85xx: p2020: Unify .setup_arch and .init_IRQ callbacks

2022-08-19 Thread Pali Rohár
Make just one .setup_arch and one .init_IRQ callback implementation for all P2020 board code. This deduplicate repeated and same code. Signed-off-by: Pali Rohár --- arch/powerpc/platforms/85xx/p2020.c | 97 + 1 file changed, 30 insertions(+), 67 deletions(-) diff

[PATCH 0/7] powerpc/85xx: p2020: Create one unified machine description

2022-08-19 Thread Pali Rohár
This patch series unifies all P2020 boards and machine descriptions into one generic unified P2020 machine description. With this generic machine description, kernel can boot on any P2020-based board with correct DTS file. Tested on CZ.NIC Turris 1.1 board with has Freescale P2020 processor.

[PATCH 2/7] powerpc/85xx: Mark mpc85xx_ds_pic_init() as static

2022-08-19 Thread Pali Rohár
Function mpc85xx_ds_pic_init() is not used out of the mpc85xx_ds.c file. Signed-off-by: Pali Rohár --- arch/powerpc/platforms/85xx/mpc85xx_ds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/85xx/mpc85xx_ds.c

Re: [PATCH v6 1/2] mm: migration: fix the FOLL_GET failure on following huge page

2022-08-19 Thread Mike Kravetz
On 08/19/22 21:22, Michael Ellerman wrote: > Mike Kravetz writes: > > On 08/16/22 22:43, Andrew Morton wrote: > >> On Wed, 17 Aug 2022 03:31:37 + "Wang, Haiyue" > >> wrote: > >> > >> > > > } > >> > > > >> > > I would be better to fix this for real at those three client code >

Re: [PATCH] block: move from strlcpy with unused retval to strscpy

2022-08-19 Thread Geoff Levand
On 8/18/22 13:59, Wolfram Sang wrote: > Follow the advice of the below link and prefer 'strscpy' in this > subsystem. Conversion is 1:1 because the return value is not used. > Generated by a coccinelle script. > > Link: >

[PATCH] powerpc/fsl_booke: Make calc_cam_sz() static

2022-08-19 Thread Christophe Leroy
calc_cam_sz() is used only in fsl_book3e.c, make it static. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/mmu_decl.h | 2 -- arch/powerpc/mm/nohash/fsl_book3e.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/mm/mmu_decl.h

[PATCH] powerpc: Remove stale declarations in mmu_decl.h

2022-08-19 Thread Christophe Leroy
rtas_size and rtas_data are not used anymore since at least commit 7c8c6b9776fb ("powerpc: Merge lmb.c and make MM initialization use it.") Remove them. Since commit 4b74a35fc7e9 ("powerpc/32s: Make Hash var static") the forward declaration of struct hash_pte is unneeded. Remove it.

Re: [PATCH] powerpc/boot: Convert more files to use SPDX tags

2022-08-19 Thread Greg KH
On Fri, Aug 19, 2022 at 09:04:30PM +1000, Michael Ellerman wrote: > These files are all plain GPL 2.0, with a second sentence about being > licensed as-is. > > Similar to the rule in commit 577b61cee5b2 ("treewide: Replace GPLv2 > boilerplate/reference with SPDX - gpl-2.0_398.RULE"). > >

Re: [PATCH] selftests/powerpc: Add missing PMU selftests to .gitignores

2022-08-19 Thread Michael Ellerman
On Fri, 12 Aug 2022 17:16:32 +1000, Russell Currey wrote: > Some recently added selftests don't have their binaries in .gitignores, > so add them. > > I also alphabetically sorted sampling_tests/.gitignore while I was in > there. > > > [...] Applied to powerpc/fixes. [1/1] selftests/powerpc:

Re: [PATCH] powerpc/pci: Fix get_phb_number() locking

2022-08-19 Thread Michael Ellerman
On Mon, 15 Aug 2022 16:55:50 +1000, Michael Ellerman wrote: > The recent change to get_phb_number() causes a DEBUG_ATOMIC_SLEEP > warning on some systems: > > BUG: sleeping function called from invalid context at > kernel/locking/mutex.c:580 > in_atomic(): 1, irqs_disabled(): 0, non_block:

Re: [PATCH v6 1/2] mm: migration: fix the FOLL_GET failure on following huge page

2022-08-19 Thread Michael Ellerman
Mike Kravetz writes: > On 08/16/22 22:43, Andrew Morton wrote: >> On Wed, 17 Aug 2022 03:31:37 + "Wang, Haiyue" >> wrote: >> >> > > >} >> > > >> > > I would be better to fix this for real at those three client code sites? >> > >> > Then 5.19 will break for a while to wait

Re: [PATCH] [backport for 4.14] powerpc/ptdump: Fix display of RW pages on FSL_BOOK3E

2022-08-19 Thread Greg KH
On Tue, Aug 16, 2022 at 10:45:29AM +0200, Christophe Leroy wrote: > [ Upstream commit dd8de84b57b02ba9c1fe530a6d916c0853f136bd ] > > On FSL_BOOK3E, _PAGE_RW is defined with two bits, one for user and one > for supervisor. As soon as one of the two bits is set, the page has > to be display as RW.

[PATCH] powerpc/boot: Drop unused dummy.c

2022-08-19 Thread Michael Ellerman
The last use of dummy.c was dropped in commit 2bf118197cb4 ("[POWERPC] Create a "wrapper" script and use it in arch/powerpc/boot"). Signed-off-by: Michael Ellerman --- arch/powerpc/boot/dummy.c | 4 1 file changed, 4 deletions(-) delete mode 100644 arch/powerpc/boot/dummy.c diff --git

[PATCH] powerpc/boot: Convert more files to use SPDX tags

2022-08-19 Thread Michael Ellerman
These files are all plain GPL 2.0, with a second sentence about being licensed as-is. Similar to the rule in commit 577b61cee5b2 ("treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_398.RULE"). Signed-off-by: Michael Ellerman --- arch/powerpc/boot/44x.h | 5 +

[Bug 215381] BUG: Unable to handle kernel data access on read at 0x6600cc00000004

2022-08-19 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215381 Erhard F. (erhar...@mailbox.org) changed: What|Removed |Added Status|NEW |RESOLVED

[Bug 216190] 5.19-rc4 kernel + KASAN fails to boot at very early stage when CONFIG_SMP=y is selected (PowerMac G4 3,6)

2022-08-19 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216190 Erhard F. (erhar...@mailbox.org) changed: What|Removed |Added Status|NEW |RESOLVED

[PATCH] powerpc/85xx: DTS: Add CPLD definitions for P1021RDB Combo Board CPL Design

2022-08-19 Thread Pali Rohár
P1021RDB Combo Board CPLD Design is used on following Freescale boards: P1021RDB-PC, P1020RDB-PD, P1020MBG-PC, P1020UTM-PC and P2020RDB-PCA. Add CPLD definitions for all these boards for which already exist DTS file. CPLD has bank size 128kB, it is connected via CS3 on LBC and mapped to memory

Re: [PATCH -next] powerpc/powermac: Fix symbol not declared warnings

2022-08-19 Thread Christophe Leroy
Le 19/08/2022 à 09:43, Chen Lifu a écrit : > 1. ppc_override_l2cr and ppc_override_l2cr_value are only used in > l2cr_init() function, so move them inside the function. > 2. has_l2cache is not used outside of the file, so mark it static, and > do not initialise statics to 0. You can do

Re: [PATCH v3 18/18] powerpc/64s: Clear gprs on interrupt routine entry

2022-08-19 Thread Christophe Leroy
Le 19/08/2022 à 05:38, Rohan McLure a écrit : > Zero GPRS r0, r2-r11, r14-r31, on entry into the kernel for all > other interrupt sources to limit influence of user-space values > in potential speculation gadgets. The remaining gprs are overwritten by > entry macros to interrupt handlers,

Re: [PATCH v3 14/18] powerpc/64s: Clear/restore caller gprs in syscall interrupt/return

2022-08-19 Thread Christophe Leroy
Le 19/08/2022 à 05:38, Rohan McLure a écrit : > Clear user state in gprs (assign to zero) to reduce the influence of user > registers on speculation within kernel syscall handlers. Clears occur > at the very beginning of the sc and scv 0 interrupt handlers, with > restores occurring following

Re: [PATCH v3 11/18] powerpc: Add ZEROIZE_GPRS macros for register clears

2022-08-19 Thread Christophe Leroy
Le 19/08/2022 à 05:37, Rohan McLure a écrit : > Macros for restoring and saving registers to and from the stack exist. > Provide macros with the same interface for clearing a range of gprs by > setting each register's value in that range to zero. > > The resulting macros are called ZEROIZE_GPRS

Re: [PATCH v3 07/18] powerpc: Remove direct call to mmap2 syscall handlers

2022-08-19 Thread Christophe Leroy
Le 19/08/2022 à 05:37, Rohan McLure a écrit : > Syscall handlers should not be invoked internally by their symbol names, > as these symbols defined by the architecture-defined SYSCALL_DEFINE > macro. Move the compatibility syscall definition for mmap2 to > syscalls.c, so that all mmap

Re: [PATCH v3 05/18] powerpc: Adopt SYSCALL_DEFINE for arch-specific syscall handlers

2022-08-19 Thread Christophe Leroy
Le 19/08/2022 à 05:37, Rohan McLure a écrit : > Arch-specific implementations of syscall handlers are currently used > over generic implementations for the following reasons: > > 1. Semantics unique to powerpc > 2. Compatibility syscalls require 'argument padding' to comply with > 64-bit

Re: [PATCH v3 16/18] powerpc/32: Clarify interrupt restores with REST_GPR macro in entry_32.S

2022-08-19 Thread Christophe Leroy
Le 19/08/2022 à 05:38, Rohan McLure a écrit : > Restoring the register state of the interrupted thread involves issuing > a large number of predictable loads to the kernel stack frame. Issue the > REST_GPR{,S} macros to clearly signal when this is happening, and bunch > together restores at the

Re: [PATCH v2 11/14] powerpc/64s: Clear/restore caller gprs in syscall interrupt/return

2022-08-19 Thread Christophe Leroy
Le 15/08/2022 à 01:59, Rohan McLure a écrit : "Nullify" means "invalidate", which is not what this does or is for :-( >>> >>> Would "Zeroise" be more appropriate ? >> >> That is probably a good compromise, yes. It obviously is a verb, its >> meaning is clear and unamiguous, and there is