Re: [PATCH 3/4] ARM: tegra: nyan-big: Include compatible revisions for proper detection

2016-09-20 Thread Paul Kocialkowski
Le mardi 20 septembre 2016 à 18:41 +0100, Jon Hunter a écrit : > On 28/08/16 18:32, Paul Kocialkowski wrote: > > > > Depthcharge (the payload used with cros devices) will attempt to detect > > boards using their revision. This includes all the known revisions for > >

Re: [PATCH 3/4] ARM: tegra: nyan-big: Include compatible revisions for proper detection

2016-09-20 Thread Paul Kocialkowski
Le mardi 20 septembre 2016 à 18:56 +0100, Jon Hunter a écrit : > On 20/09/16 18:53, Paul Kocialkowski wrote: > > > > * PGP Signed by an unknown key > > > > Le mardi 20 septembre 2016 à 18:41 +0100, Jon Hunter a écrit : > > > > > &g

Re: [PATCH 2/4] ARM: tegra: nyan: Use external control for bq24735 charger

2016-09-20 Thread Paul Kocialkowski
Le mardi 20 septembre 2016 à 18:40 +0100, Jon Hunter a écrit : > On 28/08/16 18:32, Paul Kocialkowski wrote: > >  > > Nyan boards come with an embedded controller that controls when to > > enable and disable the charge. Thus, it should not be left up to the >

Re: [PATCH 1/4] ARM: tegra: nyan: Use proper IRQ type definitions

2016-09-20 Thread Paul Kocialkowski
Le mardi 20 septembre 2016 à 18:15 +0100, Jon Hunter a écrit : > On 28/08/16 18:32, Paul Kocialkowski wrote: > > > > This switches a few interrupt definitions that were using > > GPIO_ACTIVE_HIGH as IRQ type, which is invalid. > > May be you are right, but this do

Re: [PATCH] ARM: tegra: nyan: Enable GPU node and related supply

2016-09-20 Thread Paul Kocialkowski
Le mardi 20 septembre 2016 à 13:24 +0100, Jon Hunter a écrit : > On 18/09/16 15:13, Paul Kocialkowski wrote: > > > > This enables the GPU node for tegra124 nyan boards, which is required to > > get graphics acceleration with nouveau on these devices. > > > >

Re: [PATCH 3/4] ARM: tegra: nyan-big: Include compatible revisions for proper detection

2016-09-21 Thread Paul Kocialkowski
Le mercredi 21 septembre 2016 à 08:34 +0100, Jon Hunter a écrit : > On 20/09/16 19:02, Paul Kocialkowski wrote: > > > > * PGP Signed by an unknown key > > > > Le mardi 20 septembre 2016 à 18:56 +0100, Jon Hunter a écrit : > > > > > &g

Re: [PATCH 2/4] ARM: tegra: nyan: Use external control for bq24735 charger

2016-09-21 Thread Paul Kocialkowski
Le mercredi 21 septembre 2016 à 08:30 +0100, Jon Hunter a écrit : > On 20/09/16 19:02, Paul Kocialkowski wrote: > > > > * PGP Signed by an unknown key > > > > Le mardi 20 septembre 2016 à 18:40 +0100, Jon Hunter a écrit : > > > > > &g

Re: [PATCH 1/4] ARM: tegra: nyan: Use proper IRQ type definitions

2016-09-21 Thread Paul Kocialkowski
Le mercredi 21 septembre 2016 à 08:52 +0100, Jon Hunter a écrit : > On 20/09/16 19:14, Paul Kocialkowski wrote: > > > > * PGP Signed by an unknown key > > > > Le mardi 20 septembre 2016 à 18:15 +0100, Jon Hunter a écrit : > > > > > &g

Re: [PATCH 1/4] ARM: tegra: nyan: Use proper IRQ type definitions

2016-09-21 Thread Paul Kocialkowski
Resending with the right CC chain. Le mercredi 21 septembre 2016 à 10:06 +0100, Jon Hunter a écrit : > On 21/09/16 09:26, Paul Kocialkowski wrote: > > > > > > * PGP Signed by an unknown key > > > > Le mercredi 21 septembre 2016 à 08:52 +0100, Jon Hunter a écr

Re: [PATCH 3/4] ARM: tegra: nyan-big: Include compatible revisions for proper detection

2016-09-21 Thread Paul Kocialkowski
Resending with the right CC chain. Le mercredi 21 septembre 2016 à 10:15 +0100, Jon Hunter a écrit : > > On 21/09/16 08:43, Paul Kocialkowski wrote: > > ... > > > > > > > > > Depthcharge (the payload used with cros devices) will attempt to > > &g

Re: [PATCH 2/4] ARM: tegra: nyan: Use external control for bq24735 charger

2016-09-21 Thread Paul Kocialkowski
Le mercredi 21 septembre 2016 à 11:10 +0100, Jon Hunter a écrit : > On 21/09/16 08:56, Paul Kocialkowski wrote: > > ... > > > Sure, this is exported at: /sys/class/power_supply/bq24735@5-0009 > > Also, note that the power-supply next branch[2] has some more fixes fo

[PATCH v3] power: bq24735-charger: Request status GPIO with initial input setup

2016-09-01 Thread Paul Kocialkowski
charger is connected, sends i2c messages and fails. While at it, this switches the driver over to gpio consumer. Signed-off-by: Paul Kocialkowski --- drivers/power/bq24735-charger.c | 42 +-- include/linux/power/bq24735-charger.h | 4 +--- 2 files changed

Re: [PATCH v2] power: bq24735-charger: Request status GPIO with initial input setup

2016-09-01 Thread Paul Kocialkowski
Le mardi 30 août 2016 à 01:32 +0200, Sebastian Reichel a écrit : > Hi, > > On Mon, Aug 29, 2016 at 08:15:03PM +0200, Paul Kocialkowski wrote: > > > > This requests the status GPIO with initial input setup. it is required > > to read the GPIO status at probe time and t

