Re: [PATCH v6, 23/24] media: mediatek: vcodec: support av1 svp decoder for mt8188

2024-05-23 Thread Andrzej Pietrasiewicz
Hi Yunfei and Xiaoyong, W dniu 16.05.2024 o 14:21, Yunfei Dong pisze: From: Xiaoyong Lu Change av1 driver to support secure video playback(svp) for mt8188. Need to map shared memory with optee interface and wait interrupt in optee-os. Signed-off-by: Xiaoyong Lu Signed-off-by: Yunfei Dong --

Re: [PATCH v6,14/24] media: mediatek: vcodec: Add capture format to support one plane memory

2024-05-23 Thread Andrzej Pietrasiewicz
Hi, I'm having second thoughts, please see inline, W dniu 22.05.2024 o 14:26, Andrzej Pietrasiewicz pisze: Hi Yunfei, W dniu 16.05.2024 o 14:20, Yunfei Dong pisze: Define one uncompressed capture format V4L2_PIX_FMT_MS21 in order to support one plane memory. The buffer size is luma + c

Re: [PATCH v6,14/24] media: mediatek: vcodec: Add capture format to support one plane memory

2024-05-22 Thread Andrzej Pietrasiewicz
Hi Yunfei, W dniu 16.05.2024 o 14:20, Yunfei Dong pisze: Define one uncompressed capture format V4L2_PIX_FMT_MS21 in order to support one plane memory. The buffer size is luma + chroma, luma is stored at the start and chrome is stored at the end. Signed-off-by: Yunfei Dong --- Documentation/

Re: [PATCH v6,12/24] media: mediatek: vcodec: add interface to allocate/free secure memory

2024-05-22 Thread Andrzej Pietrasiewicz
Hi Yunfei, W dniu 16.05.2024 o 14:20, Yunfei Dong pisze: Need to call dma heap interface to allocate/free secure memory when playing secure video. Signed-off-by: Yunfei Dong --- .../media/platform/mediatek/vcodec/Kconfig| 1 + .../mediatek/vcodec/common/mtk_vcodec_util.c | 122 ++

Re: [PATCH v6,04/24] v4l: add documentation for restricted memory flag

2024-05-22 Thread Andrzej Pietrasiewicz
Hi Yunfei & Jeffrey, W dniu 16.05.2024 o 14:20, Yunfei Dong pisze: From: Jeffrey Kardatzke Adds documentation for V4L2_MEMORY_FLAG_RESTRICTED. Why not in the patch where the flag is actually being added? From that commit until this commit it would be undocumented. While at it... Signed-o

Re: [PATCH v6,09/24] media: mediatek: vcodec: allocate tee share memory

2024-05-22 Thread Andrzej Pietrasiewicz
Hi Yunfei, W dniu 16.05.2024 o 14:20, Yunfei Dong pisze: Allocate two share memory for each lat and core hardware used to share information with optee-os. Msg buffer used to send ipi command and get ack command with optee-os, data buffer used to store vsi information which used for hardware deco

Re: [PATCH v6, 10/24] media: mediatek: vcodec: send share memory data to optee

2024-05-22 Thread Andrzej Pietrasiewicz
Hi Yunfei & Jeffrey, W dniu 16.05.2024 o 14:20, Yunfei Dong pisze: Setting msg and vsi information to shared buffer, then call tee invoke function to send it to optee-os. Signed-off-by: Yunfei Dong --- .../vcodec/decoder/mtk_vcodec_dec_optee.c | 140 ++ .../vcodec/decode

Re: [PATCH v6,08/24] media: mediatek: vcodec: add tee client interface to communiate with optee-os

2024-05-22 Thread Andrzej Pietrasiewicz
Hi Yunfei & Jeffrey, W dniu 16.05.2024 o 14:20, Yunfei Dong pisze: Open tee context to initialize the environment in order to communication with optee-os, then open tee session as the communication pipeline for lat and core to send data for hardware decode. Signed-off-by: Yunfei Dong --- ...

Re: [PATCH v6,02/24] v4l2: handle restricted memory flags in queue setup

2024-05-22 Thread Andrzej Pietrasiewicz
Hi Yunfei & Jeffrey, W dniu 16.05.2024 o 14:20, Yunfei Dong pisze: From: Jeffrey Kardatzke Validates the restricted memory flags when setting up a queue and ensures the queue has the proper capability. Signed-off-by: Jeffrey Kardatzke Signed-off-by: Yunfei Dong --- .../media/common/videob

Re: [PATCH v2 0/3] usb: gadget: functionfs: DMABUF import interface

2023-03-31 Thread Andrzej Pietrasiewicz
Hi Paul, W dniu 22.03.2023 o 10:21, Paul Cercueil pisze: Hi, This small patchset adds three new IOCTLs that can be used to attach, detach, or transfer from/to a DMABUF object. Changes since v1: - patch [2/3] is new. I had to reuse a piece of code that was already duplicated in the driver, s

Re: [RFC PATCH v6] media: mediatek: vcodec: support stateless AV1 decoder

2022-11-29 Thread Andrzej Pietrasiewicz
quest_setup() is called in mtk_vdec_worker which is before this function. great Thanks Best Regards xiaoyong Lu Please avoid top-posting. It is easier for your reviewer to read your answers inline. And, actually, it is easier for you not having to find the relevant fragments, copy and then pas

