[PATCH] powerpc: Update ISA versions to mention e5500/e6500

2022-08-02 Thread Michael Ellerman
Add the NXP (nee Freescale) e5500 and e6500 to the ISA versions documentation. Signed-off-by: Michael Ellerman --- Documentation/powerpc/isa-versions.rst | 8 1 file changed, 8 insertions(+) diff --git a/Documentation/powerpc/isa-versions.rst b/Documentation/powerpc/isa-versions.rst i

[PATCH] powerpc/64e: Fix kexec build error

2022-08-02 Thread Michael Ellerman
When building ppc64_book3e_allmodconfig the build fails with: arch/powerpc/kexec/file_load_64.c:1063:14: error: implicit declaration of function ‘firmware_has_feature’ 1063 | if (!firmware_has_feature(FW_FEATURE_LPAR)) | ^~~~ Add a direct include

Re: [PATCH] kvm:remove the unexpected word "that" in comments

2022-08-02 Thread Michael Ellerman
Christophe Leroy writes: > Le 16/07/2022 à 18:50, shaom Deng a écrit : >> [Vous ne recevez pas souvent de courriers de dengshao...@cdjrlc.com. >> Découvrez pourquoi ceci est important à >> https://aka.ms/LearnAboutSenderIdentification ] >> >> delete the repeated word "that" in comments >> >> S

[powerpc:next-test] BUILD SUCCESS fb5699779213dd944845b8a19e6b8a8c20d899c8

2022-08-02 Thread kernel test robot
successfully. More configs may be tested in the coming days. gcc tested configs: um x86_64_defconfig um i386_defconfig arc randconfig-r043-20220802 x86_64 defconfig x86_64 randconfig

[powerpc:next] BUILD SUCCESS ca829e05d3d4f728810cc5e4b468d9ebc7745eb3

2022-08-02 Thread kernel test robot
i386 randconfig-a004-20220801 i386 randconfig-a006-20220801 hexagon randconfig-r045-20220801 hexagon randconfig-r045-20220802 s390 randconfig-r044-20220802 hexagon randconfig-r041-20220802 riscv

[powerpc:merge] BUILD SUCCESS e538227647dc2a96ae640e25043e04cf5f735189

2022-08-02 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git merge branch HEAD: e538227647dc2a96ae640e25043e04cf5f735189 Automatic merge of 'master' into merge (2022-08-01 11:37) elapsed time: 716m configs tested: 61 configs skipped: 2 The following configs have been built s

Re: [PATCH v3 1/2] lib: generic accessor functions for arch keystore

2022-08-02 Thread Greg Joyce
Michael and Michal, On Tue, 2022-08-02 at 12:59 +1000, Michael Ellerman wrote: > I don't think "arch" is the right level of abstraction here. > > There isn't a standard way to get these variables across a given > arch, > they're not defined in the architecture specification etc. > > As demonst

Re: [PATCH v3] PCI/ERR: Use pcie_aer_is_native() to judge whether OS owns AER

2022-08-02 Thread Sathyanarayanan Kuppuswamy
On 7/27/22 2:37 AM, Zhuo Chen wrote: >> > Do you mean changing "if ((host->native_aer || pcie_ports_native) && aer)"  > into "if (pcie_aer_is_native(dev) && aer)" ? > I thought changing into "if (pcie_aer_is_native(dev))" before. > > One another doubt. Not every pci device support aer. When dev

Re: [PATCH v1 1/3] powerpc: Fix eh field when calling lwarx on PPC32

2022-08-02 Thread Pali Rohár
On Tuesday 02 August 2022 11:02:36 Christophe Leroy wrote: > Commit 9401f4e46cf6 ("powerpc: Use lwarx/ldarx directly instead of > PPC_LWARX/LDARX macros") properly handled the eh field of lwarx > in asm/bitops.h but failed to clear it for PPC32 in > asm/simple_spinlock.h > > So, do as in arch_atom

Re: [PATCH v1 1/3] powerpc: Fix eh field when calling lwarx on PPC32

2022-08-02 Thread Segher Boessenkool
Hi! On Tue, Aug 02, 2022 at 11:02:36AM +0200, Christophe Leroy wrote: > Commit 9401f4e46cf6 ("powerpc: Use lwarx/ldarx directly instead of > PPC_LWARX/LDARX macros") properly handled the eh field of lwarx > in asm/bitops.h but failed to clear it for PPC32 in > asm/simple_spinlock.h > > So, do as

Re: [PATCH v8 00/31] Rust support

2022-08-02 Thread Miguel Ojeda
On Tue, Aug 2, 2022 at 5:09 PM Miguel Ojeda wrote: > > Yeah, patch 17, exactly (patch 11 is the `alloc` import). I have asked > Konstantin privately about them. The patches are showing up now in lore -- not sure if it was just a delay (which would be consistent with the lack of bounce) or somebod

Re: [PATCH v8 00/31] Rust support

2022-08-02 Thread Miguel Ojeda
On Tue, Aug 2, 2022 at 4:01 PM Matthew Wilcox wrote: > > No objections to any of this. I love the idea of being able to write > filesystems in Rust. I just think it would go more smoothly if > linux-fsdevel were involved more closely so people at least have the > option of being able to follow d

Re: [PATCH v8 00/31] Rust support

2022-08-02 Thread Miguel Ojeda
On Tue, Aug 2, 2022 at 3:48 PM Christoph Hellwig wrote: > > handwaiving and pointing to git trees is not how Linux development > works. Please make sure all the patches go to the relevant lists > and maintainers first, and actually do have ACKs. Which hand-waving? In fact, we were requested to d

Re: [PATCH] kvm:remove the unexpected word "that" in comments

2022-08-02 Thread Christophe Leroy
Le 16/07/2022 à 18:50, shaom Deng a écrit : > [Vous ne recevez pas souvent de courriers de dengshao...@cdjrlc.com. > Découvrez pourquoi ceci est important à > https://aka.ms/LearnAboutSenderIdentification ] > > delete the repeated word "that" in comments > > Signed-off-by: shaom Deng > --- >

Re: [PATCH v8 00/31] Rust support

2022-08-02 Thread Matthew Wilcox
On Tue, Aug 02, 2022 at 03:45:50PM +0200, Miguel Ojeda wrote: > Hi Willy, > > On Tue, Aug 2, 2022 at 2:26 PM Matthew Wilcox wrote: > > > > None of this (afaict) has been discussed on linux-fsdevel. And I may > > have missed somethiing, but I don't see the fs module in this series > > of patches.

Re: [PATCH v8 00/31] Rust support

2022-08-02 Thread Christoph Hellwig
Miguel, handwaiving and pointing to git trees is not how Linux development works. Please make sure all the patches go to the relevant lists and maintainers first, and actually do have ACKs.

Re: [PATCH v8 00/31] Rust support

2022-08-02 Thread Miguel Ojeda
Hi Willy, On Tue, Aug 2, 2022 at 2:26 PM Matthew Wilcox wrote: > > None of this (afaict) has been discussed on linux-fsdevel. And I may > have missed somethiing, but I don't see the fs module in this series > of patches. Could linux-fsdevel be cc'd on the development of Rust > support for files

Re: [PATCH v8 00/31] Rust support

2022-08-02 Thread Matthew Wilcox
On Tue, Aug 02, 2022 at 03:49:47AM +0200, Miguel Ojeda wrote: > Some of the improvements to the abstractions and example drivers are: > > - Filesystem support (`fs` module), including: > > + `INode` type (which wraps `struct inode`). > + `DEntry` type (which wraps `struct dentry`).

Re: [PATCH] powerpc/pci: Fix PHB numbering when using opal-phbid

2022-08-02 Thread Pali Rohár
On Tuesday 02 August 2022 20:57:23 Michael Ellerman wrote: > The recent change to the PHB numbering logic has a logic error in the > handling of "ibm,opal-phbid". > > When an "ibm,opal-phbid" property is present, &prop is written to and > ret is set to zero. > > The following call to of_alias_get

Re: [PATCH] EDAC/ppc_4xx: Include required of_irq header directly

2022-08-02 Thread Michael Ellerman
Christophe Leroy writes: > Commit 4d5c5bad5193 ("powerpc: Remove asm/prom.h from asm/mpc52xx.h > and asm/pci.h") that cleans up powerpc's asm/prom.h leads to build > errors in ppc4xx_edac.c due to missing header. Include required > header directly to avoid the build failure. > > Reported-by: kerne

Re: [PATCH] selftests/powerpc: Avoid GCC 12 uninitialised variable warning

2022-08-02 Thread Michael Ellerman
On Mon, 1 Aug 2022 21:37:46 +1000, Michael Ellerman wrote: > GCC 12 thinks that `actual` might be used uninitialised. It's not, the > use is guarded by `bad_mmcr2` which is only set to true at the same > point where `actual` is initialised. > > cycles_with_mmcr2_test.c: In function ‘cycles_with_

Re: [PATCH] powerpc/xive: Fix refcount leak in xive_get_max_prio

2022-08-02 Thread Michael Ellerman
On Sun, 5 Jun 2022 09:32:23 +0400, Miaoqian Lin wrote: > of_find_node_by_path() returns a node pointer with > refcount incremented, we should use of_node_put() on it when done. > Add missing of_node_put() to avoid refcount leak. > > Applied to powerpc/next. [1/1] powerpc/xive: Fix refcount leak

Re: [PATCH linux-next v2] powerpc: init jump label early in ppc 64

2022-08-02 Thread Michael Ellerman
On Tue, 26 Jul 2022 09:57:47 +0800, zhouzho...@gmail.com wrote: > From: Zhouyi Zhou > > In ppc 64, invoke jump_label_init in setup_feature_keys is too late > because static key will be used in subroutine of parse_early_param > which is again subroutine of early_init_devtree. > > So we invoke jum

Re: [PATCH] powerpc/spufs: Fix refcount leak in spufs_init_isolated_loader

2022-08-02 Thread Michael Ellerman
On Fri, 3 Jun 2022 16:15:42 +0400, Miaoqian Lin wrote: > of_find_node_by_path() returns remote device nodepointer with > refcount incremented, we should use of_node_put() on it when done. > Add missing of_node_put() to avoid refcount leak. > > Applied to powerpc/next. [1/1] powerpc/spufs: Fix r

Re: [PATCH] powerpc/cell/axon_msi: Fix refcount leak in setup_msi_msg_address

2022-08-02 Thread Michael Ellerman
On Sun, 5 Jun 2022 10:51:29 +0400, Miaoqian Lin wrote: > of_get_next_parent() returns a node pointer with refcount incremented, > we should use of_node_put() on it when not need anymore. > Add missing of_node_put() in the error path to avoid refcount leak. > > Applied to powerpc/next. [1/1] pow

Re: [PATCH] powerpc/perf: Include caps feature for power10 DD1 version

2022-08-02 Thread Michael Ellerman
On Thu, 28 Jul 2022 22:07:46 +0530, Athira Rajeev wrote: > commit 6320e693d98c ("powerpc/perf: Add support for caps > under sysfs in powerpc") added support for caps under sysfs > in powerpc. This added caps directory to: > /sys/bus/event_source/devices/cpu/ for power8, power9, power10 > and generi

Re: [PATCH 0/2] KVM: PPC: Book3s HV: Cleanup unused function and declarations

2022-08-02 Thread Michael Ellerman
On Mon, 11 Jul 2022 19:36:15 -0300, Murilo Opsfelder Araujo wrote: > Minor cleanup to remove unused function and declarations. > > Murilo Opsfelder Araujo (2): > KVM: PPC: Book3S HV: Remove kvmhv_p9_[set,restore]_lpcr declarations > KVM: PPC: Book3s HV: Remove unused function kvmppc_bad_interr

Re: [PATCH 1/2] powerpc/kvm: Move pmu code in kvm folder to separate file for power9 and later platforms

2022-08-02 Thread Michael Ellerman
On Mon, 11 Jul 2022 09:19:26 +0530, Kajol Jain wrote: > File book3s_hv_p9_entry.c in powerpc/kvm folder consists of functions > like freeze_pmu, switch_pmu_to_guest and switch_pmu_to_host which are > specific to Performance Monitoring Unit(PMU) for power9 and later > platforms. > > For better main

[PATCH] powerpc/pci: Fix PHB numbering when using opal-phbid

2022-08-02 Thread Michael Ellerman
The recent change to the PHB numbering logic has a logic error in the handling of "ibm,opal-phbid". When an "ibm,opal-phbid" property is present, &prop is written to and ret is set to zero. The following call to of_alias_get_id() is skipped because ret == 0. But then the if (ret >= 0) is true, a

Fwd: [PATCH v12 33/69] powerpc: remove mmap linked list walks

2022-08-02 Thread Christophe Leroy
Message transféré Sujet : [PATCH v12 33/69] powerpc: remove mmap linked list walks Date : Wed, 20 Jul 2022 02:17:54 + De : Liam Howlett Pour : maple-t...@lists.infradead.org , linux...@kvack.org , linux-ker...@vger.kernel.org , Andrew Morton , Hugh Dickins Copie à : Yu

Re: [PATCH v12 33/69] powerpc: remove mmap linked list walks

2022-08-02 Thread Christophe Leroy
Le 20/07/2022 à 04:17, Liam Howlett a écrit : > From: "Matthew Wilcox (Oracle)" > > Use the VMA iterator instead. Can you please copy powerpc maintainers/reviewers when sending such a patch ? Thanks Christophe > > Link: > https://lkml.kernel.org/r/20220504011345.662299-18-liam.howl...@ora

Fwd: [linux-next:master 2767/10347] powerpc-linux-ld: warning: orphan section `.init.plt' from `drivers/hid/hid-uclogic-rdesc.o' being placed in section `.init.plt'

2022-08-02 Thread Christophe Leroy
Message transféré Sujet : [linux-next:master 2767/10347] powerpc-linux-ld: warning: orphan section `.init.plt' from `drivers/hid/hid-uclogic-rdesc.o' being placed in section `.init.plt' Date : Thu, 14 Jul 2022 03:41:45 +0800 De : kernel test robot Pour : José Expósito Copie

[PATCH] EDAC/ppc_4xx: Include required of_irq header directly

2022-08-02 Thread Christophe Leroy
Commit 4d5c5bad5193 ("powerpc: Remove asm/prom.h from asm/mpc52xx.h and asm/pci.h") that cleans up powerpc's asm/prom.h leads to build errors in ppc4xx_edac.c due to missing header. Include required header directly to avoid the build failure. Reported-by: kernel test robot Fixes: 4d5c5bad5193 ("p

[PATCH v1 1/3] powerpc: Fix eh field when calling lwarx on PPC32

2022-08-02 Thread Christophe Leroy
Commit 9401f4e46cf6 ("powerpc: Use lwarx/ldarx directly instead of PPC_LWARX/LDARX macros") properly handled the eh field of lwarx in asm/bitops.h but failed to clear it for PPC32 in asm/simple_spinlock.h So, do as in arch_atomic_try_cmpxchg_lock(), set it to 1 if PPC64 but set it to 0 if PPC32. F

[PATCH v1 2/3] powerpc: Don't hide eh field of lwarx behind a macro

2022-08-02 Thread Christophe Leroy
The eh field must remain 0 for PPC32 and is only used by PPC64. Don't hide that behind a macro, just leave the responsibility to the user. At the time being, the only users of PPC_RAW_L{WDQ}ARX are setting the eh field to 0, so the special handling of __PPC_EH is useless. Just take the value give

[PATCH v1 3/3] powerpc: Make eh value more explicit when using lwarx

2022-08-02 Thread Christophe Leroy
Just like first patch of this series, define a local 'eh' in order to make the code clearer. And IS_ENABLED() returns either 1 or 0 so no need to do IS_ENABLED(CONFIG_PPC64) ? 1 : 0. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/atomic.h | 3 ++- 1 file changed, 2 insertions(+),

Re: Regression: Linux v5.15+ does not boot on Freescale P2020

2022-08-02 Thread Arnd Bergmann
On Tue, Aug 2, 2022 at 8:47 AM Christophe Leroy wrote: > Le 26/07/2022 à 15:44, Segher Boessenkool a écrit : > > Whoops :-) We need fixes for processor implementation bugs all the > > time of course, but this is a massive *design* bug. I'm surprised this > > CPU still works as well as it does! >