Re: [RFC PATCH] drm: Add per-plane pixel blend mode property

2018-05-22 Thread Lowry Li
On Wed, May 09, 2018 at 10:08:16AM +0200, Daniel Vetter wrote: > On Tue, May 08, 2018 at 06:34:36PM +0800, Lowry Li wrote: > > Pixel blend modes represent the alpha blending equation > > selection, describing how the pixels from the current > > plane are composited with the ba

Re: [RFC PATCH] drm: Add per-plane pixel blend mode property

2018-05-22 Thread Lowry Li
On Wed, May 09, 2018 at 01:48:06PM +0300, Ville Syrjälä wrote: > On Tue, May 08, 2018 at 06:34:36PM +0800, Lowry Li wrote: > > Pixel blend modes represent the alpha blending equation > > selection, describing how the pixels from the current > > plane are composite

Re: [RFC PATCH] drm: Add per-plane pixel blend mode property

2018-05-22 Thread Lowry Li
On Thu, May 17, 2018 at 10:05:35AM +0200, Maarten Lankhorst wrote: > Op 08-05-18 om 12:34 schreef Lowry Li: > > Pixel blend modes represent the alpha blending equation > > selection, describing how the pixels from the current > > plane are composited with the back

drm/blend: Add per-plane pixel blend mode property

2018-05-30 Thread Lowry Li
, Lowry >From 7b3b4cae2b0283076b47775efdf5dbbf75a8d859 Mon Sep 17 00:00:00 2001 From: Lowry Li Date: Wed, 30 May 2018 15:04:53 +0800 Subject: [PATCH v2 0/2] drm/blend: Add per-plane pixel blend mode property Hi, This serie aims at adding the support for pixel blend modes represent the alpha blend

[PATCH v2 1/2] drm/blend: Add per-plane pixel blend mode property

2018-05-30 Thread Lowry Li
drm_blend.h. Signed-off-by: Lowry Li --- drivers/gpu/drm/drm_atomic.c| 4 ++ drivers/gpu/drm/drm_atomic_helper.c | 1 + drivers/gpu/drm/drm_blend.c | 110 include/drm/drm_blend.h | 6 ++ include/drm/drm_plane.h | 6

[PATCH v2 0/2] drm/blend: Add per-plane pixel blend mode property

2018-05-30 Thread Lowry Li
just the core changes to request for commments - Adds a pixel_blend_mode to drm_plane_state and a blend_mode_property to drm_plane, and related support functions - Defines three blend modes in drm_blend.h - Rebased on current drm-next Lowry Li (2): drm/blend: Add per-plane pixel blend mode

[PATCH v2 2/2] drm/mali-dp: Implement plane alpha and pixel blend on malidp

2018-05-30 Thread Lowry Li
eturn failed. Set the HW when doing plane_update accordingly. If plane alpha is the 0x, set the PREM bit accordingly. If not we'd set ALPHA bit as zero and layer alpha value. Signed-off-by: Lowry Li --- drivers/gpu/drm/arm/malidp_planes.c | 76 + 1 file c

Re: [PATCH v2 1/2] drm/blend: Add per-plane pixel blend mode property

2018-05-31 Thread Lowry Li
On Thu, May 31, 2018 at 11:36:47AM +0200, Maarten Lankhorst wrote: > Hey, > > Op 30-05-18 om 13:23 schreef Lowry Li: > > Pixel blend modes represent the alpha blending equation > > selection, describing how the pixels from the current > > plane are composited with th

Re: [PATCH v2 2/2] drm/mali-dp: Implement plane alpha and pixel blend on malidp

2018-05-31 Thread Lowry Li
On Wed, May 30, 2018 at 02:34:33PM +0100, Brian Starkey wrote: > Hi Lowry, > > On Wed, May 30, 2018 at 07:23:54PM +0800, Lowry Li wrote: > >Check the pixel blending mode and plane alpha value when > >do the plane_check. Mali DP supports blending the current plane > >

Re: [PATCH v2 0/2] drm/blend: Add per-plane pixel blend mode property

2018-05-31 Thread Lowry Li
On Wed, May 30, 2018 at 10:40:40AM -0400, Sean Paul wrote: > On Wed, May 30, 2018 at 07:23:52PM +0800, Lowry Li wrote: > > Hi, > > > > This serie aims at adding the support for pixel blend modes represent the > > alpha blending equation selection in the driver. It also

Re: [PATCH v2 1/2] drm/blend: Add per-plane pixel blend mode property

2018-06-01 Thread Lowry Li
On Thu, May 31, 2018 at 03:51:37PM +0100, Emil Velikov wrote: > Hi Lowry, > > Small drive-by suggestion. Haven't checked if others have pointed it > out previously :-\ > > On 30 May 2018 at 12:23, Lowry Li wrote: > > > +/** > > + * drm_plane_create_blend_m

Re: [PATCH v2 1/2] drm/blend: Add per-plane pixel blend mode property

2018-06-01 Thread Lowry Li
On Wed, May 30, 2018 at 02:27:55PM +0100, Brian Starkey wrote: > Hi Lowry, > > On Wed, May 30, 2018 at 07:23:53PM +0800, Lowry Li wrote: > >Pixel blend modes represent the alpha blending equation > >selection, describing how the pixels from the current > >plane are com

[PATCH v3 0/2] drm/blend: Add per-plane pixel blend mode property

2018-06-01 Thread Lowry Li
e alpha patch Changes from v1: - v1 is just the core changes to request for commments - Adds a pixel_blend_mode to drm_plane_state and a blend_mode_property to drm_plane, and related support functions - Defines three blend modes in drm_blend.h - Rebased on current drm-next Lowry Li (2):

