Re: [PATCH v10 03/13] dt-bindings: Convert gpio-mmio to yaml

2023-03-09 Thread Linus Walleij
On Tue, Mar 7, 2023 at 4:35 PM Sean Anderson wrote: > On 3/7/23 03:42, Krzysztof Kozlowski wrote: > > https://lore.kernel.org/all/20230126-gpio-mmio-fix-v2-1-38397aace...@ncr.com/ > > Thanks for linking to that. > > I believe this patch should be applied instead of that one because > > - It docum

Re: [RFC PATCH 0/4] Remove some e300/MPC83xx evaluation platforms

2023-03-09 Thread Michael Ellerman
"Arnd Bergmann" writes: > On Fri, Mar 3, 2023, at 02:04, Paul Gortmaker wrote: >> 01/03/2023 (Wed 14:23) Christophe Leroy wrote: >>> Le 28/02/2023 ?? 18:51, Arnd Bergmann a ??crit??: >>> Hope it clarifies how those reference boards are used. >> >> It was really useful input and gave an insight int

Re: [PATCH v2] hvc/xen: prevent concurrent accesses to the shared ring

2023-03-09 Thread Roger Pau Monné
Hello, It's been 3 months and no reply. On Mon, Dec 12, 2022 at 01:36:48PM +0100, Roger Pau Monné wrote: > Hello, > > Gentle ping regarding the locking question below. > > Thanks, Roger. > > On Fri, Dec 02, 2022 at 12:40:05PM +0100, Roger Pau Monné wrote: > > On Wed, Nov 30, 2022 at 05:08:06PM

Re: [PATCH v2 0/4] Reenable VFIO support on POWER systems

2023-03-09 Thread Michael Ellerman
Alex Williamson writes: > On Mon, 6 Mar 2023 11:29:53 -0600 (CST) > Timothy Pearson wrote: > >> This patch series reenables VFIO support on POWER systems. It >> is based on Alexey Kardashevskiys's patch series, rebased and >> successfully tested under QEMU with a Marvell PCIe SATA controller >>

Re: [PATCH v2 0/4] Reenable VFIO support on POWER systems

2023-03-09 Thread Michael Ellerman
Timothy Pearson writes: > This patch series reenables VFIO support on POWER systems. It > is based on Alexey Kardashevskiys's patch series, rebased and > successfully tested under QEMU with a Marvell PCIe SATA controller > on a POWER9 Blackbird host. > > Alexey Kardashevskiy (3): > powerpc/iomm

Re: [PATCH 3/3] powerpc/kvm: Enable prefixed instructions for HV KVM and disable for PR KVM

2023-03-09 Thread Sachin Sant
> On 08-Mar-2023, at 12:06 PM, Paul Mackerras wrote: > > Now that we can read prefixed instructions from a HV KVM guest and > emulate prefixed load/store instructions to emulated MMIO locations, > we can add HFSCR_PREFIXED into the set of bits that are set in the > HFSCR for a HV KVM guest on

[PATCH] powerpc/pseries: Select the generic memory allocator.

2023-03-09 Thread Sebastian Andrzej Siewior
The RTAS work area allocator is using the generic memory allocator and as such it must select it. Select the generic memory allocator on pseries. Fixes: 43033bc62d349 ("powerpc/pseries: add RTAS work area allocator") Signed-off-by: Sebastian Andrzej Siewior --- arch/powerpc/platforms/pseries/Kc

[PATCH] powerpc/imc-pmu: Use the correct spinlock initializer.

