Re: [PATCH 1/3] crypto: X25519 low-level primitives for ppc64le.

2024-05-16 Thread Andy Polyakov
Hi, +.abiversion2 I'd prefer that was left to the compiler flags. Problem is that it's the compiler that is responsible for providing this directive in the intermediate .s prior invoking the assembler. And there is no assembler flag to pass through -Wa. If concern is ABI neutrality, t

Re: [PATCH 1/3] crypto: X25519 low-level primitives for ppc64le.

2024-05-16 Thread Danny Tsen
On 5/15/24 11:53 PM, Michael Ellerman wrote: Hi Danny, Danny Tsen writes: Use the perl output of x25519-ppc64.pl from CRYPTOGAMs and added three supporting functions, x25519_fe51_sqr_times, x25519_fe51_frombytes and x25519_fe51_tobytes. For other algorithms we have checked-in the perl scrip

Re: [PATCH 1/3] crypto: X25519 low-level primitives for ppc64le.

2024-05-16 Thread Danny Tsen
Hi Andy, I learned something here.  Will fix this.  Thanks. -Danny On 5/16/24 3:38 AM, Andy Polyakov wrote: Hi, +.abiversion    2 I'd prefer that was left to the compiler flags. Problem is that it's the compiler that is responsible for providing this directive in the intermediate .s pri

Re: [PATCH 1/3] crypto: X25519 low-level primitives for ppc64le.

2024-05-16 Thread Michael Ellerman
Andy Polyakov writes: > Hi, > >>> +.abiversion2 >> >> I'd prefer that was left to the compiler flags. > > Problem is that it's the compiler that is responsible for providing this > directive in the intermediate .s prior invoking the assembler. And there > is no assembler flag to pass throu

Re: [PATCHv4 9/9] ASoC: dt-bindings: fsl-asoc-card: add compatible for generic codec

2024-05-16 Thread Mark Brown
On Wed, May 15, 2024 at 03:54:11PM +0200, Elinor Montmasson wrote: > Add documentation about new dts bindings following new support > for compatible "fsl,imx-audio-generic". >audio-codec: > -$ref: /schemas/types.yaml#/definitions/phandle > -description: The phandle of an audio codec >

Re: [PATCHv4 7/9] ASoC: fsl-asoc-card: add DT clock "cpu_sysclk" with generic codec

2024-05-16 Thread Mark Brown
On Wed, May 15, 2024 at 03:54:09PM +0200, Elinor Montmasson wrote: > Add an optional DT clock "cpu_sysclk" to get the CPU DAI system-clock > frequency when using the generic codec. > It is set for both Tx and Rx. > The way the frequency value is used is up to the CPU DAI driver > implementation.

[PATCH 0/1] powerpc/numa: Make cpu/memory less numa-node online

2024-05-16 Thread Nilay Shroff
Hi, On NUMA aware system, we make a numa-node online only if that node is attached to cpu/memory. However it's possible that we have some PCI/IO device affinitized to a numa-node which is not currently online. In such case we set the numa-node id of the corresponding PCI device to -1 (NUMA_NO_

[PATCH 1/1] powerpc/numa: Online a node if PHB is attached.

2024-05-16 Thread Nilay Shroff
In the current design, a numa-node is made online only if that node is attached to cpu/memory. With this design, if any PCI/IO device is found to be attached to a numa-node which is not online then the numa-node id of the corresponding PCI/IO device is set to NUMA_NO_NODE(-1). This design may negat

Re: [PATCHv4 8/9] ASoC: fsl-asoc-card: add DT property "cpu-system-clock-direction-out"

2024-05-16 Thread Mark Brown
On Wed, May 15, 2024 at 03:54:10PM +0200, Elinor Montmasson wrote: > Add new optional DT property "cpu-system-clock-direction-out" to set > sysclk direction as "out" for the CPU DAI when using the generic codec. > It is set for both Tx and Rx. > If not set, the direction is "in". > The way the dire

[PATCH] powerpc/fadump: Fix section mismatch warning