[PATCH v4] power: bq24735-charger: Request status GPIO with initial input setup

2016-09-02 Thread Paul Kocialkowski
charger is connected, sends i2c messages and fails. While at it, this switches the driver over to gpio consumer. Signed-off-by: Paul Kocialkowski --- drivers/power/supply/bq24735-charger.c | 44 +- include/linux/power/bq24735-charger.h | 4 2 files changed

Re: [PATCH v3] power: bq24735-charger: Request status GPIO with initial input setup

2016-09-02 Thread Paul Kocialkowski
6 at 11:27:00PM +0200, Paul Kocialkowski wrote: > > > > This requests the status GPIO with initial input setup. it is required > > to read the GPIO status at probe time and thus correctly avoid sending > > i2c messages when AC is not plugged. > > > > When request

Re: [PATCH 1/3] sound: ASoC: tegra: Remove SoC-specific Kconfig depends and selects

2017-08-17 Thread Paul Kocialkowski
they're > doing. I have just sent out another version with a subject line that matches what others have been doing (mainly, dropping the "sound:" prefix). Cheers, -- Paul Kocialkowski, developer of free digital technology and hardware support. Website: https://www.paulk.

[PATCH] ASoC: tegra: Remove SoC-specific Kconfig depends and selects

2017-08-17 Thread Paul Kocialkowski
incomplete: for instance, tegra124 uses the tegra30 platform drivers, which could not be built without ARCH_TEGRA_3x_SOC set. Descriptions of the tristates are also added to allow these options to be set via defconfig/menuconfig. Signed-off-by: Paul Kocialkowski Acked-by: Thierry Reding

[PATCH RESEND v2 2/2] drm/sun4i: sun4i: Introduce a quirk for lowest plane alpha support

2018-07-19 Thread Paul Kocialkowski
that the A20 and A33 are capable of having alpha on their lowest plane. Thus, this introduces a specific quirk to indicate such support, per-platform. Since this was not tested on sun4i and sun6i platforms, a conservative approach is kept and this feature is not supported. Signed-off-by: Paul

Re: [linux-sunxi] Re: [PATCH v2 14/16] arm: dts: sun8i: h3: enable H3 sid controller

2018-07-25 Thread Paul Kocialkowski
Hi, On Wed, 2018-07-25 at 11:05 +0200, Emmanuel Vadot wrote: [...] > Hello Paul, > > I've sent a serie yesterday for SID on A64/H3/H5. > https://patchwork.kernel.org/project/linux-arm-kernel/list/?series=761 Awesome, thanks for taking care of that :) Cheers, Paul > > > On 19.04.2018 17:1

[PATCH v6 4/8] media: platform: Add Cedrus VPU decoder driver

2018-07-25 Thread Paul Kocialkowski
in the interest of reverse engineering, documenting and implementing support for Allwinner VPU. Signed-off-by: Paul Kocialkowski --- MAINTAINERS | 7 + drivers/staging/media/Kconfig | 2 + drivers/staging/media/Makefile| 1

[PATCH v6 8/8] ARM: dts: sun8i-h3: Add Video Engine and reserved memory nodes

2018-07-25 Thread Paul Kocialkowski
This adds nodes for the Video Engine and the associated reserved memory for the H3. Up to 96 MiB of memory are dedicated to the CMA pool. Signed-off-by: Paul Kocialkowski --- arch/arm/boot/dts/sun8i-h3.dtsi | 25 + 1 file changed, 25 insertions(+) diff --git a/arch/arm

[PATCH v6 3/8] dt-bindings: media: Document bindings for the Cedrus VPU driver

2018-07-25 Thread Paul Kocialkowski
This adds a device-tree binding document that specifies the properties used by the Cedurs VPU driver, as well as examples. Signed-off-by: Paul Kocialkowski Reviewed-by: Rob Herring --- .../devicetree/bindings/media/cedrus.txt | 54 +++ 1 file changed, 54 insertions

[PATCH v6 6/8] ARM: dts: sun7i-a20: Add Video Engine and reserved memory nodes

2018-07-25 Thread Paul Kocialkowski
tream software, the last 96 MiB of the first 256 MiB of RAM are reserved for this purpose. Signed-off-by: Paul Kocialkowski --- arch/arm/boot/dts/sun7i-a20.dtsi | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20

[PATCH v6 5/8] ARM: dts: sun5i: Add Video Engine and reserved memory nodes

2018-07-25 Thread Paul Kocialkowski
on in downstream software, the last 96 MiB of the first 256 MiB of RAM are reserved for this purpose. Signed-off-by: Paul Kocialkowski --- arch/arm/boot/dts/sun5i.dtsi | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/boot/dts/sun5i.dtsi b/arch/arm/boo

[PATCH v6 0/8] Cedrus driver for the Allwinner Video Engine, using media requests

2018-07-25 Thread Paul Kocialkowski
ndexes are used as reference frames for motion vectors; * lots of small cosmetic and consistency changes, including naming harmonization and headers text rework. Cheers! [0]: https://patchwork.kernel.org/patch/9299073/ [1]: https://git.linuxtv.org/hverkuil/media_tree.git/log/?h=reqv16 Paul

[PATCH v6 7/8] ARM: dts: sun8i-a33: Add Video Engine and reserved memory nodes

2018-07-25 Thread Paul Kocialkowski
tream software, the last 96 MiB of the first 256 MiB of RAM are reserved for this purpose. Signed-off-by: Paul Kocialkowski --- arch/arm/boot/dts/sun8i-a33.dtsi | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a33.dtsi b/arch/arm/boot/dts/sun8i-a33

[PATCH v6 1/8] media: v4l: Add definitions for MPEG2 slice format and metadata

