Re: [PATCH] dt-bindings: fsl,dpaa2-console: drop unneeded quotes

2023-11-22 Thread Krzysztof Kozlowski
On 22/11/2023 23:44, Rob Herring wrote: > Drop unneeded quotes over simple string values to fix a soon to be > enabled yamllint warning: > > [error] string value is redundantly quoted with any quotes (quoted-strings) > > Signed-off-by: Rob Herring Reviewed-by: Krzysztof Kozlowski Best

Re: [PATCH RFC 06/12] mm/gup: Drop folio_fast_pin_allowed() in hugepd processing

2023-11-22 Thread Christoph Hellwig
On Wed, Nov 22, 2023 at 10:22:11AM -0500, Peter Xu wrote: > The other reason I feel like hugepd may or may not be further developed for > new features like large folio is that I saw Power9 started to shift to > radix pgtables, and afaics hugepd is only supported in hash tables > (hugepd_ok()).

[PATCH] powerpc/lib: Validate size for vector operations

2023-11-22 Thread Naveen N Rao
Some of the fp/vmx code in sstep.c assume a certain maximum size for the instructions being emulated. The size of those operations however is determined separately in analyse_instr(). Add a check to validate the assumption on the maximum size of the operations, so as to prevent any unintended

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

2023-11-22 Thread Christophe Leroy
Le 10/11/2023 à 02:38, Daniel Walker a écrit : > This removes arm64 from the device tree handling of the > command line arguments. You should provide more details on how each existing Kconfig option is converted, for instance when CONFIG_CMDLINE_FORCE becomes CONFIG_CMDLINE_OVERRIDE. > >

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

2023-11-22 Thread Christophe Leroy
Le 10/11/2023 à 02:38, Daniel Walker a écrit : > Rob Herring has complained about this section of code. I removed the This kind of considerations shouldn't appear in the commit message, it may appear after the --- so that it gets dropped when applying. > command line handling code to the

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

2023-11-22 Thread Christophe Leroy
Le 10/11/2023 à 02:38, Daniel Walker a écrit : > 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. So what can we do to improve that ? > > For example, if you had a prepend command line with

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

2023-11-22 Thread Christophe Leroy
Le 10/11/2023 à 02:38, Daniel Walker a écrit : > 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

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

2023-11-22 Thread Christophe Leroy
Le 10/11/2023 à 02:38, Daniel Walker a écrit : > 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. Should be squashed into previous

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

2023-11-22 Thread Christophe Leroy
Le 10/11/2023 à 02:38, Daniel Walker a écrit : > This adds changes to the insert-sys-cert tool to allow updating > the cmdline_prepend and cmdline_append symbols in addition to > adding certificates. Nice feature. > > Updating the cmdline symbols was tested on a PVH virtual machine > with a

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

2023-11-22 Thread Christophe Leroy
Le 10/11/2023 à 02:38, Daniel Walker a écrit : > 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

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

2023-11-22 Thread Christophe Leroy
Le 10/11/2023 à 02:38, Daniel Walker a écrit : > 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

[PATCH] powerpc/86xx: Drop unused CONFIG_MPC8610

2023-11-22 Thread Michael Ellerman
The MPC8610 symbol used to be default y if MPC8610_HPCD, but since MPC8610_HPCD was removed MPC8610 is now never used. Remove it. Fixes: 248667f8bbde ("powerpc: drop HPCD/MPC8610 evaluation platform support") Signed-off-by: Michael Ellerman --- arch/powerpc/platforms/86xx/Kconfig | 7 --- 1

[PATCH] ASoC: fsl_xcvr: refine the requested phy clock frequency

2023-11-22 Thread Shengjiu Wang
As the input phy clock frequency will divided by 2 by default on i.MX8MP with the implementation of clk-imx8mp-audiomix driver, So the requested frequency need to be updated. The relation of phy clock is: sai_pll_ref_sel sai_pll sai_pll_bypass sai_pll_out

