Re: [PATCH] locking: remove spin_lock_flags() etc

2021-10-22 Thread Waiman Long
On 10/22/21 7:59 AM, Arnd Bergmann wrote: From: Arnd Bergmann parisc, ia64 and powerpc32 are the only remaining architectures that provide custom arch_{spin,read,write}_lock_flags() functions, which are meant to re-enable interrupts while waiting for a spinlock. However, none of these can actu

Re: [PATCH] powerpc: Enhance pmem DMA bypass handling

2021-10-22 Thread Brian King
On 10/22/21 7:24 AM, Alexey Kardashevskiy wrote: > > > On 22/10/2021 04:44, Brian King wrote: >> If ibm,pmemory is installed in the system, it can appear anywhere >> in the address space. This patch enhances how we handle DMA for devices when >> ibm,pmemory is present. In the case where we have e

Re: [PATCH] soc: fsl: guts: Fix a resource leak in the error handling path of 'fsl_guts_probe()'

2021-10-22 Thread Tyrel Datwyler
On 10/21/21 5:26 PM, Li Yang wrote: > On Wed, Aug 18, 2021 at 4:23 PM Christophe JAILLET > wrote: >> >> If an error occurs after 'of_find_node_by_path()', the reference taken for >> 'root' will never be released and some memory will leak. > > Thanks for finding this. This truly is a problem. >

Re: Fwd: Fwd: X stopped working with 5.14 on iBook

2021-10-22 Thread Christophe Leroy
Copied to Christopher M. Riedl and linuxppc list. Le 22/10/2021 à 19:40, Stan Johnson a écrit : Hello Christophe and Finn, My message to Christopher Riedl bounced: : 554: 5.7.1 : Relay access denied I'm not sure how to proceed; thanks for any help. You should always copy the list, as other

Re: [PATCH v2] perf vendor events power10: Add metric events json file for power10 platform

2021-10-22 Thread Paul A. Clarke
Thanks for the changes! More nits below (many left over from prior review)... On Fri, Oct 22, 2021 at 11:55:05AM +0530, Kajol Jain wrote: > Add pmu metric json file for power10 platform. > > Signed-off-by: Kajol Jain > --- > Changelog v1 -> v2: > - Did some nit changes in BriefDescription field

Re: [PATCH] locking: remove spin_lock_flags() etc

2021-10-22 Thread Helge Deller
On 10/22/21 13:59, Arnd Bergmann wrote: > From: Arnd Bergmann > > parisc, ia64 and powerpc32 are the only remaining architectures that > provide custom arch_{spin,read,write}_lock_flags() functions, which are > meant to re-enable interrupts while waiting for a spinlock. > > However, none of these

Re: [PATCH] powerpc: Enhance pmem DMA bypass handling

2021-10-22 Thread Alexey Kardashevskiy
On 22/10/2021 04:44, Brian King wrote: If ibm,pmemory is installed in the system, it can appear anywhere in the address space. This patch enhances how we handle DMA for devices when ibm,pmemory is present. In the case where we have enough DMA space to direct map all of RAM, but not ibm,pmemory

Re: [PATCH v2] powerpc/pseries/mobility: ignore ibm, platform-facilities updates

2021-10-22 Thread Daniel Axtens
Nathan Lynch writes: > Daniel Axtens writes: >>> On VMs with NX encryption, compression, and/or RNG offload, these >>> capabilities are described by nodes in the ibm,platform-facilities device >>> tree hierarchy: >>> >>> $ tree -d /sys/firmware/devicetree/base/ibm,platform-facilities/ >>> /s

[PATCH] locking: remove spin_lock_flags() etc

2021-10-22 Thread Arnd Bergmann
From: Arnd Bergmann parisc, ia64 and powerpc32 are the only remaining architectures that provide custom arch_{spin,read,write}_lock_flags() functions, which are meant to re-enable interrupts while waiting for a spinlock. However, none of these can actually run into this codepath, because it is o

Re: [PATCH 0/5] xen: cleanup detection of non-essential pv devices

2021-10-22 Thread Juergen Gross
On 22.10.21 09:24, Jan Beulich wrote: On 22.10.2021 08:47, Juergen Gross wrote: Today the non-essential pv devices are hard coded in the xenbus driver and this list is lacking multiple entries. This series reworks the detection logic of non-essential devices by adding a flag for that purpose to

Re: [PATCH 0/5] xen: cleanup detection of non-essential pv devices

2021-10-22 Thread Jan Beulich
On 22.10.2021 08:47, Juergen Gross wrote: > Today the non-essential pv devices are hard coded in the xenbus driver > and this list is lacking multiple entries. > > This series reworks the detection logic of non-essential devices by > adding a flag for that purpose to struct xenbus_driver. I'm won

[PATCH 0/5] xen: cleanup detection of non-essential pv devices

2021-10-22 Thread Juergen Gross
Today the non-essential pv devices are hard coded in the xenbus driver and this list is lacking multiple entries. This series reworks the detection logic of non-essential devices by adding a flag for that purpose to struct xenbus_driver. Juergen Gross (5): xen: add "not_essential" flag to struc

Re: [PATCH v3 16/18] powerpc/64s: Move hash MMU support code under CONFIG_PPC_64S_HASH_MMU