2018-07-25 Thread Paul Kocialkowski
drivers. This is based on work from both Florent Revest and Hugues Fruchet. Signed-off-by: Paul Kocialkowski --- .../media/uapi/v4l/extended-controls.rst | 122 ++ .../media/uapi/v4l/pixfmt-compressed.rst | 5 + drivers/media/v4l2-core/v4l2-ctrls.c | 54

[PATCH v6 2/8] media: v4l: Add definition for Allwinner's MB32-tiled NV12 format

2018-07-25 Thread Paul Kocialkowski
after line. The MB32-tiled NV12 format is used by the video engine on Allwinner platforms: it is the default format for decoded frames (and the only one available in the oldest supported platforms). Signed-off-by: Paul Kocialkowski --- Documentation/media/uapi/v4l/pixfmt-reserved.rst

Re: [PATCH] Revert "arm64: Use aarch64elf and aarch64elfb emulation mode variants"

2018-07-13 Thread Paul Kocialkowski
Hi, On Fri, 2018-07-13 at 08:01 -0700, Olof Johansson wrote: > On Fri, Jul 13, 2018 at 7:59 AM, Olof Johansson wrote: > > On Tue, Jul 10, 2018 at 10:36:16AM +0100, Will Deacon wrote: > > > On Tue, Jul 10, 2018 at 11:30:39AM +0200, Paul Kocialkowski wrote: > > > &g

Re: [RFCv4,19/21] media: vim2m: add request support

2018-03-12 Thread Paul Kocialkowski
Hi, On Sun, 2018-03-11 at 22:42 +0300, Dmitry Osipenko wrote: > Hello, > > On 07.03.2018 19:37, Paul Kocialkowski wrote: > > Hi, > > > > First off, I'd like to take the occasion to say thank-you for your > > work. > > This is a major piece of plumbin

Re: [RFCv4,19/21] media: vim2m: add request support

2018-03-12 Thread Paul Kocialkowski
Hi, On Mon, 2018-03-12 at 17:15 +0900, Tomasz Figa wrote: > Hi Paul, Dmitry, > > On Mon, Mar 12, 2018 at 5:10 PM, Paul Kocialkowski > wrote: > > Hi, > > > > On Sun, 2018-03-11 at 22:42 +0300, Dmitry Osipenko wrote: > > > Hello, > > > &g

Re: [RFCv4,19/21] media: vim2m: add request support

2018-03-07 Thread Paul Kocialkowski
5,7 @@ static int vim2m_probe(struct platform_device > *pdev) > vfd = &dev->vfd; > vfd->lock = &dev->dev_mutex; > vfd->v4l2_dev = &dev->v4l2_dev; > + vfd->req_mgr = &dev->req_mgr.base; > > ret = video_register_de

Re: [RFCv4,13/21] media: videobuf2-v4l2: support for requests

2018-03-07 Thread Paul Kocialkowski
el. Thus, my best guess is that the data is properly copied from userspace but freed when leaving the ioctl handler, which doesn't work our with the request API. A dirty fix that I came up with consists in re-allocating the planes buffer here and copying its contents from "b", so that it can live beyond the ioctl call. I am not too sure whether this should be fixed here or in the part of the v4l2 common code that frees this data. What do you think? Cheers! -- Paul Kocialkowski, Bootlin (formerly Free Electrons) Embedded Linux and kernel engineering https://bootlin.com signature.asc Description: This is a digitally signed message part

Re: [PATCH 4/7] ARM: dts: sun7i: Add pinmux settings for LCD0 RGB888 output.

2018-03-25 Thread Paul Kocialkowski
D16", "PD17", "PD18", > "PD19", "PD20", "PD21", "PD22", "PD23", > +"PD24", "PD25", "PD26", > "PD27"; > + function = "lcd0"; > + }; > }; > > timer@1c20c00 { -- Paul Kocialkowski, developer of free digital technology and hardware support. Website: https://www.paulk.fr/ Coding blog: https://code.paulk.fr/ Git repositories: https://git.paulk.fr/ https://git.code.paulk.fr/ signature.asc Description: This is a digitally signed message part

Re: [PATCH 02/10] drm/sun4i: Disable YUV channel when using the frontend and set interlace

2018-03-27 Thread Paul Kocialkowski
Hi, On Fri, 2018-03-23 at 10:55 +0100, Maxime Ripard wrote: > On Wed, Mar 21, 2018 at 04:28:56PM +0100, Paul Kocialkowski wrote: > > The YUV channel was only disabled in > > sun4i_backend_update_layer_formats, > > which is not called when the frontend is selected. > >

Re: [PATCH 04/10] drm/sun4i: Explicitly list and check formats supported by the backend

2018-03-27 Thread Paul Kocialkowski
Hi, On Fri, 2018-03-23 at 11:03 +0100, Maxime Ripard wrote: > On Wed, Mar 21, 2018 at 04:28:58PM +0100, Paul Kocialkowski wrote: > > In order to check whether the backend supports a specific format, an > > explicit list and a related helper are introduced. > > > > They

Re: [PATCH 05/10] drm/sun4i: Explicitly list and check formats supported by the frontend

2018-03-27 Thread Paul Kocialkowski
Hi, On Fri, 2018-03-23 at 11:06 +0100, Maxime Ripard wrote: > On Wed, Mar 21, 2018 at 04:28:59PM +0100, Paul Kocialkowski wrote: > > In order to check whether the frontend supports a specific format, > > an > > explicit list and a related helper are introduced. > >

Re: [PATCH 06/10] drm/sun4i: Move and extend format-related helpers and tables

2018-03-27 Thread Paul Kocialkowski
Hi, On Fri, 2018-03-23 at 11:13 +0100, Maxime Ripard wrote: > On Wed, Mar 21, 2018 at 04:29:00PM +0100, Paul Kocialkowski wrote: > > This moves the various helpers and tables related to format > > detection > > and conversion to a dedicated file, while adding a bun

