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

2023-01-20 Thread Michael Karcher
Hello Adrian, Could you post a kernel patch for that? I would be happy to test it on my SH-7785CLR board. Also, I'm going to file a bug report against GCC. I filed the bug already. It's https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108483. The diff is attached. It's published as CC0 in case

Re: [PATCH RESEND 0/8] Resend LED patches

2023-01-20 Thread Lee Jones
On Fri, 20 Jan 2023, Arnd Bergmann wrote: > On Fri, Jan 20, 2023, at 18:15, Lee Jones wrote: > > On Fri, 20 Jan 2023, Arnd Bergmann wrote: > > >> > Marek Behún (3): > >> > leds: turris-omnia: support HW controlled mode via private trigger > >> > leds: turris-omnia: initialize multi-intensity

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

2023-01-20 Thread Liam R. Howlett
* Suren Baghdasaryan [230120 12:50]: > On Fri, Jan 20, 2023 at 9:32 AM Matthew Wilcox wrote: > > > > On Fri, Jan 20, 2023 at 09:17:46AM -0800, Suren Baghdasaryan wrote: > > > On Fri, Jan 20, 2023 at 9:08 AM Liam R. Howlett > > > wrote: > > > > > > > > * Matthew Wilcox [230120 11:50]: > > > >

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

2023-01-20 Thread Suren Baghdasaryan
On Fri, Jan 20, 2023 at 9:21 AM Paul E. McKenney wrote: > > On Fri, Jan 20, 2023 at 04:49:42PM +, Matthew Wilcox wrote: > > On Fri, Jan 20, 2023 at 08:45:21AM -0800, Suren Baghdasaryan wrote: > > > On Fri, Jan 20, 2023 at 8:20 AM Suren Baghdasaryan > > > wrote: > > > > > > > > On Fri, Jan

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

2023-01-20 Thread Michael.Karcher
Hello! Can someone please file a GCC PR? With reduced testcase preferably. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108483 There you are. Kind regars,   Michael Karcher

[PATCH v3] of: Make of framebuffer devices unique

2023-01-20 Thread Michal Suchanek
Since Linux 5.19 this error is observed: sysfs: cannot create duplicate filename '/devices/platform/of-display' This is because multiple devices with the same name 'of-display' are created on the same bus. Update the code to create numbered device names for the non-boot disaplay. cc:

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

2023-01-20 Thread Michal Suchánek
Hello, On Fri, Jan 20, 2023 at 11:23:39AM -0600, Rob Herring wrote: > 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

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

2023-01-20 Thread Suren Baghdasaryan
On Fri, Jan 20, 2023 at 9:32 AM Matthew Wilcox wrote: > > On Fri, Jan 20, 2023 at 09:17:46AM -0800, Suren Baghdasaryan wrote: > > On Fri, Jan 20, 2023 at 9:08 AM Liam R. Howlett > > wrote: > > > > > > * Matthew Wilcox [230120 11:50]: > > > > On Fri, Jan 20, 2023 at 08:45:21AM -0800, Suren

Re: [PATCH RESEND 0/8] Resend LED patches

2023-01-20 Thread Arnd Bergmann
On Fri, Jan 20, 2023, at 18:15, Lee Jones wrote: > On Fri, 20 Jan 2023, Arnd Bergmann wrote: >> > Marek Behún (3): >> > leds: turris-omnia: support HW controlled mode via private trigger >> > leds: turris-omnia: initialize multi-intensity to full >> > leds: turris-omnia: change max

Re: [PATCH v2 01/10] dt-bindings: arm: fsl: add TQ-Systems LS1021A board

2023-01-20 Thread Krzysztof Kozlowski
On 20/01/2023 14:34, Alexander Stein wrote: > From: Matthias Schiffer > > TQMLS102xA is a SOM family using NXP LS1021A CPU family. > MBLS102xA is an evaluation mainboard for this SOM. > > Signed-off-by: Matthias Schiffer > Signed-off-by: Alexander Stein > --- > Changes in v2: > * Improved the

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

2023-01-20 Thread Matthew Wilcox
On Fri, Jan 20, 2023 at 09:17:46AM -0800, Suren Baghdasaryan wrote: > On Fri, Jan 20, 2023 at 9:08 AM Liam R. Howlett > wrote: > > > > * Matthew Wilcox [230120 11:50]: > > > On Fri, Jan 20, 2023 at 08:45:21AM -0800, Suren Baghdasaryan wrote: > > > > On Fri, Jan 20, 2023 at 8:20 AM Suren

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