[PATCH v3 2/2] drm/mali-dp: Implement plane alpha and pixel blend on malidp

2018-06-01 Thread Lowry Li
eturn failed. 2. Set the HW when doing plane_update accordingly. If plane alpha is the 0x, set the pixel blending bits accordingly. If not we'd set ALPHA bit as zero and layer alpha value. Signed-off-by: Lowry Li --- drivers/gpu/drm/arm/malidp_planes.c | 76 +-

[PATCH v3 1/2] drm: Add per-plane pixel blend mode property

2018-06-01 Thread Lowry Li
drm_blend.h. Signed-off-by: Lowry Li --- drivers/gpu/drm/drm_atomic.c| 4 ++ drivers/gpu/drm/drm_atomic_helper.c | 1 + drivers/gpu/drm/drm_blend.c | 126 include/drm/drm_blend.h | 6 ++ include/drm/drm_plane.h | 5

Re: [PATCH v2 0/2] drm/blend: Add per-plane pixel blend mode property

2018-06-04 Thread Lowry Li
On Thu, May 31, 2018 at 06:22:26PM +0800, Lowry Li wrote: > On Wed, May 30, 2018 at 10:40:40AM -0400, Sean Paul wrote: > > On Wed, May 30, 2018 at 07:23:52PM +0800, Lowry Li wrote: > > > Hi, > > > > > > This serie aims at adding the support for pixel blend mode

Re: [PATCH v3 1/2] drm: Add per-plane pixel blend mode property

2018-06-05 Thread Lowry Li
On Mon, Jun 04, 2018 at 02:49:26PM +0100, Emil Velikov wrote: > On 1 June 2018 at 13:41, Lowry Li wrote: > > Pixel blend modes represent the alpha blending equation > > selection, describing how the pixels from the current > > plane are composited with the back

[RFC PATCH] drm: Add per-plane pixel blend mode property

2018-05-09 Thread Lowry Li
drm_blend.h. Signed-off-by: Lowry Li --- drivers/gpu/drm/drm_atomic.c| 4 ++ drivers/gpu/drm/drm_atomic_helper.c | 1 + drivers/gpu/drm/drm_blend.c | 95 + include/drm/drm_blend.h | 6 +++ include/drm/drm_plane.h | 7

Re: [PATCH v3 1/2] drm: Add per-plane pixel blend mode property

2018-08-13 Thread Lowry Li
On Mon, Aug 13, 2018 at 12:49:13PM +0200, Maarten Lankhorst wrote: > Op 05-06-18 om 11:07 schreef Lowry Li: > > On Mon, Jun 04, 2018 at 02:49:26PM +0100, Emil Velikov wrote: > >> On 1 June 2018 at 13:41, Lowry Li wrote: > >>> Pixel blend modes represent the alpha ble

Re: [PATCH v3 1/2] drm: Add per-plane pixel blend mode property

2018-08-14 Thread Lowry Li
On Tue, Aug 14, 2018 at 11:15:43AM +0200, Maarten Lankhorst wrote: > Op 14-08-18 om 05:11 schreef Lowry Li: > > On Mon, Aug 13, 2018 at 12:49:13PM +0200, Maarten Lankhorst wrote: > >> Op 05-06-18 om 11:07 schreef Lowry Li: > >>> On Mon, Jun 04, 2018 at 02:49:

[PATCH v4 2/2] drm/mali-dp: Implement plane alpha and pixel blend on malidp

2018-08-14 Thread Lowry Li
eturn failed. Sets the HW when doing plane_update accordingly. If plane alpha is the 0x, set the pixel blending bits accordingly. If not we'd set ALPHA bit as zero and layer alpha value. Signed-off-by: Lowry Li --- drivers/gpu/drm/arm/malidp_planes.c | 74 +--

[PATCH v4 0/2] drm/blend: Add per-plane pixel blend mode property

2018-08-14 Thread Lowry Li
nd_mode to drm_plane_state and a blend_mode_property to drm_plane, and related support functions - Defines three blend modes in drm_blend.h - Rebased on current drm-next Lowry Li (2): drm: Add per-plane pixel blend mode property drm/mali-dp: Implement plane alpha and pixel blend on malidp

[PATCH v4 1/2] drm: Add per-plane pixel blend mode property

2018-08-14 Thread Lowry Li
drm_blend.h. Signed-off-by: Lowry Li --- drivers/gpu/drm/drm_atomic.c| 4 ++ drivers/gpu/drm/drm_atomic_helper.c | 1 + drivers/gpu/drm/drm_blend.c | 126 include/drm/drm_blend.h | 6 ++ include/drm/drm_plane.h

Re: [PATCH v3 1/2] drm: Add per-plane pixel blend mode property

2018-08-14 Thread Lowry Li
On Mon, Jun 04, 2018 at 02:49:26PM +0100, Emil Velikov wrote: > On 1 June 2018 at 13:41, Lowry Li wrote: > > Pixel blend modes represent the alpha blending equation > > selection, describing how the pixels from the current > > plane are composited with the back

Re: [PATCH v4 1/2] drm: Add per-plane pixel blend mode property

2018-08-14 Thread Lowry Li
On Tue, Aug 14, 2018 at 02:23:10PM +0200, Maarten Lankhorst wrote: > Op 14-08-18 om 13:32 schreef Lowry Li: > > Pixel blend modes represent the alpha blending equation > > selection, describing how the pixels from the current > > plane are composited with the backg

[PATCH v4 2/2] drm/mali-dp: Implement plane alpha and pixel blend on malidp