Re: [PATCH 07/10] drm/sun4i: Add support for YUV formats through the frontend

2018-03-27 Thread Paul Kocialkowski
Hi, On Fri, 2018-03-23 at 11:30 +0100, Maxime Ripard wrote: > On Wed, Mar 21, 2018 at 04:29:01PM +0100, Paul Kocialkowski wrote: > > The frontend supports many YUV formats as input and also contains a > > color-space converter (CSC) block that can convert YUV input into > >

Re: [PATCH 09/10] drm/sun4i: Add a dedicated ioctl call for allocating tiled buffers

2018-03-27 Thread Paul Kocialkowski
On Fri, 2018-03-23 at 11:48 +0100, Maxime Ripard wrote: > Hi, > > On Wed, Mar 21, 2018 at 04:29:03PM +0100, Paul Kocialkowski wrote: > > This introduces a dedicated ioctl for allocating tiled buffers in > > the > > Allwinner MB32 format, that comes with a handful of s

Re: [PATCH 02/10] drm/sun4i: Disable YUV channel when using the frontend and set interlace

2018-03-27 Thread Paul Kocialkowski
Hi, On Tue, 2018-03-27 at 10:17 +0200, Maxime Ripard wrote: > On Tue, Mar 27, 2018 at 10:00:43AM +0200, Paul Kocialkowski wrote: > > Hi, > > > > On Fri, 2018-03-23 at 10:55 +0100, Maxime Ripard wrote: > > > On Wed, Mar 21, 2018 at 04:28:56PM +0100, Paul Kocia

Re: [PATCH 02/10] drm/sun4i: Disable YUV channel when using the frontend and set interlace

2018-03-27 Thread Paul Kocialkowski
On Tue, 2018-03-27 at 11:18 +0200, Maxime Ripard wrote: > On Tue, Mar 27, 2018 at 10:44:19AM +0200, Paul Kocialkowski wrote: > > > > Also, is interlacing actually used on any of the video outputs > > > > we > > > > support? Perhaps RGB? > > > > &

Re: [PATCH 3/3] ARM: dts: sun7i: Add support for the Ainol AW1 tablet

2018-04-11 Thread Paul Kocialkowski
Hi and thanks for the review ! Le mercredi 11 avril 2018 à 09:06 +0200, Maxime Ripard a écrit : > Hi, > > On Tue, Apr 10, 2018 at 11:31:29PM +0200, Paul Kocialkowski wrote: > > This adds support for the Ainol AW1, an A20-based 7" tablet from > > Ainol. > >

Re: [linux-sunxi] Re: [PATCH 2/3] ARM: dts: sun7i: Add RGB666 pins definition

2018-04-11 Thread Paul Kocialkowski
Hi, Le jeudi 12 avril 2018 à 00:22 +0200, Giulio Benetti a écrit : > Hi, > > Il 10/04/2018 23:31, Paul Kocialkowski ha scritto: > > This adds the pins definition for RGB666 LCD panels on the A20. It > > was > > imported from the A33 definition, that concern

Re: [PATCH 1/3] drm/panel: Add RGB666 variant of Innolux AT070TN92

2018-04-11 Thread Paul Kocialkowski
Hi, Le mercredi 11 avril 2018 à 08:28 +0200, Maxime Ripard a écrit : > On Tue, Apr 10, 2018 at 11:31:27PM +0200, Paul Kocialkowski wrote: > > This adds timings for the RGB666 variant of the Innolux AT070TN92 > > panel, > > as found on the Ainol AW1 tablet. > &g

[PATCH 06/10] drm/sun4i: Move and extend format-related helpers and tables

2018-03-21 Thread Paul Kocialkowski
This moves the various helpers and tables related to format detection and conversion to a dedicated file, while adding a bunch of new helpers (especially for YUV and tiling support) along the way. Signed-off-by: Paul Kocialkowski --- drivers/gpu/drm/sun4i/Makefile| 1 + drivers/gpu

[PATCH 03/10] drm/sun4i: Don't pretend to handle ARGB8888 with the frontend

2018-03-21 Thread Paul Kocialkowski
It turns out that the frontend is not capable of preserving the alpha component (that is always set to 0xff), so only support XRGB instead. Signed-off-by: Paul Kocialkowski --- drivers/gpu/drm/sun4i/sun4i_backend.c | 4 drivers/gpu/drm/sun4i/sun4i_frontend.c | 3 +-- drivers/gpu/drm

[PATCH 02/10] drm/sun4i: Disable YUV channel when using the frontend and set interlace

2018-03-21 Thread Paul Kocialkowski
. This explicitly disables the YUV channel for the layer when using the frontend as well. It also sets the relevant interlace bit, which was missing in the frontend path as well. Signed-off-by: Paul Kocialkowski --- drivers/gpu/drm/sun4i/sun4i_backend.c | 17 - drivers/gpu/drm/sun4i

[PATCH 01/10] drm/sun4i: Disable frontend video channel before enabling a layer

2018-03-21 Thread Paul Kocialkowski
that uses the frontend (e.g. for scaling) and then reusing the same layer without the frontend. Since the video channel to the frontend was never disabled, the backend was still trying to get data from there. Signed-off-by: Paul Kocialkowski --- drivers/gpu/drm/sun4i/sun4i_backend.c | 8

[PATCH 05/10] drm/sun4i: Explicitly list and check formats supported by the frontend

2018-03-21 Thread Paul Kocialkowski
In order to check whether the frontend supports a specific format, an explicit list and a related helper are introduced. They are then used to determine whether the frontend can actually support the requested format when it was selected to be used. Signed-off-by: Paul Kocialkowski --- drivers

[PATCH 09/10] drm/sun4i: Add a dedicated ioctl call for allocating tiled buffers

