Re: [PATCH v2] of: Fix of platform build on powerpc due to bad of disaply code

2023-01-19 Thread Erhard F.
On Thu, 19 Jan 2023 10:53:23 +0100 Michal Suchanek wrote: > The commit 2d681d6a23a1 ("of: Make of framebuffer devices unique") > breaks build because of wrong argument to snprintf. That certainly > avoids the runtime error but is not the intended outcome. > > Also use standard device name format

RE: [PATCH V2] tools/perf/tests: Fix string substitutions in build id test

2023-01-19 Thread David Laight
From: Athira Rajeev > Sent: 19 January 2023 11:31 ... > diff --git a/tools/perf/tests/shell/buildid.sh > b/tools/perf/tests/shell/buildid.sh > index aaf851108ca3..43e43e131be7 100755 > --- a/tools/perf/tests/shell/buildid.sh > +++ b/tools/perf/tests/shell/buildid.sh > @@ -66,7 +66,7 @@ check() >

Re: [PATCH] powerpc: remove checks for binutils older than 2.25

2023-01-19 Thread Joel Stanley
On Thu, 19 Jan 2023 at 08:24, Masahiro Yamada wrote: > > Commit e4412739472b ("Documentation: raise minimum supported version of > binutils to 2.25") allows us to remove the checks for old binutils. > > There is no more user for ld-ifversion. Remove it as well. ppc kernels fail to link with 2.27

Re: [PATCH] powerpc: remove checks for binutils older than 2.25

2023-01-19 Thread Masahiro Yamada
On Thu, Jan 19, 2023 at 9:12 PM Joel Stanley wrote: > > On Thu, 19 Jan 2023 at 08:24, Masahiro Yamada wrote: > > > > Commit e4412739472b ("Documentation: raise minimum supported version of > > binutils to 2.25") allows us to remove the checks for old binutils. > > > > There is no more user for ld

Re: [PATCH 39/41] kernel/fork: throttle call_rcu() calls in vm_area_free

2023-01-19 Thread Michal Hocko
On Wed 18-01-23 11:01:08, Suren Baghdasaryan wrote: > On Wed, Jan 18, 2023 at 10:34 AM Paul E. McKenney wrote: [...] > > There are a couple of possibilities here. > > > > First, if I am remembering correctly, the time between the call_rcu() > > and invocation of the corresponding callback was taki

Re: [PATCH 39/41] kernel/fork: throttle call_rcu() calls in vm_area_free

2023-01-19 Thread Michal Hocko
On Mon 09-01-23 12:53:34, Suren Baghdasaryan wrote: > call_rcu() can take a long time when callback offloading is enabled. > Its use in the vm_area_free can cause regressions in the exit path when > multiple VMAs are being freed. To minimize that impact, place VMAs into > a list and free them in gr

Re: [PATCH v2] of: Fix of platform build on powerpc due to bad of disaply code

2023-01-19 Thread Thomas Zimmermann
Hi Am 19.01.23 um 11:24 schrieb Christophe Leroy: Le 19/01/2023 à 10:53, Michal Suchanek a écrit : The commit 2d681d6a23a1 ("of: Make of framebuffer devices unique") breaks build because of wrong argument to snprintf. That certainly avoids the runtime error but is not the intended outcome. A

Re: [PATCH v2] of: Fix of platform build on powerpc due to bad of disaply code

2023-01-19 Thread Michal Suchánek
On Thu, Jan 19, 2023 at 02:11:13PM +0100, Thomas Zimmermann wrote: > Hi > > Am 19.01.23 um 11:24 schrieb Christophe Leroy: > > > > > > Le 19/01/2023 à 10:53, Michal Suchanek a écrit : > > > The commit 2d681d6a23a1 ("of: Make of framebuffer devices unique") > > > breaks build because of wrong arg

Re: [PATCH V2] tools/perf/tests: Fix string substitutions in build id test

2023-01-19 Thread Athira Rajeev
> On 19-Jan-2023, at 5:32 PM, David Laight wrote: > > From: Athira Rajeev >> Sent: 19 January 2023 11:31 > ... >> diff --git a/tools/perf/tests/shell/buildid.sh >> b/tools/perf/tests/shell/buildid.sh >> index aaf851108ca3..43e43e131be7 100755 >> --- a/tools/perf/tests/shell/buildid.sh >> +++