2023-01-20 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

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

2023-01-20 Thread Paul E. McKenney
On Fri, Jan 20, 2023 at 04:49:42PM +, Matthew Wilcox wrote: > On Fri, Jan 20, 2023 at 08:45:21AM -0800, Suren Baghdasaryan wrote: > > On Fri, Jan 20, 2023 at 8:20 AM Suren Baghdasaryan > > wrote: > > > > > > On Fri, Jan 20, 2023 at 12:52 AM Michal Hocko wrote: > > > > > > > > On Thu

Re: [PATCH v2 10/10] ARM: add multi_v7_lpae_defconfig

2023-01-20 Thread Arnd Bergmann
On Fri, Jan 20, 2023, at 14:34, Alexander Stein wrote: > From: Nicolas Saenz Julienne > > The only missing configuration option preventing us from using > multi_v7_defconfig with the Raspberry Pi 4 is ARM_LPAE. It's needed as > the PCIe controller found on the SoC depends on 64bit addressing, yet

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

2023-01-20 Thread Suren Baghdasaryan
On Fri, Jan 20, 2023 at 9:08 AM Liam R. Howlett wrote: > > * Matthew Wilcox [230120 11:50]: > > On Fri, Jan 20, 2023 at 08:45:21AM -0800, Suren Baghdasaryan wrote: > > > On Fri, Jan 20, 2023 at 8:20 AM Suren Baghdasaryan > > > wrote: > > > > > > > > On Fri, Jan 20, 2023 at 12:52 AM Michal

Re: [PATCH RESEND 0/8] Resend LED patches

2023-01-20 Thread Lee Jones
On Fri, 20 Jan 2023, Arnd Bergmann wrote: > On Mon, Dec 26, 2022, at 13:36, Pali Rohár wrote: > > Linus Walleij suggested me to send these patches to SoC tree [1] > > instead. So I'm doing it. > > > > This patch series contains LED patches which are on the linux-leds > > mailing list for a long

Re: [PATCH v2 09/10] kbuild: Add config fragment merge functionality

2023-01-20 Thread Arnd Bergmann
On Fri, Jan 20, 2023, at 14:34, Alexander Stein wrote: > From: Nicolas Saenz Julienne > > So far this function was only used locally in powerpc, some other > architectures might benefit from it. Move it into > scripts/Makefile.defconf. > > Signed-off-by: Nicolas Saenz Julienne > Signed-off-by:

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

2023-01-20 Thread Liam R. Howlett
* Matthew Wilcox [230120 11:50]: > On Fri, Jan 20, 2023 at 08:45:21AM -0800, Suren Baghdasaryan wrote: > > On Fri, Jan 20, 2023 at 8:20 AM Suren Baghdasaryan > > wrote: > > > > > > On Fri, Jan 20, 2023 at 12:52 AM Michal Hocko wrote: > > > > > > > > On Thu 19-01-23 10:52:03, Suren Baghdasaryan

Re: [PATCH RESEND 0/8] Resend LED patches

2023-01-20 Thread Arnd Bergmann
On Mon, Dec 26, 2022, at 13:36, Pali Rohár wrote: > Linus Walleij suggested me to send these patches to SoC tree [1] > instead. So I'm doing it. > > This patch series contains LED patches which are on the linux-leds > mailing list for a long time without any future movement. Could you > please

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

2023-01-20 Thread Matthew Wilcox
On Fri, Jan 20, 2023 at 08:45:21AM -0800, Suren Baghdasaryan wrote: > On Fri, Jan 20, 2023 at 8:20 AM Suren Baghdasaryan wrote: > > > > On Fri, Jan 20, 2023 at 12:52 AM Michal Hocko wrote: > > > > > > On Thu 19-01-23 10:52:03, Suren Baghdasaryan wrote: > > > > On Thu, Jan 19, 2023 at 4:59 AM

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

2023-01-20 Thread Suren Baghdasaryan
On Fri, Jan 20, 2023 at 8:20 AM Suren Baghdasaryan wrote: > > On Fri, Jan 20, 2023 at 12:52 AM Michal Hocko wrote: > > > > On Thu 19-01-23 10:52:03, 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

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

2023-01-20 Thread Sean Anderson
On 1/20/23 03:06, Vinod Koul wrote: > On 19-01-23, 11:22, Sean Anderson wrote: >> 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

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