2024-05-16 Thread Michael Ellerman
With some compilers/configs fadump_setup_param_area() isn't inlined into its caller (which is __init), leading to a section mismatch warning: WARNING: modpost: vmlinux: section mismatch in reference: fadump_setup_param_area+0x200 (section: .text.fadump_setup_param_area) -> memblock_phys_allo

Re: [PATCH 1/3] crypto: X25519 low-level primitives for ppc64le.

2024-05-16 Thread Andy Polyakov
Hi, +.abiversion2 I'd prefer that was left to the compiler flags. Problem is that it's the compiler that is responsible for providing this directive in the intermediate .s prior invoking the assembler. And there is no assembler flag to pass through -Wa. Hmm, right. But none of our exis

[PATCH] PowerPC: Replace kretprobe with rethook

2024-05-16 Thread Abhishek Dubey
This is an adaptation of commit f3a112c0c40d ("x86,rethook,kprobes: Replace kretprobe with rethook on x86") to Power. Replaces the kretprobe code with rethook on Power. With this patch, kretprobe on Power uses the rethook instead of kretprobe specific trampoline code. Reference to other archs: co

[PATCH] Perf: Calling available function for stats printing

2024-05-16 Thread Abhishek Dubey
For printing dump_trace, use existing stats_print() function. Signed-off-by: Abhishek Dubey --- tools/perf/builtin-report.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index dcd93ee5fc24..3cabd5b0bfec 100644 --

Re: [PATCH v15 00/16] Add audio support in v4l2 framework

2024-05-16 Thread Jaroslav Kysela
On 15. 05. 24 22:33, Nicolas Dufresne wrote: Hi, GStreamer hat on ... Le mercredi 15 mai 2024 à 12:46 +0200, Jaroslav Kysela a écrit : On 15. 05. 24 12:19, Takashi Iwai wrote: On Wed, 15 May 2024 11:50:52 +0200, Jaroslav Kysela wrote: On 15. 05. 24 11:17, Hans Verkuil wrote: Hi Jaroslav,

Re: [PATCH v15 00/16] Add audio support in v4l2 framework

2024-05-16 Thread Jaroslav Kysela
On 15. 05. 24 15:34, Shengjiu Wang wrote: On Wed, May 15, 2024 at 6:46 PM Jaroslav Kysela wrote: On 15. 05. 24 12:19, Takashi Iwai wrote: On Wed, 15 May 2024 11:50:52 +0200, Jaroslav Kysela wrote: On 15. 05. 24 11:17, Hans Verkuil wrote: Hi Jaroslav, On 5/13/24 13:56, Jaroslav Kysela wrot

[PATCH v2 1/3] crypto: X25519 low-level primitives for ppc64le.