2018-08-14 Thread Lowry Li
ch Changes since v2: - Refines the comments of drm/mali-dp patchset Changes since v3: - Updates on drm/malidp, hardware limitation check only when the format has alpha pixel. Signed-off-by: Lowry Li --- drivers/gpu/drm/arm/malidp_planes.c | 74 + 1 file c

[PATCH v4 0/2] drm/blend: Add per-plane pixel blend mode property

2018-08-14 Thread Lowry Li
nd_mode to drm_plane_state and a blend_mode_property to drm_plane, and related support functions - Defines three blend modes in drm_blend.h - Rebased on current drm-next Lowry Li (2): drm: Add per-plane pixel blend mode property drm/mali-dp: Implement plane alpha and pixel blend on malidp

[PATCH v4 1/2] drm: Add per-plane pixel blend mode property

2018-08-14 Thread Lowry Li
m() can calculate the index itself just fine, so no point in having the caller pass it in. - Since the current DRM assumption is that alpha is premultiplied as default, define DRM_MODE_BLEND_PREMULTI as 0 will be better. - Refines some comments. Signed-off-by: Lowry Li --- drivers/gpu/drm/dr

Re: [PATCH v4 1/2] drm: Add per-plane pixel blend mode property

2018-08-23 Thread Lowry Li
On Wed, Aug 22, 2018 at 03:27:44PM +0200, Maarten Lankhorst wrote: > Op 15-08-18 om 08:35 schreef Lowry Li: > > Pixel blend modes represent the alpha blending equation > > selection, describing how the pixels from the current > > plane are composited with the backg

Re: [PATCH v4 1/2] drm: Add per-plane pixel blend mode property

2018-08-23 Thread Lowry Li
On Wed, Aug 22, 2018 at 08:39:49AM -0400, Sean Paul wrote: > On Wed, Aug 15, 2018 at 02:35:32PM +0800, Lowry Li wrote: > > Pixel blend modes represent the alpha blending equation > > selection, describing how the pixels from the current > > plane are composited with the backgr

[PATCH v5 1/2] drm: Add per-plane pixel blend mode property

2018-08-23 Thread Lowry Li
Liviu Dudau Signed-off-by: Lowry Li --- drivers/gpu/drm/drm_atomic.c| 4 ++ drivers/gpu/drm/drm_atomic_helper.c | 1 + drivers/gpu/drm/drm_blend.c | 123 include/drm/drm_blend.h | 6 ++ include/drm/drm_plane.h | 9 +

[PATCH v5 2/2] drm/mali-dp: Implement plane alpha and pixel blend on malidp

2018-08-23 Thread Lowry Li
ch Changes since v2: - Refines the comments of drm/mali-dp patchset Changes since v3: - Updates on drm/malidp, hardware limitation check only when the format has alpha pixel. Changes since v4: - Rebases on drm-misc-next. Signed-off-by: Lowry Li Acked-by: Liviu Dudau --- drivers/g

[PATCH v5 0/2] drm/blend: Add per-plane pixel blend mode property

2018-08-23 Thread Lowry Li
r commments - Adds a pixel_blend_mode to drm_plane_state and a blend_mode_property to drm_plane, and related support functions - Defines three blend modes in drm_blend.h - Rebased on current drm-next Lowry Li (2): drm: Add per-plane pixel blend mode property drm/mali-dp: Implement pl

[PATCH v5 2/2] drm/mali-dp: Implement plane alpha and pixel blend on malidp

2018-08-30 Thread Lowry Li
ch Changes since v2: - Refines the comments of drm/mali-dp patchset Changes since v3: - Updates on drm/malidp, hardware limitation check only when the format has alpha pixel. Changes since v4: - Rebases on drm-misc-next. Signed-off-by: Lowry Li Acked-by: Liviu Dudau --- drivers/g

[PATCH v5 2/2] drm/mali-dp: Implement plane alpha and pixel blend on malidp

2018-08-31 Thread Lowry Li
ch Changes since v2: - Refines the comments of drm/mali-dp patchset Changes since v3: - Adds hardware limitation check Changes since v4: - Updates on drm/malidp, hardware limitation check only when the format has alpha pixel. - Rebases on drm-misc-next. Signed-off-by: Lowry Li Acked-by: L

[PATCH] drm/komeda: Clear enable bit in CU_INPUTx_CONTROL

2019-05-14 Thread Lowry Li (Arm Technology China)
Besides clearing the input ID to zero, D71 compiz also has input enable bit in CU_INPUTx_CONTROL which need to be cleared. Signed-off-by: Lowry Li (Arm Technology China) --- drivers/gpu/drm/arm/display/komeda/d71/d71_component.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion

[PATCH v1 0/2] drm/komeda: Enable color-encoding (YUV format) support

2019-05-15 Thread Lowry Li (Arm Technology China)
://patchwork.freedesktop.org/series/58710/ - https://patchwork.freedesktop.org/series/59000/ - https://patchwork.freedesktop.org/series/59002/ Lowry Li (Arm Technology China) (2): drm/komeda: Update HW up-sampling on D71 drm/komeda: Enable color-encoding (YUV format) support drivers/gpu/drm/arm/display/komeda

[PATCH v1 1/2] drm/komeda: Update HW up-sampling on D71

2019-05-15 Thread Lowry Li (Arm Technology China)
Updates HW up-sampling method according to the format type. Signed-off-by: Lowry Li (Arm Technology China) --- .../gpu/drm/arm/display/komeda/d71/d71_component.c | 29 ++ 1 file changed, 29 insertions(+) diff --git a/drivers/gpu/drm/arm/display/komeda/d71/d71_component.c b

[PATCH v1 2/2] drm/komeda: Enable color-encoding (YUV format) support

