[linux-sunxi] [PATCH 11/14] dt-bindings: media: i2c: Add A83T MIPI CSI-2 bindings documentation

2020-10-23 Thread Paul Kocialkowski
This introduces YAML bindings documentation for the A83T MIPI CSI-2 controller. Signed-off-by: Paul Kocialkowski --- .../media/allwinner,sun8i-a83t-mipi-csi2.yaml | 158 ++ 1 file changed, 158 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/allwinner

[linux-sunxi] [PATCH 12/14] media: sunxi: Add support for the A83T MIPI CSI-2 controller

2020-10-23 Thread Paul Kocialkowski
the Allwinner BSP. This version integrates MIPI CSI-2 support as a standalone V4L2 subdev instead of merging it in the sun6i-csi driver. It was tested on a Banana Pi M3 board with an OV8865 sensor in a 4-lane configuration. Signed-off-by: Paul Kocialkowski --- drivers/media/platform/sunxi/Kconfig

[linux-sunxi] [PATCH 14/14] media: sunxi: sun8i-a83t-mipi-csi2: Avoid using the (unsolicited) interrupt

2020-10-23 Thread Paul Kocialkowski
using it for error reporting. Signed-off-by: Paul Kocialkowski --- .../sun8i_a83t_mipi_csi2.c| 40 --- 1 file changed, 40 deletions(-) diff --git a/drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c b/drivers/media/platform/sunxi/sun8i

[linux-sunxi] [PATCH 08/14] media: sunxi: Add support for the A31 MIPI CSI-2 controller

2020-10-23 Thread Paul Kocialkowski
the fwnode graph and media controller API. Signed-off-by: Paul Kocialkowski --- drivers/media/platform/sunxi/Kconfig | 1 + drivers/media/platform/sunxi/Makefile | 1 + .../platform/sunxi/sun6i-mipi-csi2/Kconfig| 11 + .../platform/sunxi/sun6i-mipi-csi2/Makefile | 4

[linux-sunxi] [PATCH 13/14] ARM: dts: sun8i: a83t: Add MIPI CSI-2 controller node

2020-10-23 Thread Paul Kocialkowski
MIPI CSI-2 is supported on the A83T with a dedicated controller that covers both the protocol and D-PHY. It can be connected to the CSI interface as a V4L2 subdev through the fwnode graph. Signed-off-by: Paul Kocialkowski --- arch/arm/boot/dts/sun8i-a83t.dtsi | 26 ++ 1

[linux-sunxi] [PATCH 06/14] media: sun6i-csi: Support feeding from the MIPI CSI-2 controller

2020-10-23 Thread Paul Kocialkowski
controller doesn't have much to do itself except for selecting the MIPI CSI-2 input. Co-developed-by: Kévin L'hôpital Signed-off-by: Kévin L'hôpital Signed-off-by: Paul Kocialkowski --- drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers

[linux-sunxi] [PATCH 07/14] dt-bindings: media: i2c: Add A31 MIPI CSI-2 bindings documentation

2020-10-23 Thread Paul Kocialkowski
This introduces YAML bindings documentation for the A31 MIPI CSI-2 controller. Signed-off-by: Paul Kocialkowski --- .../media/allwinner,sun6i-a31-mipi-csi2.yaml | 168 ++ 1 file changed, 168 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/allwinner

[linux-sunxi] [PATCH 02/14] phy: allwinner: phy-sun6i-mipi-dphy: Support D-PHY Rx mode for MIPI CSI-2

2020-10-23 Thread Paul Kocialkowski
The Allwinner A31 D-PHY supports both Rx and Tx modes. While the latter is already supported and used for MIPI DSI this adds support for the former, to be used with MIPI CSI-2. This implementation is inspired by the Allwinner BSP implementation. Signed-off-by: Paul Kocialkowski --- drivers/phy

[linux-sunxi] [PATCH 05/14] media: sun6i-csi: Only configure the interface data width for parallel

2020-10-23 Thread Paul Kocialkowski
L'hôpital Signed-off-by: Paul Kocialkowski --- .../platform/sunxi/sun6i-csi/sun6i_csi.c | 42 +++ 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c index

[linux-sunxi] [PATCH 10/14] ARM: dts: sun8i: v3s: Add MIPI D-PHY and MIPI CSI-2 interface nodes

2020-10-23 Thread Paul Kocialkowski
is the same that already drives DSI, but used in Rx mode. Signed-off-by: Paul Kocialkowski --- arch/arm/boot/dts/sun8i-v3s.dtsi | 50 1 file changed, 50 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-v3s.dtsi b/arch/arm/boot/dts/sun8i-v3s.dtsi index 07722bc5df11

[linux-sunxi] [PATCH 04/14] media: sun6i-csi: Fix the image storage bpp for 10/12-bit Bayer formats

2020-10-23 Thread Paul Kocialkowski
it there. Fixes: 5cc7522d8965 ("media: sun6i: Add support for Allwinner CSI V3s") Co-developed-by: Kévin L'hôpital Signed-off-by: Kévin L'hôpital Signed-off-by: Paul Kocialkowski --- .../platform/sunxi/sun6i-csi/sun6i_csi.h | 20 +-- 1 file changed, 10 insertions(+), 10

[linux-sunxi] [PATCH 00/14] Allwinner MIPI CSI-2 support for A31/V3s/A83T

2020-10-23 Thread Paul Kocialkowski
one colorspace:raw xfer:none ycbcr:601 quantization:full-range] -> "sun6i-mipi-csi2":0 [ENABLED,IMMUTABLE] Happy reviewing! Paul Kocialkowski (14): phy: Distinguish between Rx and Tx for MIPI D-PHY with submodes phy: allwinner: phy-sun6i-mipi-dphy: Support D-PHY Rx mode for MI

[linux-sunxi] [PATCH 03/14] media: sun6i-csi: Support an optional dedicated memory pool

