RE: [RFC PATCH 0/4] Remove some e500/MPC85xx evaluation platforms

2023-04-14 Thread Leo Li
> -Original Message- > From: Michael Ellerman > Sent: Thursday, April 13, 2023 9:14 PM > To: Leo Li ; Paul Gortmaker > > Cc: Scott Wood ; Paul Mackerras ; > Claudiu Manoil ; linuxppc-dev@lists.ozlabs.org; > Pali Rohár > Subject: Re: [RFC PATCH 0/4] Remove some e500/MPC85xx evaluation

Re: [PATCH v3 5/6] PCI/AER: Forward RCH downstream port-detected errors to the CXL.mem dev handler

2023-04-14 Thread Bjorn Helgaas
On Thu, Apr 13, 2023 at 01:40:52PM +0200, Robert Richter wrote: > On 12.04.23 17:02:33, Bjorn Helgaas wrote: > > On Tue, Apr 11, 2023 at 01:03:01PM -0500, Terry Bowman wrote: > > > From: Robert Richter > ... > Let's assume just a simple CXL RCH topology: > > PCI hierarchy: > >

[PATCH 6/7] mm/gup: remove vmas parameter from pin_user_pages()

2023-04-14 Thread Lorenzo Stoakes
After the introduction of FOLL_SAME_FILE we no longer require vmas for any invocation of pin_user_pages(), so eliminate this parameter from the function and all callers. This clears the way to removing the vmas parameter from GUP altogether. Signed-off-by: Lorenzo Stoakes ---

[powerpc:next-test] BUILD SUCCESS e2fc3a5d89adb5ca4a719942122475bd121c9143

2023-04-14 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next-test branch HEAD: e2fc3a5d89adb5ca4a719942122475bd121c9143 powerpc/configs: Make pseries_defconfig an alias for ppc64le_guest elapsed time: 724m configs tested: 49 configs skipped: 3 The following configs

Re: [PATCH v3 6/6] PCI/AER: Unmask RCEC internal errors to enable RCH downstream port error handling

2023-04-14 Thread Bjorn Helgaas
On Thu, Apr 13, 2023 at 03:38:07PM +0200, Robert Richter wrote: > On 12.04.23 16:29:01, Bjorn Helgaas wrote: > > On Tue, Apr 11, 2023 at 01:03:02PM -0500, Terry Bowman wrote: > > > From: Robert Richter > > > > > > RCEC AER corrected and uncorrectable internal errors (CIE/UIE) are > > > disabled

Re: [PATCH v3 6/6] PCI/AER: Unmask RCEC internal errors to enable RCH downstream port error handling