2018-03-21 Thread Paul Kocialkowski
This introduces a dedicated ioctl for allocating tiled buffers in the Allwinner MB32 format, that comes with a handful of specific constraints. In particular, the stride of the buffers is expected to be aligned to 32 bytes. Signed-off-by: Paul Kocialkowski --- drivers/gpu/drm/sun4i/sun4i_drv.c

[PATCH 07/10] drm/sun4i: Add support for YUV formats through the frontend

2018-03-21 Thread Paul Kocialkowski
video formats supported by the frontend, with associated changes in the backend and layer management. A specific dumb GEM create function translates a hardware constraint, that the stride must be an even number, when allocating dumb (linear) buffers. Signed-off-by: Paul Kocialkowski --- drivers

[PATCH 08/10] drm/fourcc: Add definitions for Allwinner vendor and MB32 tiled format

2018-03-21 Thread Paul Kocialkowski
This introduces specific definitions for vendor Allwinner and its specific MB32 tiled format, an NV12-based format with 32x32 tiles. This format is the default output format used by the VPU on most Allwinner platforms. Signed-off-by: Paul Kocialkowski --- include/uapi/drm/drm_fourcc.h | 10

[PATCH 10/10] drm/sun4i: Add support for YUV-based formats in MB32 tiles

2018-03-21 Thread Paul Kocialkowski
-based formats were actually tested. Since most of the logic is common, it is likely that other formats will work just as well. Signed-off-by: Paul Kocialkowski --- drivers/gpu/drm/sun4i/sun4i_backend.c | 10 +++- drivers/gpu/drm/sun4i/sun4i_backend.h | 2 +- drivers/gpu/drm/sun4i/sun4i_drv.c

[PATCH 04/10] drm/sun4i: Explicitly list and check formats supported by the backend

2018-03-21 Thread Paul Kocialkowski
In order to check whether the backend supports a specific format, an explicit list and a related helper are introduced. They are then used to determine whether the frontend should be used for a layer, when the format is not supported by the backend. Signed-off-by: Paul Kocialkowski --- drivers

[PATCH 00/10] drm/sun4i: Frontend YUV and MB32 tile modifier support

2018-03-21 Thread Paul Kocialkowski
://patchwork.freedesktop.org/series/39232/ * drm/sun4i: Support the Display Engine frontend, from Maxime Ripard: https://patchwork.freedesktop.org/series/35292/ * drm/sun4i: Support more planes, zpos and plane-wide alpha, from Maxime Ripard: https://patchwork.freedesktop.org/series/36183/ Paul

Re: [PATCH 08/10] drm/fourcc: Add definitions for Allwinner vendor and MB32 tiled format