2020-10-23 Thread Paul Kocialkowski
This allows selecting a dedicated CMA memory pool (specified via device-tree) instead of the default one. Signed-off-by: Paul Kocialkowski --- drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/media/platform/sunxi/sun6i-csi

[linux-sunxi] [PATCH 01/14] phy: Distinguish between Rx and Tx for MIPI D-PHY with submodes

2020-10-23 Thread Paul Kocialkowski
(zero value) is kept to Tx so only the rkisp1 driver, which uses D-PHY in Rx mode, needs to be adapted. Signed-off-by: Paul Kocialkowski --- drivers/staging/media/rkisp1/rkisp1-isp.c | 3 ++- include/linux/phy/phy-mipi-dphy.h | 13 + 2 files changed, 15 insertions(+), 1

Re: [linux-sunxi] [PATCH] media: cedrus: Implement runtime PM

2020-04-21 Thread Paul Kocialkowski
Hi Ezequiel, On Tue 21 Apr 20, 00:51, Ezequiel Garcia wrote: > Hi Jernej, Paul: > > On Mon, 20 Apr 2020 at 13:41, Jernej Škrabec wrote: > > > > Dne ponedeljek, 20. april 2020 ob 17:10:10 CEST je Paul Kocialkowski > > napisal(a): > > > Hi, > > >

Re: [linux-sunxi] [PATCH] media: cedrus: Implement runtime PM

2020-04-21 Thread Paul Kocialkowski
Hi, On Mon 20 Apr 20, 20:09, Jernej Škrabec wrote: > Hi! > > Dne ponedeljek, 20. april 2020 ob 19:56:51 CEST je Paul Kocialkowski > napisal(a): > > Hi Jernej, > > > > On Mon 20 Apr 20, 18:41, Jernej Škrabec wrote: > > > Dne ponedeljek, 20. april 202

Re: [linux-sunxi] [PATCH] media: cedrus: Implement runtime PM

2020-04-20 Thread Paul Kocialkowski
Hi Jernej, On Mon 20 Apr 20, 18:41, Jernej Škrabec wrote: > Dne ponedeljek, 20. april 2020 ob 17:10:10 CEST je Paul Kocialkowski > napisal(a): > > Hi, > > > > On Sun 19 Apr 20, 15:28, Samuel Holland wrote: > > > On 4/8/20 11:01 AM, Jernej Škrabec wrote: > &

Re: [linux-sunxi] [PATCH] media: cedrus: Implement runtime PM

2020-04-20 Thread Paul Kocialkowski
s are only set in start streaming handler. With your > > approach, if first frame is submitted too late, asserting and de-asserting > > reset line could reset those registers. > > I only see registers being set in cedrus_start_streaming() after your patch, > where you add a

[linux-sunxi] Re: [PATCH] media: cedrus: Implement runtime PM

2020-04-08 Thread Paul Kocialkowski
ter every frame. Looks good, thanks for the contribution :) Acked-by: Paul Kocialkowski Cheers, Paul > Signed-off-by: Samuel Holland > --- > > I tested this with v4l2-request-test. I don't have the setup to do > anything more complicated at the moment. > > --- > driv

[linux-sunxi] Re: [PATCH v2 2/3] media: cedrus: Fix H264 4k support

2019-11-09 Thread Paul Kocialkowski
Hi Jenrej, On Wed 06 Nov 19, 22:05, Jernej Skrabec wrote: > H264 decoder needs additional or bigger buffers in order to decode 4k > videos. Thanks for the changes, looks good to me! Acked-by: Paul Kocialkowski Cheers, Paul > Signed-off-by: Jernej Skrabec > --- > driver

[linux-sunxi] Re: [PATCH] phy: allwinner: Fix GENMASK misuse

2019-11-08 Thread Paul Kocialkowski
commit/?id=06eff2150d4db991ca236f3d05a9dc0101475aea Cheers, Paul -- Paul Kocialkowski, Bootlin Embedded Linux and kernel engineering https://bootlin.com -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this gro

[linux-sunxi] Re: [PATCH 1/3] media: cedrus: Properly signal size in mode register

2019-11-05 Thread Paul Kocialkowski
Hi, On Mon 04 Nov 19, 17:33, Jernej Škrabec wrote: > Dne ponedeljek, 04. november 2019 ob 11:02:28 CET je Paul Kocialkowski > napisal(a): > > Hi Jernej, > > > > On Sat 26 Oct 19, 09:49, Jernej Skrabec wrote: > > > Mode register also holds information i

[linux-sunxi] Re: [PATCH 2/3] media: cedrus: Fix H264 4k support

2019-11-05 Thread Paul Kocialkowski
Hi Jernej, On Mon 04 Nov 19, 17:53, Jernej Škrabec wrote: > Dne ponedeljek, 04. november 2019 ob 11:13:19 CET je Paul Kocialkowski > napisal(a): > > Hi, > > > > On Sat 26 Oct 19, 09:49, Jernej Skrabec wrote: > > > H264 decoder needs additional or big

[linux-sunxi] Re: [PATCH 3/3] media: cedrus: Increase maximum supported size

2019-11-04 Thread Paul Kocialkowski
-off-by: Jernej Skrabec Acked-by: Paul Kocialkowski As I said on the other email, it would be nice to eventually reflect the actual per-platform maximum dimensions instead of hardcoding the maximum for all platforms confounded. Cheers, Paul > --- > drivers/staging/media/sunxi/cedrus/cedrus_

[linux-sunxi] Re: [PATCH 2/3] media: cedrus: Fix H264 4k support

2019-11-04 Thread Paul Kocialkowski
Hi, On Sat 26 Oct 19, 09:49, Jernej Skrabec wrote: > H264 decoder needs additional or bigger buffers in order to decode 4k > videos. Thanks for the fixup, we hadn't looked into those bits at all during initial bringup of H.264! See a few minor comments below. > Signed-off-by: Jernej Skrabec >