2023-01-20 Thread Suren Baghdasaryan
On Fri, Jan 20, 2023 at 12:52 AM Michal Hocko wrote: > > On Thu 19-01-23 10:52:03, 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

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

2023-01-20 Thread Paul E. McKenney
On Fri, Jan 20, 2023 at 09:57:05AM +0100, Michal Hocko wrote: > On Thu 19-01-23 11:17:07, Paul E. McKenney wrote: > > 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

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

2023-01-20 Thread Arnaldo Carvalho de Melo
Em Fri, Jan 20, 2023 at 08:51:59AM +, David Laight escreveu: > From: Arnaldo Carvalho de Melo > > Sent: 19 January 2023 17:00 > > > > Em Thu, Jan 19, 2023 at 03:49:15PM +, David Laight escreveu: > > > From: Athira Rajeev > > > > Sent: 19 January 2023 14:27 > > > ... > > > > The test

Re: [PATCH] tools/perf: Disable perf probe when libtraceevent is missing

2023-01-20 Thread Arnaldo Carvalho de Melo
Em Fri, Jan 20, 2023 at 05:32:56PM +0530, Athira Rajeev escreveu: > While parsing the tracepoint events in parse_events_add_tracepoint() > function, code checks for HAVE_LIBTRACEEVENT support. This is needed > since libtraceevent is necessary for tracepoint. But while adding > probe points, check

[PATCH v2 10/10] ARM: add multi_v7_lpae_defconfig

2023-01-20 Thread Alexander Stein
From: Nicolas Saenz Julienne The only missing configuration option preventing us from using multi_v7_defconfig with the Raspberry Pi 4 is ARM_LPAE. It's needed as the PCIe controller found on the SoC depends on 64bit addressing, yet can't be included as not all v7 boards support LPAE. Introduce

[PATCH v2 09/10] kbuild: Add config fragment merge functionality

2023-01-20 Thread Alexander Stein
From: Nicolas Saenz Julienne So far this function was only used locally in powerpc, some other architectures might benefit from it. Move it into scripts/Makefile.defconf. Signed-off-by: Nicolas Saenz Julienne Signed-off-by: Alexander Stein --- Directly applied from

[PATCH v2 08/10] ARM: multi_v7_defconfig: Add options to support TQMLS102xA series

2023-01-20 Thread Alexander Stein
Enable drivers used on TQMLS102xA + MBLS1021A. Signed-off-by: Alexander Stein --- Changes in v2: * Changed symbols to 'm' where possible arch/arm/configs/multi_v7_defconfig | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/configs/multi_v7_defconfig

[PATCH v2 07/10] ARM: dts: ls1021a: add TQMLS1021A/MBLS102xA LVDS CDTECH FC21 overlay

2023-01-20 Thread Alexander Stein
Add device tree overlay for LVDS display usage. Signed-off-by: Alexander Stein --- Changes in v2: * None arch/arm/boot/dts/Makefile| 2 + ...1021a-tqmls1021a-mbls1021a-cdtech-fc21.dts | 55 +++ 2 files changed, 57 insertions(+) create mode 100644

[PATCH v2 06/10] ARM: dts: ls1021a: add TQMLS1021A/MBLS102xA LVDS CDTECH DC44 overlay

2023-01-20 Thread Alexander Stein
Add device tree overlay for LVDS display usage. Signed-off-by: Alexander Stein --- Changes in v2: * None arch/arm/boot/dts/Makefile| 2 + ...1021a-tqmls1021a-mbls1021a-cdtech-dc44.dts | 55 +++ 2 files changed, 57 insertions(+) create mode 100644

[PATCH v2 05/10] ARM: dts: ls1021a: add TQMLS1021A/MBLS102xA HDMI overlay

2023-01-20 Thread Alexander Stein
Add device tree overlay for HDMI usage. Signed-off-by: Alexander Stein --- Changes in v2: * None arch/arm/boot/dts/Makefile| 2 ++ .../ls1021a-tqmls1021a-mbls1021a-hdmi.dtso| 36 +++ 2 files changed, 38 insertions(+) create mode 100644

[PATCH v2 04/10] ARM: dts: ls1021a: add TQMLS1021A/MBLS102xA LVDS TM070JVHG33 overlay

2023-01-20 Thread Alexander Stein
Add device tree overlay for LVDS display usage. Signed-off-by: Alexander Stein --- Changes in v2: * None arch/arm/boot/dts/Makefile| 5 ++ ...tqmls1021a-mbls1021a-lvds-tm070jvhg33.dtso | 56 +++ 2 files changed, 61 insertions(+) create mode 100644