2023-04-14 Thread Robert Richter
On 13.04.23 15:52:36, Ira Weiny wrote: > Jonathan Cameron wrote: > > On Wed, 12 Apr 2023 16:29:01 -0500 > > Bjorn Helgaas wrote: > > > > > On Tue, Apr 11, 2023 at 01:03:02PM -0500, Terry Bowman wrote: > > > > From: Robert Richter > > > > > > > > +static int __cxl_unmask_internal_errors(struct

Re: [PATCH 1/2] pseries/smp: export the smt level in the SYS FS.

2023-04-14 Thread Michael Ellerman
Laurent Dufour writes: > On 13/04/2023 15:37:59, Michael Ellerman wrote: >> Laurent Dufour writes: >>> There is no SMT level recorded in the kernel neither in user space. >>> Indeed there is no real constraint about that and mixed SMT levels are >>> allowed and system is working fine this way.

[PATCH 06/32] powerpc/configs/64s: Add secure boot options to defconfig

2023-04-14 Thread Michael Ellerman
Add the numerous options required to get secure boot enabled. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/ppc64_defconfig | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/configs/ppc64_defconfig

[PATCH 11/32] powerpc/configs/64s: Enable NO_HZ_FULL

2023-04-14 Thread Michael Ellerman
At least Fedora & SUSE enable it. VIRT_CPU_ACCOUNTING_GEN is selected so no longer needs to be in the defconfig. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/ppc64_defconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/powerpc/configs/ppc64_defconfig

[PATCH 10/32] powerpc/configs/64s: Enable common accounting options

2023-04-14 Thread Michael Ellerman
These options are enabled by most distros. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/ppc64_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/powerpc/configs/ppc64_defconfig b/arch/powerpc/configs/ppc64_defconfig index 0e3b420aaa6e..ecad254eee6c 100644 ---

[PATCH 17/32] powerpc/configs/64s: Enable SELINUX

2023-04-14 Thread Michael Ellerman
Fedora, CentOS, RHEL & SUSE all enable it. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/ppc64_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/configs/ppc64_defconfig b/arch/powerpc/configs/ppc64_defconfig index 8673277f9b20..946307c54afa 100644 ---

[PATCH 14/32] powerpc/configs/64s: Enable ZSWAP & ZRAM

2023-04-14 Thread Michael Ellerman
Most distros enable these. In particular Fedore uses zram in the default install. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/ppc64_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/arch/powerpc/configs/ppc64_defconfig b/arch/powerpc/configs/ppc64_defconfig index

[PATCH 24/32] powerpc/configs/64s: Drop REISERFS

2023-04-14 Thread Michael Ellerman
No reason to use this anymore. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/ppc64_defconfig | 4 1 file changed, 4 deletions(-) diff --git a/arch/powerpc/configs/ppc64_defconfig b/arch/powerpc/configs/ppc64_defconfig index b7c6cd72a0ce..12d49f3e56b7 100644 ---

[PATCH 25/32] powerpc/configs/64s: Enable BLK_DEV_NVME

2023-04-14 Thread Michael Ellerman
Copy powernv_defconfig and enable BLK_DEV_NVME. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/ppc64_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/configs/ppc64_defconfig b/arch/powerpc/configs/ppc64_defconfig index 12d49f3e56b7..b88155ddab65 100644 ---

[PATCH 22/32] powerpc/configs/64s: Enable IO_STRICT_DEVMEM

2023-04-14 Thread Michael Ellerman
Distros enable it. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/ppc64_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/configs/ppc64_defconfig b/arch/powerpc/configs/ppc64_defconfig index 2cee399d3abc..4c347f6be401 100644 ---

[PATCH 31/32] powerpc/configs: Make pseries_le an alias for ppc64le_guest

2023-04-14 Thread Michael Ellerman
Rather than trying to keep multiple configs up to date, make pseries_le_defconfig an alias for ppc64le_guest_defconfig. ppc64le_guest_defconfig should work in all cases that pseries_le_defconfig currently does, but if not we can update it. Move pseries_le_defconfig down in the Makefile, so it

[PATCH 32/32] powerpc/configs: Make pseries_defconfig an alias for ppc64le_guest

2023-04-14 Thread Michael Ellerman
Rather than trying to keep multiple configs up to date, make pseries_defconfig an alias for ppc64le_guest_defconfig. NOTE, pseries_defconfig was a big endian config, but this commit switches it to little endian. Almost all distros are ppc64le these days, so little endian is much more likely to

Re: [PATCH v3 5/6] PCI/AER: Forward RCH downstream port-detected errors to the CXL.mem dev handler

2023-04-14 Thread Jonathan Cameron
On Tue, 11 Apr 2023 13:03:01 -0500 Terry Bowman wrote: > From: Robert Richter > > In Restricted CXL Device (RCD) mode a CXL device is exposed as an > RCiEP, but CXL downstream and upstream ports are not enumerated and > not visible in the PCIe hierarchy. Protocol and link errors are sent > to

[PATCH 07/32] powerpc/configs/64s: Select ARCH_WANT_DEFAULT_BPF_JIT

2023-04-14 Thread Michael Ellerman
Tell the generic BPF code that the JIT should be enabled by default, rather than the interpreter. Most distros use CONFIG_BPF_JIT_ALWAYS_ON=y anyway, so this just updates upstream to more closely match that. Signed-off-by: Michael Ellerman --- arch/powerpc/Kconfig | 1 + 1 file changed, 1

[PATCH 15/32] powerpc/configs/64s: Enable SLAB hardening options

2023-04-14 Thread Michael Ellerman
Fedora & CentOS enable these. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/ppc64_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/arch/powerpc/configs/ppc64_defconfig b/arch/powerpc/configs/ppc64_defconfig index 59b9d8eb1c7b..0aafe64cd1d7 100644 ---

[PATCH 13/32] powerpc/configs/64s: Enable CHECKPOINT_RESTORE

2023-04-14 Thread Michael Ellerman
Most distros enable this. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/ppc64_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/configs/ppc64_defconfig b/arch/powerpc/configs/ppc64_defconfig index e853905c4e7e..07a92f02e1f8 100644 ---

[PATCH 16/32] powerpc/configs/64s: Enable YAMA, LANDLOCK & BPF LSMs

2023-04-14 Thread Michael Ellerman
Multiple distros enable these. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/ppc64_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/configs/ppc64_defconfig b/arch/powerpc/configs/ppc64_defconfig index 0aafe64cd1d7..8673277f9b20 100644 ---

[PATCH 23/32] powerpc/configs/64s: Use SHA512 for module signatures

2023-04-14 Thread Michael Ellerman
Modern distros use SHA512 for module signing. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/ppc64_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/configs/ppc64_defconfig b/arch/powerpc/configs/ppc64_defconfig index 4c347f6be401..b7c6cd72a0ce 100644 ---

[PATCH 28/32] powerpc/configs/64s: Enable Device Mapper options

2023-04-14 Thread Michael Ellerman
Add device mapper options for test coverage and in case folks are booting systems that require them. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/ppc64_defconfig | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git

Re: [PATCH v2 1/2] Remove POWER10_CPU dependency.

2023-04-14 Thread Danny Tsen
Thanks Michael. -Danny On 4/14/23 8:08 AM, Michael Ellerman wrote: Danny Tsen writes: Remove Power10 dependency in Kconfig and detect Power10 feature at runtime. ... using the existing call to module_cpu_feature_match() :) Signed-off-by: Danny Tsen --- arch/powerpc/crypto/Kconfig | 2