2019-05-15 Thread Lowry Li (Arm Technology China)
Adds color-encoding properties if layer can support YUV format. Updates HW YUV-RGB matrix state according to the color-encoding properties. Signed-off-by: Lowry Li (Arm Technology China) --- drivers/gpu/drm/arm/display/komeda/Makefile| 1 + .../gpu/drm/arm/display/komeda/d71

[PATCH] drm/komeda: Adds zorder support

2019-05-19 Thread Lowry Li (Arm Technology China)
- https://patchwork.freedesktop.org/series/59747/ - https://patchwork.freedesktop.org/series/59915/ - https://patchwork.freedesktop.org/series/60083/ - https://patchwork.freedesktop.org/series/60698/ Signed-off-by: Lowry Li (Arm Technology China) --- drivers/gpu/drm/arm/display/komeda/komeda_kms.

[PATCH] drm/komeda: Creates plane alpha and blend mode properties

2019-05-24 Thread Lowry Li (Arm Technology China)
From: "Lowry Li (Arm Technology China)" Creates plane alpha and blend mode properties attached to plane. This patch depends on: - https://patchwork.freedesktop.org/series/59915/ - https://patchwork.freedesktop.org/series/58665/ - https://patchwork.freedesktop.org/series/5900

[PATCH v3 1/2] drm/komeda: Add rotation support on Komeda driver

2019-05-27 Thread Lowry Li (Arm Technology China)
From: "Lowry Li (Arm Technology China)" - Adds rotation property to plane. - Komeda display rotation support diverges from the specific formats, so need to check the user required rotation type with the format caps and reject the commit if it can not be supported. - In the layer val

[PATCH v3 0/2] drm/komeda: Add rotation support on Komeda driver

2019-05-27 Thread Lowry Li (Arm Technology China)
ce v2: - Rebase the code Regards, Lowry Lowry Li (Arm Technology China) (2): drm/komeda: Add rotation support on Komeda driver drm/komeda: Adds limitation check for AFBC wide block not support Rot90 drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c | 15 +++ .../gpu/dr

[PATCH v3 2/2] drm/komeda: Adds limitation check for AFBC wide block not support Rot90

2019-05-27 Thread Lowry Li (Arm Technology China)
From: "Lowry Li (Arm Technology China)" Komeda series hardware doesn't support Rot90 for AFBC wide block. So add limitation check to reject it if such configuration has been posted. Signed-off-by: Lowry Li (Arm Technology China) --- drivers/gpu/drm/arm/display/komeda/d71/d71_d

[PATCH v2] drm/komeda: fixing of DMA mapping sg segment warning

2019-04-11 Thread Lowry Li (Arm Technology China)
8/ - https://patchwork.freedesktop.org/series/54449/ - https://patchwork.freedesktop.org/series/54450/ - https://patchwork.freedesktop.org/series/58976/ Changes since v1: - Adds member description - Adds patch denpendency in the comment Signed-off-by: Lowry Li (Arm Technology China) --- drivers/gpu/drm/a

[PATCH v2] drm/komeda: Creates plane alpha and blend mode properties

2019-04-11 Thread Lowry Li (Arm Technology China)
Signed-off-by: Lowry Li (Arm Technology China) --- drivers/gpu/drm/arm/display/komeda/komeda_plane.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_plane.c b/drivers/gpu/drm/arm/display/komeda/komeda_plane.c index 68cd2c9e..aae5e80

[PATCH v1 0/2] drm/komeda: Add rotation support on Komeda driver

2019-04-19 Thread Lowry Li (Arm Technology China)
/59000/ - https://patchwork.freedesktop.org/series/59002/ - https://patchwork.freedesktop.org/series/59471/ Regards, Lowry Lowry Li (Arm Technology China) (2): drm/komeda: Add rotation support on Komeda driver drm/komeda: Adds limitation check for AFBC wide block not support Rot90 drivers

[PATCH v1 2/2] drm/komeda: Adds limitation check for AFBC wide block not support Rot90

2019-04-19 Thread Lowry Li (Arm Technology China)
Komeda series hardware doesn't support Rot90 for AFBC wide block. So add limitation check to reject it if such configuration has been posted. Signed-off-by: Lowry Li (Arm Technology China) --- drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c | 15 +++ .../gpu/drm/arm/di

[PATCH v1 1/2] drm/komeda: Add rotation support on Komeda driver

2019-04-19 Thread Lowry Li (Arm Technology China)
. If r90 or r270, swap the width and height of the data flow for next stage. Signed-off-by: Lowry Li (Arm Technology China) --- drivers/gpu/drm/arm/display/komeda/komeda_format_caps.h | 11 +++ .../gpu/drm/arm/display/komeda/komeda_pipeline_state.c | 7 +++ drivers/gpu/drm/arm

[PATCH v1 2/2] drm/komeda: Adds limitation check for AFBC wide block not support Rot90

2019-04-21 Thread Lowry Li (Arm Technology China)
Komeda series hardware doesn't support Rot90 for AFBC wide block. So add limitation check to reject it if such configuration has been posted. Signed-off-by: Lowry Li (Arm Technology China) --- drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c | 15 +++ .../gpu/drm/arm/di

[PATCH v1 1/2] drm/komeda: Add rotation support on Komeda driver

2019-04-21 Thread Lowry Li (Arm Technology China)
. If r90 or r270, swap the width and height of the data flow for next stage. Signed-off-by: Lowry Li (Arm Technology China) --- drivers/gpu/drm/arm/display/komeda/komeda_format_caps.h | 11 +++ .../gpu/drm/arm/display/komeda/komeda_pipeline_state.c | 7 +++ drivers/gpu/drm/arm

