Re: [PATCH v2 09/12] lib/crc/s390: migrate s390-optimized CRC code into lib/crc/

2025-06-14 Thread Alexander Gordeev
On Fri, Jun 13, 2025 at 10:11:43AM -0700, Eric Biggers wrote: > > Hi Eric, > > > > With this series I am getting on s390: > > > > alg: hash: skipping comparison tests for crc32c-s390 because crc32c-generic > > is unavailable > > > > Thanks! > > I think that's actually from "crypto/crc32c: regi

[PATCH v3 3/4] ALSA: pcm: Replace [audio_]tstamp_[n]sec by struct __snd_timespec in struct snd_pcm_mmap_status32

2025-06-14 Thread Christophe Leroy
To match struct __snd_pcm_mmap_status and enable reuse of snd_pcm_sync_ptr_get_user() and snd_pcm_sync_ptr_put_user() by snd_pcm_sync_ptr() replace tstamp_sec and tstamp_nsec fields by a struct __snd_timespec in struct snd_pcm_mmap_status32. Do the same with audio_tstamp_sec and audio_tstamp_nsec.

[PATCH v3 1/4] ALSA: pcm: refactor copy from/to user in SNDRV_PCM_IOCTL_SYNC_PTR

2025-06-14 Thread Christophe Leroy
In an effort of optimising SNDRV_PCM_IOCTL_SYNC_PTR ioctl which is a hot path, lets first refactor the copy from and to user with macros. This is done with macros and not static inline fonctions because types differs between the different versions of snd_pcm_sync_ptr() like functions. First step

[PATCH v3 2/4] ALSA: pcm: Convert SNDRV_PCM_IOCTL_SYNC_PTR to user_access_begin/user_access_end()

2025-06-14 Thread Christophe Leroy
With user access protection (Called SMAP on x86 or KUAP on powerpc) each and every call to get_user() or put_user() performs heavy operations to unlock and lock kernel access to userspace. SNDRV_PCM_IOCTL_SYNC_PTR is a hot path which is called really often and needs to run as fast as possible. To

[PATCH v3 4/4] ALSA: pcm: Convert snd_pcm_sync_ptr() to user_access_begin/user_access_end()

2025-06-14 Thread Christophe Leroy
Now that snd_pcm_sync_ptr_get_user() and snd_pcm_sync_ptr_put_user() are converted to user_access_begin/user_access_end(), snd_pcm_sync_ptr_get_user() is more efficient than a raw get_user() followed by a copy_from_user(). And because copy_{to/from}_user() are generic functions focussed on transfer

Re: [PATCH v2 2/4] ALSA: pcm: Convert SNDRV_PCM_IOCTL_SYNC_PTR to user_access_begin/user_access_end()

2025-06-14 Thread Christophe Leroy
Le 13/06/2025 à 18:41, Takashi Iwai a écrit : On Fri, 13 Jun 2025 17:37:09 +0200, Christophe Leroy wrote: With user access protection (Called SMAP on x86 or KUAP on powerpc) each and every call to get_user() or put_user() performs heavy operations to unlock and lock kernel access to userspac

[PATCH v3 0/4] ALSA: pcm: Convert SNDRV_PCM_IOCTL_SYNC_PTR to user_access_begin/user_access_end()

2025-06-14 Thread Christophe Leroy
This series converts all variants of SNDRV_PCM_IOCTL_SYNC_PTR to user_access_begin/user_access_end() in order to reduce the CPU load measured in function snd_pcm_ioctl. With the current implementation, "perf top" reports a high load in snd_pcm_iotcl(). Most calls to that function are SNDRV_PCM_IO

Re: [PATCH v1] powerpc/eeh: Fix missing PE bridge reconfiguration during VFIO EEH recovery

2025-06-14 Thread Madhavan Srinivasan
On Thu, 08 May 2025 02:29:28 -0400, Narayana Murty N wrote: > VFIO EEH recovery for PCI passthrough devices fails on PowerNV and pseries > platforms due to missing host-side PE bridge reconfiguration. In the > current implementation, eeh_pe_configure() only performs RTAS or OPAL-based > bridge reco

