[PATCH v7 09/13] media: uapi: Add a control for HANTRO driver

2021-03-28 Thread Benjamin Gaignard
The HEVC HANTRO driver needs to know the number of bits to skip at the beginning of the slice header. That is a hardware specific requirement so create a dedicated control that this purpose. Signed-off-by: Benjamin Gaignard --- version 5: - Be even more verbose in control documentation. - Do no

[PATCH v7 08/13] media: hantro: Only use postproc when post processed formats are defined

2021-03-28 Thread Benjamin Gaignard
If the variant doesn't offert postprocessed formats make sure it will be ok. Signed-off-by: Benjamin Gaignard --- drivers/staging/media/hantro/hantro.h | 8 ++-- drivers/staging/media/hantro/hantro_postproc.c | 14 ++ drivers/staging/media/hantro/hantro_v4l2.c | 4

[PATCH v7 07/13] media: hantro: Define HEVC codec profiles and supported features

2021-03-28 Thread Benjamin Gaignard
Define which HEVC profiles (up to level 5.1) and features (no scaling, no 10 bits) are supported by the driver. Signed-off-by: Benjamin Gaignard --- drivers/staging/media/hantro/hantro.h | 3 ++ drivers/staging/media/hantro/hantro_drv.c | 58 +++ 2 files changed, 61 inse

[PATCH v7 06/13] media: hantro: change hantro_codec_ops run prototype to return errors

2021-03-28 Thread Benjamin Gaignard
Change hantro_codec_ops run prototype from 'void' to 'int'. This allow to cancel the job if an error occur while configuring the hardware. Signed-off-by: Benjamin Gaignard --- version 5: - forward hantro_h264_dec_prepare_run() return value in case of error drivers/staging/media/hantro/hantr

[PATCH v7 05/13] media: hevc: Add decode params control

2021-03-28 Thread Benjamin Gaignard
Add decode params control and it associated structure to regroup all the information that are needed to decode a reference frame as it is describe in ITU-T Rec. H.265 section "8.3.2 Decoding process for reference picture set". Adapt Cedrus driver to these changes. Signed-off-by: Benjamin Gaignard

[PATCH v7 04/13] media: hevc: Add fields and flags for hevc PPS

2021-03-28 Thread Benjamin Gaignard
Add fields and flags as they are defined in 7.4.3.3.1 "General picture parameter set RBSP semantics of the H.265 ITU specification. Signed-off-by: Benjamin Gaignard --- .../userspace-api/media/v4l/ext-ctrls-codec.rst| 14 ++ include/media/hevc-ctrls.h | 4

[PATCH v7 03/13] media: hantro: Use syscon instead of 'ctrl' register

2021-03-28 Thread Benjamin Gaignard
In order to be able to share the control hardware block between VPUs use a syscon instead a ioremap it in the driver. To keep the compatibility with older DT if 'nxp,imx8mq-vpu-ctrl' phandle is not found look at 'ctrl' reg-name. With the method it becomes useless to provide a list of register names

[PATCH v7 02/13] dt-bindings: media: nxp, imx8mq-vpu: Update the bindings for G2 support

2021-03-28 Thread Benjamin Gaignard
Introducing G2 hevc video decoder lead to modify the bindings to allow to get one node per VPUs. VPUs share one hardware control block which is provided as a phandle on an syscon. Each node got now one reg and one interrupt. Add a compatible for G2 hardware block: nxp,imx8mq-vpu-g2. To be compatib

[PATCH v7 00/13] Add HANTRO G2/HEVC decoder support for IMX8MQ

2021-03-28 Thread Benjamin Gaignard
The IMX8MQ got two VPUs but until now only G1 has been enabled. This series aim to add the second VPU (aka G2) and provide basic HEVC decoding support. To be able to decode HEVC it is needed to add/update some of the structures in the uapi. In addition of them one HANTRO dedicated control is requ

[PATCH v7 01/13] dt-bindings: mfd: Add 'nxp, imx8mq-vpu-ctrl' to syscon list

2021-03-28 Thread Benjamin Gaignard
Add 'nxp,imx8mq-vpu-ctrl' in the list of possible syscon. It will used to access to the VPU control registers. Signed-off-by: Benjamin Gaignard Acked-by: Rob Herring --- version 7: - Add Rob ack Documentation/devicetree/bindings/mfd/syscon.yaml | 1 + 1 file changed, 1 insertion(+) diff --git

[staging:staging-testing] BUILD SUCCESS 305271ab4f54f9ae7b9080473d1699c9511ae235

2021-03-28 Thread kernel test robot
allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a004-20210328 i386 randconfig-a003-20210328 i386 randconfig-a001-20210328 i386 randconfig-a002-20210328 i386

[driver-core:driver-core-testing] BUILD SUCCESS d225ef6fda7ce9ff7d28764bd1cceea2d0215e8b

2021-03-28 Thread kernel test robot
randconfig-a004-20210328 i386 randconfig-a003-20210328 i386 randconfig-a001-20210328 i386 randconfig-a002-20210328 i386 randconfig-a006-20210328 i386 randconfig-a005-20210328 x86_64

Re: Sound issues with the 5.10.x kernel (alsa)

2021-03-28 Thread Ryutaroh Matsumoto
>> i assume you set this option in the config.txt? This shouldn't have any >> affect for the mainline kernel / DT. > I am aware of that... I include my config.txt on RPi4B for reference... arm_64bit=1 enable_uart=1 upstream_kernel=1 kernel=vmlinuz-5.10.0-5-rt-arm64 initramfs initrd.img-5.10.0-5-rt

Re: Sound issues with the 5.10.x kernel (alsa)

2021-03-28 Thread Ryutaroh Matsumoto
Hi Stefan, thank you for your response. > i assume you set this option in the config.txt? This shouldn't have any > affect for the mainline kernel / DT. I am aware of that... I did "snd_bcm2835 enable_hdmi=0" in /etc/modules. "modinfo snd_bcm2835" shows as below. Doesn't it indicate snd_bcm2835 h

Re: [PATCH v4 1/2] char: xillybus: Move class-related functions to new xillybus_class.c

2021-03-28 Thread Greg KH
On Tue, Mar 23, 2021 at 02:05:23PM +0200, Eli Billauer wrote: > On 22/03/21 13:11, Greg KH wrote: > > > > > XILLYBUS and XILLYBUS_PCIE are currently enabled as M in several Linux > > > distributions. Making them depend on, rather than select XILLYBUS_CLASS is > > > likely to disable the driver in

Re: Sound issues with the 5.10.x kernel (alsa)

2021-03-28 Thread Stefan Wahren
Hi, Am 28.03.21 um 07:58 schrieb Ryutaroh Matsumoto: >> I think the root cause of this issue is that both vc4.ko and snd_bcm2835.ko >> try to provide ALSA sinks to HDMI audio outputs from RPi. >> Why do the two drivers provide the same functionality for the same device? >> It seems nonsense. >> Th