[PATCH v1 0/2] drm/komeda: Add rotation support on Komeda driver

2019-04-21 Thread Lowry Li (Arm Technology China)
https://patchwork.freedesktop.org/series/54450/ - https://patchwork.freedesktop.org/series/58710/ - https://patchwork.freedesktop.org/series/59000/ - https://patchwork.freedesktop.org/series/59002/ Regards, Lowry Lowry Li (Arm Technology China) (2): drm/komeda: Add rotation support on Komeda driver drm/komeda:

[PATCH v1 0/2] drm/komeda: Add SMMU support on Komeda driver

2019-04-29 Thread Lowry Li (Arm Technology China)
://patchwork.freedesktop.org/series/59002/ Thanks, Lowry Lowry Li (Arm Technology China) (2): drm/komeda: Adds SMMU support dt/bindings: drm/komeda: Adds SMMU support for D71 devicetree .../devicetree/bindings/display/arm,komeda.txt | 7 .../gpu/drm/arm/display/komeda/d71/d71_component.c | 5

[PATCH v1 1/2] drm/komeda: Adds SMMU support

2019-04-29 Thread Lowry Li (Arm Technology China)
Adds iommu_connect and disconnect for SMMU support, and configures TBU translation once SMMU has been attached to the display device. Signed-off-by: Lowry Li (Arm Technology China) --- .../gpu/drm/arm/display/komeda/d71/d71_component.c | 5 +++ drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c

[PATCH v1 2/2] dt/bindings: drm/komeda: Adds SMMU support for D71 devicetree

2019-04-29 Thread Lowry Li (Arm Technology China)
Updates the device-tree doc about how to enable SMMU by devicetree. Signed-off-by: Lowry Li (Arm Technology China) --- Documentation/devicetree/bindings/display/arm,komeda.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/display/arm,komeda.txt b

[PATCH] drm/komeda: Adds gamma and color-transform support for DOU-IPS

2019-05-30 Thread Lowry Li (Arm Technology China)
://patchwork.freedesktop.org/series/60856/ - https://patchwork.freedesktop.org/series/60893/ Signed-off-by: Lowry Li (Arm Technology China) --- .../gpu/drm/arm/display/komeda/d71/d71_component.c | 24 ++ drivers/gpu/drm/arm/display/komeda/komeda_crtc.c | 2 ++ .../gpu/drm/arm/display

[PATCH v1 0/2] Adds slave pipeline support

2019-06-02 Thread Lowry Li (Arm Technology China)
://patchwork.freedesktop.org/series/60856/ - https://patchwork.freedesktop.org/series/60893/ - https://patchwork.freedesktop.org/series/61370/ Regards, Lowry Lowry Li (Arm Technology China) (2): drm/komeda: Add slave pipeline support drm/komeda: Adds komeda_kms_drop_master drivers/gpu/drm/arm

[PATCH v1 2/2] drm/komeda: Adds komeda_kms_drop_master

2019-06-02 Thread Lowry Li (Arm Technology China)
sure all the komeda resources have been released and can be used for the next usage. Signed-off-by: Lowry Li (Arm Technology China) --- drivers/gpu/drm/arm/display/komeda/komeda_kms.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_kms.c

[PATCH v1 1/2] drm/komeda: Add slave pipeline support

2019-06-02 Thread Lowry Li (Arm Technology China)
t data flows. Signed-off-by: Lowry Li (Arm Technology China) --- drivers/gpu/drm/arm/display/komeda/komeda_crtc.c | 41 -- drivers/gpu/drm/arm/display/komeda/komeda_kms.c| 10 ++ drivers/gpu/drm/arm/display/komeda/komeda_kms.h| 9 + .../gpu/drm/arm/display/kom

Re: [PATCH v1 1/2] drm/komeda: Add rotation support on Komeda driver

2019-06-05 Thread Lowry Li (Arm Technology China)
On Wed, Jun 05, 2019 at 05:22:22PM +0800, Liviu Dudau wrote: > Hi Lowry, > > On Mon, Apr 22, 2019 at 04:16:26AM +0100, Lowry Li (Arm Technology China) > wrote: > > - Adds rotation property to plane. > > - Komeda display rotation support diverges from the specific forma

Re: [PATCH v1 1/2] drm/komeda: Adds SMMU support

2019-06-06 Thread Lowry Li (Arm Technology China)
On Wed, Jun 05, 2019 at 07:19:37PM +0800, Liviu Dudau wrote: > Hi Lowry, > > On Tue, Apr 30, 2019 at 07:19:29AM +0100, Lowry Li (Arm Technology China) > wrote: > > Adds iommu_connect and disconnect for SMMU support, and configures > > TBU translation once SMMU has been

Re: [PATCH v1 1/2] drm/komeda: Adds SMMU support

2019-06-06 Thread Lowry Li (Arm Technology China)
Hi Liviu, Please ignore last email and please find the latest feedback inline as below. On Wed, Jun 05, 2019 at 07:19:37PM +0800, Liviu Dudau wrote: > Hi Lowry, > > On Tue, Apr 30, 2019 at 07:19:29AM +0100, Lowry Li (Arm Technology China) > wrote: > > Adds iommu_connect and d

[PATCH v2 0/2] drm/komeda: Add SMMU support on Komeda driver

2019-06-06 Thread Lowry Li (Arm Technology China)
nks, Lowry Lowry Li (Arm Technology China) (2): drm/komeda: Adds SMMU support dt/bindings: drm/komeda: Adds SMMU support for D71 devicetree .../devicetree/bindings/display/arm,komeda.txt | 7 .../gpu/drm/arm/display/komeda/d71/d71_component.c | 5 +++ drivers/gpu/drm/arm/display/komeda/