[PATCH V3] tools/perf/tests: Fix string substitutions in build id test

2023-01-19 Thread Athira Rajeev
The perf test named “build id cache operations” skips with below error on some distros: <<>> 78: build id cache operations : test child forked, pid 01 WARNING: wine not found. PE binaries will not be run. test binaries: /tmp/perf.ex.SHA1.PKz /tmp/perf.ex.

[PATCH v4 0/7] Generic IPI sending tracepoint

2023-01-19 Thread Valentin Schneider
Background == Detecting IPI *reception* is relatively easy, e.g. using trace_irq_handler_{entry,exit} or even just function-trace flush_smp_call_function_queue() for SMP calls. Figuring out their *origin*, is trickier as there is no generic tracepoint tied to e.g. smp_call_function():

[PATCH v4 2/7] sched, smp: Trace IPIs sent via send_call_function_single_ipi()

2023-01-19 Thread Valentin Schneider
send_call_function_single_ipi() is the thing that sends IPIs at the bottom of smp_call_function*() via either generic_exec_single() or smp_call_function_many_cond(). Give it an IPI-related tracepoint. Note that this ends up tracing any IPI sent via __smp_call_single_queue(), which covers __ttwu_qu

[PATCH v4 1/7] trace: Add trace_ipi_send_cpumask()

2023-01-19 Thread Valentin Schneider
trace_ipi_raise() is unsuitable for generically tracing IPI sources due to its "reason" argument being an uninformative string (on arm64 all you get is "Function call interrupts" for SMP calls). Add a variant of it that exports a target cpumask, a callsite and a callback. Signed-off-by: Valentin

[PATCH v4 3/7] smp: Trace IPIs sent via arch_send_call_function_ipi_mask()

2023-01-19 Thread Valentin Schneider
This simply wraps around the arch function and prepends it with a tracepoint, similar to send_call_function_single_ipi(). Signed-off-by: Valentin Schneider Reviewed-by: Steven Rostedt (Google) --- kernel/smp.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/kernel/sm

[PATCH v4 4/7] irq_work: Trace self-IPIs sent via arch_irq_work_raise()

2023-01-19 Thread Valentin Schneider
IPIs sent to remote CPUs via irq_work_queue_on() are now covered by trace_ipi_send_cpumask(), add another instance of the tracepoint to cover self-IPIs. Signed-off-by: Valentin Schneider Reviewed-by: Steven Rostedt (Google) --- kernel/irq_work.c | 14 +- 1 file changed, 13 insertion

[PATCH v4 5/7] treewide: Trace IPIs sent via smp_send_reschedule()

2023-01-19 Thread Valentin Schneider
To be able to trace invocations of smp_send_reschedule(), rename the arch-specific definitions of it to arch_smp_send_reschedule() and wrap it into an smp_send_reschedule() that contains a tracepoint. Changes to include the declaration of the tracepoint were driven by the following coccinelle scri

[PATCH v4 6/7] smp: reword smp call IPI comment

2023-01-19 Thread Valentin Schneider
Accessing the call_single_queue hasn't involved a spinlock since 2014: 6897fc22ea01 ("kernel: use lockless list for smp_call_function_single") The llist operations (namely cmpxchg() and xchg()) provide similar ordering guarantees, update the comment to lessen confusion. Signed-off-by: Valentin

[PATCH v4 7/7] sched, smp: Trace smp callback causing an IPI