2018-03-22 Thread Paul Kocialkowski
Hi, On Wed, 2018-03-21 at 16:47 +, Daniel Stone wrote: > Hi Paul, > > On 21 March 2018 at 15:29, Paul Kocialkowski > wrote: > > +/* > > + * Allwinner "MB32" tiled format > > + * > > + * This is the primary layout coming out of the

Re: [PATCH 03/10] drm/sun4i: Don't pretend to handle ARGB8888 with the frontend

2018-03-22 Thread Paul Kocialkowski
Hi Chen-Yu, On Thu, 2018-03-22 at 14:47 +0800, Chen-Yu Tsai wrote: > On Wed, Mar 21, 2018 at 11:28 PM, Paul Kocialkowski > wrote: > > It turns out that the frontend is not capable of preserving the > > alpha > > component (that is always set to 0xff), so only supp

Re: [PATCH 03/10] drm/sun4i: Don't pretend to handle ARGB8888 with the frontend

2018-03-22 Thread Paul Kocialkowski
Hi, On Thu, 2018-03-22 at 16:37 +0800, Chen-Yu Tsai wrote: > On Thu, Mar 22, 2018 at 4:23 PM, Paul Kocialkowski > wrote: > > Hi Chen-Yu, > > > > On Thu, 2018-03-22 at 14:47 +0800, Chen-Yu Tsai wrote: > > > On Wed, Mar 21, 2018 at 11:28 PM, Paul Kocialkowski &

Re: [PATCH 03/10] drm/sun4i: Don't pretend to handle ARGB8888 with the frontend

2018-03-22 Thread Paul Kocialkowski
Hi, On Thu, 2018-03-22 at 17:12 +0100, Maxime Ripard wrote: > Hi, > > Beside the discussion with Chen-Yu, > > On Wed, Mar 21, 2018 at 04:28:57PM +0100, Paul Kocialkowski wrote: > > It turns out that the frontend is not capable of preserving the > > alpha > >

[PATCH 1/3] drm/panel: Add RGB666 variant of Innolux AT070TN92

2018-04-10 Thread Paul Kocialkowski
This adds timings for the RGB666 variant of the Innolux AT070TN92 panel, as found on the Ainol AW1 tablet. Signed-off-by: Paul Kocialkowski --- drivers/gpu/drm/panel/panel-simple.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/gpu/drm/panel/panel

[PATCH 2/3] ARM: dts: sun7i: Add RGB666 pins definition

2018-04-10 Thread Paul Kocialkowski
This adds the pins definition for RGB666 LCD panels on the A20. It was imported from the A33 definition, that concernes the same set of pins. Signed-off-by: Paul Kocialkowski --- arch/arm/boot/dts/sun7i-a20.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sun7i

[PATCH 3/3] ARM: dts: sun7i: Add support for the Ainol AW1 tablet

2018-04-10 Thread Paul Kocialkowski
dio output * Audio speakers * USB via SPCI connector The following are not supported: * Wi-Fi * Bluetooth * NAND * Audio via SPCI connector Signed-off-by: Paul Kocialkowski --- arch/arm/boot/dts/Makefile| 1 + arch/arm/boot/dts/sun7i-a20-ainol-aw1.dts | 358 +++

Re: [PATCH 3/3] ARM: dts: sun7i: Add support for the Ainol AW1 tablet

2018-04-10 Thread Paul Kocialkowski
Le mardi 10 avril 2018 à 23:31 +0200, Paul Kocialkowski a écrit : > This adds support for the Ainol AW1, an A20-based 7" tablet from > Ainol. This version didn't use the dedicated binding for the panel and will be fixed in v2 and onwards. > The following board-specific fea

Re: [linux-sunxi] Re: [PATCH 3/3] ARM: dts: sun7i: Add support for the Ainol AW1 tablet

2018-04-10 Thread Paul Kocialkowski
Hi, Le mardi 10 avril 2018 à 23:35 +0200, Paul Kocialkowski a écrit : > Le mardi 10 avril 2018 à 23:31 +0200, Paul Kocialkowski a écrit : > > This adds support for the Ainol AW1, an A20-based 7" tablet from > > Ainol. > > This version didn't use the dedicated bind

[PATCH 0/9] Sunxi-Cedrus driver for the Allwinner Video Engine, using the V4L2 request API

2018-03-09 Thread Paul Kocialkowski
nding document ARM: dts: sun5i: Use video-engine node Icenowy Zheng (1): ARM: dts: sun8i: add video engine support for A33 Paul Kocialkowski (2): media: vim2m: Try to schedule a m2m device run on request submission media: videobuf2-v4l2: Copy planes when needed in request qbuf Thomas van Kle

[PATCH 2/9] media: videobuf2-v4l2: Copy planes when needed in request qbuf

2018-03-09 Thread Paul Kocialkowski
, we need to keep this planes array around so that it can be used when submitting the request later. Thus, allocate the array and copy its contents when adding the buffer to the request-specific queue. Signed-off-by: Paul Kocialkowski --- drivers/media/common/videobuf2/videobuf2-v4l2.c | 19

[PATCH 1/9] media: vim2m: Try to schedule a m2m device run on request submission

2018-03-09 Thread Paul Kocialkowski
In the most basic use scenario, where only one output and one capture buffers are queued and the request is submitted, there is no provision to try to schedule a m2m device run. This adds the appropriate call to the vim2m_request_submit so that it can start in that scenario. Signed-off-by: Paul

[PATCH 4/9] v4l: Add MPEG2 low-level decoder API control

2018-03-09 Thread Paul Kocialkowski
From: Florent Revest This control is to be used with the new low-level decoder API for MPEG2 to provide additional parameters for the hardware that cannot parse the input stream. Signed-off-by: Florent Revest --- drivers/media/v4l2-core/v4l2-ctrls.c | 15 +++ drivers/media/v4l2-cor

[PATCH 6/9] sunxi-cedrus: Add device tree binding document

2018-03-09 Thread Paul Kocialkowski
From: Florent Revest Device Tree bindings for the Allwinner's video engine Signed-off-by: Florent Revest --- .../devicetree/bindings/media/sunxi-cedrus.txt | 44 ++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/sunxi-cedrus

[PATCH 5/9] media: platform: Add Sunxi Cedrus decoder driver

2018-03-09 Thread Paul Kocialkowski
trols. Most of the reverse engineering on which I based my work comes from the "Cedrus" project: http://linux-sunxi.org/Cedrus Signed-off-by: Florent Revest Signed-off-by: Paul Kocialkowski Signed-off-by: Icenowy Zheng Signed-off-by: Bob Ham --- drivers/media/platform/Kconfig

[PATCH 8/9] ARM: dts: sun8i: add video engine support for A33

2018-03-09 Thread Paul Kocialkowski
From: Icenowy Zheng A33 has a video engine just like the one in A10. Add the support for it in the device tree. Signed-off-by: Icenowy Zheng --- arch/arm/boot/dts/sun8i-a33.dtsi | 39 +++ 1 file changed, 39 insertions(+) diff --git a/arch/arm/boot/dts/sun8

[PATCH 9/9] ARM: dts: sun7i: Add video engine support for the A20

2018-03-09 Thread Paul Kocialkowski
From: Thomas van Kleef The A20 has a video engine similare to the one in the A13. Add the device node in the A20. Signed-off-by: Thomas van Kleef Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun7i-a20.dtsi | 47 1 file changed, 47 insertions(+)

[PATCH 3/9] v4l: Add sunxi Video Engine pixel format

2018-03-09 Thread Paul Kocialkowski
From: Florent Revest Add support for the allwinner's proprietary pixel format described in details here: http://linux-sunxi.org/File:Ve_tile_format_v1.pdf This format is similar to V4L2_PIX_FMT_NV12M but the planes are divided in tiles of 32x32px. Signed-off-by: Florent Revest --- include/uap

[PATCH 7/9] ARM: dts: sun5i: Use video-engine node

2018-03-09 Thread Paul Kocialkowski
From: Florent Revest Now that we have a driver matching "allwinner,sun4i-a10-video-engine" we can load it. The "video-engine" node depends on the new sunxi-ng's CCU clock and reset bindings. This patch also includes a ve_reserved DMA pool for videobuf2 buffer allocations in sunxi-cedrus. Signed

Re: [PATCH 0/9] Sunxi-Cedrus driver for the Allwinner Video Engine, using the V4L2 request API

2018-03-09 Thread Paul Kocialkowski
On Fri, 2018-03-09 at 11:09 +0100, Paul Kocialkowski wrote: > This presents a newer version of the Sunxi-Cedrus driver, that > supports > the Video Engine found in most Allwinner SoCs, starting with the A10. I had to send this series in two parts (and tried to keep them under the origin

Re: [linux-sunxi] [PATCH 6/9] sunxi-cedrus: Add device tree binding document

2018-03-09 Thread Paul Kocialkowski
Hi, Thanks for the review! On Fri, 2018-03-09 at 15:38 +0200, Priit Laes wrote: > On Fri, Mar 09, 2018 at 11:14:42AM +0100, Paul Kocialkowski wrote: > > From: Florent Revest > > > > Device Tree bindings for the Allwinner's video engine > > &

Re: [PATCH 5/9] media: platform: Add Sunxi Cedrus decoder driver

2018-03-09 Thread Paul Kocialkowski
Hi, On Fri, 2018-03-09 at 14:57 +0100, Maxime Ripard wrote: > Hi, > > On Fri, Mar 09, 2018 at 11:14:41AM +0100, Paul Kocialkowski wrote: > > +/* > > + * mem2mem callbacks > > + */ > > + > > +void job_abort(void *priv) > > +{} > > Is that st

