Re: [PATCH 6/8] CMDLINE: x86: convert to generic builtin command line

2023-11-09 Thread kernel test robot
Hi Daniel, kernel test robot noticed the following build warnings: [auto build test WARNING on v6.6] [cannot apply to arm64/for-next/core efi/next tip/x86/core robh/for-next linus/master next-20231110] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting

[PATCH v9 15/15] media: vim2m-audio: add virtual driver for audio memory to memory

2023-11-09 Thread Shengjiu Wang
Audio memory to memory virtual driver use video memory to memory virtual driver vim2m.c as example. The main difference is device type is VFL_TYPE_AUDIO and device cap type is V4L2_CAP_AUDIO_M2M. The device_run function is a dummy function, which is simply copy the data from input buffer to

[PATCH v9 14/15] media: imx-asrc: Add memory to memory driver

2023-11-09 Thread Shengjiu Wang
Implement the ASRC memory to memory function using the v4l2 framework, user can use this function with v4l2 ioctl interface. User send the output and capture buffer to driver and driver store the converted data to the capture buffer. This feature can be shared by ASRC and EASRC drivers

[PATCH v9 13/15] media: uapi: Add an entity type for audio resampler

2023-11-09 Thread Shengjiu Wang
Add and document a media entity type for audio resampler. It is MEDIA_ENT_F_PROC_AUDIO_RESAMPLER. Signed-off-by: Shengjiu Wang --- Documentation/userspace-api/media/mediactl/media-types.rst | 5 + include/uapi/linux/media.h | 1 + 2 files changed, 6

[PATCH v9 12/15] media: uapi: Declare interface types for Audio

2023-11-09 Thread Shengjiu Wang
Declare the interface types that will be used by Audio. The type is MEDIA_INTF_T_V4L_AUDIO. Signed-off-by: Shengjiu Wang --- .../userspace-api/media/mediactl/media-types.rst| 4 drivers/media/v4l2-core/v4l2-dev.c | 4 drivers/media/v4l2-core/v4l2-mem2mem.c

[PATCH v9 11/15] media: uapi: Add audio rate controls support

2023-11-09 Thread Shengjiu Wang
Add V4L2_CID_M2M_AUDIO_SOURCE_RATE and V4L2_CID_M2M_AUDIO_DEST_RATE new IDs for rate control. Add V4L2_CID_M2M_AUDIO_SOURCE_RATE_OFFSET and V4L2_CID_M2M_AUDIO_DEST_RATE_OFFSET for clock drift. Signed-off-by: Shengjiu Wang --- .../media/v4l/ext-ctrls-audio-m2m.rst | 20

[PATCH v9 10/15] media: uapi: Add V4L2_CTRL_TYPE_FIXED_POINT

2023-11-09 Thread Shengjiu Wang
Fixed point controls are used by the user to configure a fixed point value in 64bits, which Q31.32 format. Signed-off-by: Shengjiu Wang --- .../userspace-api/media/v4l/vidioc-g-ext-ctrls.rst | 13 +++-- .../userspace-api/media/v4l/vidioc-queryctrl.rst| 9 -

[PATCH v9 09/15] media: uapi: Add V4L2_CTRL_CLASS_M2M_AUDIO

2023-11-09 Thread Shengjiu Wang
The Audio M2M class includes controls for audio memory-to-memory use cases. The controls can be used for audio codecs, audio preprocessing, audio postprocessing. Signed-off-by: Shengjiu Wang --- .../userspace-api/media/v4l/common.rst| 1 + .../media/v4l/ext-ctrls-audio-m2m.rst

[PATCH v9 08/15] media: uapi: Define audio sample format fourcc type

2023-11-09 Thread Shengjiu Wang
The audio sample format definition is from alsa, the header file is include/uapi/sound/asound.h, but don't include this header file directly, because in user space, there is another copy in alsa-lib. There will be conflict in userspace for include videodev2.h & asound.h and asoundlib.h Here still

[PATCH v9 07/15] media: v4l2: Add audio capture and output support

2023-11-09 Thread Shengjiu Wang
Audio signal processing has the requirement for memory to memory similar as Video. This patch is to add this support in v4l2 framework, defined new buffer type V4L2_BUF_TYPE_AUDIO_CAPTURE and V4L2_BUF_TYPE_AUDIO_OUTPUT, defined new format v4l2_audio_format for audio case usage. The created audio

[PATCH v9 06/15] media: uapi: Add V4L2_CAP_AUDIO_M2M capability flag