2023-01-19 Thread Valentin Schneider
Context === The newly-introduced ipi_send_cpumask tracepoint has a "callback" parameter which so far has only been fed with NULL. While CSD_TYPE_SYNC/ASYNC and CSD_TYPE_IRQ_WORK share a similar backing struct layout (meaning their callback func can be accessed without caring about the actual

Re: [PATCH] modpost: support arbitrary symbol length in modversion

2023-01-19 Thread Gary Guo
On Tue, 17 Jan 2023 11:22:45 -0800 Lucas De Marchi wrote: > On Tue, Jan 17, 2023 at 06:51:44PM +0100, Michal Suchánek wrote: > >Hello, > > > >On Fri, Jan 13, 2023 at 06:18:41PM +, Gary Guo wrote: > >> On Thu, 12 Jan 2023 14:40:59 -0700 > >> Lucas De Marchi wrote: > >> > >> > On Wed, Jan

Re: [PATCH v2] of: Fix of platform build on powerpc due to bad of disaply code

2023-01-19 Thread Rob Herring
On Thu, Jan 19, 2023 at 3:53 AM Michal Suchanek wrote: > > The commit 2d681d6a23a1 ("of: Make of framebuffer devices unique") > breaks build because of wrong argument to snprintf. That certainly > avoids the runtime error but is not the intended outcome. > > Also use standard device name format of

Re: [PATCH] modpost: support arbitrary symbol length in modversion

2023-01-19 Thread Michal Suchánek
On Thu, Jan 19, 2023 at 03:09:36PM +, Gary Guo wrote: > On Tue, 17 Jan 2023 11:22:45 -0800 > Lucas De Marchi wrote: > > > On Tue, Jan 17, 2023 at 06:51:44PM +0100, Michal Suchánek wrote: > > >Hello, > > > > > >On Fri, Jan 13, 2023 at 06:18:41PM +, Gary Guo wrote: > > >> On Thu, 12 Jan 2

Re: [PATCH v2] of: Fix of platform build on powerpc due to bad of disaply code

2023-01-19 Thread Thomas Zimmermann
Hi Am 19.01.23 um 14:23 schrieb Michal Suchánek: On Thu, Jan 19, 2023 at 02:11:13PM +0100, Thomas Zimmermann wrote: Hi Am 19.01.23 um 11:24 schrieb Christophe Leroy: Le 19/01/2023 à 10:53, Michal Suchanek a écrit : The commit 2d681d6a23a1 ("of: Make of framebuffer devices unique") breaks b

Re: sched/debug: CPU hotplug operation suffers in a large cpu systems

2023-01-19 Thread Phil Auld
Hi Greg, et alia, On Tue, Dec 13, 2022 at 03:31:06PM +0100 Greg Kroah-Hartman wrote: > On Tue, Dec 13, 2022 at 08:22:58AM -0500, Phil Auld wrote: > > > > > > The idea seems good, the implementation might need a bit of work :) > > > > More than the one comment below? Let me know. > > No idea, r

RE: [PATCH V3] tools/perf/tests: Fix string substitutions in build id test

2023-01-19 Thread David Laight
From: Athira Rajeev > Sent: 19 January 2023 14:27 ... > The test script "tests/shell/buildid.sh" uses some of the > string substitution ways which are supported in bash, but not in > "sh" or other shells. Above error on line number 69 that reports > "Bad substitution" is: Looks better - assuming i

Re: [PATCH v2 0/9] jevents/pmu-events improvements

2023-01-19 Thread Ian Rogers
On Wed, Dec 21, 2022 at 2:34 PM Ian Rogers wrote: > > Add an optimization to jevents using the metric code, rewrite metrics > in terms of each other in order to minimize size and improve > readability. For example, on Power8 > other_stall_cpi is rewritten from: > "PM_CMPLU_STALL / PM_RUN_INST_CMPL

Re: [PATCH] modpost: support arbitrary symbol length in modversion

2023-01-19 Thread Gary Guo
On Thu, 19 Jan 2023 16:18:57 +0100 Michal Suchánek wrote: > On Thu, Jan 19, 2023 at 03:09:36PM +, Gary Guo wrote: > > On Tue, 17 Jan 2023 11:22:45 -0800 > > Lucas De Marchi wrote: > > > > > And the additional 0's should compress well > > > so I'm not sure the additional size is that much

Re: [PATCH v9 00/10] phy: Add support for Lynx 10G SerDes

2023-01-19 Thread Sean Anderson
On 1/18/23 11:54, Vinod Koul wrote: > On 17-01-23, 11:46, Sean Anderson wrote: >> >> I noticed that this series is marked "changes requested" on patchwork. >> However, I have received only automated feedback. I have done my best >> effort to address feedback I have received on prior revisions. I w

Re: [PATCH V3] tools/perf/tests: Fix string substitutions in build id test

2023-01-19 Thread Arnaldo Carvalho de Melo
Em Thu, Jan 19, 2023 at 03:49:15PM +, David Laight escreveu: > From: Athira Rajeev > > Sent: 19 January 2023 14:27 > ... > > The test script "tests/shell/buildid.sh" uses some of the > > string substitution ways which are supported in bash, but not in > > "sh" or other shells. Above error on li