Re: [RFC PATCH v6] media: mediatek: vcodec: support stateless AV1 decoder

2022-11-18 Thread Andrzej Pietrasiewicz
Hi again, W dniu 17.11.2022 o 13:42, Andrzej Pietrasiewicz pisze: Hi Xiaoyong Lu, Sorry about chiming in only at v6. Please see inline below. Andrzej W dniu 17.11.2022 o 07:17, Xiaoyong Lu pisze: Add mediatek av1 decoder linux driver which use the stateless API in MT8195. Signed-off-by

Re: [RFC PATCH v7] media: mediatek: vcodec: support stateless AV1 decode

2022-11-17 Thread Andrzej Pietrasiewicz
Hi, Did you receive my comments for v6? Regards, Andrzej W dniu 17.11.2022 o 10:43, Xiaoyong Lu pisze: Add mediatek av1 decoder linux driver which use the stateless API in MT8195. Signed-off-by: Xiaoyong Lu --- Changes from v6: - change slot_id type from u8 to s8 - test by av1 fluster, resu

Re: [RFC PATCH v6] media: mediatek: vcodec: support stateless AV1 decoder

2022-11-17 Thread Andrzej Pietrasiewicz
Hi Xiaoyong Lu, Sorry about chiming in only at v6. Please see inline below. Andrzej W dniu 17.11.2022 o 07:17, Xiaoyong Lu pisze: Add mediatek av1 decoder linux driver which use the stateless API in MT8195. Signed-off-by: Xiaoyong Lu --- Changes from v5: - change av1 PROFILE and LEVEL cfg -

Re: [PATCH] drm/rockchip: vop: Correct RK3399 VOP register fields

2022-02-08 Thread Andrzej Pietrasiewicz
ns that were swapped in commit 7707f7227f09. I reviewed them to the best of my ability according to the RK3399 TRM and fixed them up. This fixes IOMMU issues (and display errors) when testing with BG24 color formats. Fixes: 7707f7227f09 ("drm/rockchip: Add support for afbc") Cc: Andrzej

Re: [PATCH v7, 00/15] Support multi hardware decode using of_platform_populate

2021-10-13 Thread Andrzej Pietrasiewicz
Hi, W dniu 13.10.2021 o 03:08, yunfei.d...@mediatek.com pisze: Hi Andrzej, On Tue, 2021-10-12 at 16:27 +0200, Andrzej Pietrasiewicz wrote: Hi Yunfei Dong, W dniu 11.10.2021 o 09:02, Yunfei Dong pisze: This series adds support for multi hardware decode into mtk-vcodec, by first adding use

Re: [PATCH v7, 00/15] Support multi hardware decode using of_platform_populate

2021-10-12 Thread Andrzej Pietrasiewicz
Hi Yunfei Dong, W dniu 11.10.2021 o 09:02, Yunfei Dong pisze: This series adds support for multi hardware decode into mtk-vcodec, by first adding use of_platform_populate to manage each hardware information: interrupt, clock, register bases and power. Secondly add core thread to deal with core h

Re: [PATCH v3 2/2] tty/sysrq: Add configurable handler to execute a compound action

2020-10-02 Thread Andrzej Pietrasiewicz
Hi, W dniu 02.10.2020 o 16:02, Greg Kroah-Hartman pisze: On Fri, Oct 02, 2020 at 03:42:52PM +0200, Andrzej Pietrasiewicz wrote: Hi, W dniu 02.10.2020 o 14:54, Greg Kroah-Hartman pisze: On Tue, Aug 18, 2020 at 01:28:25PM +0200, Andrzej Pietrasiewicz wrote: Userland might want to execute e.g

Re: [PATCH v3 2/2] tty/sysrq: Add configurable handler to execute a compound action

2020-10-02 Thread Andrzej Pietrasiewicz
Hi, W dniu 02.10.2020 o 14:54, Greg Kroah-Hartman pisze: On Tue, Aug 18, 2020 at 01:28:25PM +0200, Andrzej Pietrasiewicz wrote: Userland might want to execute e.g. 'w' (show blocked tasks), followed by 's' (sync), followed by 1000 ms delay and then followed by 'c

Re: [PATCH v3 0/2] Add configurable handler to execute a compound action

2020-10-02 Thread Andrzej Pietrasiewicz
W dniu 02.10.2020 o 14:33, Andrzej Pietrasiewicz pisze: W dniu 02.10.2020 o 14:31, Greg Kroah-Hartman pisze: On Tue, Aug 18, 2020 at 01:28:23PM +0200, Andrzej Pietrasiewicz wrote: This is a follow-up of this thread: https://www.spinics.net/lists/linux-input/msg68446.html lore.kernel.org is

Re: [PATCH v3 0/2] Add configurable handler to execute a compound action

2020-10-02 Thread Andrzej Pietrasiewicz
W dniu 02.10.2020 o 14:31, Greg Kroah-Hartman pisze: On Tue, Aug 18, 2020 at 01:28:23PM +0200, Andrzej Pietrasiewicz wrote: This is a follow-up of this thread: https://www.spinics.net/lists/linux-input/msg68446.html lore.kernel.org is easier to pull stuff from :) Anyway, what ever happened

[PATCH v3 1/2] tty/sysrq: Extend the sysrq_key_table to cover capital letters