2023-11-09 Thread Shengjiu Wang
V4L2_CAP_AUDIO_M2M is similar to V4L2_CAP_VIDEO_M2M flag. It is used for audio memory to memory case. Signed-off-by: Shengjiu Wang --- Documentation/userspace-api/media/v4l/vidioc-querycap.rst| 3 +++ Documentation/userspace-api/media/videodev2.h.rst.exceptions | 1 +

[PATCH v9 05/15] ASoC: fsl_easrc: register m2m platform device

2023-11-09 Thread Shengjiu Wang
Register m2m platform device,that user can use M2M feature. Signed-off-by: Shengjiu Wang Acked-by: Mark Brown --- sound/soc/fsl/fsl_easrc.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/sound/soc/fsl/fsl_easrc.c b/sound/soc/fsl/fsl_easrc.c index

[PATCH v9 04/15] ASoC: fsl_asrc: register m2m platform device

2023-11-09 Thread Shengjiu Wang
Register m2m platform device, that user can use M2M feature. Defined platform data structure and platform driver name. Signed-off-by: Shengjiu Wang Acked-by: Mark Brown --- include/sound/fsl_asrc_common.h | 23 +++ sound/soc/fsl/fsl_asrc.c| 18 ++ 2

[PATCH v9 03/15] ASoC: fsl_asrc: move fsl_asrc_common.h to include/sound

2023-11-09 Thread Shengjiu Wang
Move fsl_asrc_common.h to include/sound that it can be included from other drivers. Signed-off-by: Shengjiu Wang Acked-by: Mark Brown --- {sound/soc/fsl => include/sound}/fsl_asrc_common.h | 0 sound/soc/fsl/fsl_asrc.h | 2 +- sound/soc/fsl/fsl_asrc_dma.c

[PATCH v9 02/15] ASoC: fsl_easrc: define functions for memory to memory usage

2023-11-09 Thread Shengjiu Wang
ASRC can be used on memory to memory case, define several functions for m2m usage and export them as function pointer. Signed-off-by: Shengjiu Wang Acked-by: Mark Brown --- sound/soc/fsl/fsl_easrc.c | 214 ++ sound/soc/fsl/fsl_easrc.h | 4 + 2 files

[PATCH v9 01/15] ASoC: fsl_asrc: define functions for memory to memory usage

2023-11-09 Thread Shengjiu Wang
ASRC can be used on memory to memory case, define several functions for m2m usage. m2m_prepare: prepare for the start step m2m_start: the start step m2m_unprepare: unprepare for stop step, optional m2m_stop: stop step m2m_check_format: check format is supported or not m2m_calc_out_len: calculate

[PATCH v9 00/15] Add audio support in v4l2 framework

2023-11-09 Thread Shengjiu Wang
Audio signal processing also has the requirement for memory to memory similar as Video. This asrc memory to memory (memory ->asrc->memory) case is a non real time use case. User fills the input buffer to the asrc module, after conversion, then asrc sends back the output buffer to user. So it is

Re: [PATCH] powerpc: Fix signature of pfn_to_kaddr()

2023-11-09 Thread Michael Ellerman
Linus Walleij writes: > On Tue, Nov 7, 2023 at 6:57 AM Michael Ellerman wrote: > >> I'm struggling to connect the removal of const with those bug reports. >> It looks like all those warnings are about 0xc000 being >> outside the range of unsigned long when building 32-bit. > > Aha

Ping? Re: [PATCH rc] kvm: Prevent compiling virt/kvm/vfio.c unless VFIO is selected

2023-11-09 Thread Michael Ellerman
Jason Gunthorpe writes: > There are a bunch of reported randconfig failures now because of this, > something like: > >>> arch/powerpc/kvm/../../../virt/kvm/vfio.c:89:7: warning: attribute >>> declaration must precede definition [-Wignored-attributes] >fn =

Re: [PATCH 5/8] drivers: firmware: efi: libstub: enable generic commandline

2023-11-09 Thread kernel test robot
Hi Daniel, kernel test robot noticed the following build warnings: [auto build test WARNING on v6.6] [cannot apply to arm64/for-next/core efi/next tip/x86/core robh/for-next linus/master next-20231110] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting

Re: [PATCH 0/8] generic command line v6

2023-11-09 Thread Andrew Morton
On Fri, 10 Nov 2023 02:22:27 + "Daniel Walker (danielwa)" wrote: > On Thu, Nov 09, 2023 at 05:51:42PM -0800, Andrew Morton wrote: > > On Thu, 9 Nov 2023 17:38:04 -0800 Daniel Walker wrote: > > > > > This release is an up-rev of the v5 patches. No additional features have > > > been

Re: [PATCH 0/8] generic command line v6