[PATCH v2 03/10] ARM: dts: ls1021a: add TQMLS1021A flash partition layout

2023-01-20 Thread Alexander Stein
The bootloader does not add the partitions into DT, so add them manually here. Signed-off-by: Alexander Stein --- Changes in v2: * None arch/arm/boot/dts/ls1021a-tqmls1021a.dtsi | 31 +++ 1 file changed, 31 insertions(+) diff --git

[PATCH v2 02/10] ARM: dts: ls1021a: add TQ-Systems MBLS102xA device tree

2023-01-20 Thread Alexander Stein
Add device tree for the MBLS102xA mainboard with TQMLS1021A SoM. Signed-off-by: Alexander Stein --- Changes in v2: * Remove unnecessary status = "okay" * Remove underscore from node names * Move reg direct below compatiblefor i2c devices * Remove i2c device nodes without software support Add a

[PATCH v2 01/10] dt-bindings: arm: fsl: add TQ-Systems LS1021A board

2023-01-20 Thread Alexander Stein
From: Matthias Schiffer TQMLS102xA is a SOM family using NXP LS1021A CPU family. MBLS102xA is an evaluation mainboard for this SOM. Signed-off-by: Matthias Schiffer Signed-off-by: Alexander Stein --- Changes in v2: * Improved the description mentioning this is a socketable module

[PATCH v2 00/10] TQMLS1021A support

2023-01-20 Thread Alexander Stein
Hi, this is the second round of this series to add support for the TQMLS1021A using the MBLS1021A mainboard. The changelog is included in the individual patches but the most notable one is picking up the old patch series for adding lpae config snippet support. Best regards, Alexander Alexander

Re: [PATCH v3 16/51] cpuidle: Annotate poll_idle()

2023-01-20 Thread Peter Zijlstra
On Thu, Jan 12, 2023 at 08:43:30PM +0100, Peter Zijlstra wrote: > The __cpuidle functions will become a noinstr class, as such they need > explicit annotations. > > Signed-off-by: Peter Zijlstra (Intel) > Reviewed-by: Rafael J. Wysocki > Acked-by: Frederic Weisbecker > Tested-by: Tony Lindgren

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

2023-01-20 Thread Huacai Chen
For LoongArch parts, Acked-by: Huacai Chen On Thu, Jan 19, 2023 at 10:37 PM Valentin Schneider wrote: > > 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

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

2023-01-20 Thread Michal Suchánek
On Thu, Jan 19, 2023 at 11:34:46AM +0100, Michal Suchánek wrote: > 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

[PATCH] tools/perf: Disable perf probe when libtraceevent is missing

2023-01-20 Thread Athira Rajeev
While parsing the tracepoint events in parse_events_add_tracepoint() function, code checks for HAVE_LIBTRACEEVENT support. This is needed since libtraceevent is necessary for tracepoint. But while adding probe points, check for LIBTRACEEVENT is not done in case of perf probe. Hence, in environment

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

2023-01-20 Thread Michal Suchánek
On Fri, Jan 20, 2023 at 12:39:23PM +0100, Thomas Zimmermann wrote: > Hi > > Am 20.01.23 um 12:27 schrieb Michal Suchánek: > > Hello, > > > > On Thu, Jan 19, 2023 at 04:20:57PM +0100, Thomas Zimmermann wrote: > > > Hi > > > > > > Am 19.01.23 um 14:23 schrieb Michal Suchánek: > > > > On Thu, Jan

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

2023-01-20 Thread David Laight
From: Segher Boessenkool > Sent: 20 January 2023 10:54 ... > > > I suggest to file a bug against gcc complaining about a "spurious > > > warning", and using "-Werror -Wno-error-sizeof-pointer-div" until gcc is > > > adapted to not emit the warning about the pointer division if the result > > > is

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

2023-01-20 Thread Laurent Dufour
On 19/01/2023 19:29:52, Laurent Dufour wrote: > 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

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

2023-01-20 Thread Thomas Zimmermann
Hi Am 20.01.23 um 12:27 schrieb Michal Suchánek: Hello, On Thu, Jan 19, 2023 at 04:20:57PM +0100, Thomas Zimmermann wrote: 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:

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

2023-01-20 Thread Michal Suchánek
Hello, On Thu, Jan 19, 2023 at 04:20:57PM +0100, Thomas Zimmermann wrote: > 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: > > > > > > > > > > > >

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