[linux-sunxi] Re: [PATCH 1/3] media: cedrus: Properly signal size in mode register

2019-11-04 Thread Paul Kocialkowski
Hi Jernej, On Sat 26 Oct 19, 09:49, Jernej Skrabec wrote: > Mode register also holds information if video width is bigger than 2048 > and if it is equal to 4096. > > Rework cedrus_engine_enable() to properly signal this properties. Thanks for the patch, looks good to me! Ac

[linux-sunxi] [PATCH v9 5/5] media: cedrus: Add HEVC/H.265 decoding support

2019-10-22 Thread Paul Kocialkowski
This introduces support for HEVC/H.265 to the Cedrus VPU driver, with both uni-directional and bi-directional prediction modes supported. Field-coded (interlaced) pictures, custom quantization matrices and 10-bit output are not supported at this point. Signed-off-by: Paul Kocialkowski

[linux-sunxi] [PATCH v9 1/5] media: cedrus: Fix undefined shift with a SHIFT_AND_MASK_BITS macro

2019-10-22 Thread Paul Kocialkowski
apply as-is, explicitly cast to unsigned instead. This macro should be moved to include/linux/bits.h eventually. Signed-off-by: Paul Kocialkowski --- .../staging/media/sunxi/cedrus/cedrus_regs.h | 31 ++- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/drivers

[linux-sunxi] [PATCH v9 3/5] media: v4l: Add definitions for HEVC stateless decoding

2019-10-22 Thread Paul Kocialkowski
for a single temporal layer only; * No slice entry point offsets support; * No conformance window support; * No VUI parameters support; * No support for SPS extensions: range, multilayer, 3d, scc, 4 bits; * No support for PPS extensions: range, multilayer, 3d, scc, 4 bits. Signed-off-by: Paul

[linux-sunxi] [PATCH v9 2/5] media: cedrus: Remove unnecessary parenthesis around DIV_ROUND_UP

2019-10-22 Thread Paul Kocialkowski
DIV_ROUND_UP's first argument doesn't need to be wrapped in parenthesis since that is already being taken care of in the macro's definition. Signed-off-by: Paul Kocialkowski --- drivers/staging/media/sunxi/cedrus/cedrus_regs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[linux-sunxi] [PATCH v9 4/5] media: pixfmt: Document the HEVC slice pixel format

2019-10-22 Thread Paul Kocialkowski
Document the current state of the HEVC slice pixel format. The format will need to evolve in the future, which is why it is not part of the public API. Signed-off-by: Paul Kocialkowski --- .../media/uapi/v4l/pixfmt-compressed.rst | 23 +++ 1 file changed, 23 insertions

[linux-sunxi] [PATCH v9 0/5] HEVC/H.265 stateless support for V4L2 and Cedrus

2019-10-22 Thread Paul Kocialkowski
instead of buffer indices in the DPB * Declared variable in their reduced scope as suggested; * Added the H.265/HEVC spec to the biblio; * Used in-doc references to the spec and the required APIs; * Removed debugging leftovers. Cheers! Paul Kocialkowski (5): media: cedrus: Fix undefined shift

[linux-sunxi] Re: [PATCH v8 3/3] media: cedrus: Add HEVC/H.265 decoding support

2019-10-22 Thread Paul Kocialkowski
Hi, On Tue 22 Oct 19, 15:37, Hans Verkuil wrote: > On 10/22/19 3:17 PM, Paul Kocialkowski wrote: > > Hi again, > > > > On Tue 22 Oct 19, 14:40, Paul Kocialkowski wrote: > >> Hi Mauro and thanks for the review, > >> > >> On Thu 17 Oct 19, 09:57, M

[linux-sunxi] Re: [PATCH v8 3/3] media: cedrus: Add HEVC/H.265 decoding support

2019-10-22 Thread Paul Kocialkowski
Hi again, On Tue 22 Oct 19, 14:40, Paul Kocialkowski wrote: > Hi Mauro and thanks for the review, > > On Thu 17 Oct 19, 09:57, Mauro Carvalho Chehab wrote: > > Em Fri, 27 Sep 2019 16:34:11 +0200 > > Paul Kocialkowski escreveu: > > > > > This introduces supp

[linux-sunxi] Re: [PATCH v8 3/3] media: cedrus: Add HEVC/H.265 decoding support

2019-10-22 Thread Paul Kocialkowski
Hi Mauro and thanks for the review, On Thu 17 Oct 19, 09:57, Mauro Carvalho Chehab wrote: > Em Fri, 27 Sep 2019 16:34:11 +0200 > Paul Kocialkowski escreveu: > > > This introduces support for HEVC/H.265 to the Cedrus VPU driver, with > > both uni-directional and bi-directi

[linux-sunxi] Re: [PATCH v8 0/3] HEVC/H.265 stateless support for V4L2 and Cedrus

2019-10-09 Thread Paul Kocialkowski
Hi, On Tue 08 Oct 19, 23:48, Jernej Škrabec wrote: > Dne petek, 27. september 2019 ob 16:34:08 CEST je Paul Kocialkowski > napisal(a): > > HEVC/H.265 stateless support for V4L2 and Cedrus > > > > This is early support for HEVC/H.265 stateless decoding in V4L2, > &

[linux-sunxi] [PATCH v8 3/3] media: cedrus: Add HEVC/H.265 decoding support

2019-09-27 Thread Paul Kocialkowski
This introduces support for HEVC/H.265 to the Cedrus VPU driver, with both uni-directional and bi-directional prediction modes supported. Field-coded (interlaced) pictures, custom quantization matrices and 10-bit output are not supported at this point. Signed-off-by: Paul Kocialkowski

[linux-sunxi] [PATCH v8 0/3] HEVC/H.265 stateless support for V4L2 and Cedrus

