[PATCH] powerpc/imc-pmu: Fix IMC PMU code of using mutex in IRQs disabled section

2023-01-05 Thread Kajol Jain
Current imc-pmu code triggers a WARNING with CONFIG_DEBUG_ATOMIC_SLEEP and CONFIG_PROVE_LOCKING enabled, while running a thread_imc event. Command to trigger the warning: [command]# perf stat -e thread_imc/CPM_CS_FROM_L4_MEM_X_DPTEG/ sleep 5 Performance counter stats for 'sleep 5':

Re: [PATCH v2 7/7] powerpc/pseries: Implement secvars for dynamic secure boot

2023-01-05 Thread Russell Currey
On Thu, 2023-01-05 at 19:15 +1100, Andrew Donnellan wrote: > On Fri, 2022-12-30 at 15:20 +1100, Russell Currey wrote: > > The pseries platform can support dynamic secure boot (i.e. secure > > boot > > using user-defined keys) using variables contained with the PowerVM > > LPAR > > Platform KeyStore

Re: [PATCH v2 6/7] powerpc/secvar: Extend sysfs to include config vars

2023-01-05 Thread Russell Currey
On Fri, 2023-01-06 at 15:15 +1100, Michael Ellerman wrote: > Russell Currey writes: > > The forthcoming pseries consumer of the secvar API wants to expose > > a > > number of config variables.  Allowing secvar implementations to > > provide > > their own sysfs attributes makes it easy for consumer

Re: [PATCH v2 6/7] powerpc/secvar: Extend sysfs to include config vars

2023-01-05 Thread Russell Currey
On Thu, 2023-01-05 at 18:28 +1100, Andrew Donnellan wrote: > On Fri, 2022-12-30 at 15:20 +1100, Russell Currey wrote: > > The forthcoming pseries consumer of the secvar API wants to expose > > a > > number of config variables.  Allowing secvar implementations to > > provide > > their own sysfs attr

Re: [PATCH v2 6/7] powerpc/secvar: Extend sysfs to include config vars

2023-01-05 Thread Michael Ellerman
Russell Currey writes: > The forthcoming pseries consumer of the secvar API wants to expose a > number of config variables. Allowing secvar implementations to provide > their own sysfs attributes makes it easy for consumers to expose what > they need to. > > This is not being used by the OPAL sec

Re: [PATCH] ASoC: fsl_micfil: Correct the number of steps on SX controls

2023-01-05 Thread Shengjiu Wang
On Wed, Jan 4, 2023 at 10:58 AM Chancel Liu wrote: > The parameter "max" of SOC_SINGLE_SX_TLV() means the number of steps > rather than maximum value. This patch corrects the minimum value to -8 > and the number of steps to 15. > > Signed-off-by: Chancel Liu > Acked-by: Shengjiu Wang Best reg

Re: [PATCH v7 2/2] arm64: support batched/deferred tlb shootdown during page reclamation

2023-01-05 Thread Catalin Marinas
On Thu, Nov 17, 2022 at 04:26:48PM +0800, Yicong Yang wrote: > It is tested on 4,8,128 CPU platforms and shows to be beneficial on > large systems but may not have improvement on small systems like on > a 4 CPU platform. So make ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH depends > on CONFIG_EXPERT for this

Re: [PATCH 00/19] Introduce __xchg, non-atomic xchg

2023-01-05 Thread Daniel Vetter
On Thu, Dec 29, 2022 at 10:54:50AM +0100, Andrzej Hajda wrote: > Forgive me late response - Holidays, > > On 22.12.2022 18:21, Andrew Morton wrote: > > On Thu, 22 Dec 2022 12:46:16 +0100 Andrzej Hajda > > wrote: > > > > > Hi all, > > > > > > I hope there will be place for such tiny helper in k

[PATCH 2/3] powerpc/vmlinux.lds: Don't discard .rela* for relocatable builds

2023-01-05 Thread Michael Ellerman
Relocatable kernels must not discard relocations, they need to be processed at runtime. As such they are included for CONFIG_RELOCATABLE builds in the powerpc linker script (line 340). However they are also unconditionally discarded later in the script (line 414). Previously that worked because th

[PATCH 1/3] powerpc/vmlinux.lds: Define RUNTIME_DISCARD_EXIT

2023-01-05 Thread Michael Ellerman
The powerpc linker script explicitly includes .exit.text, because otherwise the link fails due to references from __bug_table and __ex_table. The code is freed (discarded) at runtime along with .init.text and data. That has worked in the past despite powerpc not defining RUNTIME_DISCARD_EXIT becau