Re: [RFCv4,19/21] media: vim2m: add request support

2018-03-09 Thread Paul Kocialkowski
v4l2_ctrl_new_custom(hdl, &vim2m_ctrl_trans_time_msec, > > > NULL); > > > @@ -999,6 +1069,9 @@ static int vim2m_probe(struct platform_device > > > *pdev) > > > if (!dev) > > > return -ENOMEM; > > > > > > +

Re: [RFCv4,19/21] media: vim2m: add request support

2018-03-14 Thread Paul Kocialkowski
Hi, On Tue, 2018-03-13 at 19:24 +0900, Alexandre Courbot wrote: > On Fri, Mar 9, 2018 at 11:35 PM, Paul Kocialkowski > wrote: > > Hi, > > > > On Thu, 2018-03-08 at 22:48 +0900, Alexandre Courbot wrote: > > > Hi Paul! > > > > > > Thanks a lot

[PATCH v2 41/43] drm/sun4i: Make COEF_RDY conditional

2018-11-23 Thread Paul Kocialkowski
From: Maxime Ripard The COEF_RDY bit isn't found in all the SoCs featuring some variant of the frontend. Add it to our quirks structure. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_frontend.c | 9 + drivers/gpu/drm/sun4i/sun4i_frontend.h | 1 + 2 files changed, 6 inse

[PATCH v2 43/43] drm/sun4i: frontend: Add A20-specific device-tree compatible and quirks

2018-11-23 Thread Paul Kocialkowski
device-tree and already documented in the device-tree bindings. Signed-off-by: Paul Kocialkowski --- drivers/gpu/drm/sun4i/sun4i_frontend.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/gpu/drm/sun4i/sun4i_frontend.c b/drivers/gpu/drm/sun4i/sun4i_frontend.c

[PATCH v2 26/43] drm/sun4i: frontend: Add support for packed YUV422 input formats

2018-11-23 Thread Paul Kocialkowski
This introduces support for packed YUV formats with 4:2:2 sampling using the frontend. Definitions are introduced for the data format and pixel sequence input format register values. Signed-off-by: Paul Kocialkowski --- drivers/gpu/drm/sun4i/sun4i_frontend.c | 22 ++ drivers

[PATCH v2 08/43] drm/fourcc: Add helper to check if a format uses a YUV colorspace

2018-11-23 Thread Paul Kocialkowski
This adds a new helper to check whether the format described by its fourcc code uses a YUV colorspace, by returning the is_yuv entry for the DRM info entry matching that format. Signed-off-by: Paul Kocialkowski --- drivers/gpu/drm/drm_fourcc.c | 19 +++ include/drm/drm_fourcc.h

[PATCH v2 00/43] drm/sun4i: Support for linear and tiled YUV formats with the frontend

2018-11-23 Thread Paul Kocialkowski
: Move access control before setting the register as documented drm/sun4i: frontend: Add a quirk structure drm/sun4i: Set the coef_rdy bit right after the coef have been set drm/sun4i: Make COEF_RDY conditional drm/sun4i: frontend: Move the FIR filter phases to our quirks Paul Kocialkowski

Re: [PATCH v2 31/43] drm/sun4i: Add a dedicated ioctl call for allocating tiled buffers

2018-11-23 Thread Paul Kocialkowski
Hi, On Fri, 2018-11-23 at 11:30 +, Brian Starkey wrote: > Hi Paul, > > On Fri, Nov 23, 2018 at 10:25:03AM +0100, Paul Kocialkowski wrote: > > This introduces a dedicated ioctl for allocating buffers for the VPU > > tiling mode. It allows setting up buffers that c

[PATCH 03/15] ARM: dts: sun8i-h3: Fix the system-control register range

2018-11-15 Thread Paul Kocialkowski
-off-by: Paul Kocialkowski --- arch/arm/boot/dts/sun8i-h3.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.dtsi index 35d025af7deb..7157d954fb8c 100644 --- a/arch/arm/boot/dts/sun8i-h3.dtsi +++ b/arch/arm/boot/dts

[PATCH 00/15] Cedrus support for the Allwinner H5 and A64 platforms

2018-11-15 Thread Paul Kocialkowski
there for this purpose) on the H3 and H5. Some minor cosmetic fixes are also included regarding the video-codec addresses in the device-tree. Paul Kocialkowski (15): ARM: dts: sun8i-a33: Remove heading 0 in video-codec unit address ARM: dts: sun8i-h3: Remove heading 0 in video-codec unit

Re: [PATCH v2 07/15] arm64: dts: allwinner: h5: Add system-control node with SRAM C1

2018-12-05 Thread Paul Kocialkowski
Hi, On Wed, 2018-12-05 at 17:49 +0800, Chen-Yu Tsai wrote: > On Wed, Dec 5, 2018 at 5:48 PM Paul Kocialkowski > wrote: > > Hi, > > > > On Wed, 2018-12-05 at 17:45 +0800, Chen-Yu Tsai wrote: > > > On Wed, Dec 5, 2018 at 5:25 PM Paul Kocialkowski > > >