2019-09-27 Thread Paul Kocialkowski
as suggested; * Added the H.265/HEVC spec to the biblio; * Used in-doc references to the spec and the required APIs; * Removed debugging leftovers. Cheers! Paul Kocialkowski (3): media: v4l: Add definitions for HEVC stateless decoding media: pixfmt: Document the HEVC slice pixel format media: cedrus

[linux-sunxi] [PATCH v8 2/3] media: pixfmt: Document the HEVC slice pixel format

2019-09-27 Thread Paul Kocialkowski
Document the current state of the HEVC slice pixel format. The format will need to evolve in the future, which is why it is not part of the public API. Signed-off-by: Paul Kocialkowski --- .../media/uapi/v4l/pixfmt-compressed.rst | 23 +++ 1 file changed, 23 insertions

[linux-sunxi] [PATCH v8 1/3] media: v4l: Add definitions for HEVC stateless decoding

2019-09-27 Thread Paul Kocialkowski
for a single temporal layer only; * No slice entry point offsets support; * No conformance window support; * No VUI parameters support; * No support for SPS extensions: range, multilayer, 3d, scc, 4 bits; * No support for PPS extensions: range, multilayer, 3d, scc, 4 bits. Signed-off-by: Paul

[linux-sunxi] Re: [PATCH v7 0/4] HEVC/H.265 stateless support for V4L2 and Cedrus

2019-07-31 Thread Paul Kocialkowski
Hi, On Tue 30 Jul 19, 09:27, Hans Verkuil wrote: > On 7/27/19 11:57 AM, Paul Kocialkowski wrote: > > Hi Hans, > > > > On Fri 26 Jul 19, 10:33, Hans Verkuil wrote: > >> On 7/25/19 8:55 PM, Paul Kocialkowski wrote: > >>> HEVC/H.265 stateless support for

[linux-sunxi] Re: [PATCH v7 0/4] HEVC/H.265 stateless support for V4L2 and Cedrus

2019-07-27 Thread Paul Kocialkowski
Hi Hans, On Fri 26 Jul 19, 10:33, Hans Verkuil wrote: > On 7/25/19 8:55 PM, Paul Kocialkowski wrote: > > HEVC/H.265 stateless support for V4L2 and Cedrus > > > > This is early support for HEVC/H.265 stateless decoding in V4L2, > > including both definitions and driver

[linux-sunxi] [PATCH v7 3/4] media: pixfmt: Document the HEVC slice pixel format

2019-07-25 Thread Paul Kocialkowski
Document the current state of the HEVC slice pixel format. The format will need to evolve in the future, which is why it is not part of the public API. Signed-off-by: Paul Kocialkowski --- .../media/uapi/v4l/pixfmt-compressed.rst | 21 +++ 1 file changed, 21 insertions

[linux-sunxi] [PATCH v7 2/4] media: v4l: Add definitions for the HEVC slice controls

2019-07-25 Thread Paul Kocialkowski
support; * No support for SPS extensions: range, multilayer, 3d, scc, 4 bits; * No support for PPS extensions: range, multilayer, 3d, scc, 4 bits. Signed-off-by: Paul Kocialkowski --- Documentation/media/uapi/v4l/biblio.rst | 9 + .../media/uapi/v4l/ext-ctrls-codec.rst| 486

[linux-sunxi] [PATCH v7 4/4] media: cedrus: Add HEVC/H.265 decoding support

2019-07-25 Thread Paul Kocialkowski
This introduces support for HEVC/H.265 to the Cedrus VPU driver, with both uni-directional and bi-directional prediction modes supported. Field-coded (interlaced) pictures, custom quantization matrices and 10-bit output are not supported at this point. Signed-off-by: Paul Kocialkowski

[linux-sunxi] [PATCH v7 0/4] HEVC/H.265 stateless support for V4L2 and Cedrus

2019-07-25 Thread Paul Kocialkowski
instead of buffer indices in the DPB * Declared variable in their reduced scope as suggested; * Added the H.265/HEVC spec to the biblio; * Used in-doc references to the spec and the required APIs; * Removed debugging leftovers. Cheers! Paul Kocialkowski (4): media: v4l2-ctrl: Add a comment on why

[linux-sunxi] [PATCH v7 1/4] media: v4l2-ctrl: Add a comment on why we zero out compound controls fields

2019-07-25 Thread Paul Kocialkowski
Since it's not necessarily very explicit why we need to zero some fields in std_validate_compound, add a comment before the function to explain why, which should help as a reminder. Signed-off-by: Paul Kocialkowski --- drivers/media/v4l2-core/v4l2-ctrls.c | 4 1 file changed, 4 insertions

[linux-sunxi] Re: [PATCH v6 3/5] media: v4l: Add definitions for the HEVC slice controls

2019-07-25 Thread Paul Kocialkowski
Hi Hans and thanks for the review! On Mon 22 Jul 19, 16:40, Hans Verkuil wrote: > On 6/14/19 4:38 PM, Paul Kocialkowski wrote: > > This introduces the required definitions for HEVC decoding support with > > stateless VPUs. The controls associated to the HEVC slice format provide &

[linux-sunxi] Re: [PATCH v6 0/5] HEVC/H.265 stateless support for V4L2 and Cedrus

2019-07-22 Thread Paul Kocialkowski
Hi, Any feedback on this series? I think it was pretty much ready for merge regarding the comments received so far. I could craft a rebased v7, with or without additional changes, if needed. What do you think? Cheers, Paul On Fri 14 Jun 19, 16:38, Paul Kocialkowski wrote: > This is ea

Re: [linux-sunxi] [PATCH] phy: sun4i-usb: Fix PHY0 routing and passby configuration for MUSB

2019-07-15 Thread Paul Kocialkowski
Hi, On Mon 15 Jul 19, 12:55, Jagan Teki wrote: > On Mon, May 27, 2019 at 5:21 AM André Przywara wrote: > > > > On 17/04/2019 12:28, Jagan Teki wrote: > > > On Mon, Apr 15, 2019 at 1:52 PM Paul Kocialkowski > > > wrote: > > > > Hi, > > > &g