[PATCH 3/3] powerpc/vmlinux.lds: Don't discard .comment

2023-01-05 Thread Michael Ellerman
Although the powerpc linker script mentions .comment in the DISCARD section, that has never actually caused it to be discarded, because the earlier ELF_DETAILS macro (previously STABS_DEBUG) explicitly includes .comment. However commit 99cb0d917ffa ("arch: fix broken BuildID for arm64 and riscv")

Re: [PATCH 2/2] perf test bpf: Skip test if kernel-debuginfo is not present

2023-01-05 Thread Arnaldo Carvalho de Melo
Em Thu, Jan 05, 2023 at 05:47:42PM +0530, Athira Rajeev escreveu: > Perf BPF filter test fails in environment where "kernel-debuginfo" > is not installed. I'll apply this to perf/core, for the next merge window, as its more an improvement than a fix, i.e. we know why it fails, we're just improving

Re: [PATCH] tools/perf: Fix bpf-script-test-prologue test compile issue with clang

2023-01-05 Thread Arnaldo Carvalho de Melo
Em Thu, Jan 05, 2023 at 05:34:36PM +0530, Athira Rajeev escreveu: > While running perf test for bpf, observed that "BPF prologue > generation" test case fails to compile with clang. Logs below > from powerpc: > > :33:2: error: use of undeclared identifier 'fmode_t' > fmode_t f_mode = (fmod

[PATCH 2/2] perf test bpf: Skip test if kernel-debuginfo is not present

2023-01-05 Thread Athira Rajeev
Perf BPF filter test fails in environment where "kernel-debuginfo" is not installed. Test failure logs: <<>> 42: BPF filter: 42.1: Basic BPF filtering : Ok 42.2: BPF pinning : Ok 42.3: BPF prologue generation : FAILED!

[PATCH 1/2] tools/perf: Update the exit error codes in function try_to_find_probe_trace_event

2023-01-05 Thread Athira Rajeev
The function "try_to_find_probe_trace_events" uses return error code as ENOENT in two places. First place is after "open_debuginfo" when opening debuginfo fails and secondly, after when not finding the probe point. This function is invoked during bpf load and there are other exit points in this cod

[PATCH] tools/perf: Fix bpf-script-test-prologue test compile issue with clang

2023-01-05 Thread Athira Rajeev
While running perf test for bpf, observed that "BPF prologue generation" test case fails to compile with clang. Logs below from powerpc: :33:2: error: use of undeclared identifier 'fmode_t' fmode_t f_mode = (fmode_t)_f_mode; ^ :37:6: error: use of undeclared identifier 'f_mode'; di

[PATCH v4] arch: rename all internal names __xchg to __arch_xchg

2023-01-05 Thread Andrzej Hajda
__xchg will be used for non-atomic xchg macro. Signed-off-by: Andrzej Hajda Reviewed-by: Arnd Bergmann --- v2: squashed all arch patches into one v3: fixed alpha/xchg_local, thx to l...@intel.com v4: adjusted indentation (Heiko) --- arch/alpha/include/asm/cmpxchg.h | 10 +- arch/arc

Re: [PATCH 07/10] tty: Convert ->dtr_rts() to take bool argument

2023-01-05 Thread Ilpo Järvinen
On Thu, 5 Jan 2023, Jiri Slaby wrote: > On 04. 01. 23, 16:15, Ilpo Järvinen wrote: > > Convert the raise/on parameter in ->dtr_rts() to bool through the > > callchain. The parameter is used like bool. In USB serial, there > > remains a few implicit bool -> larger type conversions because some > >

Re: [PATCH v2 7/7] powerpc/pseries: Implement secvars for dynamic secure boot

2023-01-05 Thread Andrew Donnellan
On Fri, 2022-12-30 at 15:20 +1100, Russell Currey wrote: > The pseries platform can support dynamic secure boot (i.e. secure > boot > using user-defined keys) using variables contained with the PowerVM > LPAR > Platform KeyStore (PLPKS).  Using the powerpc secvar API, expose the > relevant variable

Re: [PATCH 00/14] Remove clang's -Qunused-arguments from KBUILD_CPPFLAGS

2023-01-05 Thread Heiko Carstens
On Wed, Jan 04, 2023 at 12:54:18PM -0700, Nathan Chancellor wrote: > Hi all, ... > This series has seen my personal test framework, which tests several different > configurations and architectures, with LLVM tip of tree (16.0.0). I have done > defconfig, allmodconfig, and allnoconfig builds for arm