Re: [PATCH v3 6/6] PCI/AER: Unmask RCEC internal errors to enable RCH downstream port error handling

2023-04-14 Thread Jonathan Cameron
On Fri, 14 Apr 2023 13:21:37 +0200 Robert Richter wrote: > On 13.04.23 15:52:36, Ira Weiny wrote: > > Jonathan Cameron wrote: > > > On Wed, 12 Apr 2023 16:29:01 -0500 > > > Bjorn Helgaas wrote: > > > > > > > On Tue, Apr 11, 2023 at 01:03:02PM -0500, Terry Bowman wrote: > > > > > From:

Re: [PATCH v3 6/6] PCI/AER: Unmask RCEC internal errors to enable RCH downstream port error handling

2023-04-14 Thread Robert Richter
On 13.04.23 18:05:08, Jonathan Cameron wrote: > On Thu, 13 Apr 2023 15:38:07 +0200 > Robert Richter wrote: > > > On 12.04.23 16:29:01, Bjorn Helgaas wrote: > > > On Tue, Apr 11, 2023 at 01:03:02PM -0500, Terry Bowman wrote: > > > With the exception of this function, this patch looks like all

Re: [PATCH v2 1/2] Remove POWER10_CPU dependency.

2023-04-14 Thread Michael Ellerman
Danny Tsen writes: > Remove Power10 dependency in Kconfig and detect Power10 feature at runtime. ... using the existing call to module_cpu_feature_match() :) > Signed-off-by: Danny Tsen > --- > arch/powerpc/crypto/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by:

Re: [PATCH v2 2/2] Move Power10 feature, PPC_MODULE_FEATURE_P10.

2023-04-14 Thread Michael Ellerman
Danny Tsen writes: > Move Power10 feature, PPC_MODULE_FEATURE_P10, definition to be in > arch/powerpc/include/asm/cpufeature.h. > > Signed-off-by: Danny Tsen > --- > arch/powerpc/crypto/aes-gcm-p10-glue.c | 1 - > arch/powerpc/include/asm/cpufeature.h | 1 + > 2 files changed, 1 insertion(+),