Re: [PATCH] media: docs-rst: Document m2m stateless video decoder interface

2018-12-07 Thread Paul Kocialkowski
es. > + > +3. Free all ``CAPTURE`` buffers by calling :c:func:`VIDIOC_REQBUFS` on the > + ``CAPTURE`` queue with a buffer count of zero. > + > +4. Perform the initialization sequence again (minus the allocation of > + ``OUTPUT`` buffers), with the new resolution set on the ``OUTPUT`` queue. > + Note that due to resolution constraints, a different format may need to be > + picked on the ``CAPTURE`` queue. > + > +Drain > += > + > +In order to drain the stream on a stateless decoder, the client just needs to > +wait until all the submitted requests are completed. There is no need to > send a > +``V4L2_DEC_CMD_STOP`` command since requests are processed sequentially by > the > +decoder. > + > +End of stream > += > + > +When the client detects that the end of stream is reached, it can simply stop > +sending new frames to the decoder, drain the ``CAPTURE`` queue, and dispose > of > +the decoder as needed. -- Paul Kocialkowski, Bootlin (formerly Free Electrons) Embedded Linux and kernel engineering https://bootlin.com

[PATCH v3] drm/vc4: Add a debugfs entry to disable/enable the load tracker

2018-12-07 Thread Paul Kocialkowski
tracker enabled. Signed-off-by: Paul Kocialkowski --- This patch is based upon Boris Brezillon's series: drm/vc4: Add a load tracker Changes since v2: * Used the standard debugfs_create_bool instead of reinventing it. Changes since v1: * Moved all the debugfs-related functions and structu

[PATCH] arm64: Use aarch64elf and aarch64elfb emulation mode variants

2018-07-02 Thread Paul Kocialkowski
on bare-metal toolchains as well as the already-supported ones. Fixes: 3d6a7b99e3fa ("arm64: ensure the kernel is compiled for LP64") Cc: sta...@vger.kernel.org Signed-off-by: Paul Kocialkowski --- arch/arm64/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --

[PATCH v5 17/22] dt-bindings: media: Document bindings for the Sunxi-Cedrus VPU driver

2018-07-10 Thread Paul Kocialkowski
This adds a device-tree binding document that specifies the properties used by the Sunxi-Cedurs VPU driver, as well as examples. Signed-off-by: Paul Kocialkowski Reviewed-by: Rob Herring --- .../bindings/media/sunxi-cedrus.txt | 54 +++ 1 file changed, 54 insertions

Re: [PATCH] Revert "arm64: Use aarch64elf and aarch64elfb emulation mode variants"

2018-07-10 Thread Paul Kocialkowski
Hi, On Tue, 2018-07-10 at 10:01 +0100, Will Deacon wrote: > Thanks, Laura. > > I'll take this as a fix, and add a comment to the Makefile to justify > why we need the linux target. So this comes down to either breaking fedora/debian toolchains (that don't support elf emulation mode) or breaking

Re: [PATCH v4 3/3] ARM: dts: sun7i: Add support for the Ainol AW1 tablet

2018-05-14 Thread Paul Kocialkowski
Hi and thanks for the review! Le vendredi 11 mai 2018 à 16:36 +0200, Maxime Ripard a écrit : > On Tue, May 08, 2018 at 12:04:13AM +0200, Paul Kocialkowski wrote: > > +++ b/arch/arm/boot/dts/sun7i-a20-ainol-aw1.dts > > @@ -0,0 +1,297 @@ > > +/* > > + * SPDX-License-I

Re: [PATCH v4 1/3] drm/panel: Add RGB666 variant of Innolux AT070TN90

2018-05-14 Thread Paul Kocialkowski
Hi, Le vendredi 11 mai 2018 à 10:59 +0200, Maxime Ripard a écrit : > On Wed, May 09, 2018 at 01:31:23PM +0200, Paul Kocialkowski wrote: > > On Wed, 2018-05-09 at 09:12 +0200, Maxime Ripard wrote: > > > On Tue, May 08, 2018 at 12:04:11AM +0200, Paul Kocialkowski wrote: > &g

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

2018-12-12 Thread Paul Kocialkowski
Hi, On Wed, 2018-12-05 at 21:59 +0100, Jernej Škrabec wrote: > Hi! > > Dne petek, 23. november 2018 ob 14:02:08 CET je Paul Kocialkowski napisal(a): > > This introduces the required definitions for HEVC decoding support with > > stateless VPUs. The controls associated to

[PATCH] drm/vc4: Limit SAND tiling support to semiplanar YUV420 formats

2018-12-14 Thread Paul Kocialkowski
from the supported list in the format_mod_supported helper for RGB formats. Remove further checks that are no longer necessary along the way, since semi-planar YUV420 formats support every SAND tiling mode. Signed-off-by: Paul Kocialkowski --- drivers/gpu/drm/vc4/vc4_plane.c | 17

Re: [linux-sunxi] [PATCH v2 15/15] arm64: dts: allwinner: a64: Add Video Engine node

2018-12-10 Thread Paul Kocialkowski
Hi, On Fri, 2018-12-07 at 22:22 +0100, Jernej Škrabec wrote: > Hi! > > Dne sreda, 05. december 2018 ob 10:24:44 CET je Paul Kocialkowski napisal(a): > > This adds the Video Engine node for the A64. Since it can map the whole > > DRAM range, there is no particular need for a

[PATCH] arm64: dts: allwinner: a64: Fix the video engine compatible

2018-12-10 Thread Paul Kocialkowski
When introducing the video-codec node for the video engine, the compatible for the H5 was used instead of the compatible for the A64. Use the right compatible instead. Fixes: d60ce24740d2 ("arm64: dts: allwinner: a64: Add Video Engine node") Signed-off-by: Paul Kocialkowski --- arch/

  1   2   3   4   5   6   7   8   9   >