2024-05-16 Thread Danny Tsen
Use the perl output of x25519-ppc64.pl from CRYPTOGAMs (see https://github.com/dot-asm/cryptogams/) and added four supporting functions, x25519_fe51_sqr_times, x25519_fe51_frombytes, x25519_fe51_tobytes and x25519_cswap. Signed-off-by: Danny Tsen --- arch/powerpc/crypto/curve25519-ppc64le_asm.S

[PATCH v2 0/3] crypto: X25519 supports for ppc64le

2024-05-16 Thread Danny Tsen
This patch series provide X25519 support for ppc64le with a new module curve25519-ppc64le. The implementation is based on CRYPTOGAMs perl output from x25519-ppc64.pl. (see https://github.com/dot-asm/cryptogams/) Modified and added 4 supporting functions. This patch has passed the selftest by runn

[PATCH v2 2/3] crypto: X25519 core functions for ppc64le

2024-05-16 Thread Danny Tsen
X25519 core functions to handle scalar multiplication for ppc64le. Signed-off-by: Danny Tsen --- arch/powerpc/crypto/curve25519-ppc64le-core.c | 299 ++ 1 file changed, 299 insertions(+) create mode 100644 arch/powerpc/crypto/curve25519-ppc64le-core.c diff --git a/arch/powerpc/

[PATCH v2 3/3] crypto: Update Kconfig and Makefile for ppc64le x25519.

2024-05-16 Thread Danny Tsen
Defined CRYPTO_CURVE25519_PPC64 to support X25519 for ppc64le. Added new module curve25519-ppc64le for X25519. Signed-off-by: Danny Tsen --- arch/powerpc/crypto/Kconfig | 11 +++ arch/powerpc/crypto/Makefile | 2 ++ 2 files changed, 13 insertions(+) diff --git a/arch/powerpc/crypto/K

Re: [PATCH 2/3] crypto: X25519 core functions for ppc64le

2024-05-16 Thread Segher Boessenkool
On Wed, May 15, 2024 at 10:29:56AM +0200, Andy Polyakov wrote: > >+static void cswap(fe51 p, fe51 q, unsigned int bit) > > The "c" in cswap stands for "constant-time," and the problem is that > contemporary compilers have exhibited the ability to produce > non-constant-time machine code as resul

Re: [PATCH 1/3] crypto: X25519 low-level primitives for ppc64le.

2024-05-16 Thread Segher Boessenkool
Hi! On Thu, May 16, 2024 at 10:06:58PM +1000, Michael Ellerman wrote: > Andy Polyakov writes: > >>> +.abiversion 2 > >> > >> I'd prefer that was left to the compiler flags. > > > > Problem is that it's the compiler that is responsible for providing this > > directive in the intermediate .s p

Re: [PATCH v2 1/1] arch/fault: don't print logs for pte marker poison errors

2024-05-16 Thread Axel Rasmussen
On Wed, May 15, 2024 at 1:19 PM Borislav Petkov wrote: > > On Wed, May 15, 2024 at 12:19:16PM -0700, Axel Rasmussen wrote: > > An unprivileged process can allocate a VMA, use the userfaultfd API to > > install one of these PTE markers, and then register a no-op SIGBUS > > handler. Now it can acces

Re: [PATCH RESEND v8 16/16] bpf: remove CONFIG_BPF_JIT dependency on CONFIG_MODULES of

2024-05-16 Thread Klara Modin
trace ]--- # bad: [dbd9e2e056d8577375ae4b31ada94f8aa3769e8a] Add linux-next specific files for 20240516 git bisect start 'next/master' # status: waiting for good commit(s), bad commit known # good: [8c06da67d0bd3139a97f301b4aa9c482b9d4f29e] Merge tag 'livepatching-for-

Re: [PATCH v8] arch/powerpc/kvm: Add support for reading VPA counters for pseries guests

2024-05-16 Thread kernel test robot
Hi Gautam, kernel test robot noticed the following build errors: [auto build test ERROR on powerpc/topic/ppc-kvm] [also build test ERROR on powerpc/next powerpc/fixes kvm/queue mst-vhost/linux-next linus/master v6.9 next-20240516] [cannot apply to kvm/linux-next] [If your patch is applied to

Re: [PATCH v2 2/2] powerpc: hotplug driver bridge support

2024-05-16 Thread Oliver O'Halloran
On Tue, May 14, 2024 at 11:54 PM Krishna Kumar wrote: > > There is an issue with the hotplug operation when it's done on the > bridge/switch slot. The bridge-port and devices behind the bridge, which > become offline by hot-unplug operation, don't get hot-plugged/enabled by > doing hot-plug operat

[powerpc:next] BUILD SUCCESS 61700f816e6f58f6b1aaa881a69a784d146e30f0

2024-05-16 Thread kernel test robot
allmodconfig gcc i386 allnoconfig gcc i386 allyesconfig gcc i386 buildonly-randconfig-001-20240516 clang i386 buildonly-randconfig-001-20240517 clang i386 buildonly-randconfig-002-20240516 clang i386

Re: [PATCH] PowerPC: Replace kretprobe with rethook

2024-05-16 Thread kernel test robot
Hi Abhishek, kernel test robot noticed the following build errors: [auto build test ERROR on powerpc/next] [also build test ERROR on powerpc/fixes linus/master v6.9 next-20240516] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use

Re: [PATCH] PowerPC: Replace kretprobe with rethook

2024-05-16 Thread kernel test robot
Hi Abhishek, kernel test robot noticed the following build errors: [auto build test ERROR on powerpc/next] [also build test ERROR on powerpc/fixes linus/master v6.9 next-20240516] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use