Re: [PATCH] powerpc/vdso: Fix build of VDSO32 with pcrel

2025-06-14 Thread Madhavan Srinivasan
On Mon, 12 May 2025 20:14:55 +0200, Christophe Leroy wrote: > Building vdso32 on power10 with pcrel leads to following errors: > > VDSO32A arch/powerpc/kernel/vdso/gettimeofday-32.o > arch/powerpc/kernel/vdso/gettimeofday.S: Assembler messages: > arch/powerpc/kernel/vdso/gettim

Re: [PATCH v2] powerpc: Fix struct termio related ioctl macros

2025-06-14 Thread Madhavan Srinivasan
On Sat, 17 May 2025 19:52:37 +0530, Madhavan Srinivasan wrote: > Since termio interface is now obsolete, include/uapi/asm/ioctls.h > has some constant macros referring to "struct termio", this caused > build failure at userspace. > > In file included from /usr/include/asm/ioctl.h:12, >

Re: [PATCH RESEND] powerpc: dts: mpc8315erdb: Add GPIO controller node

2025-06-14 Thread Madhavan Srinivasan
On Wed, 11 Jun 2025 21:01:01 +0200, J. Neuschäfer wrote: > The MPC8315E SoC and variants have a GPIO controller at IMMR + 0xc00. > This node was previously missing from the device tree. > > Applied to powerpc/fixes. [1/1] powerpc: dts: mpc8315erdb: Add GPIO controller node https://git.ker

Re: [PATCH RESEND v2] powerpc/microwatt: Fix model property in device tree

2025-06-14 Thread Madhavan Srinivasan
On Wed, 11 Jun 2025 23:07:49 +0200, J. Neuschäfer wrote: > The standard property for the model name is called "model". > > Applied to powerpc/fixes. [1/1] powerpc/microwatt: Fix model property in device tree https://git.kernel.org/powerpc/c/4e6d080acfda5344ccbc63afe778830e22be4be9 Thanks

[powerpc:merge] BUILD SUCCESS 2ceef7f4b099382dbdcfbe08852724165c938fec

2025-06-14 Thread kernel test robot
15.1.0 arc allnoconfiggcc-15.1.0 arc allyesconfiggcc-15.1.0 arc randconfig-001-20250614gcc-8.5.0 arc randconfig-002-20250614gcc-12.4.0 arm allmodconfiggcc-

[powerpc:fixes-test] BUILD SUCCESS ab107276607af90b13a5994997e19b7b9731e251

2025-06-14 Thread kernel test robot
successfully. More configs may be tested in the coming days. tested configs: powerpcallnoconfiggcc-15.1.0 powerpcrandconfig-001-20250614gcc-13.3.0 powerpcrandconfig-002-20250614clang-21 powerpcrandconfig-003-20250614gcc-12.4.0 powerpc64 randconfig-001

[PATCH] Documentation: embargoed-hardware-issues.rst: Add myself for Power

2025-06-14 Thread Madhavan Srinivasan
Adding myself as the contact for Power Signed-off-by: Madhavan Srinivasan --- Documentation/process/embargoed-hardware-issues.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/process/embargoed-hardware-issues.rst b/Documentation/process/embargoed-hardware-issues.rst index d

Re: [PATCH v2 00/12] lib/crc: improve how arch-optimized code is integrated

2025-06-14 Thread Alexander Gordeev
On Sat, Jun 07, 2025 at 01:04:42PM -0700, Eric Biggers wrote: Hi Eric, > This series is also available at: > > git fetch > https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git > lib-crc-arch-v2 ... I tried git://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git crc

Re: [PATCH v3 0/4] ALSA: pcm: Convert SNDRV_PCM_IOCTL_SYNC_PTR to user_access_begin/user_access_end()

2025-06-14 Thread Takashi Iwai
On Sat, 14 Jun 2025 08:43:13 +0200, Christophe Leroy wrote: > > This series converts all variants of SNDRV_PCM_IOCTL_SYNC_PTR to > user_access_begin/user_access_end() in order to reduce the CPU load > measured in function snd_pcm_ioctl. > > With the current implementation, "perf top" reports a h