Re: [linux-sunxi] [PATCH] phy: sun4i-usb: Fix PHY0 routing and passby configuration for MUSB

2019-07-12 Thread Paul Kocialkowski
Hi, On Mon 27 May 19, 00:50, André Przywara wrote: > On 17/04/2019 12:28, Jagan Teki wrote: > > On Mon, Apr 15, 2019 at 1:52 PM Paul Kocialkowski > > wrote: > > Hi, > > >> Le vendredi 12 avril 2019 à 14:49 +0530, Jagan Teki a écrit : > >>> On T

[linux-sunxi] [PATCH v6 0/5] HEVC/H.265 stateless support for V4L2 and Cedrus

2019-06-14 Thread Paul Kocialkowski
.265/HEVC spec to the biblio; * Used in-doc references to the spec and the required APIs; * Removed debugging leftovers. Cheers! Paul Kocialkowski (5): media: v4l2-ctrls: Split off MPEG-2 controls validation media: v4l2-ctrls: Split off MPEG-2 controls initialization media: v4l: Add

[linux-sunxi] [PATCH v6 5/5] media: cedrus: Add HEVC/H.265 decoding support

2019-06-14 Thread Paul Kocialkowski
This introduces support for HEVC/H.265 to the Cedrus VPU driver, with both uni-directional and bi-directional prediction modes supported. Field-coded (interlaced) pictures, custom quantization matrices and 10-bit output are not supported at this point. Signed-off-by: Paul Kocialkowski

[linux-sunxi] [PATCH v6 1/5] media: v4l2-ctrls: Split off MPEG-2 controls validation

2019-06-14 Thread Paul Kocialkowski
Since codec controls validation comes with its own logic, split off std_validate for MPEG-2 for better clarity. Use a shorter name for the validated structure and use the type-specific pointer to grab it while at it. Signed-off-by: Paul Kocialkowski --- drivers/media/v4l2-core/v4l2-ctrls.c

[linux-sunxi] [PATCH v6 4/5] media: pixfmt: Document the HEVC slice pixel format

2019-06-14 Thread Paul Kocialkowski
Document the current state of the HEVC slice pixel format. The format will need to evolve in the future, which is why it is not part of the public API. Signed-off-by: Paul Kocialkowski --- .../media/uapi/v4l/pixfmt-compressed.rst | 21 +++ 1 file changed, 21 insertions

[linux-sunxi] [PATCH v6 2/5] media: v4l2-ctrls: Split off MPEG-2 controls initialization

2019-06-14 Thread Paul Kocialkowski
Just like codec-specific controls validation, controls initialization for codecs is quite specific so move it to a specific helper for MPEG-2 for increased clarity. Signed-off-by: Paul Kocialkowski --- drivers/media/v4l2-core/v4l2-ctrls.c | 33 ++-- 1 file changed, 22

[linux-sunxi] [PATCH v6 3/5] media: v4l: Add definitions for the HEVC slice controls

2019-06-14 Thread Paul Kocialkowski
support; * No support for SPS extensions: range, multilayer, 3d, scc, 4 bits; * No support for PPS extensions: range, multilayer, 3d, scc, 4 bits. Signed-off-by: Paul Kocialkowski --- Documentation/media/uapi/v4l/biblio.rst | 9 + .../media/uapi/v4l/ext-ctrls-codec.rst| 474

Re: [linux-sunxi] [PATCH v2 03/11] pinctrl: sunxi: v3s: introduce support for V3

2019-06-12 Thread Paul Kocialkowski
> + SUNXI_FUNCTION(0x0, "gpio_in"), > + SUNXI_FUNCTION(0x1, "gpio_out"), > + SUNXI_FUNCTION(0x2, "i2s"), /* BCLK */ > + SUNXI_FUNCTION_IRQ_BANK(0x6, 1, 11)), /* PG_EINT11 */ > + SUNXI_PIN_VARIA

Re: [linux-sunxi] [RESEND PATCH] ARM: dts: sun7i: olimex-lime2: Enable ac and power supplies

2019-05-28 Thread Paul Kocialkowski
Hi, On Tue, 2019-05-28 at 09:35 +0300, Priit Laes wrote: > Lime2 has battery connector so enable these supplies. Out of curiosity, what is reported to userspace when no battery is attached? Looks good otherwise: Reviewed-by: Paul Kocialkowski Cheers, Paul > Signed-off-by: Prii

Re: [linux-sunxi] [PATCH] phy: sun4i-usb: Fix PHY0 routing and passby configuration for MUSB

2019-05-27 Thread Paul Kocialkowski
Hi, On Mon, 2019-05-27 at 00:50 +0100, André Przywara wrote: > On 17/04/2019 12:28, Jagan Teki wrote: > > On Mon, Apr 15, 2019 at 1:52 PM Paul Kocialkowski > > wrote: > > Hi, > > > > Le vendredi 12 avril 2019 à 14:49 +0530, Jagan Teki a écrit : > > &

[linux-sunxi] Re: [PATCH v5 1/4] media: v4l: Add definitions for the HEVC slice controls

2019-05-25 Thread Paul Kocialkowski
Hi Hans, On Sat, 2019-05-25 at 13:08 +0200, Hans Verkuil wrote: > Hi Paul, > > This patch is missing your Signed-of-by line! Can you reply with your SoB? Ouch, sorry about that. This is definitely: Signed-off-by: Paul Kocialkowski Cheers, Paul > Regards, > > Hans

[linux-sunxi] [PATCH v5 1/4] media: v4l: Add definitions for the HEVC slice controls

2019-05-24 Thread Paul Kocialkowski
This introduces the required definitions for HEVC decoding support with stateless VPUs. The controls associated to the HEVC slice format provide the required meta-data for decoding slices extracted from the bitstream. They are not exported to the public V4L2 API since reworking this API will be