[PATCH] KVM: PPC: Fix refactoring goof in kvmppc_e500mc_init()

2023-01-19 Thread Sean Christopherson
Fix a build error due to a mixup during a recent refactoring. The error was reported during code review, but the fixed up patch didn't make it into the final commit. Fixes: 474856bad921 ("KVM: PPC: Move processor compatibility check to module init") Link: https://lore.kernel.org/all/87cz93snqc..

Re: [PATCH v7 4/8] crash: add phdr for possible CPUs in elfcorehdr

2023-01-19 Thread Laurent Dufour
On 15/01/2023 16:02:02, Sourabh Jain wrote: > On architectures like PowerPC the crash notes are available for all > possible CPUs. So let's populate the elfcorehdr for all possible > CPUs having crash notes to avoid updating elfcorehdr during in-kernel > crash update on CPU hotplug events. > > The

Re: [PATCH] powerpc: add crtsavres.o to always-y instead of extra-y

2023-01-19 Thread Nathan Chancellor
On Thu, Jan 19, 2023 at 05:24:47PM +0900, Masahiro Yamada wrote: > crtsavres.o is linked to modules, but as commit d0e628cd817f ("kbuild: > doc: clarify the difference between extra-y and always-y") explained, > 'make modules' does not build extra-y. > > The following command fails: > > $ make

Re: [PATCH 39/41] kernel/fork: throttle call_rcu() calls in vm_area_free

2023-01-19 Thread Suren Baghdasaryan
On Thu, Jan 19, 2023 at 4:59 AM Michal Hocko wrote: > > On Mon 09-01-23 12:53:34, Suren Baghdasaryan wrote: > > call_rcu() can take a long time when callback offloading is enabled. > > Its use in the vm_area_free can cause regressions in the exit path when > > multiple VMAs are being freed. To min

Re: [PATCH 17/41] mm/mmap: move VMA locking before anon_vma_lock_write call