[PATCH 04/32] powerpc/configs/6s: Drop obsolete crypto ALGs

2023-04-14 Thread Michael Ellerman
These algorithms were marked obsolete in commit 1674aea5f080 ("crypto: Kconfig - mark unused ciphers as obsolete"). Signed-off-by: Michael Ellerman --- arch/powerpc/configs/ppc64_defconfig | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/powerpc/configs/ppc64_defconfig

[PATCH 05/32] powerpc/configs/64s: Enable PAPR_SCM

2023-04-14 Thread Michael Ellerman
This is a powerpc specific driver so add the symbols required to enable it so it gets some build/boot test coverage. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/ppc64_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/configs/ppc64_defconfig

[PATCH 03/32] powerpc/configs/64s: Drop IPV6 which is default y

2023-04-14 Thread Michael Ellerman
Since commit de551f2eb22a ("net: Build IPv6 into kernel by default"), IPV6 is default y. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/ppc64_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/configs/ppc64_defconfig b/arch/powerpc/configs/ppc64_defconfig index

[PATCH 01/32] powerpc/configs/64s: Update defconfig for symbol movement

2023-04-14 Thread Michael Ellerman
Update ppc64_defconfig to account for symbols moving around, no actual changes. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/ppc64_defconfig | 42 ++-- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/arch/powerpc/configs/ppc64_defconfig

[PATCH 02/32] powerpc/configs/64s: Drop SPLPAR which is default y

2023-04-14 Thread Michael Ellerman
SPLPAR is default y since commit 20c0e8269e9d ("powerpc/pseries: Implement paravirt qspinlocks for SPLPAR"), so doesn't need to be in the defconfig. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/ppc64_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH 08/32] powerpc/configs/64s: Enable PREEMPT_VOLUNTARY

2023-04-14 Thread Michael Ellerman
Traditionally on powerpc servers PREEMPT_NONE was used, but these days multiple distros are building with PREEMPT_VOLUNTARY - Ubuntu, Fedora & CentOS all enable it. So update the upstream config to reflect that, and get test coverage before code hits the distros. Signed-off-by: Michael Ellerman

[PATCH 09/32] powerpc/configs/64s: Enable AUDIT

2023-04-14 Thread Michael Ellerman
Essentially all distros enable it. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/ppc64_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/configs/ppc64_defconfig b/arch/powerpc/configs/ppc64_defconfig index b332b05a668f..0e3b420aaa6e 100644 ---

[PATCH 12/32] powerpc/configs/64s: Enable common CGROUP & related options

2023-04-14 Thread Michael Ellerman
Distros enable these options. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/ppc64_defconfig | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/configs/ppc64_defconfig b/arch/powerpc/configs/ppc64_defconfig index 7e265cbbeaef..e853905c4e7e

[PATCH 18/32] powerpc/configs/64s: Enable KUNIT and most tests

2023-04-14 Thread Michael Ellerman
All built as modules, so the tests only happen when the modules are loaded, not affecting normal boot time. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/ppc64_defconfig | 43 1 file changed, 43 insertions(+) diff --git

[PATCH 19/32] powerpc/configs/64s: Enable EMULATED_STATS

2023-04-14 Thread Michael Ellerman
This is enabled in some of the other powerpc configs, and can be useful for debugging, so enable it in ppc64[le]_defconfig. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/ppc64_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/configs/ppc64_defconfig

[PATCH 21/32] powerpc/configs/64s: Enable SCHEDSTATS

2023-04-14 Thread Michael Ellerman
Distros enable it. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/ppc64_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/configs/ppc64_defconfig b/arch/powerpc/configs/ppc64_defconfig index 3154f307bba6..2cee399d3abc 100644 ---

[PATCH 20/32] powerpc/configs/64s: Enable DEBUG_VM & other options

2023-04-14 Thread Michael Ellerman
Fedora enables DEBUG_VM, which has led to occasions where a VM_BUG_ON() is not caught by upstream testing, but rather is first found in Fedora, which is not how it's meant to be. PAGE_OWNER & PAGE_POISONING both need to be enabled on the kernel command line, so should not add much overhead in