Re: [PATCH v2 1/4] i915: make inject_virtual_interrupt() void

2023-11-22 Thread Zhenyu Wang
On 2023.11.22 13:48:22 +0100, Christian Brauner wrote: > The single caller of inject_virtual_interrupt() ignores the return value > anyway. This allows us to simplify eventfd_signal() in follow-up > patches. > > Signed-off-by: Christian Brauner > --- > drivers/gpu/drm/i915/gvt/interrupt.c | 14

Re: [PATCH] powerpc: Use ARRAY_SIZE for array length

2023-11-22 Thread Michael Ellerman
Jiapeng Chong writes: > Use of macro ARRAY_SIZE to calculate array size minimizes > the redundant code and improves code reusability. > > ./arch/powerpc/xmon/ppc-opc.c:957:67-68: WARNING: Use ARRAY_SIZE. > > Reported-by: Abaci Robot > Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7612 >

Re: [PATCH 2/2] ASoC: cs4270: Remove unused codec

2023-11-22 Thread Michael Ellerman
Mark Brown writes: > On Wed, Nov 22, 2023 at 05:27:12PM +1100, Michael Ellerman wrote: >> The only driver to enable SND_SOC_CS4270 was SND_SOC_MPC8610_HPCD, which >> was dropped in the preceding commit. Remove the codec as unused. > > There's no real overhead from having extra drivers and we do

Re: [PATCH v2 4/5] rust: Allow MODVERSIONS

2023-11-22 Thread Khan Baloshi

[PATCH] dt-bindings: fsl,dpaa2-console: drop unneeded quotes

2023-11-22 Thread Rob Herring
Drop unneeded quotes over simple string values to fix a soon to be enabled yamllint warning: [error] string value is redundantly quoted with any quotes (quoted-strings) Signed-off-by: Rob Herring --- Documentation/devicetree/bindings/misc/fsl,dpaa2-console.yaml | 2 +- 1 file changed, 1

Re: [PATCH v2 0/5] MODVERSIONS + RUST Redux

2023-11-22 Thread Matthew Maurer
> So, even if you enable CONFIG_MODVERSIONS, > nothing is checked for Rust. > Genksyms computes a CRC from "int foo", and > the module subsystem confirms it is a "int" > variable. > > We know this check always succeeds. > > Why is this useful? The reason this is immediately useful is that it

Re: [PATCH] ASoC: fsl_xcvr: Enable 2 * TX bit clock for spdif only case

2023-11-22 Thread Mark Brown
On Wed, 22 Nov 2023 09:42:53 +0800, Shengjiu Wang wrote: > The bit 10 in TX_DPTH_CTRL register controls the TX clock rate. > If this bit is set, TX datapath clock should be = 2* TX bit rate. > If this bit is not set, TX datapath clock should be 10* TX bit rate. > > As the spdif only case, we

Re: [PATCH v2 2/4] eventfd: simplify eventfd_signal()