2021-10-22 Thread Nicholas Piggin
Excerpts from Nicholas Piggin's message of October 22, 2021 7:34 pm: > Excerpts from Christophe Leroy's message of October 22, 2021 5:18 pm: >> >> >> Le 22/10/2021 à 00:30, Nicholas Piggin a écrit : >>> Compiling out hash support code when CONFIG_PPC_64S_HASH_MMU=n saves >>> 128kB kernel image si

[powerpc:next-test] BUILD SUCCESS 2974d421aac1374d3269fe4f1fba2068aa33134d

2021-10-22 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next-test branch HEAD: 2974d421aac1374d3269fe4f1fba2068aa33134d powerpc/32: Don't use a struct based type for pte_t elapsed time: 1247m configs tested: 103 configs skipped: 3 The following configs have been built s

Re: [PATCH v3 16/18] powerpc/64s: Move hash MMU support code under CONFIG_PPC_64S_HASH_MMU

2021-10-22 Thread Christophe Leroy
Le 22/10/2021 à 11:34, Nicholas Piggin a écrit : Excerpts from Christophe Leroy's message of October 22, 2021 5:18 pm: Le 22/10/2021 à 00:30, Nicholas Piggin a écrit : diff --git a/arch/powerpc/mm/book3s64/pgtable.c b/arch/powerpc/mm/book3s64/pgtable.c index 7d556b5513e4..57d2d797c4f6 1

Re: [PATCH v3 18/18] powerpc/microwatt: Don't select the hash MMU code

2021-10-22 Thread Nicholas Piggin
Excerpts from Christophe Leroy's message of October 22, 2021 5:18 pm: > > > Le 22/10/2021 à 00:30, Nicholas Piggin a écrit : >> Microwatt is radix-only, so it does not require hash MMU support. >> >> This saves 20kB compressed dtbImage and 56kB vmlinux size. > > I think patch 17 and 18 should b

Re: [PATCH v3 16/18] powerpc/64s: Move hash MMU support code under CONFIG_PPC_64S_HASH_MMU

2021-10-22 Thread Nicholas Piggin
Excerpts from Christophe Leroy's message of October 22, 2021 5:18 pm: > > > Le 22/10/2021 à 00:30, Nicholas Piggin a écrit : >> Compiling out hash support code when CONFIG_PPC_64S_HASH_MMU=n saves >> 128kB kernel image size (90kB text) on powernv_defconfig minus KVM, >> 350kB on pseries_defconfig

Re: [PATCH v3 15/18] powerpc/64s: Make hash MMU support configurable

2021-10-22 Thread Nicholas Piggin
Excerpts from Christophe Leroy's message of October 22, 2021 5:02 pm: > > > Le 22/10/2021 à 00:30, Nicholas Piggin a écrit : >> This adds Kconfig selection which allows 64s hash MMU support to be >> disabled. It can be disabled if radix support is enabled, the minimum >> supported CPU type is POW

Re: [PATCH v3 13/18] powerpc/64e: remove mmu_linear_psize

2021-10-22 Thread Nicholas Piggin
Excerpts from Christophe Leroy's message of October 22, 2021 4:49 pm: > > > Le 22/10/2021 à 00:30, Nicholas Piggin a écrit : >> mmu_linear_psize is only set at boot once on 64e, is not necessarily >> the correct size of the linear map pages, and is never used anywhere. >> Remove it. > > mmu_line

Re: [PATCH v2] powerpc: flexible GPR range save/restore macros

2021-10-22 Thread Christophe Leroy
Le 22/10/2021 à 08:13, Nicholas Piggin a écrit : Introduce macros that operate on a (start, end) range of GPRs, which reduces lines of code and need to do mental arithmetic while reading the code. Reviewed-by: Segher Boessenkool Signed-off-by: Nicholas Piggin Reviewed-by: Christophe Leroy

Re: [PATCH v3 18/18] powerpc/microwatt: Don't select the hash MMU code

2021-10-22 Thread Christophe Leroy
Le 22/10/2021 à 00:30, Nicholas Piggin a écrit : Microwatt is radix-only, so it does not require hash MMU support. This saves 20kB compressed dtbImage and 56kB vmlinux size. I think patch 17 and 18 should be squashed together. Signed-off-by: Nicholas Piggin --- arch/powerpc/configs/mi

Re: [PATCH v3 16/18] powerpc/64s: Move hash MMU support code under CONFIG_PPC_64S_HASH_MMU

2021-10-22 Thread Christophe Leroy
Le 22/10/2021 à 00:30, Nicholas Piggin a écrit : Compiling out hash support code when CONFIG_PPC_64S_HASH_MMU=n saves 128kB kernel image size (90kB text) on powernv_defconfig minus KVM, 350kB on pseries_defconfig minus KVM, 40kB on a tiny config. Signed-off-by: Nicholas Piggin --- arch/pow

Re: [PATCH v3 15/18] powerpc/64s: Make hash MMU support configurable

2021-10-22 Thread Christophe Leroy
Le 22/10/2021 à 00:30, Nicholas Piggin a écrit : This adds Kconfig selection which allows 64s hash MMU support to be disabled. It can be disabled if radix support is enabled, the minimum supported CPU type is POWER9 (or higher), and KVM is not selected. Signed-off-by: Nicholas Piggin --- a