2020-08-18 Thread Andrzej Pietrasiewicz
-SysRq-. Signed-off-by: Andrzej Pietrasiewicz --- Documentation/admin-guide/sysrq.rst | 2 ++ drivers/gpu/drm/drm_fb_helper.c | 2 +- drivers/tty/sysrq.c | 49 +++-- 3 files changed, 50 insertions(+), 3 deletions(-) diff --git a/Documentation/admin

[PATCH v3 0/2] Add configurable handler to execute a compound action

2020-08-18 Thread Andrzej Pietrasiewicz
encoding it (Jiri Slaby) - updated help message of sysrq_drm_fb_helper_restore_op (Jiri Slaby) - used unsigned int for specifying delays (Jiri Slaby) - improved printed messages formatting (Jiri Slaby) Andrzej Pietrasiewicz (2): tty/sysrq: Extend the sysrq_key_table to cover capital letters tty/sys

[PATCH v3 2/2] tty/sysrq: Add configurable handler to execute a compound action

2020-08-18 Thread Andrzej Pietrasiewicz
of that many milliseconds, e.g.: ws:1000c or r:100eis:1000ub Signed-off-by: Andrzej Pietrasiewicz --- Documentation/admin-guide/sysrq.rst | 9 drivers/tty/sysrq.c | 82 - include/linux/sysrq.h | 1 + 3 files changed, 91 insertions(+

[PATCH v2 2/2] tty/sysrq: Add configurable handler to execute a compound action

2020-08-17 Thread Andrzej Pietrasiewicz
of that many milliseconds, e.g.: ws:1000c or r:100eis:1000ub Signed-off-by: Andrzej Pietrasiewicz --- Documentation/admin-guide/sysrq.rst | 9 drivers/tty/sysrq.c | 82 - include/linux/sysrq.h | 1 + 3 files changed, 91 insertions(+

[PATCH v2 1/2] tty/sysrq: Extend the sysrq_key_table to cover capital letters

2020-08-17 Thread Andrzej Pietrasiewicz
-SysRq-. Signed-off-by: Andrzej Pietrasiewicz --- Documentation/admin-guide/sysrq.rst | 2 ++ drivers/gpu/drm/drm_fb_helper.c | 2 +- drivers/tty/sysrq.c | 49 +++-- 3 files changed, 50 insertions(+), 3 deletions(-) diff --git a/Documentation/admin

[PATCH v2 0/2] Add configurable handler to execute a compound action

2020-08-17 Thread Andrzej Pietrasiewicz
i Slaby) - used unsigned int for specifying delays (Jiri Slaby) - improved printed messages formatting (Jiri Slaby) Andrzej Pietrasiewicz (2): tty/sysrq: Extend the sysrq_key_table to cover capital letters tty/sysrq: Add configurable handler to execute a compound action Documentatio

Re: [PATCH] drm: Don't free a struct never allocated by drm_gem_fb_init()

2020-04-16 Thread Andrzej Pietrasiewicz
W dniu 15.04.2020 o 20:33, Daniel Vetter pisze: On Wed, Apr 15, 2020 at 7:19 PM Andrzej Pietrasiewicz wrote: drm_gem_fb_init() is passed the fb and never allocates it, so it should be not the one freeing it. As it is now the second call to kfree() is possible with the same fb. Coverity

[PATCH] drm: Don't free a struct never allocated by drm_gem_fb_init()

2020-04-15 Thread Andrzej Pietrasiewicz
llow drivers allocate a subclass of struct drm_framebuffer") Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/drm_gem_framebuffer_helper.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/drm_gem_framebuffer_helper.c b/drivers/gpu/drm/drm_gem

[PATCH 1/2] drm/core: Use proper debugging macro

2020-03-31 Thread Andrzej Pietrasiewicz
Use drm_dbg_kms() instead of DRM_DEBUG_KMS. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/drm_gem_framebuffer_helper.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/drm_gem_framebuffer_helper.c b/drivers/gpu/drm

[PATCH 0/2] AFBC fixes

2020-03-31 Thread Andrzej Pietrasiewicz
This short series addresses the way bpp value is made available for drm_gem_afbc_min_size(). It can be inferred from the format if a driver hasn't set anything in cpp[0] (patch 2/2). While at it, use proper debugging macro (patch 1/2). Andrzej Pietrasiewicz (2): drm/core: Use proper debu

[PATCH 2/2] drm/core: Calculate bpp in afbc helper

2020-03-31 Thread Andrzej Pietrasiewicz
Some drivers (komeda, malidp) don't set anything in cpp. If that is the case the right value can be inferred from the format. Then the "bpp" member can be eliminated from struct drm_afbc_framebuffer. Signed-off-by: Andrzej Pietrasiewicz --- Documentation/gpu/todo.rst

Re: [PATCHv7 2/6] drm/core: Add drm_afbc_framebuffer and a corresponding helper

2020-03-30 Thread Andrzej Pietrasiewicz
Hi Daniel, W dniu 30.03.2020 o 19:01, Daniel Vetter pisze: On Wed, Mar 11, 2020 at 3:55 PM Andrzej Pietrasiewicz wrote: The new struct contains afbc-specific data. diff --git a/Documentation/gpu/todo.rst b/Documentation/gpu/todo.rst index 439656f55c5d..37a3a023c114 100644 --- a

Re: [PATCH v1 2/6] drm/fb: fix kernel-doc in drm_framebuffer.h

2020-03-30 Thread Andrzej Pietrasiewicz
height' not described in 'drm_afbc_framebuffer' Trivial spelling mistakes. Signed-off-by: Sam Ravnborg Fixes: 55f7f72753ab ("drm/core: Add drm_afbc_framebuffer and a corresponding helper") Cc: Andrzej Pietrasiewicz Cc: Emil Velikov Cc: James Qian Wang Cc: Daniel Vetter Cc

Re: [PATCHv7 6/6] drm/rockchip: Add support for afbc

2020-03-19 Thread Andrzej Pietrasiewicz
Hi Sandy, W dniu 19.03.2020 o 03:57, Sandy Huang pisze: Hi Emil, -- 2.17.1 Heiko, Sandy, being the maintainers of the Rockchip driver, can you review/ack this patch? I believe the intention is to merge the series via drm-misc. Andrzej already has commit access. -Emil Thanks for you p

[PATCHv7 6/6] drm/rockchip: Add support for afbc

2020-03-11 Thread Andrzej Pietrasiewicz
This patch adds support for afbc handling. afbc is a compressed format which reduces the necessary memory bandwidth. Co-developed-by: Mark Yao Signed-off-by: Mark Yao Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/rockchip/rockchip_drm_drv.h | 1 + drivers/gpu/drm/rockchip

[PATCHv7 5/6] drm/arm/malidp: Switch to afbc helpers

2020-03-11 Thread Andrzej Pietrasiewicz
Use available afbc helpers. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/arm/malidp_drv.c | 44 +++- 1 file changed, 4 insertions(+), 40 deletions(-) diff --git a/drivers/gpu/drm/arm/malidp_drv.c b/drivers/gpu/drm/arm/malidp_drv.c index b9715b19af94

[PATCHv7 4/6] drm/arm/malidp: Allocate an afbc-specific drm_framebuffer

2020-03-11 Thread Andrzej Pietrasiewicz
Prepare for using generic afbc helpers. Use an existing helper which allows allocating a struct drm_framebuffer in the driver. afbc-specific checks should go after drm_gem_fb_init_with_funcs(). Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/arm/malidp_drv.c | 50

[PATCHv7 3/6] drm/arm/malidp: Factor-in framebuffer creation

2020-03-11 Thread Andrzej Pietrasiewicz
Consolidating framebuffer creation into one function will make it easier to transition to generic afbc-aware helpers. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/arm/malidp_drv.c | 157 +-- 1 file changed, 66 insertions(+), 91 deletions(-) diff --git a

[PATCHv7 1/6] drm/core: Allow drivers allocate a subclass of struct drm_framebuffer

2020-03-11 Thread Andrzej Pietrasiewicz
truct drm_framebuffer, exactly the way the new version of drm_gem_fb_create_with_funcs() does. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/drm_gem_framebuffer_helper.c | 87 ++-- include/drm/drm_gem_framebuffer_helper.h | 5 ++ 2 files changed, 67 insertions(+), 25 dele

[PATCHv7 2/6] drm/core: Add drm_afbc_framebuffer and a corresponding helper

2020-03-11 Thread Andrzej Pietrasiewicz
The new struct contains afbc-specific data. The new function can be used by drivers which support afbc to complete the preparation of struct drm_afbc_framebuffer. It must be called after allocating the said struct and calling drm_gem_fb_init_with_funcs(). Signed-off-by: Andrzej Pietrasiewicz

[PATCHv7 0/6] Add AFBC support for Rockchip

2020-03-11 Thread Andrzej Pietrasiewicz
dressed comments from Daniel Stone, Ayan Halder, Mihail Atanassov - coding style fixes Andrzej Pietrasiewicz (6): drm/core: Allow drivers allocate a subclass of struct drm_framebuffer drm/core: Add drm_afbc_framebuffer and a corresponding helper drm/arm/malidp: Factor-in framebuffer creation dr

[PATCHv6 6/6] drm/rockchip: Add support for afbc

2020-03-03 Thread Andrzej Pietrasiewicz
This patch adds support for afbc handling. afbc is a compressed format which reduces the necessary memory bandwidth. Co-developed-by: Mark Yao Signed-off-by: Mark Yao Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/rockchip/rockchip_drm_drv.h | 1 + drivers/gpu/drm/rockchip

[PATCHv6 4/6] drm/arm/malidp: Allocate an afbc-specific drm_framebuffer

2020-03-03 Thread Andrzej Pietrasiewicz
Prepare for using generic afbc helpers. Use an existing helper which allows allocating a struct drm_framebuffer in the driver. afbc-specific checks should go after drm_gem_fb_init_with_funcs(). Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/arm/malidp_drv.c | 40

[PATCHv6 5/6] drm/arm/malidp: Switch to afbc helpers

2020-03-03 Thread Andrzej Pietrasiewicz
Use available afbc helpers. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/arm/malidp_drv.c | 44 +++- 1 file changed, 4 insertions(+), 40 deletions(-) diff --git a/drivers/gpu/drm/arm/malidp_drv.c b/drivers/gpu/drm/arm/malidp_drv.c index c076d0fd5b28

[PATCHv6 3/6] drm/arm/malidp: Factor-in framebuffer creation

2020-03-03 Thread Andrzej Pietrasiewicz
Consolidating framebuffer creation into one function will make it easier to transition to generic afbc-aware helpers. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/arm/malidp_drv.c | 158 +-- 1 file changed, 67 insertions(+), 91 deletions(-) diff --git a

[PATCHv6 1/6] drm/core: Allow drivers allocate a subclass of struct drm_framebuffer

2020-03-03 Thread Andrzej Pietrasiewicz
truct drm_framebuffer, exactly the way the new version of drm_gem_fb_create_with_funcs() does. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/drm_gem_framebuffer_helper.c | 65 +++- include/drm/drm_gem_framebuffer_helper.h | 5 ++ 2 files changed, 56 insertions(+), 14 dele

[PATCHv6 2/6] drm/core: Add drm_afbc_framebuffer and a corresponding helper

2020-03-03 Thread Andrzej Pietrasiewicz
The new struct contains afbc-specific data. The new function can be used by drivers which support afbc to complete the preparation of struct drm_afbc_framebuffer. It must be called after allocating the said struct and calling drm_gem_fb_init_with_funcs(). Signed-off-by: Andrzej Pietrasiewicz

[PATCHv6 0/6] Add AFBC support for Rockchip

2020-03-03 Thread Andrzej Pietrasiewicz
t direction. I also kindly ask for input on how to accommodate komeda. The CONFIG_DRM_AFBC option has been eliminated in favour of adding drm_afbc.c to drm_kms_helper. v1..v2: - addressed comments from Daniel Stone, Ayan Halder, Mihail Atanassov - coding style fixes Andrzej Pietrasiewicz (6): drm

Re: [PATCHv4,04/36] drm/gem-fb-helper: Add special version of drm_gem_fb_size_check

2020-02-17 Thread Andrzej Pietrasiewicz
3, 2019 at 04:58:35PM +0100, Andrzej Pietrasiewicz wrote: The new version accepts a struct describing deviations from standard way of doing the size checks. The caller must provide the respective values. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/drm_gem_framebuffer_hel

Re: [PATCHv5 00/34] Add AFBC support for Rockchip

2020-02-07 Thread Andrzej Pietrasiewicz
Hi All again, @malidp and komeda folks: I kindly ask you to have your say. If there is no interest from you (which is ok with me) I will resend the series dropping the komeda and malidp part. Andrzej W dniu 30.01.2020 o 10:08, Andrzej Pietrasiewicz pisze: Hi All, A gentle reminder. Please

Re: [PATCHv5 00/34] Add AFBC support for Rockchip

2020-01-30 Thread Andrzej Pietrasiewicz
+0100, Andrzej Pietrasiewicz wrote: Hi All, A gentle reminder. Please also see inline: W dniu 17.12.2019 o 15:49, Andrzej Pietrasiewicz pisze: This series adds AFBC support for Rockchip. It is inspired by: https://chromium.googlesource.com/chromiumos/third_party/kernel/+/refs/heads/factory-gru

Re: [PATCHv5 00/34] Add AFBC support for Rockchip

2020-01-30 Thread Andrzej Pietrasiewicz
Hi All, A gentle reminder. Please also see inline: W dniu 17.12.2019 o 15:49, Andrzej Pietrasiewicz pisze: This series adds AFBC support for Rockchip. It is inspired by: https://chromium.googlesource.com/chromiumos/third_party/kernel/+/refs/heads/factory-gru-9017.B-chromeos-4.4/drivers/gpu

[PATCH 2/4] drm/vc4: Provide ddc symlink in connector sysfs directory

2020-01-02 Thread Andrzej Pietrasiewicz
Use the ddc pointer provided by the generic connector. Signed-off-by: Andrzej Pietrasiewicz Acked-by: Sam Ravnborg Reviewed-by: Emil Velikov --- drivers/gpu/drm/vc4/vc4_hdmi.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c b

[PATCH 0/4] Complete ddc symlink addition

2020-01-02 Thread Andrzej Pietrasiewicz
The series completes the process of adding ddc symlink in connector's sysfs directory: of the initial submission only the below patches are still pending, hence this resend. Rebased onto drm-misc-next as of 2020-01-02. Andrzej Pietrasiewicz (4): drm/tegra: Provide ddc symlink in o

[PATCH 4/4] drm: zte: Provide ddc symlink in vga connector sysfs directory

2020-01-02 Thread Andrzej Pietrasiewicz
Use the ddc pointer provided by the generic connector. Signed-off-by: Andrzej Pietrasiewicz Acked-by: Sam Ravnborg Reviewed-by: Emil Velikov --- drivers/gpu/drm/zte/zx_vga.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/zte/zx_vga.c b/drivers/gpu

[PATCH 3/4] drm: zte: Provide ddc symlink in hdmi connector sysfs directory

2020-01-02 Thread Andrzej Pietrasiewicz
Use the ddc pointer provided by the generic connector. Signed-off-by: Andrzej Pietrasiewicz Acked-by: Sam Ravnborg Reviewed-by: Emil Velikov --- drivers/gpu/drm/zte/zx_hdmi.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/zte/zx_hdmi.c b/drivers/gpu

[PATCH 1/4] drm/tegra: Provide ddc symlink in output connector sysfs directory

2020-01-02 Thread Andrzej Pietrasiewicz
Use the ddc pointer provided by the generic connector. Signed-off-by: Andrzej Pietrasiewicz Acked-by: Sam Ravnborg Reviewed-by: Emil Velikov --- drivers/gpu/drm/tegra/hdmi.c | 7 --- drivers/gpu/drm/tegra/sor.c | 7 --- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a

[PATCHv5 31/34] drm/arm/malidp: Factor in afbc framebuffer verification

2019-12-17 Thread Andrzej Pietrasiewicz
Prepare for using generic afbc-aware helpers. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/arm/malidp_drv.c | 142 +++ 1 file changed, 68 insertions(+), 74 deletions(-) diff --git a/drivers/gpu/drm/arm/malidp_drv.c b/drivers/gpu/drm/arm/malidp_drv.c

[PATCHv5 32/34] drm/arm/malidp: Use generic helpers for afbc checks

2019-12-17 Thread Andrzej Pietrasiewicz
Helpers are now available for checking afbc buffer properties. Use those. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/arm/malidp_drv.c | 71 ++-- 1 file changed, 30 insertions(+), 41 deletions(-) diff --git a/drivers/gpu/drm/arm/malidp_drv.c b/drivers

[PATCHv5 33/34] drm/rockchip: Use helper for common task

2019-12-17 Thread Andrzej Pietrasiewicz
Use generic helper code. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/rockchip/rockchip_drm_fb.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_fb.c b/drivers/gpu/drm/rockchip/rockchip_drm_fb.c index

[PATCHv5 20/34] drm/komeda: Move helper invocation to after size checks

2019-12-17 Thread Andrzej Pietrasiewicz
Between the old and new place nothing depends on data retrieved with the helper, so it is safe to move its invocation. The err_cleanup case is changed accordingly. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c | 5 +++-- 1 file changed, 3

[PATCHv5 01/34] drm/core: Add afbc helper functions

2019-12-17 Thread Andrzej Pietrasiewicz
Add checking if a modifier is afbc and getting afbc block size. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/drm_fourcc.c | 53 include/drm/drm_fourcc.h | 4 +++ 2 files changed, 57 insertions(+) diff --git a/drivers/gpu/drm/drm_fourcc.c b

[PATCHv5 27/34] drm/komeda: Move special helper invocation outside if-else

2019-12-17 Thread Andrzej Pietrasiewicz
The invocation is the same in both cases and is the last thing inside a block, so move it outside the if-else clause. Signed-off-by: Andrzej Pietrasiewicz --- .../gpu/drm/arm/display/komeda/komeda_framebuffer.c| 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a

[PATCHv5 34/34] drm/rockchip: Add support for afbc

2019-12-17 Thread Andrzej Pietrasiewicz
This patch adds support for afbc handling. afbc is a compressed format which reduces the necessary memory bandwidth. Co-developed-by: Mark Yao Signed-off-by: Mark Yao Signed-off-by: Andrzej Pietrasiewicz # Conflicts: # drivers/gpu/drm/rockchip/rockchip_drm_fb.c --- drivers/gpu/drm

[PATCHv5 18/34] drm/komeda: Move object assignments to framebuffer to after size checks

2019-12-17 Thread Andrzej Pietrasiewicz
The assignments are the same in both branches of the "if" statement and nothing depends on them between their original position and the new position, so this can be safely done. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c | 7 +++--

[PATCHv5 12/34] drm/komeda: Factor out object lookups for non-afbc case

2019-12-17 Thread Andrzej Pietrasiewicz
Ultimately we want lookups happening only once in komeda's fb_create implementation. Signed-off-by: Andrzej Pietrasiewicz --- .../arm/display/komeda/komeda_framebuffer.c | 21 --- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/arm/display/k

[PATCHv5 24/34] drm/komeda: Factor in the invocation of special helper

2019-12-17 Thread Andrzej Pietrasiewicz
Don't use a separate function to call the helper. The ultimate goal is to unify non-afbc and afbc cases as much as possible and then moving the helper invocation outside the if-else clause. Signed-off-by: Andrzej Pietrasiewicz --- .../arm/display/komeda/komeda_framebuffer.c

[PATCHv5 21/34] drm/komeda: Use helper for common tasks

2019-12-17 Thread Andrzej Pietrasiewicz
The replaced fragment is 1:1 with the helper code. Signed-off-by: Andrzej Pietrasiewicz --- .../gpu/drm/arm/display/komeda/komeda_framebuffer.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c b/drivers

[PATCHv5 28/34] drm/komeda: Move to helper checking afbc buffer size

2019-12-17 Thread Andrzej Pietrasiewicz
Use generic helper code. Adapt struct komeda_fb users to new location of respective data members. Signed-off-by: Andrzej Pietrasiewicz --- .../arm/display/komeda/d71/d71_component.c| 6 +-- .../arm/display/komeda/komeda_framebuffer.c | 44 +-- .../arm/display/komeda

[PATCHv5 30/34] drm/arm/malidp: Integrate verify functions

2019-12-17 Thread Andrzej Pietrasiewicz
The next step towards using generic afbc-aware helpers. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/arm/malidp_drv.c | 36 1 file changed, 9 insertions(+), 27 deletions(-) diff --git a/drivers/gpu/drm/arm/malidp_drv.c b/drivers/gpu/drm/arm

[PATCHv5 29/34] drm/arm/malidp: Make verify funcitons invocations independent

2019-12-17 Thread Andrzej Pietrasiewicz
This will make it easier to transition to generic afbc-aware helpers. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/arm/malidp_drv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/arm/malidp_drv.c b/drivers/gpu/drm/arm/malidp_drv.c index

[PATCHv5 26/34] drm/komeda: Factor in the invocation of special helper, afbc case

2019-12-17 Thread Andrzej Pietrasiewicz
Prepare for unification with non-afbc case. Signed-off-by: Andrzej Pietrasiewicz --- .../arm/display/komeda/komeda_framebuffer.c | 84 --- 1 file changed, 37 insertions(+), 47 deletions(-) diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c b/drivers/gpu/drm

[PATCHv5 03/34] drm/gem-fb-helper: Add special version of drm_gem_fb_size_check

2019-12-17 Thread Andrzej Pietrasiewicz
The new version accepts a struct describing deviations from standard way of doing the size checks. The caller must provide the respective values. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/drm_gem_framebuffer_helper.c | 46 include/drm

[PATCHv5 23/34] drm/komeda: Use special helper for non-afbc size checks

2019-12-17 Thread Andrzej Pietrasiewicz
Use the generic helper code. Signed-off-by: Andrzej Pietrasiewicz --- .../arm/display/komeda/komeda_framebuffer.c | 46 +-- 1 file changed, 21 insertions(+), 25 deletions(-) diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c b/drivers/gpu/drm/arm/display

[PATCHv5 19/34] drm/komeda: Make the size checks independent from framebuffer structure

2019-12-17 Thread Andrzej Pietrasiewicz
The same data is available in mode_cmd. Signed-off-by: Andrzej Pietrasiewicz --- .../gpu/drm/arm/display/komeda/komeda_framebuffer.c| 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c b/drivers/gpu/drm/arm

[PATCHv5 15/34] drm/komeda: Free komeda_fb_afbc_size_check from framebuffer dependency

2019-12-17 Thread Andrzej Pietrasiewicz
It does still depend on komeda_fb, but only for komeda-specific parameters. Signed-off-by: Andrzej Pietrasiewicz --- .../drm/arm/display/komeda/komeda_framebuffer.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/arm/display/komeda

[PATCHv5 11/34] drm/komeda: Provide and use komeda_fb_get_pixel_addr variant not requiring a fb

2019-12-17 Thread Andrzej Pietrasiewicz
Add a variant of the function which doesn't need neither struct drm_framebuffer nor container_of it. Maintain current interface for existing users. Signed-off-by: Andrzej Pietrasiewicz --- .../arm/display/komeda/komeda_framebuffer.c | 68 +++ .../arm/display/k

[PATCHv5 22/34] drm/komeda: Use return value of drm_gem_fb_lookup

2019-12-17 Thread Andrzej Pietrasiewicz
Reduce dependency of the function on the "info" variable as much as possible. Signed-off-by: Andrzej Pietrasiewicz --- .../gpu/drm/arm/display/komeda/komeda_framebuffer.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/arm/disp

[PATCHv5 16/34] drm/komeda: Simplify error handling

2019-12-17 Thread Andrzej Pietrasiewicz
Use less code to handle errors. Signed-off-by: Andrzej Pietrasiewicz --- .../arm/display/komeda/komeda_framebuffer.c | 32 --- 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c b/drivers/gpu/drm/arm/display

[PATCHv5 14/34] drm/komeda: Factor out object lookups for afbc case

2019-12-17 Thread Andrzej Pietrasiewicz
Ultimately we want lookups happening only once in komeda's fb_create implementation. Signed-off-by: Andrzej Pietrasiewicz --- .../arm/display/komeda/komeda_framebuffer.c | 30 +++ 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/arm/di

[PATCHv5 08/34] drm/komeda: Retrieve drm_format_info once

2019-12-17 Thread Andrzej Pietrasiewicz
Next step towards unifying afbc and non-afbc cases as much as possible. Signed-off-by: Andrzej Pietrasiewicz --- .../drm/arm/display/komeda/komeda_framebuffer.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/arm/display/komeda

[PATCHv5 25/34] drm/komeda: Use special helper for afbc case size check

2019-12-17 Thread Andrzej Pietrasiewicz
Use generic helper code. Signed-off-by: Andrzej Pietrasiewicz --- .../arm/display/komeda/komeda_framebuffer.c | 22 +++ 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c b/drivers/gpu/drm/arm/display/komeda

[PATCHv5 17/34] drm/komeda: Move object lookup before size checks

2019-12-17 Thread Andrzej Pietrasiewicz
The lookup is performed the same way in both branches of the "if" statement, so move the lookup to before the "if". err_cleanup case is adjusted accordingly. Signed-off-by: Andrzej Pietrasiewicz --- .../arm/display/komeda/komeda_framebuffer.c | 23 +++---

[PATCHv5 04/34] drm/gem-fb-helper: Add generic afbc size checks

2019-12-17 Thread Andrzej Pietrasiewicz
Extend the size-checking special function to handle afbc. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/drm_gem_framebuffer_helper.c | 49 +-- include/drm/drm_framebuffer.h| 50 include/drm/drm_gem_framebuffer_helper.h | 1

[PATCHv5 13/34] drm/komeda: Make komeda_fb_none_size_check independent from framebuffer

2019-12-17 Thread Andrzej Pietrasiewicz
All necessary data is now available in other data structures. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c b

[PATCHv5 09/34] drm/komeda: Explicitly require 1 plane for AFBC

2019-12-17 Thread Andrzej Pietrasiewicz
Apparently komeda silently assumes that there is only 1 plane in an AFBC buffer. Make this assumption explicit. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/arm/display

[PATCHv5 00/34] Add AFBC support for Rockchip

2019-12-17 Thread Andrzej Pietrasiewicz
G_DRM_AFBC option has been eliminated in favour of adding drm_afbc.c to drm_kms_helper. v1..v2: - addressed comments from Daniel Stone, Ayan Halder, Mihail Atanassov - coding style fixes** BLURB HERE *** Andrzej Pietrasiewicz (34): drm/core: Add afbc helper functions drm/gem-fb-helper: A

[PATCHv5 07/34] drm/komeda: Use the already available local variable

2019-12-17 Thread Andrzej Pietrasiewicz
There is a local "info" variable which is exactly fb->format, so use it. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_

[PATCHv5 10/34] drm/komeda: Move pitches comparison to komeda_fb_create

2019-12-17 Thread Andrzej Pietrasiewicz
For AFBC case num_planes equals 1 so the check will not affect it. Signed-off-by: Andrzej Pietrasiewicz --- .../drm/arm/display/komeda/komeda_framebuffer.c| 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/arm/display/komeda

[PATCHv5 06/34] drm/komeda: Move checking src coordinates to komeda_fb_create

2019-12-17 Thread Andrzej Pietrasiewicz
Next step towards unifying afbc and non-afbc cases as much as possible. Signed-off-by: Andrzej Pietrasiewicz --- .../drm/arm/display/komeda/komeda_framebuffer.c| 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/arm/display/komeda

[PATCHv5 05/34] drm/komeda: Use afbc helper

2019-12-17 Thread Andrzej Pietrasiewicz
Makes the code shorter and more readable. Signed-off-by: Andrzej Pietrasiewicz --- .../drm/arm/display/komeda/komeda_framebuffer.c | 16 ++-- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c b/drivers/gpu/drm

[PATCHv5 02/34] drm/gem-fb-helper: Allow drivers to allocate struct drm_framebuffer on their own

2019-12-17 Thread Andrzej Pietrasiewicz
also inside the helpers themselves. The interested drivers will likely need to be able to perform object lookups and size checks in separate invocations and this patch provides that as well. Helpers themselves are updated, too. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm

Re: [PATCHv4 03/36] drm/gem-fb-helper: Allow drivers to allocate struct drm_framebuffer on their own

2019-12-16 Thread Andrzej Pietrasiewicz
Hi Liviu, My way of thinking is explained below. Do you still find it problematic? W dniu 16.12.2019 o 18:08, Liviu Dudau pisze: Hi Andrzej, +struct drm_framebuffer * +drm_gem_fb_create_with_funcs(struct drm_device *dev, struct drm_file *file, +const struct drm

Re: [PATCHv4 05/36] drm/gem-fb-helper: Add generic afbc size checks

2019-12-16 Thread Andrzej Pietrasiewicz
Hi Liviu, W dniu 16.12.2019 o 18:19, Liviu Dudau pisze: Hi Andrzej, On Fri, Dec 13, 2019 at 04:58:36PM +0100, Andrzej Pietrasiewicz wrote: Extend the size-checking special function to handle afbc. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/drm_fourcc.c | 10

Re: [PATCH] drm/i915: Provide ddc symlink in hdmi connector sysfs directory

2019-12-13 Thread Andrzej Pietrasiewicz
W dniu 28.11.2019 o 16:01, Andrzej Pietrasiewicz pisze: Use the ddc pointer provided by the generic connector. A gentle ping. Andrzej Signed-off-by: Andrzej Pietrasiewicz Acked-by: Sam Ravnborg Reviewed-by: Emil Velikov --- Rebased onto drm-intel-next-queued. drivers/gpu/drm/i915

[PATCHv4 35/36] drm/rockchip: Use helper for common task

2019-12-13 Thread Andrzej Pietrasiewicz
Use generic helper code. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/rockchip/rockchip_drm_fb.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_fb.c b/drivers/gpu/drm/rockchip/rockchip_drm_fb.c index

[PATCHv4 29/36] drm/komeda: Move special helper invocation outside if-else

2019-12-13 Thread Andrzej Pietrasiewicz
The invocation is the same in both cases and is the last thing inside a block, so move it outside the if-else clause. Signed-off-by: Andrzej Pietrasiewicz --- .../gpu/drm/arm/display/komeda/komeda_framebuffer.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a

[PATCHv4 23/36] drm/komeda: Use helper for common tasks

2019-12-13 Thread Andrzej Pietrasiewicz
The replaced fragment is 1:1 with the helper code. Signed-off-by: Andrzej Pietrasiewicz --- .../gpu/drm/arm/display/komeda/komeda_framebuffer.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c b/drivers

[PATCHv4 30/36] drm/komeda: Move to helper checking afbc buffer size

2019-12-13 Thread Andrzej Pietrasiewicz
Use generic helper code. Adapt struct komeda_fb users to new location of respective data members. Signed-off-by: Andrzej Pietrasiewicz --- .../arm/display/komeda/d71/d71_component.c| 7 ++- .../arm/display/komeda/komeda_framebuffer.c | 60 +-- .../arm/display/komeda

  1   2   3   4   >