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

2024-01-17 Thread Hans Verkuil
On 18/01/2024 07:13, Shengjiu Wang wrote: > On Wed, Jan 17, 2024 at 6:32 PM Hans Verkuil wrote: >> >> On 22/11/2023 08:23, Shengjiu Wang wrote: >>> Audio memory to memory virtual driver use video memory to memory >>> virtual driver vim2m.c as example. The main difference is >>> device type is

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

2024-01-17 Thread Shengjiu Wang
On Wed, Jan 17, 2024 at 6:32 PM Hans Verkuil wrote: > > On 22/11/2023 08:23, Shengjiu Wang wrote: > > 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

[PATCH] init: refactor the generic cpu_to_node for NUMA

2024-01-17 Thread Huang Shijie
(0) We list the ARCHs which support the NUMA: arm64, loongarch, powerpc, riscv, sparc, mips, s390, x86, (1) Some ARCHs in (0) override the generic cpu_to_node(), such as: sparc, mips, s390, x86. Since these ARCHs have their own cpu_to_node(), we do not care about

[PATCH] powerpc: Enable support for 32 bit MSI-X vectors

2024-01-17 Thread Brian King
Some devices are not capable of addressing 64 bits via DMA, which includes MSI-X vectors. This allows us to ensure these devices use MSI-X vectors in 32 bit space. Signed-off-by: Brian King --- arch/powerpc/platforms/pseries/msi.c | 11 --- 1 file changed, 8 insertions(+), 3

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

2024-01-17 Thread Jason Gunthorpe
On Tue, Jan 16, 2024 at 06:32:32PM +, Christophe Leroy wrote: > >> hugepd is a page directory dedicated to huge pages, where you have huge > >> pages listed instead of regular pages. For instance, on powerpc 32 with > >> each PGD entries covering 4Mbytes, a regular page table has 1024 PTEs. A

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

2024-01-17 Thread Hans Verkuil
On 22/11/2023 08:23, Shengjiu Wang wrote: > 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,

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

2024-01-17 Thread Hans Verkuil
Some small comments: On 22/11/2023 08:23, Shengjiu Wang wrote: > 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

Re: [PATCH v11 13/15] media: vivid: add fixed point test controls

2024-01-17 Thread Hans Verkuil
On 22/11/2023 08:23, Shengjiu Wang wrote: > 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

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

2024-01-17 Thread Hans Verkuil
Some small comments: On 22/11/2023 08:23, Shengjiu Wang wrote: > Add and document a media entity type for audio resampler. for -> for an > It is MEDIA_ENT_F_PROC_AUDIO_RESAMPLER. > > Signed-off-by: Shengjiu Wang > --- > Documentation/userspace-api/media/mediactl/media-types.rst | 6 ++ >

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

2024-01-17 Thread Hans Verkuil
Hi Shengjiu, Some small comments below: On 22/11/2023 08:23, Shengjiu Wang wrote: > 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. > >

[PATCH] powerpc/pasemi: Add a null pointer check to the pas_setup_mce_regs

2024-01-17 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/platforms/pasemi/setup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git