2023-11-09 Thread Daniel Walker (danielwa)
On Thu, Nov 09, 2023 at 05:51:42PM -0800, Andrew Morton wrote: > On Thu, 9 Nov 2023 17:38:04 -0800 Daniel Walker wrote: > > > This release is an up-rev of the v5 patches. No additional features have > > been added. Some changes were mode to function names and some changes to > > Kconfig

Re: [PATCH 15/34] KVM: Add KVM_CREATE_GUEST_MEMFD ioctl() for guest-specific backing memory

2023-11-09 Thread Xiaoyao Li
On 11/6/2023 12:30 AM, Paolo Bonzini wrote: From: Sean Christopherson Introduce an ioctl(), KVM_CREATE_GUEST_MEMFD, to allow creating file-based memory that is tied to a specific KVM virtual machine and whose primary purpose is to serve guest memory. A guest-first memory subsystem allows for

Re: [PATCH 0/8] generic command line v6

2023-11-09 Thread Andrew Morton
On Thu, 9 Nov 2023 17:38:04 -0800 Daniel Walker wrote: > This release is an up-rev of the v5 patches. No additional features have > been added. Some changes were mode to function names and some changes to > Kconfig dependencies. Also updated the config conversion for mips. > > There are a

[PATCH 7/8] of: replace command line handling