[PATCH v2 2/2] dt/bindings: drm/komeda: Adds SMMU support for D71 devicetree

2019-06-06 Thread Lowry Li (Arm Technology China)
Updates the device-tree doc about how to enable SMMU by devicetree. Signed-off-by: Lowry Li (Arm Technology China) Reviewed-by: Liviu Dudau Reviewed-by: James Qian Wang (Arm Technology China) --- Documentation/devicetree/bindings/display/arm,komeda.txt | 7 +++ 1 file changed, 7

[PATCH v2 1/2] drm/komeda: Adds SMMU support

2019-06-06 Thread Lowry Li (Arm Technology China)
From: "Lowry Li (Arm Technology China)" Adds iommu_connect and disconnect for SMMU support, and configures TBU translation once SMMU has been attached to the display device. Signed-off-by: Lowry Li (Arm Technology China) --- .../gpu/drm/arm/display/komeda/d71/d71_component.c | 5 ++

Re: [PATCH v2 1/2] drm/komeda: Adds SMMU support

2019-06-09 Thread Lowry Li (Arm Technology China)
Hi Liviu, On Fri, Jun 07, 2019 at 05:05:59PM +0800, Liviu Dudau wrote: > Hi Lowry, > > On Thu, Jun 06, 2019 at 10:53:05AM +0100, Lowry Li (Arm Technology China) > wrote: > > From: "Lowry Li (Arm Technology China)" > > > > Adds iommu_connect and dis

[PATCH v2 1/2] drm/komeda: Add slave pipeline support

2019-06-11 Thread Lowry Li (Arm Technology China)
From: "Lowry Li (Arm Technology China)" One crtc can use two komeda_pipeline, and one works as master and as slave. the slave pipeline doesn't have its own output and timing ctrlr, but pre-composite the input layer data flow and then feed the result to master. the pipeline con

[PATCH v2 0/2] Adds slave pipeline support

2019-06-11 Thread Lowry Li (Arm Technology China)
: - https://patchwork.freedesktop.org/series/60856/ Regards, Lowry Lowry Li (Arm Technology China) (2): drm/komeda: Add slave pipeline support drm/komeda: Adds komeda_kms_drop_master drivers/gpu/drm/arm/display/komeda/komeda_crtc.c | 41 -- drivers/gpu/drm/arm/display

[PATCH v2 2/2] drm/komeda: Adds komeda_kms_drop_master

2019-06-11 Thread Lowry Li (Arm Technology China)
From: "Lowry Li (Arm Technology China)" The komeda internal resources (pipelines) are shared between crtcs, and resources release by disable_crtc. This commit is working for once user forgot disabling crtc like app quit abnomally, and then the resources can not be used by another

[PATCH v3 0/2] drm/komeda: Add SMMU support on Komeda driver

2019-06-12 Thread Lowry Li (Arm Technology China)
ges since v2: - Correct the code flow by not returning -ETIMEDOUT if dp_wait_cond() returns zero in d71_connect_iommu(). Thanks, Lowry Lowry Li (Arm Technology China) (2): drm/komeda: Adds SMMU support dt/bindings: drm/komeda: Adds SMMU support for D71 devicetree .../devicetree/bindings/display/

[PATCH v3 2/2] dt/bindings: drm/komeda: Adds SMMU support for D71 devicetree

2019-06-12 Thread Lowry Li (Arm Technology China)
From: "Lowry Li (Arm Technology China)" Updates the device-tree doc about how to enable SMMU by devicetree. Signed-off-by: Lowry Li (Arm Technology China) Reviewed-by: Liviu Dudau Reviewed-by: James Qian Wang (Arm Technology China) --- Documentation/devicetree/bindings/d

[PATCH v3 1/2] drm/komeda: Adds SMMU support

2019-06-12 Thread Lowry Li (Arm Technology China)
From: "Lowry Li (Arm Technology China)" Adds iommu_connect and disconnect for SMMU support, and configures TBU translation once SMMU has been attached to the display device. Signed-off-by: Lowry Li (Arm Technology China) --- .../gpu/drm/arm/display/komeda/d71/d71_component.c | 5 ++

[PATCH v3 0/2] drm/komeda: Add SMMU support on Komeda driver

2019-06-12 Thread Lowry Li (Arm Technology China)
ges since v2: - Correct the code flow by not returning -ETIMEDOUT if dp_wait_cond() returns zero in d71_connect_iommu(). Thanks, Lowry Lowry Li (Arm Technology China) (2): drm/komeda: Adds SMMU support dt/bindings: drm/komeda: Adds SMMU support for D71 devicetree .../devicetree/bindings/display/

[PATCH v3 1/2] drm/komeda: Adds SMMU support

2019-06-12 Thread Lowry Li (Arm Technology China)
From: "Lowry Li (Arm Technology China)" Adds iommu_connect and disconnect for SMMU support, and configures TBU translation once SMMU has been attached to the display device. Signed-off-by: Lowry Li (Arm Technology China) --- .../gpu/drm/arm/display/komeda/d71/d71_component.c | 5 ++

[PATCH v3 2/2] dt/bindings: drm/komeda: Adds SMMU support for D71 devicetree

2019-06-12 Thread Lowry Li (Arm Technology China)
From: "Lowry Li (Arm Technology China)" Updates the device-tree doc about how to enable SMMU by devicetree. Signed-off-by: Lowry Li (Arm Technology China) Reviewed-by: Liviu Dudau Reviewed-by: James Qian Wang (Arm Technology China) --- Documentation/devicetree/bindings/d