2023-03-09 Thread Sebastian Andrzej Siewior
The macro __SPIN_LOCK_INITIALIZER() is implementation specific. Users that desire to initialize a spinlock in a struct must use __SPIN_LOCK_UNLOCKED(). Use __SPIN_LOCK_UNLOCKED() for the spinlock_t in imc_global_refc. Fixes: 76d588dddc459 ("powerpc/imc-pmu: Fix use of mutex in IRQs disabled sect

Re: [PATCH] powerpc/pseries: Select the generic memory allocator.

2023-03-09 Thread Nathan Lynch
Sebastian Andrzej Siewior writes: > The RTAS work area allocator is using the generic memory allocator and > as such it must select it. > > Select the generic memory allocator on pseries. > > Fixes: 43033bc62d349 ("powerpc/pseries: add RTAS work area allocator") > Signed-off-by: Sebastian Andrzej

Re: [PATCH v4 3/4] arch/*/io.h: remove ioremap_uc in some architectures

2023-03-09 Thread Thomas Bogendoerfer
On Wed, Mar 08, 2023 at 09:07:09PM +0800, Baoquan He wrote: > ioremap_uc() is only meaningful on old x86-32 systems with the PAT > extension, and on ia64 with its slightly unconventional ioremap() > behavior. So remove the ioremap_uc() definition in architecutures > other than x86 and ia64. These a

Re: [PATCH v10 03/13] dt-bindings: Convert gpio-mmio to yaml

2023-03-09 Thread Sean Anderson
On 3/8/23 18:10, Rob Herring wrote: > On Mon, Mar 06, 2023 at 02:15:25PM -0500, Sean Anderson wrote: >> This is a generic binding for simple MMIO GPIO controllers. Although we >> have a single driver for these controllers, they were previously spread >> over several files. Consolidate them. The reg

Re: [PATCH 0/3] Fix the PowerQUICC audio support using the QMC

2023-03-09 Thread Mark Brown
On Tue, 07 Mar 2023 15:15:00 +0100, Herve Codina wrote: > A previous series added the PowerQUICC audio support using the QMC. > The v6 version of this previous series was applied but some feedbacks > lead to a v7 version. > > The v6 can be found here: > > https://lore.kernel.org/linux-kernel/202

[PATCH v2 0/4] enable bpf_prog_pack allocator for powerpc

2023-03-09 Thread Hari Bathini
Most BPF programs are small, but they consume a page each. For systems with busy traffic and many BPF programs, this may also add significant pressure on instruction TLB. High iTLB pressure usually slows down the whole system causing visible performance degradation for production workloads. bpf_pr

[PATCH v2 2/4] powerpc/bpf: implement bpf_arch_text_copy

2023-03-09 Thread Hari Bathini
bpf_arch_text_copy is used to dump JITed binary to RX page, allowing multiple BPF programs to share the same page. Use the newly introduced patch_instructions() to implement it. Around 5X improvement in speed of execution observed, using the new patch_instructions() function over patch_instruction(

[PATCH v2 1/4] powerpc/code-patching: introduce patch_instructions()

2023-03-09 Thread Hari Bathini
patch_instruction() entails setting up pte, patching the instruction, clearing the pte and flushing the tlb. If multiple instructions need to be patched, every instruction would have to go through the above drill unnecessarily. Instead, introduce function patch_instructions() that patches multiple

[PATCH v2 3/4] powerpc/bpf: implement bpf_arch_text_invalidate for bpf_prog_pack

2023-03-09 Thread Hari Bathini
Implement bpf_arch_text_invalidate and use it to fill unused part of the bpf_prog_pack with trap instructions when a BPF program is freed. Signed-off-by: Hari Bathini --- arch/powerpc/net/bpf_jit_comp.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/powerpc/net/bpf_jit

[PATCH v2 4/4] powerpc/bpf: use bpf_jit_binary_pack_[alloc|finalize|free]

2023-03-09 Thread Hari Bathini
Use bpf_jit_binary_pack_alloc in powerpc jit. The jit engine first writes the program to the rw buffer. When the jit is done, the program is copied to the final location with bpf_jit_binary_pack_finalize. With multiple jit_subprogs, bpf_jit_free is called on some subprograms that haven't got bpf_ji

[PATCH v2 0/4] enable bpf_prog_pack allocator for powerpc

2023-03-09 Thread Hari Bathini
Most BPF programs are small, but they consume a page each. For systems with busy traffic and many BPF programs, this may also add significant pressure on instruction TLB. High iTLB pressure usually slows down the whole system causing visible performance degradation for production workloads. bpf_pr

[PATCH v2 2/4] powerpc/bpf: implement bpf_arch_text_copy

2023-03-09 Thread Hari Bathini
bpf_arch_text_copy is used to dump JITed binary to RX page, allowing multiple BPF programs to share the same page. Use the newly introduced patch_instructions() to implement it. Around 5X improvement in speed of execution observed, using the new patch_instructions() function over patch_instruction(

[PATCH v2 1/4] powerpc/code-patching: introduce patch_instructions()

2023-03-09 Thread Hari Bathini
patch_instruction() entails setting up pte, patching the instruction, clearing the pte and flushing the tlb. If multiple instructions need to be patched, every instruction would have to go through the above drill unnecessarily. Instead, introduce function patch_instructions() that patches multiple

[PATCH v2 3/4] powerpc/bpf: implement bpf_arch_text_invalidate for bpf_prog_pack

2023-03-09 Thread Hari Bathini
Implement bpf_arch_text_invalidate and use it to fill unused part of the bpf_prog_pack with trap instructions when a BPF program is freed. Signed-off-by: Hari Bathini --- arch/powerpc/net/bpf_jit_comp.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/powerpc/net/bpf_jit

[PATCH v2 4/4] powerpc/bpf: use bpf_jit_binary_pack_[alloc|finalize|free]

2023-03-09 Thread Hari Bathini
Use bpf_jit_binary_pack_alloc in powerpc jit. The jit engine first writes the program to the rw buffer. When the jit is done, the program is copied to the final location with bpf_jit_binary_pack_finalize. With multiple jit_subprogs, bpf_jit_free is called on some subprograms that haven't got bpf_ji

Re: [PATCH v2 0/4] Reenable VFIO support on POWER systems

2023-03-09 Thread Timothy Pearson
- Original Message - > From: "Michael Ellerman" > To: "Timothy Pearson" , "kvm" > > Cc: "linuxppc-dev" > Sent: Thursday, March 9, 2023 5:40:01 AM > Subject: Re: [PATCH v2 0/4] Reenable VFIO support on POWER systems > Timothy Pearson writes: >> This patch series reenables VFIO suppo

Re: [PATCH v4 3/4] arch/*/io.h: remove ioremap_uc in some architectures

2023-03-09 Thread Michael Ellerman
Baoquan He writes: > ioremap_uc() is only meaningful on old x86-32 systems with the PAT > extension, and on ia64 with its slightly unconventional ioremap() > behavior. So remove the ioremap_uc() definition in architecutures > other than x86 and ia64. These architectures all have asm-generic/io.h >

Re: [PATCH v2] hvc/xen: prevent concurrent accesses to the shared ring

2023-03-09 Thread Michael Ellerman
Roger Pau Monné writes: > On Mon, Dec 12, 2022 at 01:36:48PM +0100, Roger Pau Monné wrote: >> On Fri, Dec 02, 2022 at 12:40:05PM +0100, Roger Pau Monné wrote: >> > On Wed, Nov 30, 2022 at 05:08:06PM -0800, Stefano Stabellini wrote: >> > > On Wed, 30 Nov 2022, Roger Pau Monne wrote: >> > > > The hv

Re: [RFC PATCH 02/13] powerpc: Add initial Dynamic Execution Control Register (DEXCR) support

2023-03-09 Thread Benjamin Gray
On Tue, 2023-03-07 at 14:45 +1000, Nicholas Piggin wrote: > On Mon Nov 28, 2022 at 12:44 PM AEST, Benjamin Gray wrote: > > diff --git a/arch/powerpc/include/asm/cputable.h > > b/arch/powerpc/include/asm/cputable.h > > index 757dbded11dc..03bc192f2d8b 100644 > > --- a/arch/powerpc/include/asm/cputab

[powerpc:merge] BUILD SUCCESS 63b88b2ce373adab7537659372ef29302d10db5d

2023-03-09 Thread kernel test robot
gcc arm allyesconfig gcc arm defconfig gcc arm randconfig-r046-20230308 gcc arm64allyesconfig gcc arm64 defconfig gcc arm64randconfig-r001-20230309

Re: [PATCH v4 3/4] arch/*/io.h: remove ioremap_uc in some architectures

2023-03-09 Thread Baoquan He
On 03/09/23 at 03:36pm, Thomas Bogendoerfer wrote: > On Wed, Mar 08, 2023 at 09:07:09PM +0800, Baoquan He wrote: > > ioremap_uc() is only meaningful on old x86-32 systems with the PAT > > extension, and on ia64 with its slightly unconventional ioremap() > > behavior. So remove the ioremap_uc() defi

[powerpc:next-test] BUILD SUCCESS f3358336042bbcf24a0b916c283559133717bbb2

2023-03-09 Thread kernel test robot
defconfig gcc arm randconfig-r012-20230308 gcc arm randconfig-r046-20230308 gcc arm64allyesconfig gcc arm64 defconfig gcc arm64randconfig-r005-20230309 clang arm64

[PATCH] powerpc/mm: Fix false detection of read faults

2023-03-09 Thread Russell Currey
To support detection of read faults with Radix execute-only memory, the vma_is_accessible() check in access_error() (which checks for PROT_NONE) was replaced with a check to see if VM_READ was missing, and if so, returns true to assert the fault was caused by a bad read. This is incorrect, as it i

Re: [PATCH V4 1/3] core/device: Add function to return child node using name at substring "@"

2023-03-09 Thread Athira Rajeev
> On 06-Mar-2023, at 9:09 AM, Athira Rajeev wrote: > > Add a function dt_find_by_name_substr() that returns the child node if > it matches till first occurence at "@" of a given name, otherwise NULL. > This is helpful for cases with node name like: "name@addr". In > scenarios where nodes are a

Re: [PATCH] ASoC: do not include pm_runtime.h if not used

2023-03-09 Thread Jarkko Nikula
On Tue, Mar 07, 2023 at 12:30:22PM +0200, Claudiu Beznea wrote: > Do not include pm_runtime.h header in files where runtime PM support is > not implemented. > > Signed-off-by: Claudiu Beznea > --- ... > sound/soc/ti/omap-mcbsp-st.c | 1 - > 36 files changed, 37 delet

Re: [PATCH] ASoC: do not include pm_runtime.h if not used

2023-03-09 Thread Srinivas Kandagatla
On 07/03/2023 10:30, Claudiu Beznea wrote: diff --git a/sound/soc/qcom/lpass-sc7180.c b/sound/soc/qcom/lpass-sc7180.c index 41db6617e2ed..dc892fac4baa 100644 --- a/sound/soc/qcom/lpass-sc7180.c +++ b/sound/soc/qcom/lpass-sc7180.c @@ -12,7 +12,6 @@ #include #include #include -#include