2023-01-19 Thread Suren Baghdasaryan
On Thu, Jan 19, 2023 at 1:31 AM Michal Hocko wrote: > > On Wed 18-01-23 13:48:13, Suren Baghdasaryan wrote: > > On Wed, Jan 18, 2023 at 1:33 PM Michal Hocko wrote: > [...] > > > So it will become: > > > Move VMA flag modification (which now implies VMA locking) before > > > vma_adjust_trans_huge(

Re: [PATCH v7 3/8] powerpc/crash: update kimage_arch struct

2023-01-19 Thread Laurent Dufour
On 15/01/2023 16:02:01, Sourabh Jain wrote: > Add a new member "fdt_index" to kimage_arch struct to hold the index of > the FDT (Flattened Device Tree) segment in the kexec segment array. > > Having direct access to FDT segment will help arch crash hotplug handler > to avoid looping kexec segment

Re: [PATCH] modpost: support arbitrary symbol length in modversion

2023-01-19 Thread Lucas De Marchi
On Wed, Jan 18, 2023 at 04:01:29PM +0900, Masahiro Yamada wrote: On Wed, Jan 18, 2023 at 4:23 AM Lucas De Marchi wrote: On Tue, Jan 17, 2023 at 06:51:44PM +0100, Michal Suchánek wrote: >Hello, > >On Fri, Jan 13, 2023 at 06:18:41PM +, Gary Guo wrote: >> On Thu, 12 Jan 2023 14:40:59 -0700 >>

Re: [PATCH 39/41] kernel/fork: throttle call_rcu() calls in vm_area_free

2023-01-19 Thread Paul E. McKenney
On Thu, Jan 19, 2023 at 01:52:14PM +0100, Michal Hocko wrote: > On Wed 18-01-23 11:01:08, Suren Baghdasaryan wrote: > > On Wed, Jan 18, 2023 at 10:34 AM Paul E. McKenney > > wrote: > [...] > > > There are a couple of possibilities here. > > > > > > First, if I am remembering correctly, the time b

Re: [PATCH 39/41] kernel/fork: throttle call_rcu() calls in vm_area_free

2023-01-19 Thread Paul E. McKenney
On Thu, Jan 19, 2023 at 10:52:03AM -0800, Suren Baghdasaryan wrote: > On Thu, Jan 19, 2023 at 4:59 AM Michal Hocko wrote: > > > > On Mon 09-01-23 12:53:34, Suren Baghdasaryan wrote: > > > call_rcu() can take a long time when callback offloading is enabled. > > > Its use in the vm_area_free can cau

Re: [PATCH] modpost: support arbitrary symbol length in modversion

2023-01-19 Thread Miguel Ojeda
On Wed, Jan 18, 2023 at 8:02 AM Masahiro Yamada wrote: > > - *.mod.c is kept human readable. On the topic of `.mod.c` readability: for approaches that may be less readable, we could improve that by adding some extra comments or rearrange things in a different way (it is a generated file, afte

Re: [PATCH 39/41] kernel/fork: throttle call_rcu() calls in vm_area_free

2023-01-19 Thread Suren Baghdasaryan
On Thu, Jan 19, 2023 at 11:20 AM Paul E. McKenney wrote: > > On Thu, Jan 19, 2023 at 10:52:03AM -0800, Suren Baghdasaryan wrote: > > On Thu, Jan 19, 2023 at 4:59 AM Michal Hocko wrote: > > > > > > On Mon 09-01-23 12:53:34, Suren Baghdasaryan wrote: > > > > call_rcu() can take a long time when cal

Re: [PATCH 39/41] kernel/fork: throttle call_rcu() calls in vm_area_free

2023-01-19 Thread Paul E. McKenney
On Thu, Jan 19, 2023 at 11:47:36AM -0800, Suren Baghdasaryan wrote: > On Thu, Jan 19, 2023 at 11:20 AM Paul E. McKenney wrote: > > > > On Thu, Jan 19, 2023 at 10:52:03AM -0800, Suren Baghdasaryan wrote: > > > On Thu, Jan 19, 2023 at 4:59 AM Michal Hocko wrote: > > > > > > > > On Mon 09-01-23 12:5

Re: [PATCH v3 05/24] powerpc/secvar: Handle max object size in the consumer

2023-01-19 Thread Greg Joyce
On Wed, 2023-01-18 at 17:10 +1100, Andrew Donnellan wrote: > From: Russell Currey > > Currently the max object size is handled in the core secvar code with > an > entirely OPAL-specific implementation, so create a new max_size() op > and > move the existing implementation into the powernv platfor

Re: Calculating array sizes in C - was: Re: Build regressions/improvements in v6.2-rc1

2023-01-19 Thread Michael.Karcher
Isn't this supposed to be caught by this check: a, __same_type(a, NULL) ? Yeah, but gcc thinks it is smarter than us... Probably it drops the test, assuming UB cannot happen. Hmm, sounds like a GGC bug to me then. Not sure how to fix this then. I don't see a clear bug at this poi

Re: [PATCH v3 04/24] powerpc/secvar: Handle format string in the consumer

2023-01-19 Thread Russell Currey
On Thu, 2023-01-19 at 11:17 +1000, Nicholas Piggin wrote: > On Wed Jan 18, 2023 at 4:10 PM AEST, Andrew Donnellan wrote: > > From: Russell Currey > > > > The code that handles the format string in secvar-sysfs.c is > > entirely > > OPAL specific, so create a new "format" op in secvar_operations t

Re: Calculating array sizes in C - was: Re: Build regressions/improvements in v6.2-rc1

2023-01-19 Thread Rob Landley
On 1/19/23 16:11, Michael.Karcher wrote: > Isn't this supposed to be caught by this check: a, __same_type(a, NULL) ? >>> >>> Yeah, but gcc thinks it is smarter than us... >>> Probably it drops the test, assuming UB cannot happen. >> Hmm, sounds like a GGC bug to me t

Re: [PATCH v3 08/24] powerpc/secvar: Allow backend to populate static list of variable names

2023-01-19 Thread Andrew Donnellan
On Thu, 2023-01-19 at 11:10 +1000, Nicholas Piggin wrote: > > diff --git a/arch/powerpc/include/asm/secvar.h > > b/arch/powerpc/include/asm/secvar.h > > index ebf95386d720..c8bee1834b54 100644 > > --- a/arch/powerpc/include/asm/secvar.h > > +++ b/arch/powerpc/include/asm/secvar.h > > @@ -23,6 +23,1

[PATCH v4 04/24] powerpc/secvar: Warn and error if multiple secvar ops are set

2023-01-19 Thread Andrew Donnellan
From: Russell Currey The secvar code only supports one consumer at a time. Multiple consumers aren't possible at this point in time, but we'd want it to be obvious if it ever could happen. Signed-off-by: Russell Currey Co-developed-by: Andrew Donnellan Signed-off-by: Andrew Donnellan --- v

[PATCH v4 02/24] powerpc/pseries: Fix alignment of PLPKS structures and buffers

2023-01-19 Thread Andrew Donnellan
A number of structures and buffers passed to PKS hcalls have alignment requirements, which could on occasion cause problems: - Authorisation structures must be 16-byte aligned and must not cross a page boundary - Label structures must not cross page boundaries - Password output buffers must no

[PATCH v4 03/24] powerpc/secvar: Use u64 in secvar_operations

2023-01-19 Thread Andrew Donnellan
From: Michael Ellerman There's no reason for secvar_operations to use uint64_t vs the more common kernel type u64. The types are compatible, but they require different printk format strings which can lead to confusion. Change all the secvar related routines to use u64. Signed-off-by: Michael E

[PATCH v4 00/24] pSeries dynamic secure boot secvar interface + platform keyring loading

2023-01-19 Thread Andrew Donnellan
This series exposes an interface to userspace for reading and writing secure variables contained within the PowerVM LPAR Platform KeyStore (PLPKS) for the purpose of configuring dynamic secure boot, and adds the glue required to load keys from the PLPKS into the platform keyring. This series build

[PATCH v4 01/24] powerpc/pseries: Fix handling of PLPKS object flushing timeout

2023-01-19 Thread Andrew Donnellan
plpks_confirm_object_flushed() uses the H_PKS_CONFIRM_OBJECT_FLUSHED hcall to check whether changes to an object in the Platform KeyStore have been flushed to non-volatile storage. The hcall returns two output values, the return code and the flush status. plpks_confirm_object_flushed() polls the h

[PATCH v4 09/24] powerpc/secvar: Extend sysfs to include config vars

2023-01-19 Thread Andrew Donnellan
From: Russell Currey 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 secvar implemen

[PATCH v4 10/24] powerpc/secvar: Allow backend to populate static list of variable names

2023-01-19 Thread Andrew Donnellan
Currently, the list of variables is populated by calling secvar_ops->get_next() repeatedly, which is explicitly modelled on the OPAL API (including the keylen parameter). For the upcoming PLPKS backend, we have a static list of variable names. It is messy to fit that into get_next(), so instead, l

[PATCH v4 06/24] powerpc/secvar: Handle format string in the consumer

2023-01-19 Thread Andrew Donnellan
From: Russell Currey The code that handles the format string in secvar-sysfs.c is entirely OPAL specific, so create a new "format" op in secvar_operations to make the secvar code more generic. No functional change. Signed-off-by: Russell Currey Signed-off-by: Andrew Donnellan --- v2: Use sy

[PATCH v4 08/24] powerpc/secvar: Clean up init error messages

2023-01-19 Thread Andrew Donnellan
Remove unnecessary prefixes from error messages in secvar_sysfs_init() (the file defines pr_fmt, so putting "secvar:" in every message is unnecessary). Make capitalisation and punctuation more consistent. Signed-off-by: Andrew Donnellan Signed-off-by: Russell Currey --- v3: New patch (ajd) ---

[PATCH v4 11/24] powerpc/secvar: Warn when PAGE_SIZE is smaller than max object size

2023-01-19 Thread Andrew Donnellan
Due to sysfs constraints, when writing to a variable, we can only handle writes of up to PAGE_SIZE. It's possible that the maximum object size is larger than PAGE_SIZE, in which case, print a warning on boot so that the user is aware. Signed-off-by: Andrew Donnellan Signed-off-by: Russell Currey

[PATCH v4 14/24] powerpc/pseries: Move PLPKS constants to header file

2023-01-19 Thread Andrew Donnellan
From: Russell Currey Move the constants defined in plpks.c to plpks.h, and standardise their naming, so that PLPKS consumers can make use of them later on. Signed-off-by: Russell Currey Co-developed-by: Andrew Donnellan Signed-off-by: Andrew Donnellan --- v3: New patch --- arch/powerpc/inc

[PATCH v4 05/24] powerpc/secvar: Use sysfs_emit() instead of sprintf()

2023-01-19 Thread Andrew Donnellan
From: Russell Currey The secvar format string and object size sysfs files are both ASCII text, and should use sysfs_emit(). No functional change. Suggested-by: Greg Kroah-Hartman Signed-off-by: Russell Currey Signed-off-by: Andrew Donnellan --- v2: New patch (gregkh) --- arch/powerpc/kern

[PATCH v4 20/24] powerpc/pseries: Add helpers to get PLPKS password

2023-01-19 Thread Andrew Donnellan
From: Russell Currey Add helper functions to get the PLPKS password. This will be used in a later patch to support passing the password between kernels over kexec. Signed-off-by: Russell Currey Signed-off-by: Andrew Donnellan --- v3: New patch --- arch/powerpc/include/asm/plpks.h | 11

[PATCH v4 13/24] powerpc/pseries: Move plpks.h to include directory

2023-01-19 Thread Andrew Donnellan
From: Russell Currey Move plpks.h from platforms/pseries/ to include/asm/. This is necessary for later patches to make use of the PLPKS from code in other subsystems. Signed-off-by: Russell Currey Signed-off-by: Andrew Donnellan --- v3: New patch --- .../powerpc/{platforms/pseries => includ

[PATCH v4 24/24] integrity/powerpc: Support loading keys from pseries secvar

2023-01-19 Thread Andrew Donnellan
From: Russell Currey The secvar object format is only in the device tree under powernv. We now have an API call to retrieve it in a generic way, so we should use that instead of having to handle the DT here. Add support for pseries secvar, with the "ibm,plpks-sb-v1" format. The object format is

[PATCH v4 17/24] powerpc/pseries: Log hcall return codes for PLPKS debug

2023-01-19 Thread Andrew Donnellan
From: Russell Currey The plpks code converts hypervisor return codes into their Linux equivalents so that users can understand them. Having access to the original return codes is really useful for debugging, so add a pr_debug() so we don't lose information from the conversion. Signed-off-by: Ru

[PATCH v4 15/24] powerpc/pseries: Expose PLPKS config values, support additional fields

2023-01-19 Thread Andrew Donnellan
From: Nayna Jain The plpks driver uses the H_PKS_GET_CONFIG hcall to retrieve configuration and status information about the PKS from the hypervisor. Update _plpks_get_config() to handle some additional fields. Add getter functions to allow the PKS configuration information to be accessed from o

[PATCH v4 16/24] powerpc/pseries: Implement signed update for PLPKS objects

2023-01-19 Thread Andrew Donnellan
From: Nayna Jain The Platform Keystore provides a signed update interface which can be used to create, replace or append to certain variables in the PKS in a secure fashion, with the hypervisor requiring that the update be signed using the Platform Key. Implement an interface to the H_PKS_SIGNED

Re: [PATCH] of: Make of framebuffer devices unique

2023-01-19 Thread Thomas Zimmermann
Hi Michal, thanks for fixing this issue. But the review time was way too short. Please see my comments below. Am 18.01.23 um 22:46 schrieb Michal Suchánek: On Wed, Jan 18, 2023 at 09:13:05PM +0100, Erhard F. wrote: On Tue, 17 Jan 2023 17:58:04 +0100 Michal Suchanek wrote: Since Linux 5.19

[PATCH] powerpc: remove checks for binutils older than 2.25

2023-01-19 Thread Masahiro Yamada
Commit e4412739472b ("Documentation: raise minimum supported version of binutils to 2.25") allows us to remove the checks for old binutils. There is no more user for ld-ifversion. Remove it as well. Signed-off-by: Masahiro Yamada --- arch/powerpc/Makefile | 22 +- arch/

[PATCH] powerpc: add crtsavres.o to always-y instead of extra-y

2023-01-19 Thread Masahiro Yamada
crtsavres.o is linked to modules, but as commit d0e628cd817f ("kbuild: doc: clarify the difference between extra-y and always-y") explained, 'make modules' does not build extra-y. The following command fails: $ make ARCH=powerpc LLVM=1 mrproper ps3_defconfig modules [snip] LD [M] arch/

Re: [PATCH 01/11] ARM: dts: ti: Fix pca954x i2c-mux node names

2023-01-19 Thread Tony Lindgren
* Geert Uytterhoeven [221202 18:50]: > "make dtbs_check": > > arch/arm/boot/dts/am3874-iceboard.dtb: pca9548@70: $nodename:0: > 'pca9548@70' does not match '^(i2c-?)?mux' > From schema: > Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.yaml > arch/arm/boot/dts/am3874-ice

Re: [PATCH] of: Make of framebuffer devices unique

2023-01-19 Thread Michal Suchánek
On Thu, Jan 19, 2023 at 09:00:44AM +0100, Thomas Zimmermann wrote: > Hi Michal, > > thanks for fixing this issue. But the review time was way too short. Please > see my comments below. > > Am 18.01.23 um 22:46 schrieb Michal Suchánek: > > On Wed, Jan 18, 2023 at 09:13:05PM +0100, Erhard F. wrote:

Re: [PATCH] of: Make of framebuffer devices unique

2023-01-19 Thread Thomas Zimmermann
Hi Am 19.01.23 um 10:01 schrieb Michal Suchánek: On Thu, Jan 19, 2023 at 09:00:44AM +0100, Thomas Zimmermann wrote: Hi Michal, thanks for fixing this issue. But the review time was way too short. Please see my comments below. Am 18.01.23 um 22:46 schrieb Michal Suchánek: On Wed, Jan 18, 2023

Re: [PATCH 17/41] mm/mmap: move VMA locking before anon_vma_lock_write call

2023-01-19 Thread Michal Hocko
On Wed 18-01-23 13:48:13, Suren Baghdasaryan wrote: > On Wed, Jan 18, 2023 at 1:33 PM Michal Hocko wrote: [...] > > So it will become: > > Move VMA flag modification (which now implies VMA locking) before > > vma_adjust_trans_huge() to ensure the modifications are done after VMA > > has been locke

[PATCH v2] of: Fix of platform build on powerpc due to bad of disaply code

2023-01-19 Thread Michal Suchanek
The commit 2d681d6a23a1 ("of: Make of framebuffer devices unique") breaks build because of wrong argument to snprintf. That certainly avoids the runtime error but is not the intended outcome. Also use standard device name format of-display.N for all created devices. Fixes: 2d681d6a23a1 ("of: Make

Re: [PATCH v2] of: Fix of platform build on powerpc due to bad of disaply code

2023-01-19 Thread Thomas Zimmermann
Am 19.01.23 um 10:53 schrieb Michal Suchanek: The commit 2d681d6a23a1 ("of: Make of framebuffer devices unique") breaks build because of wrong argument to snprintf. That certainly avoids the runtime error but is not the intended outcome. Also use standard device name format of-display.N for al

Re: [PATCH v2] of: Fix of platform build on powerpc due to bad of disaply code

2023-01-19 Thread Christophe Leroy
Le 19/01/2023 à 10:53, Michal Suchanek a écrit : > The commit 2d681d6a23a1 ("of: Make of framebuffer devices unique") > breaks build because of wrong argument to snprintf. That certainly > avoids the runtime error but is not the intended outcome. > > Also use standard device name format of-displ

Re: [PATCH v2] of: Fix of platform build on powerpc due to bad of disaply code

2023-01-19 Thread Michal Suchánek
Hello, On Thu, Jan 19, 2023 at 10:24:07AM +, Christophe Leroy wrote: > > > Le 19/01/2023 à 10:53, Michal Suchanek a écrit : > > The commit 2d681d6a23a1 ("of: Make of framebuffer devices unique") > > breaks build because of wrong argument to snprintf. That certainly > > avoids the runtime err

[PATCH V2] tools/perf/tests: Fix string substitutions in build id test

2023-01-19 Thread Athira Rajeev
The perf test named “build id cache operations” skips with below error on some distros: <<>> 78: build id cache operations : test child forked, pid 01 WARNING: wine not found. PE binaries will not be run. test binaries: /tmp/perf.ex.SHA1.PKz /tmp/perf.ex.

Re: [PATCH 1/2] tools/perf: Fix the file mode with copyfile while adding file to build-id cache

2023-01-19 Thread Athira Rajeev
> On 18-Jan-2023, at 7:20 PM, Arnaldo Carvalho de Melo wrote: > > Em Mon, Jan 16, 2023 at 10:31:30AM +0530, Athira Rajeev escreveu: >> The test "build id cache operations" fails on powerpc >> As below: >> >> Adding 5a0fd882b53084224ba47b624c55a469 ./tests/shell/../pe-file.exe: Ok >>