[linux-sunxi] [PATCH v5 4/4] media: cedrus: Add HEVC/H.265 decoding support

2019-05-24 Thread Paul Kocialkowski
This introduces support for HEVC/H.265 to the Cedrus VPU driver, with both uni-directional and bi-directional prediction modes supported. Field-coded (interlaced) pictures, custom quantization matrices and 10-bit output are not supported at this point. Signed-off-by: Paul Kocialkowski

[linux-sunxi] [PATCH v5 0/4] HEVC/H.265 stateless support for V4L2 and Cedrus

2019-05-24 Thread Paul Kocialkowski
relevant platforms; * Switched over to tags instead of buffer indices in the DPB * Declared variable in their reduced scope as suggested; * Added the H.265/HEVC spec to the biblio; * Used in-doc references to the spec and the required APIs; * Removed debugging leftovers. Cheers! Paul Kocialkowski (4

[linux-sunxi] [PATCH v5 2/4] media: pixfmt: Add HEVC slice pixel format

2019-05-24 Thread Paul Kocialkowski
format (with raw slice header), with slice controls attached. Signed-off-by: Paul Kocialkowski --- include/media/hevc-ctrls.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/media/hevc-ctrls.h b/include/media/hevc-ctrls.h index 9ea013c88afc..2de83d9f6d47 100644 --- a/include/media

[linux-sunxi] [PATCH v5 3/4] media: pixfmt: Document the HEVC slice pixel format

2019-05-24 Thread Paul Kocialkowski
Document the current state of the HEVC slice pixel format. The format will need to evolve in the future, which is why it is not part of the public API. Signed-off-by: Paul Kocialkowski --- .../media/uapi/v4l/pixfmt-compressed.rst | 21 +++ 1 file changed, 21 insertions

[linux-sunxi] [PATCH v11 1/4] media: uapi: Add H264 low-level decoder API compound controls.

2019-05-24 Thread Paul Kocialkowski
From: Pawel Osciak Stateless video codecs will require both the H264 metadata and slices in order to be able to decode frames. This introduces the definitions for the structures used to pass the metadata from the userspace to the kernel. Reviewed-by: Paul Kocialkowski Reviewed-by: Tomasz Figa

[linux-sunxi] [PATCH v11 4/4] media: cedrus: Add H264 decoding support

2019-05-24 Thread Paul Kocialkowski
From: Maxime Ripard Introduce some basic H264 decoding support in cedrus. So far, only the baseline profile videos have been tested, and some more advanced features used in higher profiles are not even implemented. Reviewed-by: Jernej Skrabec Reviewed-by: Paul Kocialkowski Signed-off

[linux-sunxi] [PATCH v11 3/4] media: pixfmt: Add H264_SLICE_RAW format documentation

2019-05-24 Thread Paul Kocialkowski
From: Maxime Ripard The H264_SLICE_RAW format introduced before is meant for stateless decoders that will need the H264 parsed slice data without the start code. Let's document it. Signed-off-by: Maxime Ripard Signed-off-by: Hans Verkuil --- .../media/uapi/v4l/pixfmt-compressed.rst |

[linux-sunxi] [PATCH v11 0/4] media: cedrus: Add H264 decoding support

2019-05-24 Thread Paul Kocialkowski
Hi, Here is a new version of the H264 decoding support in the cedrus driver. As you might already know, the cedrus driver relies on the Request API, and is a reverse engineered driver for the video decoding engine found on the Allwinner SoCs. This work has been possible thanks to the work done

[linux-sunxi] [PATCH v4 4/4] media: cedrus: Add HEVC/H.265 decoding support

2019-04-25 Thread Paul Kocialkowski
This introduces support for HEVC/H.265 to the Cedrus VPU driver, with both uni-directional and bi-directional prediction modes supported. Field-coded (interlaced) pictures, custom quantization matrices and 10-bit output are not supported at this point. Signed-off-by: Paul Kocialkowski

[linux-sunxi] [PATCH v4 1/4] media: v4l: Add definitions for the HEVC slice controls

2019-04-25 Thread Paul Kocialkowski
This introduces the required definitions for HEVC decoding support with stateless VPUs. The controls associated to the HEVC slice format provide the required meta-data for decoding slices extracted from the bitstream. They are not exported to the public V4L2 API since reworking this API will be

[linux-sunxi] [PATCH v4 3/4] media: pixfmt: Document the HEVC slice pixel format

2019-04-25 Thread Paul Kocialkowski
Document the current state of the HEVC slice pixel format. The format will need to evolve in the future, which is why it is not part of the public API. Signed-off-by: Paul Kocialkowski --- .../media/uapi/v4l/pixfmt-compressed.rst | 21 +++ 1 file changed, 21 insertions

[linux-sunxi] [PATCH v4 2/4] media: pixfmt: Add HEVC slice pixel format

2019-04-25 Thread Paul Kocialkowski
format (with raw slice header), with slice controls attached. Signed-off-by: Paul Kocialkowski --- include/media/hevc-ctrls.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/media/hevc-ctrls.h b/include/media/hevc-ctrls.h index 9ea013c88afc..2de83d9f6d47 100644 --- a/include/media

[linux-sunxi] [PATCH v4 0/4] HEVC/H.265 stateless support for V4L2 and Cedrus

2019-04-25 Thread Paul Kocialkowski
of buffer indices in the DPB * Declared variable in their reduced scope as suggested; * Added the H.265/HEVC spec to the biblio; * Used in-doc references to the spec and the required APIs; * Removed debugging leftovers. Cheers! Paul Kocialkowski (4): media: v4l: Add definitions for the HEVC slice

[linux-sunxi] [PATCH v10 4/4] media: cedrus: Add H264 decoding support

2019-04-24 Thread Paul Kocialkowski
From: Maxime Ripard Introduce some basic H264 decoding support in cedrus. So far, only the baseline profile videos have been tested, and some more advanced features used in higher profiles are not even implemented. Reviewed-by: Jernej Skrabec Reviewed-by: Paul Kocialkowski Signed-off

[linux-sunxi] [PATCH v10 3/4] media: pixfmt: Add H264_SLICE_RAW format documentation

2019-04-24 Thread Paul Kocialkowski
From: Maxime Ripard The H264_SLICE_RAW format introduced before is meant for stateless decoders that will need the H264 parsed slice data without the start code. Let's document it. Signed-off-by: Maxime Ripard Signed-off-by: Hans Verkuil --- .../media/uapi/v4l/pixfmt-compressed.rst |

[linux-sunxi] [PATCH v10 2/4] media: pixfmt: Add H264 Slice format

2019-04-24 Thread Paul Kocialkowski
From: Maxime Ripard The H264_SLICE_RAW format is meant to hold the parsed slice data without the start code. This will be needed by stateless decoders. Signed-off-by: Maxime Ripard Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-ioctl.c | 1 + include/media/h264-ctrls.h

[linux-sunxi] [PATCH v10 1/4] media: uapi: Add H264 low-level decoder API compound controls.

2019-04-24 Thread Paul Kocialkowski
From: Pawel Osciak Stateless video codecs will require both the H264 metadata and slices in order to be able to decode frames. This introduces the definitions for the structures used to pass the metadata from the userspace to the kernel. Reviewed-by: Paul Kocialkowski Reviewed-by: Tomasz Figa

[linux-sunxi] [PATCH v10 0/4] media: cedrus: Add H264 decoding support

2019-04-24 Thread Paul Kocialkowski
Hi, Here is a new version of the H264 decoding support in the cedrus driver. As you might already know, the cedrus driver relies on the Request API, and is a reverse engineered driver for the video decoding engine found on the Allwinner SoCs. This work has been possible thanks to the work done

[linux-sunxi] [PATCH v2] drm/sun4i: Unbind components before releasing DRM and memory

2019-04-24 Thread Paul Kocialkowski
t;drm/sun4i: Fix component unbinding and component master deletion") Signed-off-by: Paul Kocialkowski Reviewed-by: Chen-Yu Tsai --- Changes since v1: * Fixed comment and added reviewed-by tag. drivers/gpu/drm/sun4i/sun4i_drv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)

Re: [linux-sunxi] [PATCH] drm/sun4i: Unbind components before releasing DRM and mem at master unbind

2019-04-23 Thread Paul Kocialkowski
Hi, Le mardi 23 avril 2019 à 10:14 -0700, Chen-Yu Tsai a écrit : > On Tue, Apr 23, 2019 at 10:06 AM Paul Kocialkowski > wrote: > > Hi, > > > > Le vendredi 19 avril 2019 à 19:10 +0200, Paul Kocialkowski a écrit : > > > Hi, > > > > > > On

Re: [linux-sunxi] [PATCH] drm/sun4i: Unbind components before releasing DRM and mem at master unbind

2019-04-23 Thread Paul Kocialkowski
Hi, Le vendredi 19 avril 2019 à 19:10 +0200, Paul Kocialkowski a écrit : > Hi, > > On Fri, 2019-04-19 at 09:02 -0700, Chen-Yu Tsai wrote: > > On Fri, Apr 19, 2019 at 1:03 AM Paul Kocialkowski > > wrote: > > > Our components may still be using the DRM device drive

Re: [linux-sunxi] [PATCH] drm/sun4i: Unbind components before releasing DRM and mem at master unbind

2019-04-19 Thread Paul Kocialkowski
Hi, On Fri, 2019-04-19 at 09:02 -0700, Chen-Yu Tsai wrote: > On Fri, Apr 19, 2019 at 1:03 AM Paul Kocialkowski > wrote: > > Our components may still be using the DRM device driver (if only to > > access our driver's private data), so make sure to unbind them before > &g

[linux-sunxi] [PATCH] drm/sun4i: Unbind components before releasing DRM and mem at master unbind

2019-04-19 Thread Paul Kocialkowski
onent unbinding and component master deletion") Signed-off-by: Paul Kocialkowski --- drivers/gpu/drm/sun4i/sun4i_drv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/sun4i/sun4i_drv.c b/drivers/gpu/drm/sun4i/sun4i_drv.c index 843b86661833..29258b404

[linux-sunxi] Re: [PATCH v3 1/2] media: v4l: Add definitions for the HEVC slice format and controls

2019-04-19 Thread Paul Kocialkowski
Hi, On Tue, 2019-04-02 at 13:51 +0200, Hans Verkuil wrote: > On 2/14/19 10:53 AM, Paul Kocialkowski wrote: [...] > > +.. c:type:: v4l2_hevc_dpb_entry > > + > > +.. cssclass:: longtable > > + > > +.. flat-table:: struct v4l2_hevc_dpb_entry > > +:he

Re: [linux-sunxi] [PATCH 3/3] drm/sun4i: Fix component unbinding and component master deletion

2019-04-18 Thread Paul Kocialkowski
Hi, Le jeudi 18 avril 2019 à 08:03 -0700, Chen-Yu Tsai a écrit : > On Thu, Apr 18, 2019 at 6:27 AM Paul Kocialkowski > wrote: > > For our component-backed driver to be properly removed, we need to > > delete the component master in sun4i_drv_remove and make sure to call > &

[linux-sunxi] [PATCH 2/3] drm/sun4i: Set device driver data at bind time for use in unbind

2019-04-18 Thread Paul Kocialkowski
Our sun4i_drv_unbind gets the drm device using dev_get_drvdata. However, that driver data is never set in sun4i_drv_bind. Set it there to avoid getting a NULL pointer at unbind time. Fixes: 9026e0d122ac ("drm: Add Allwinner A10 Display Engine support") Signed-off-by: Paul Ko

[linux-sunxi] [PATCH 3/3] drm/sun4i: Fix component unbinding and component master deletion

2019-04-18 Thread Paul Kocialkowski
ngine support") Signed-off-by: Paul Kocialkowski --- drivers/gpu/drm/sun4i/sun4i_drv.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/sun4i/sun4i_drv.c b/drivers/gpu/drm/sun4i/sun4i_drv.c index af07291544a4..0ea365e54de1 100644 --- a/drivers/gpu/drm/sun4i/sun4i_d

[linux-sunxi] [PATCH 1/3] drm/sun4i: Add missing drm_atomic_helper_shutdown at driver unbind

2019-04-18 Thread Paul Kocialkowski
A call to drm_atomic_helper_shutdown is required to properly release the internal references taken by the core and avoid warnings about leaking objects. Add it since it was missing. Fixes: 9026e0d122ac ("drm: Add Allwinner A10 Display Engine support") Signed-off-by: Paul Ko

[linux-sunxi] [PATCH 0/3] sun4i/drm: Fixes for removing and re-probing the driver

2019-04-18 Thread Paul Kocialkowski
This series brings-in some fixes that are necessary to be able to remove the driver at run-time (when built as a module) and properly re-probe it afterwards. Cheers, Paul Paul Kocialkowski (3): drm/sun4i: Add missing drm_atomic_helper_shutdown at driver unbind drm/sun4i: Set device driver

[linux-sunxi] [PATCH v2] drm/sun4i: Use DRM_GEM_CMA_VMAP_DRIVER_OPS for GEM operations

2019-04-18 Thread Paul Kocialkowski
can also get rid of free_object_unlocked and gem_vm_ops, which are superseded by the object funcs. Signed-off-by: Paul Kocialkowski --- Changes since v1: * Made sure our dumb_create overwrites the OPS's dumb_create. drivers/gpu/drm/sun4i/sun4i_drv.c | 16 +--- 1 file changed, 1

[linux-sunxi] Re: [PATCH] phy: sun4i-usb: Make sure to disable PHY0 passby for peripheral mode

2019-04-15 Thread Paul Kocialkowski
Hi, Le jeudi 14 mars 2019 à 14:05 +0100, Paul Kocialkowski a écrit : > On platforms where the MUSB and HCI controllers share PHY0, PHY passby > is required when using the HCI controller with the PHY, but it must be > disabled when the MUSB controller is used instead. > > Wit

Re: [linux-sunxi] [PATCH] phy: sun4i-usb: Fix PHY0 routing and passby configuration for MUSB

2019-04-15 Thread Paul Kocialkowski
Hi, Le vendredi 12 avril 2019 à 14:49 +0530, Jagan Teki a écrit : > On Thu, Mar 14, 2019 at 4:08 PM Paul Kocialkowski > wrote: > > Recent Allwinner platforms (starting with the H3) only use the MUSB > > controller for peripheral mode and use HCI for host mode. As a result, &g

[linux-sunxi] Re: [PATCH v8 1/2] media: uapi: Add H264 low-level decoder API compound controls.

2019-04-11 Thread Paul Kocialkowski
Hi, Le mercredi 10 avril 2019 à 15:44 +0200, Paul Kocialkowski a écrit : > Hi, > > Le jeudi 04 avril 2019 à 14:59 +0200, Maxime Ripard a écrit : > > From: Pawel Osciak > > > > Stateless video codecs will require both the H264 metadata and slices in > >

[linux-sunxi] Re: [PATCH v8 2/2] media: cedrus: Add H264 decoding support

2019-04-10 Thread Paul Kocialkowski
to rename V4L2_PIX_FMT_H264_SLICE_RAW and make it private, this is: Reviewed-by: Paul Kocialkowski Cheers, Paul > Reviewed-by: Jernej Skrabec > Signed-off-by: Maxime Ripard > --- > drivers/staging/media/sunxi/cedrus/Makefile | 3 +- > drivers/staging/media/sunxi/ced

[linux-sunxi] Re: [PATCH v8 1/2] media: uapi: Add H264 low-level decoder API compound controls.

2019-04-10 Thread Paul Kocialkowski
s that > have been parsed, as well as the structures used to pass the metadata from > the userspace to the kernel. With V4L2_PIX_FMT_H264_SLICE_RAW renamed to V4L2_PIX_FMT_H264_SLICE and moved to the private h264-ctrls.h, this is: Reviewed-by: Paul Kocialkowski Cheers, Paul > Reviewe

Re: [linux-sunxi] [PATCH] arm: sunxi: Add support for the RerVision H3-DVK board

2019-04-09 Thread Paul Kocialkowski
Hi, Le mardi 09 avril 2019 à 15:56 +0530, Jagan Teki a écrit : > On Thu, Mar 14, 2019 at 4:10 PM Paul Kocialkowski > wrote: > > This is an H3-based board that sticks close to the reference design. > > > > Supported features: > > * UART > > * DRAM > >

Re: [linux-sunxi] [PATCH 3/3] arm: sunxi: Enable DRAM ODT by default on H3/H5

2019-04-03 Thread Paul Kocialkowski
Hi, Le mercredi 03 avril 2019 à 13:09 +0530, Jagan Teki a écrit : > On Thu, Mar 14, 2019 at 4:07 PM Paul Kocialkowski > wrote: > > Most of the boards we support with H3/H5 enable DRAM on-die termination, > > which is consistent with the high DRAM clocks that are u

Re: [linux-sunxi] [PATCH 6/6] arm64: dts: allwinner: h6: Add Video Engine node

2019-03-19 Thread Paul Kocialkowski
ked up though. Reviewed-by: Paul Kocialkowski Cheers, Paul > Signed-off-by: Jernej Skrabec > --- > arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 11 +++ > 1 file changed, 11 insertions(+) > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > b/ar

<    1   2   3   4   5   6   7   >