2023-11-09 Thread Daniel Walker
Rob Herring has complained about this section of code. I removed the command line handling code to the cmdline.h header. This hopefully makes it easier for Rob to maintain it (at least he doesn't have to look at it directly anymore). I would like to add a Kconfig option called

[PATCH 6/8] CMDLINE: x86: convert to generic builtin command line

2023-11-09 Thread Daniel Walker
This updates the x86 code to use the CONFIG_GENERIC_CMDLINE option. Cc: xe-linux-exter...@cisco.com Signed-off-by: Ruslan Ruslichenko Signed-off-by: Ruslan Bilovol Signed-off-by: Daniel Walker --- arch/x86/Kconfig| 44 + arch/x86/kernel/setup.c

[PATCH 4/8] CMDLINE: mips: convert to generic builtin command line

2023-11-09 Thread Daniel Walker
This updates the mips code to use the CONFIG_GENERIC_CMDLINE option. This deletes the option for MIPS_CMDLINE_BUILTIN_EXTEND and replaces the functionality with generic code. Of note, the pic32 has some strange handling of the current built in command line. It was converted to use the static

[PATCH 8/8] CMDLINE: arm64: convert to generic builtin command line

2023-11-09 Thread Daniel Walker
This removes arm64 from the device tree handling of the command line arguments. The boot_command_line variable is populated inside the earliest user of the command line, which is in idreg-override.c. The device tree should not be needed to do any further handling of the boot command line

[PATCH 2/8] scripts: insert-sys-cert: add command line insert capability

2023-11-09 Thread Daniel Walker
This adds changes to the insert-sys-cert tool to allow updating the cmdline_prepend and cmdline_append symbols in addition to adding certificates. Updating the cmdline symbols was tested on a PVH virtual machine with a vmlinux, and with a bzImage which was repackaged on x86. This commit

[PATCH 5/8] drivers: firmware: efi: libstub: enable generic commandline

2023-11-09 Thread Daniel Walker
This adds code to handle the generic command line changes. The efi code appears that it doesn't benefit as much from this design as it could. For example, if you had a prepend command line with "nokaslr" then you might be helpful to re-enable it in the boot loader or dts, but there appears to be

[PATCH 3/8] scripts: insert-sys-cert: change name to insert-symbol

2023-11-09 Thread Daniel Walker
Since the tool is used to update the command line and/or to update the certificates, I think it makes sense to changes the name of this tool. Update the name of the tool to better reflect it's new use. Cc: xe-linux-exter...@cisco.com Signed-off-by: Daniel Walker --- scripts/Makefile

[PATCH 1/8] CMDLINE: add generic builtin command line

2023-11-09 Thread Daniel Walker
This code allows architectures to use a generic builtin command line. The state of the builtin command line options across architecture is diverse. MIPS and X86 once has similar systems, then mips added some options to allow extending the command line. Powerpc did something simiar in adding the

[PATCH 0/8] generic command line v6

2023-11-09 Thread Daniel Walker
This release is an up-rev of the v5 patches. No additional features have been added. Some changes were mode to function names and some changes to Kconfig dependencies. Also updated the config conversion for mips. There are a number of people who have expressed interest in these patches either by

Re: [PATCH 2/8] leds: nic78bx: explicitly unregister LEDs at module's shutdown

2023-11-09 Thread George Stark
Hello Christophe. Thanks for the review. On 11/6/23 11:13, Christophe Leroy wrote: > > > Le 25/10/2023 à 15:07, George Stark a écrit : >> LEDs are registered using devm_led_classdev_register() and automatically >> unregistered after module's remove(). led_classdev_unregister() calls >>

Re: [PATCH 15/22] arch: vdso: consolidate gettime prototypes

2023-11-09 Thread Michael Ellerman
Christophe Leroy writes: > Le 09/11/2023 à 11:18, Michael Ellerman a écrit : >> "Arnd Bergmann" writes: >>> On Wed, Nov 8, 2023, at 19:31, Christophe Leroy wrote: Le 08/11/2023 à 13:58, Arnd Bergmann a écrit : >>> powerpc has functions doing more or less the same, they are called

Re: [PATCH v2 29/37] powerpc/nohash: Replace pte_user() by pte_read()

2023-11-09 Thread Christophe Leroy
Le 07/11/2023 à 14:34, Aneesh Kumar K.V a écrit : > Christophe Leroy writes: > >> Le 31/10/2023 à 11:15, Aneesh Kumar K.V a écrit : >>> Christophe Leroy writes: >>> pte_user() is now only used in pte_access_permitted() to check access on vmas. User flag is cleared to make a page

Re: [PATCH v2 37/37] powerpc: Support execute-only on all powerpc

2023-11-09 Thread Christophe Leroy
Le 07/11/2023 à 07:15, Aneesh Kumar K V a écrit : > On 11/6/23 6:53 PM, Christophe Leroy wrote: >> >> >> Le 02/11/2023 à 06:39, Aneesh Kumar K.V a écrit : >>> Christophe Leroy writes: >>> Introduce PAGE_EXECONLY_X macro which provides exec-only rights. The _X may be seen as redundant

Re: [PATCH v5 1/3] powerpc: make fadump resilient with memory add/remove events

2023-11-09 Thread Michael Ellerman
Hi Sourabh, This seems like a good change to the design, but I'm confused by some things, more below ... Sourabh Jain writes: > ... > > Table 1 below illustrates kernel's ability to collect dump if either the > first/crashed kernel or the second/fadump kernel does not have the > changes

Re: [PATCH 15/22] arch: vdso: consolidate gettime prototypes

2023-11-09 Thread Christophe Leroy
Le 09/11/2023 à 11:18, Michael Ellerman a écrit : > "Arnd Bergmann" writes: >> On Wed, Nov 8, 2023, at 19:31, Christophe Leroy wrote: >>> Le 08/11/2023 à 13:58, Arnd Bergmann a écrit : >> >>> powerpc has functions doing more or less the same, they are called >>> __c_kernel_clock_gettime() and

Re: [PATCH 15/22] arch: vdso: consolidate gettime prototypes

2023-11-09 Thread Michael Ellerman
"Arnd Bergmann" writes: > On Wed, Nov 8, 2023, at 19:31, Christophe Leroy wrote: >> Le 08/11/2023 à 13:58, Arnd Bergmann a écrit : > >> powerpc has functions doing more or less the same, they are called >> __c_kernel_clock_gettime() and alike with their prototypes siting in >>

Re: [PATCH 15/22] arch: vdso: consolidate gettime prototypes

2023-11-09 Thread Christophe Leroy
Le 08/11/2023 à 20:37, Arnd Bergmann a écrit : > On Wed, Nov 8, 2023, at 19:31, Christophe Leroy wrote: >> Le 08/11/2023 à 13:58, Arnd Bergmann a écrit : > >> powerpc has functions doing more or less the same, they are called >> __c_kernel_clock_gettime() and alike with their prototypes siting

Re: [PATCH 34/34] KVM: selftests: Add a memory region subtest to validate invalid flags

2023-11-09 Thread Fuad Tabba
Hi Anish, On Thu, Nov 9, 2023 at 1:08 AM Anish Moorthy wrote: > > Applying [1] and [2] reveals that this also breaks non-x86 builds- the > MEM_REGION_GPA/SLOT definitions are guarded behind an #ifdef > __x86_64__, while the usages introduced here aren't. > > Should > > On Sun, Nov 5, 2023 at

Re: [PATCH 27/34] KVM: selftests: Introduce VM "shape" to allow tests to specify the VM type

2023-11-09 Thread Paolo Bonzini
On 11/9/23 00:37, Anish Moorthy wrote: On Wed, Nov 8, 2023 at 9:00 AM Anish Moorthy wrote: This commit breaks the arm64 selftests build btw: looks like a simple oversight? Yup, fix is a one-liner. Posted below. diff --git a/tools/testing/selftests/kvm/aarch64/page_fault_test.c