2023-11-22 Thread Jani Nikula
On Wed, 22 Nov 2023, Christian Brauner wrote: > diff --git a/fs/eventfd.c b/fs/eventfd.c > index 33a918f9566c..dc9e01053235 100644 > --- a/fs/eventfd.c > +++ b/fs/eventfd.c > @@ -74,20 +74,17 @@ __u64 eventfd_signal_mask(struct eventfd_ctx *ctx, __u64 > n, __poll_t mask) > /** > *

Re: [PATCH v2 4/4] eventfd: make eventfd_signal{_mask}() void

2023-11-22 Thread Jan Kara
On Wed 22-11-23 13:48:25, Christian Brauner wrote: > No caller care about the return value. > > Signed-off-by: Christian Brauner Yup. Feel free to add: Reviewed-by: Jan Kara Honza > --- > fs/eventfd.c| 40

Re: [PATCH v2 3/4] eventfd: simplify eventfd_signal_mask()

2023-11-22 Thread Jan Kara
On Wed 22-11-23 13:48:24, Christian Brauner wrote: > The eventfd_signal_mask() helper was introduced for io_uring and similar > to eventfd_signal() it always passed 1 for @n. So don't bother with that > argument at all. > > Signed-off-by: Christian Brauner Nice. Feel free to add: Reviewed-by:

Re: [PATCH v2 2/4] eventfd: simplify eventfd_signal()

2023-11-22 Thread Jan Kara
On Wed 22-11-23 13:48:23, Christian Brauner wrote: > Ever since the evenfd type was introduced back in 2007 in commit > e1ad7468c77d ("signal/timer/event: eventfd core") the eventfd_signal() > function only ever passed 1 as a value for @n. There's no point in > keeping that additional argument. >

Re: [PATCH v2 1/4] i915: make inject_virtual_interrupt() void

2023-11-22 Thread Jan Kara
On Wed 22-11-23 13:48:22, Christian Brauner wrote: > The single caller of inject_virtual_interrupt() ignores the return value > anyway. This allows us to simplify eventfd_signal() in follow-up > patches. > > Signed-off-by: Christian Brauner Looks good. Feel free to add: Reviewed-by: Jan Kara

Re: [PATCH v2 2/4] eventfd: simplify eventfd_signal()

2023-11-22 Thread Xu Yilun
On Wed, Nov 22, 2023 at 01:48:23PM +0100, Christian Brauner wrote: > Ever since the evenfd type was introduced back in 2007 in commit > e1ad7468c77d ("signal/timer/event: eventfd core") the eventfd_signal() > function only ever passed 1 as a value for @n. There's no point in > keeping that

[PATCH v2 4/4] eventfd: make eventfd_signal{_mask}() void

2023-11-22 Thread Christian Brauner
No caller care about the return value. Signed-off-by: Christian Brauner --- fs/eventfd.c| 40 +++- include/linux/eventfd.h | 16 +++- 2 files changed, 22 insertions(+), 34 deletions(-) diff --git a/fs/eventfd.c b/fs/eventfd.c index

[PATCH v2 3/4] eventfd: simplify eventfd_signal_mask()

2023-11-22 Thread Christian Brauner
The eventfd_signal_mask() helper was introduced for io_uring and similar to eventfd_signal() it always passed 1 for @n. So don't bother with that argument at all. Signed-off-by: Christian Brauner --- fs/eventfd.c| 7 --- include/linux/eventfd.h | 5 ++--- io_uring/io_uring.c

[PATCH v2 2/4] eventfd: simplify eventfd_signal()

2023-11-22 Thread Christian Brauner
Ever since the evenfd type was introduced back in 2007 in commit e1ad7468c77d ("signal/timer/event: eventfd core") the eventfd_signal() function only ever passed 1 as a value for @n. There's no point in keeping that additional argument. Signed-off-by: Christian Brauner --- arch/x86/kvm/hyperv.c

[PATCH v2 1/4] i915: make inject_virtual_interrupt() void

2023-11-22 Thread Christian Brauner
The single caller of inject_virtual_interrupt() ignores the return value anyway. This allows us to simplify eventfd_signal() in follow-up patches. Signed-off-by: Christian Brauner --- drivers/gpu/drm/i915/gvt/interrupt.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff

[PATCH v2 0/4] eventfd: simplify signal helpers

2023-11-22 Thread Christian Brauner
Hey everyone, This simplifies the eventfd_signal() and eventfd_signal_mask() helpers significantly. They can be made void and not take any unnecessary arguments. I've added a few more simplifications based on Sean's suggestion. Signed-off-by: Christian Brauner Changes in v2: - further

Re: Potential config regression after 89cde455 ("kexec: consolidate kexec and crash options into kernel/Kconfig.kexec")

2023-11-22 Thread Ignat Korchagin
On Wed, Nov 22, 2023 at 9:34 AM Baoquan He wrote: > > On 11/21/23 at 09:43am, Ignat Korchagin wrote: > > On Tue, Nov 21, 2023 at 7:53 AM Ignat Korchagin > > wrote: > > > > > > On Tue, Nov 21, 2023 at 1:50 AM Baoquan He wrote: > > > > > > > > Eric DeVolder's Oracle mail address is not available

Re: Potential config regression after 89cde455 ("kexec: consolidate kexec and crash options into kernel/Kconfig.kexec")

2023-11-22 Thread Baoquan He
On 11/21/23 at 09:43am, Ignat Korchagin wrote: > On Tue, Nov 21, 2023 at 7:53 AM Ignat Korchagin wrote: > > > > On Tue, Nov 21, 2023 at 1:50 AM Baoquan He wrote: > > > > > > Eric DeVolder's Oracle mail address is not available anymore, add his > > > current mail address he told me. > > > > Thank

Re: [PATCH v2 0/5] MODVERSIONS + RUST Redux

2023-11-22 Thread Masahiro Yamada
On Sat, Nov 18, 2023 at 11:58 AM Matthew Maurer wrote: > > The goal of this patch series is to allow MODVERSIONS and RUST to be > enabled simultaneously. The primary issue with doing this at the moment > is that Rust uses some extremely long symbol names - for those > unfamiliar with Rust, it may

Re: [PATCH RFC 06/12] mm/gup: Drop folio_fast_pin_allowed() in hugepd processing

2023-11-22 Thread Peter Xu
On Wed, Nov 22, 2023 at 12:00:24AM -0800, Christoph Hellwig wrote: > On Tue, Nov 21, 2023 at 10:59:35AM -0500, Peter Xu wrote: > > > What prevents us from ever using hugepd with file mappings? I think > > > it would naturally fit in with how large folios for the pagecache work. > > > > > > So

Re: [PATCH 12/41] mm: add per-VMA lock and helper functions to control it

2023-11-22 Thread Alexander Gordeev
On Tue, Jan 17, 2023 at 10:45:25PM +0100, Jann Horn wrote: Hi Jann, > On Tue, Jan 17, 2023 at 10:28 PM Suren Baghdasaryan wrote: > > On Tue, Jan 17, 2023 at 10:03 AM Jann Horn wrote: > > > > > > +locking maintainers > > > > Thanks! I'll CC the locking maintainers in the next posting. > > > > >

Re: [PATCH] powerpc/lib: Avoid array bounds warnings in vec ops

2023-11-22 Thread Naveen N Rao
On Wed, Nov 22, 2023 at 03:44:07PM +1100, Michael Ellerman wrote: > Naveen N Rao writes: > > On Tue, Nov 21, 2023 at 10:54:36AM +1100, Michael Ellerman wrote: > >> Building with GCC 13 (which has -array-bounds enabled) there are several > > > > Thanks, gcc13 indeed helps reproduce the warnings. >

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

2023-11-22 Thread Michael Ellerman
Masahiro Yamada writes: > On Tue, Nov 21, 2023 at 6:55 PM Aneesh Kumar K.V > wrote: >> >> "Nicholas Piggin" writes: >> >> > On Tue Nov 21, 2023 at 9:23 AM AEST, Masahiro Yamada wrote: >> >> crtsavres.o is linked to modules. However, as explained in commit >> >> d0e628cd817f ("kbuild: doc:

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

2023-11-22 Thread Michael Ellerman
Sourabh Jain writes: > On 22/11/23 10:47, Michael Ellerman wrote: >> Aneesh Kumar K V writes: >> ... >>> I am not sure whether we need to add all the complexity to enable >>> supporting different fadump kernel >>> version. Is that even a possible use case with fadump? Can't we always >>>

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

2023-11-22 Thread Aneesh Kumar K V
On 11/22/23 4:05 PM, Sourabh Jain wrote: > Hello Michael, > > > On 22/11/23 10:47, Michael Ellerman wrote: >> Aneesh Kumar K V writes: >> ... >>> I am not sure whether we need to add all the complexity to enable >>> supporting different fadump kernel >>> version. Is that even a possible use

Re: [PATCH 2/2] ASoC: cs4270: Remove unused codec

2023-11-22 Thread Mark Brown
On Wed, Nov 22, 2023 at 05:27:12PM +1100, Michael Ellerman wrote: > The only driver to enable SND_SOC_CS4270 was SND_SOC_MPC8610_HPCD, which > was dropped in the preceding commit. Remove the codec as unused. There's no real overhead from having extra drivers and we do have generic drivers that

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

2023-11-22 Thread Sourabh Jain
Hello Michael, On 22/11/23 10:47, Michael Ellerman wrote: Aneesh Kumar K V writes: ... I am not sure whether we need to add all the complexity to enable supporting different fadump kernel version. Is that even a possible use case with fadump? Can't we always assume that with fadump the

[PATCH v3] powerpc: Adjust config HOTPLUG_CPU dependency

2023-11-22 Thread Vishal Chourasia
Changed HOTPLUG_CPU dependency to SMP and either ARCH_HIBERNATION_POSSIBLE or ARCH_SUSPEND_POSSIBLE, aligning with systems' suspend/hibernation capabilities. This update link CPU hotplugging more logically with platforms' capabilities. configs ARCH_HIBERNATION_POSSIBLE and ARCH_SUSPEND_POSSIBLE

[PATCH] powerpc/mm: Fix null-pointer dereference in pgtable_cache_add

2023-11-22 Thread Kunwu Chan
kasprintf() returns a pointer to dynamically allocated memory which can be NULL upon failure. Ensure the allocation was successful by checking the pointer validity. Signed-off-by: Kunwu Chan --- arch/powerpc/mm/init-common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH] powerpc: Adjust config HOTPLUG_CPU dependency

2023-11-22 Thread Vishal Chourasia
On 22/11/23 3:03 pm, Aneesh Kumar K V wrote: > On 11/22/23 2:53 PM, Vishal Chourasia wrote: >> Changed HOTPLUG_CPU dependency to SMP and either ARCH_HIBERNATION_POSSIBLE or >> ARCH_SUSPEND_POSSIBLE, aligning with systems' suspend/hibernation >> capabilities. >> This update links CPU hotplugging

Re: [PATCH] powerpc: Adjust config HOTPLUG_CPU dependency

2023-11-22 Thread Aneesh Kumar K V
On 11/22/23 2:53 PM, Vishal Chourasia wrote: > Changed HOTPLUG_CPU dependency to SMP and either ARCH_HIBERNATION_POSSIBLE or > ARCH_SUSPEND_POSSIBLE, aligning with systems' suspend/hibernation > capabilities. > This update links CPU hotplugging more logically with platforms' capabilities. > >

[PATCH] powerpc: Adjust config HOTPLUG_CPU dependency

2023-11-22 Thread Vishal Chourasia
Changed HOTPLUG_CPU dependency to SMP and either ARCH_HIBERNATION_POSSIBLE or ARCH_SUSPEND_POSSIBLE, aligning with systems' suspend/hibernation capabilities. This update links CPU hotplugging more logically with platforms' capabilities. Other changes include 1. configs ARCH_HIBERNATION_POSSIBLE

[PATCH] powerpc: Use ARRAY_SIZE for array length

2023-11-22 Thread Jiapeng Chong
Use of macro ARRAY_SIZE to calculate array size minimizes the redundant code and improves code reusability. ./arch/powerpc/xmon/ppc-opc.c:957:67-68: WARNING: Use ARRAY_SIZE. Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7612 Signed-off-by: Jiapeng Chong ---

Re: [PATCH 3/3] drm/amd/display: Support DRM_AMD_DC_FP on RISC-V

2023-11-22 Thread Christoph Hellwig
> - select DRM_AMD_DC_FP if (X86 || LOONGARCH || (PPC64 && ALTIVEC) || > (ARM64 && KERNEL_MODE_NEON && !CC_IS_CLANG)) > + select DRM_AMD_DC_FP if ARM64 && KERNEL_MODE_NEON && !CC_IS_CLANG > + select DRM_AMD_DC_FP if PPC64 && ALTIVEC > + select DRM_AMD_DC_FP if RISCV && FPU > +

[PATCH 2/2] ASoC: cs4270: Remove unused codec

2023-11-22 Thread Michael Ellerman
The only driver to enable SND_SOC_CS4270 was SND_SOC_MPC8610_HPCD, which was dropped in the preceding commit. Remove the codec as unused. Signed-off-by: Michael Ellerman --- sound/soc/codecs/Kconfig | 14 - sound/soc/codecs/Makefile | 2 - sound/soc/codecs/cs4270.c | 762

[PATCH 1/2] ASoC: fsl: mpc8610_hpcd: Remove unused driver

2023-11-22 Thread Michael Ellerman
The mpc8610_hpcd.c driver depends on CONFIG_MPC8610_HPCD which was removed in commit 248667f8bbde ("powerpc: drop HPCD/MPC8610 evaluation platform support"). That makes the driver unbuildable and unusable, so remove it. Depends-on: 248667f8bbde ("powerpc: drop HPCD/MPC8610 evaluation platform

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

2023-11-22 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 v11 14/15] media: imx-asrc: Add memory to memory driver

2023-11-22 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 v11 13/15] media: vivid: add fixed point test controls

2023-11-22 Thread Shengjiu Wang
Add fixed point test controls, one is for Q4.16 format another one is for Q63 format. Signed-off-by: Shengjiu Wang --- drivers/media/test-drivers/vivid/vivid-core.h | 2 ++ .../media/test-drivers/vivid/vivid-ctrls.c| 26 +++ include/media/v4l2-ctrls.h|

[PATCH v11 12/15] media: uapi: Add an entity type for audio resampler

2023-11-22 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 | 6 ++ include/uapi/linux/media.h | 1 + 2 files changed, 7

[PATCH v11 11/15] media: uapi: Declare interface types for Audio

2023-11-22 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| 5 + drivers/media/v4l2-core/v4l2-dev.c | 4 drivers/media/v4l2-core/v4l2-mem2mem.c

[PATCH v11 10/15] media: uapi: Add audio rate controls support

2023-11-22 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 v11 09/15] media: uapi: Add V4L2_CTRL_CLASS_M2M_AUDIO

2023-11-22 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 v11 08/15] media: uapi: Define audio sample format fourcc type

2023-11-22 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 v11 07/15] media: v4l2: Add audio capture and output support

2023-11-22 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 v11 06/15] media: uapi: Add V4L2_CAP_AUDIO_M2M capability flag

2023-11-22 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 v11 05/15] ASoC: fsl_easrc: register m2m platform device

2023-11-22 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 v11 04/15] ASoC: fsl_asrc: register m2m platform device

2023-11-22 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 v11 03/15] ASoC: fsl_asrc: move fsl_asrc_common.h to include/sound

2023-11-22 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 v11 01/15] ASoC: fsl_asrc: define functions for memory to memory usage

2023-11-22 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 v11 02/15] ASoC: fsl_easrc: define functions for memory to memory usage

2023-11-22 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 v11 00/15] Add audio support in v4l2 framework

2023-11-22 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 RFC 06/12] mm/gup: Drop folio_fast_pin_allowed() in hugepd processing

2023-11-22 Thread Christoph Hellwig
On Tue, Nov 21, 2023 at 10:59:35AM -0500, Peter Xu wrote: > > What prevents us from ever using hugepd with file mappings? I think > > it would naturally fit in with how large folios for the pagecache work. > > > > So keeping this check and generalizing it seems like the better idea to > > me. >