[PATCH] drm/komeda: Adds power management support

2019-06-16 Thread Lowry Li (Arm Technology China)
Adds runtime and system power management support in KMS kernel driver. Depends on: - https://patchwork.freedesktop.org/series/61650/ - https://patchwork.freedesktop.org/series/60083/ Signed-off-by: Lowry Li (Arm Technology China) --- drivers/gpu/drm/arm/display/komeda/komeda_crtc.c | 2

Re: [PATCH v2 2/2] drm/komeda: Adds komeda_kms_drop_master

2019-06-17 Thread Lowry Li (Arm Technology China)
, Liviu Dudau wrote: > > > > > > > On Thu, Jun 13, 2019 at 10:17:27AM +0200, Daniel Vetter wrote: > > > > > > > > On Wed, Jun 12, 2019 at 02:26:24AM +, james qian wang (Arm > > > > > > > > Technology China) wrote: > > >

[PATCH] drm/komeda: Adds output-color format/depth support

2019-06-19 Thread Lowry Li (Arm Technology China)
to the preferred order. color_format = BIT(__fls(aval_formats)); Signed-off-by: Lowry Li (Arm Technology China) --- .../gpu/drm/arm/display/komeda/d71/d71_component.c | 14 -- drivers/gpu/drm/arm/display/komeda/komeda_crtc.c | 27 ++ driv

Re: [PATCH] drm/komeda: Adds power management support

2019-06-20 Thread Lowry Li (Arm Technology China)
Hi Liviu, On Thu, Jun 20, 2019 at 12:15:22AM +0800, Liviu Dudau wrote: > Hi Lowry, > > On Mon, Jun 17, 2019 at 06:55:49AM +0100, Lowry Li (Arm Technology China) > wrote: > > Adds runtime and system power management support in KMS kernel driver. > > >

[PATCH] drm/komeda: Adds system power management support

2019-06-21 Thread Lowry Li (Arm Technology China)
From: "Lowry Li (Arm Technology China)" Adds system power management support in KMS kernel driver. Depends on: - https://patchwork.freedesktop.org/series/61650/ - https://patchwork.freedesktop.org/series/60083/ Changes since v1: Since we have unified mclk/pclk/pipeline->aclk to on

[PATCH] drm/komeda: Adds system power management support

2019-06-21 Thread Lowry Li (Arm Technology China)
From: "Lowry Li (Arm Technology China)" Adds system power management support in KMS kernel driver. Depends on: - https://patchwork.freedesktop.org/series/61650/ - https://patchwork.freedesktop.org/series/60083/ - https://patchwork.freedesktop.org/series/61647/ Changes since v1: Sin

[PATCH] drm/komeda: Adds register dump support for gcu, lup and dou

2019-06-26 Thread Lowry Li (Arm Technology China)
Adds to support register dump on lpu and dou of pipeline and gcu on D71 Signed-off-by: Lowry Li (Arm Technology China) --- .../gpu/drm/arm/display/komeda/d71/d71_component.c | 86 +- drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c | 23 +++--- drivers/gpu/drm/arm/display

[PATCH] drm/komeda: Adds error event print functionality

2019-06-26 Thread Lowry Li (Arm Technology China)
Adds to print the event message when error happens and the same event will not be printed until next vsync. Signed-off-by: Lowry Li (Arm Technology China) --- drivers/gpu/drm/arm/display/komeda/Makefile | 1 + drivers/gpu/drm/arm/display/komeda/komeda_dev.h | 13 ++ drivers/gpu/drm

[PATCH] drm/komeda: Adds power management support

2019-06-30 Thread Lowry Li (Arm Technology China)
From: "Lowry Li (Arm Technology China)" Adds system power management support in KMS kernel driver. Depends on: - https://patchwork.freedesktop.org/series/61650/ - https://patchwork.freedesktop.org/series/60083/ Changes since v1: Since we have unified mclk/pclk/pipeline->aclk to on

Re: [PATCH] drm/komeda: Adds system power management support

2019-07-01 Thread Lowry Li (Arm Technology China)
Hi, This is a duplicated patchset and please ignore this. The latest changes for power management have been committed at: https://patchwork.freedesktop.org/series/62181/ Sorry for the inconvenience. Best regards, Lowry On Fri, Jun 21, 2019 at 03:57:29PM +0800, Lowry Li (Arm Technology China

[PATCH] drm/komeda: Adds VRR support

2019-07-03 Thread Lowry Li (Arm Technology China)
Adds a new drm property "vrr" and "vrr_enable" and implemented the set/get functions, through which userspace could set vfp data to komeda. Signed-off-by: Lowry Li (Arm Technology China) --- .../gpu/drm/arm/display/komeda/d71/d71_component.c | 6 +++ drivers/gpu/dr

[RFC PATCH] drm/komeda: fixing of DMA mapping sg segment warning

2019-03-28 Thread Lowry Li (Arm Technology China)
Fixing the DMA mapping sg segment warning, which shows "DMA-API: mapping sg segment longer than device claims to support [len=921600] [max=65536]". Fixed by setting the max segment size at Komeda driver. Signed-off-by: Lowry Li --- drivers/gpu/drm/arm/display/komeda/komeda

[RFC PATCH] drm/komeda: Creates plane alpha and blend mode properties

2019-03-28 Thread Lowry Li (Arm Technology China)
Creates plane alpha and blend mode properties attached to plane. Signed-off-by: Lowry Li --- drivers/gpu/drm/arm/display/komeda/komeda_plane.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_plane.c b/drivers/gpu/drm/arm/display/komeda