2023-01-20 Thread Segher Boessenkool
On Thu, Jan 19, 2023 at 09:31:21PM -0600, Rob Landley wrote: > On 1/19/23 16:11, Michael.Karcher wrote: > > I don't see a clear bug at this point. We are talking about the C expression > > > >   __same_type((void*)0, (void*)0)? 0 : sizeof((void*)0)/sizeof(*((void*0)) (__same_type is a kernel

[PATCH] powerpc/powernv/ioda: Skip unallocated resources when mapping to PE

2023-01-20 Thread Frederic Barrat
pnv_ioda_setup_pe_res() calls opal to map a resource with a PE. However, the code assumes the resource is allocated and it uses the resource address to find out the segment(s) which need to be mapped to the PE. In the unlikely case where the resource hasn't been allocated, the computation for the

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

2023-01-20 Thread Michal Hocko
On Thu 19-01-23 11:17:07, Paul E. McKenney wrote: > 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

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

2023-01-20 Thread Michal Hocko
On Thu 19-01-23 10:52:03, 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 cause regressions

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

2023-01-20 Thread David Laight
From: Arnaldo Carvalho de Melo > Sent: 19 January 2023 17:00 > > 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

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

2023-01-20 Thread John Paul Adrian Glaubitz
Hi Michael! On 1/19/23 23:11, Michael.Karcher wrote: I suggest to file a bug against gcc complaining about a "spurious warning", and using "-Werror -Wno-error-sizeof-pointer-div" until gcc is adapted to not emit the warning about the pointer division if the result is not used. Could you post

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

2023-01-20 Thread Vinod Koul
On 19-01-23, 11:22, Sean Anderson wrote: > 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

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

2023-01-20 Thread Disha Goel
Environment with /bin/sh # readlink -f $(which sh) /bin/dash Running perf test from tmp.perf/urgent # ./perf test -v "build id cache operations" 73: build id cache operations : --- start --- test child forked, pid 71063 WARNING: wine not found. PE binaries

[PATCH v4 07/24] powerpc/secvar: Handle max object size in the consumer

2023-01-20 Thread Andrew Donnellan
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 platform. Should be no functional change. Signed-off-by: Russell Currey

[PATCH v4 12/24] powerpc/secvar: Don't print error on ENOENT when reading variables

2023-01-20 Thread Andrew Donnellan
If attempting to read the size or data attributes of a non-existent variable (which will be possible after a later patch to expose the PLPKS via the secvar interface), don't spam the kernel log with error messages. Only print errors for return codes that aren't ENOENT. Reported-by: Sudhakar

[PATCH v4 18/24] powerpc/pseries: Make caller pass buffer to plpks_read_var()

2023-01-20 Thread Andrew Donnellan
Currently, plpks_read_var() allocates a buffer to pass to the H_PKS_READ_OBJECT hcall, then allocates another buffer, of the caller's preferred size if necessary, into which the data is copied, and returns that buffer to the caller. This is a bit over the top - while we probably still want to

[PATCH v4 23/24] integrity/powerpc: Improve error handling & reporting when loading certs

2023-01-20 Thread Andrew Donnellan
From: Russell Currey A few improvements to load_powerpc.c: - include integrity.h for the pr_fmt() - move all error reporting out of get_cert_list() - use ERR_PTR() to better preserve error detail - don't use pr_err() for missing keys Signed-off-by: Russell Currey Signed-off-by: Andrew

[PATCH v4 19/24] powerpc/pseries: Turn PSERIES_PLPKS into a hidden option

2023-01-20 Thread Andrew Donnellan
It seems a bit unnecessary for the PLPKS code to have a user-visible config option when it doesn't do anything on its own, and there's existing options for enabling Secure Boot-related features. It should be enabled by PPC_SECURE_BOOT, which will eventually be what uses PLPKS to populate

[PATCH v4 21/24] powerpc/pseries: Pass PLPKS password on kexec

2023-01-20 Thread Andrew Donnellan
From: Russell Currey Before interacting with the PLPKS, we ask the hypervisor to generate a password for the current boot, which is then required for most further PLPKS operations. If we kexec into a new kernel, the new kernel will try and fail to generate a new password, as the password has

[PATCH v4 22/24] powerpc/pseries: Implement secvars for dynamic secure boot

2023-01-20 Thread Andrew Donnellan
From: Russell Currey 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 variables for pseries dynamic secure boot through the