[PATCH 26/32] powerpc/configs/64s: Enable VLAN support

2023-04-14 Thread Michael Ellerman
Most other configs, and distros enable it. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/ppc64_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/configs/ppc64_defconfig b/arch/powerpc/configs/ppc64_defconfig index b88155ddab65..833847b775ec 100644 ---

[PATCH 27/32] powerpc/configs/64s: Enable PSTORE

2023-04-14 Thread Michael Ellerman
Like pseries & powernv_defconfig, enable PSTORE. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/ppc64_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/configs/ppc64_defconfig b/arch/powerpc/configs/ppc64_defconfig index 833847b775ec..037219dda19f 100644 ---

[PATCH 29/32] powerpc/configs: Add IBMVETH=y and IBMVNIC=y to guest configs

2023-04-14 Thread Michael Ellerman
These drivers are sometimes required to have functional networking in a guest, so build them in when building ppc64[le]_guest_defconfig. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/guest.config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/configs/guest.config

[PATCH 30/32] powerpc/configs: Incorporate generic kvm_guest.config into guest configs

2023-04-14 Thread Michael Ellerman
Incorporate the generic kvm_guest.config into the powerpc guest configs, ppc64[le]_guest_defconfig. This brings in some useful options, in particular 9P support, and also means future additions to the generic file will be automatically picked up by the powerpc configs. Signed-off-by: Michael

Re: [PATCH] Revert "powerpc/rtas: Implement reentrant rtas call"

2023-04-14 Thread Michal Suchánek
Hello, On Fri, Sep 16, 2022 at 04:56:18PM -0500, Nathan Lynch wrote: > "Nicholas Piggin" writes: > > On Wed Sep 14, 2022 at 3:39 AM AEST, Leonardo Brás wrote: > >> On Mon, 2022-09-12 at 14:58 -0500, Nathan Lynch wrote: > >> > Leonardo Brás writes: > >> > > On Fri, 2022-09-09 at 09:04 -0500,

Re: [PATCH v3 5/6] PCI/AER: Forward RCH downstream port-detected errors to the CXL.mem dev handler

2023-04-14 Thread Robert Richter
On 14.04.23 13:19:50, Jonathan Cameron wrote: > On Tue, 11 Apr 2023 13:03:01 -0500 > Terry Bowman wrote: > > > From: Robert Richter > > > > In Restricted CXL Device (RCD) mode a CXL device is exposed as an > > RCiEP, but CXL downstream and upstream ports are not enumerated and > > not visible

Re: [PATCH v3 6/6] PCI/AER: Unmask RCEC internal errors to enable RCH downstream port error handling

2023-04-14 Thread Robert Richter
On 14.04.23 12:55:43, Jonathan Cameron wrote: > On Fri, 14 Apr 2023 13:21:37 +0200 > Robert Richter wrote: > > The version I have ready after addressing Bjorn's comments is pretty > > much the same, apart from error checking of the read/writes. > > > > From your patch proposed you will need it

Re: [PATCH 1/2] pseries/smp: export the smt level in the SYS FS.

2023-04-14 Thread Michal Suchánek
Hello, On Fri, Apr 14, 2023 at 10:11:24PM +1000, Michael Ellerman wrote: > Laurent Dufour writes: > > On 13/04/2023 15:37:59, Michael Ellerman wrote: > >> Laurent Dufour writes: > >>> There is no SMT level recorded in the kernel neither in user space. > >>> Indeed there is no real constraint

Re: linux-next: manual merge of the drm tree with the powerpc tree

2023-04-14 Thread Mark Brown
On Thu, Apr 13, 2023 at 11:47:25AM -0700, Nathan Chancellor wrote: > On Wed, Apr 12, 2023 at 11:22:13AM +1000, Stephen Rothwell wrote: > select SND_HDA_COMPONENT if SND_HDA_CORE > # !CC_IS_CLANG: https://github.com/ClangBuiltLinux/linux/issues/1752 > - select DRM_AMD_DC_DCN if