[RFC PATCH v2] drm/komeda: fixing of DMA mapping sg segment warning

2019-04-04 Thread Lowry Li (Arm Technology China)
8/ - https://patchwork.freedesktop.org/series/54449/ - https://patchwork.freedesktop.org/series/54450/ - https://patchwork.freedesktop.org/series/58976/ Changes since v1: - Adds member description - Adds patch denpendency in the comment Signed-off-by: Lowry Li (Arm Technology China) --- drivers/gpu/drm/a

[RFC PATCH v2] drm/komeda: Creates plane alpha and blend mode properties

2019-04-04 Thread Lowry Li (Arm Technology China)
Signed-off-by: Lowry Li (Arm Technology China) --- drivers/gpu/drm/arm/display/komeda/komeda_plane.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_plane.c b/drivers/gpu/drm/arm/display/komeda/komeda_plane.c index 68cd2c9e..aae5e80

Re: [PATCH] drm/komeda: Adds error event print functionality

2019-07-19 Thread Lowry Li (Arm Technology China)
Hi Liviu, On Thu, Jul 18, 2019 at 01:17:37PM +, Liviu Dudau wrote: > On Thu, Jun 27, 2019 at 04:10:36AM +0100, Lowry Li (Arm Technology China) > wrote: > > Adds to print the event message when error happens and the same event > > will not be printed until next vsync. >

Re: [PATCH] drm/komeda: Adds error event print functionality

2019-07-19 Thread Lowry Li (Arm Technology China)
Hi Sean, On Thu, Jul 18, 2019 at 11:23:50AM -0400, Sean Paul wrote: > On Thu, Jul 18, 2019 at 02:17:37PM +0100, Liviu Dudau wrote: > > On Thu, Jun 27, 2019 at 04:10:36AM +0100, Lowry Li (Arm Technology China) > > wrote: > > /snip > > > > diff --git a/d

Re: [PATCH] drm/komeda: Adds error event print functionality

2019-07-23 Thread Lowry Li (Arm Technology China)
On Mon, Jul 22, 2019 at 04:18:01PM +, Liviu Dudau wrote: > On Mon, Jul 22, 2019 at 11:15:12AM +, james qian wang (Arm Technology > China) wrote: > > On Fri, Jul 19, 2019 at 11:40:11AM +, Liviu Dudau wrote: > > > On Fri, Jul 19, 2019 at 09:09:30AM +, Lowry Li

Re: [PATCH] drm/komeda: Adds error event print functionality

2019-07-25 Thread Lowry Li (Arm Technology China)
On Tue, Jul 23, 2019 at 08:49:11AM +, Liviu Dudau wrote: > On Tue, Jul 23, 2019 at 07:37:42AM +0000, Lowry Li (Arm Technology China) > wrote: > > On Mon, Jul 22, 2019 at 04:18:01PM +, Liviu Dudau wrote: > > > On Mon, Jul 22, 2019 at 11:15:12AM +, james qian

[PATCH] drm/komeda: Adds internal bpp computing for arm afbc only format YU08 YU10

2019-07-26 Thread Lowry Li (Arm Technology China)
The drm_format_info doesn't have any cpp or block_size (both are zero) information for arm only afbc format YU08/YU10. we need to compute it by ourselves. Signed-off-by: Lowry Li (Arm Technology China) --- .../drm/arm/display/komeda/komeda_format_caps.c| 23 ++ ..

[PATCH] drm/komeda: Initialize and enable output polling on Komeda

2019-07-26 Thread Lowry Li (Arm Technology China)
Initialize and enable output polling on Komeda. Signed-off-by: Lowry Li (Arm Technology China) --- drivers/gpu/drm/arm/display/komeda/komeda_kms.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_kms.c b/drivers/gpu/drm/arm/display/komeda

[PATCH] drm/komeda: Adds more check in mode_valid

2019-07-26 Thread Lowry Li (Arm Technology China)
This patch adds the checks for vrefresh, crtc_hdisplay and crtc_vdisplay. Signed-off-by: Lowry Li (Arm Technology China) --- drivers/gpu/drm/arm/display/komeda/komeda_crtc.c | 28 +++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/arm/display

[PATCH] drm/komeda: Skips the invalid writeback job

2019-07-26 Thread Lowry Li (Arm Technology China)
Current DRM-CORE accepts the writeback_job with a empty fb, but that is an invalid job for HW, so need to skip it when commit it to HW. Signed-off-by: Lowry Li (Arm Technology China) --- drivers/gpu/drm/arm/display/komeda/komeda_crtc.c | 2 +- drivers/gpu/drm/arm/display/komeda

Re: [PATCH] drm/komeda: Skips the invalid writeback job

2019-07-29 Thread Lowry Li (Arm Technology China)
On Fri, Jul 26, 2019 at 06:15:46PM +0200, Daniel Vetter wrote: > On Fri, Jul 26, 2019 at 4:44 PM Brian Starkey wrote: > > > > On Fri, Jul 26, 2019 at 04:23:56PM +0200, Daniel Vetter wrote: > > > On Fri, Jul 26, 2019 at 08:13:00AM +, Lowry Li (Arm Techno

[PATCH v1 0/2] Free the writeback_job when it with an empty fb

2019-07-31 Thread Lowry Li (Arm Technology China)
. Lowry Li (Arm Technology China) (2): drm: Free the writeback_job when it with an empty fb drm: Clear the fence pointer when writeback job signaled .../drm/arm/display/komeda/komeda_wb_connector.c | 3 +-- drivers/gpu/drm/arm/malidp_mw.c| 4 ++-- drivers/gpu/drm

  1   2   >