Re: [PATCH v3 4/8] drm/mediatek: add ddp component AAL1

2018-05-24 Thread CK Hu
Hi, Stu: On Fri, 2018-05-25 at 10:34 +0800, stu.hs...@mediatek.com wrote: > From: Stu Hsieh > > This patch add component AAL1 and > rename AAL to AAL0 > > Signed-off-by: Stu Hsieh > --- > drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >

Re: [PATCH v3 7/8] drm/mediatek: Add support for mediatek SOC MT2712

2018-05-24 Thread CK Hu
Hi, Stu: I've some inline comment. On Fri, 2018-05-25 at 10:34 +0800, stu.hs...@mediatek.com wrote: > From: Stu Hsieh > > This patch add support for the Mediatek MT2712 DISP subsystem. > There are two OVL engine and three disp output in MT2712. > > Signed-off-by: Stu Hsieh > --- >

Re: [PATCH v3 8/8] drm/mediatek: add third ddp path

2018-05-24 Thread CK Hu
Hi, Stu: On Fri, 2018-05-25 at 10:34 +0800, stu.hs...@mediatek.com wrote: > From: Stu Hsieh > > This patch create third crtc by third ddp path > Apply this patch before the patch 'Add support for mediatek SOC MT2712' because this patch is necessary for mt2712. > Signed-off-by: Stu Hsieh >

Re: [PATCH v6 18/29] drm/mediatek: add connection from RDMA1 to DSI2

2018-06-19 Thread CK Hu
On Tue, 2018-06-19 at 15:34 +0800, Stu Hsieh wrote: > This patch add the connection from RDMA1 to DSI2 > Reviewed-by: CK Hu > Signed-off-by: Stu Hsieh > --- > drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 9 + > 1 file changed, 9 insertions(+) > > diff --git a/

Re: [PATCH v23 2/4] mailbox: mediatek: Add Mediatek CMDQ driver

2018-07-26 Thread CK Hu
, but we expect > it can be extended to other hardwares for future requirements. > > Signed-off-by: Houlong Wei > Signed-off-by: HS Liao > Signed-off-by: CK Hu > --- > drivers/mailbox/Kconfig | 10 + > drivers/mailbox/Makefile |2

Re: [PATCH v3 8/8] drm/mediatek: add third ddp path

2018-05-27 Thread CK Hu
Hi, Stu: On Mon, 2018-05-28 at 10:26 +0800, Stu Hsieh wrote: > Hi, CK: > I've some idea as below. > > On Fri, 2018-05-25 at 13:00 +0800, CK Hu wrote: > > Hi, Stu: > > > > On Fri, 2018-05-25 at 10:34 +0800, stu.hs...@mediatek.com wrote: > > > From: Stu Hsie

Re: [PATCH v4 3/9] drm/mediatek: add ddp component AAL1

2018-05-28 Thread CK Hu
Hi, Stu: On Mon, 2018-05-28 at 14:38 +0800, Stu Hsieh wrote: > This patch add component AAL1 and > rename AAL to AAL0 > Reviewed-by: CK Hu > Signed-off-by: Stu Hsieh > --- > drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 2 +- > drivers/gpu/drm/mediatek/mtk_drm_ddp_comp

Re: [PATCH v4 4/9] drm/mediatek: add ddp component OD1

2018-05-28 Thread CK Hu
Hi, Stu: On Mon, 2018-05-28 at 14:38 +0800, Stu Hsieh wrote: > This patch add the component OD1 and > rename the OD to OD1 rename the OD to OD0 > > Signed-off-by: Stu Hsieh > --- > drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 4 ++-- > drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 3 ++- >

Re: [PATCH v4 5/9] drm/mediatek: add ddp component PWM1

2018-05-28 Thread CK Hu
Hi, Stu: On Mon, 2018-05-28 at 14:38 +0800, Stu Hsieh wrote: > This patch add component PWM1 in mtk_ddp_matches > Reviewed-by: CK Hu > Signed-off-by: Stu Hsieh > --- > drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 1 + > 1 file changed, 1 insertion(+) > > diff

Re: [PATCH v4 6/9] drm/mediatek: add ddp component PWM2

2018-05-28 Thread CK Hu
Hi, Stu: On Mon, 2018-05-28 at 14:38 +0800, Stu Hsieh wrote: > This patch add component PWM2 > Reviewed-by: CK Hu > Signed-off-by: Stu Hsieh > --- > drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 1 + > drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 1 + > 2 files

Re: [PATCH v4 7/9] drm/mediatek: add connection from OD1 to RDMA1

2018-05-28 Thread CK Hu
Hi, Stu: On Mon, 2018-05-28 at 14:38 +0800, Stu Hsieh wrote: > This patch add the connection from OD1 to RDMA1 for ext path. > Reviewed-by: CK Hu > Signed-off-by: Stu Hsieh > --- > drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 4 > 1 file changed, 4 insertions(+) > &

Re: [PATCH v4 8/9] drm/mediatek: add third ddp path

2018-05-28 Thread CK Hu
Hi, Stu: One inline comment. On Mon, 2018-05-28 at 14:38 +0800, Stu Hsieh wrote: > This patch create third crtc by third ddp path > > Signed-off-by: Stu Hsieh > --- > drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 3 +++ > drivers/gpu/drm/mediatek/mtk_drm_drv.c | 5 + >

Re: [PATCH v4 9/9] drm/mediatek: Add support for mediatek SOC MT2712

2018-05-28 Thread CK Hu
Hi, Stu: Two inline comment. On Mon, 2018-05-28 at 14:38 +0800, Stu Hsieh wrote: > This patch add support for the Mediatek MT2712 DISP subsystem. > There are two OVL engine and three disp output in MT2712. > > Signed-off-by: Stu Hsieh > --- > drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 39 >

Re: [PATCH v1 1/7] drm/mediatek: move dpi private data to device

2018-05-28 Thread CK Hu
Hi, Bibby: Some inline comment. On Mon, 2018-05-14 at 15:52 +0800, Bibby Hsieh wrote: > From: chunhui dai > > move clock factor and edge enable setting to private data. > I think this modification is to separate different part of dpi driver for different chip. Describe more for this. >

Re: [PATCH v1 2/7] drm/mediatek: fix to get right bridge for dpi encoder

2018-05-28 Thread CK Hu
Hi, Bibby: Some inline comment. On Mon, 2018-05-14 at 15:52 +0800, Bibby Hsieh wrote: > From: chunhui dai > > 1, dpi is an encoder, there is an bridge in the struct > of decoder, we could use it. The encoder.bridge is assigned in drm_bridge_attach(), so I think the design is to assign this

Re: [PATCH v1 4/7] drm/mediatek: add hdmi driver for different hardware

2018-05-28 Thread CK Hu
Hi, Bibby: On Mon, 2018-05-14 at 15:52 +0800, Bibby Hsieh wrote: > From: chunhui dai > > This patch adds hdmi driver suppot for both MT2701 and MT7623. > And also support other (existing or future) chips that use > the same binding and driver. I think this patch should be separated to at least

Re: [PATCH v1 7/7] drm/mediatek: config component output by device node port

2018-05-28 Thread CK Hu
Hi, Bibby: On Mon, 2018-05-14 at 15:52 +0800, Bibby Hsieh wrote: > We can select output component by device node port. > Main path default output component is DSI. > External path default output component is DPI. Config the HW routine by device tree is a good idea. But I would like this to be

Re: [PATCH v1 5/7] drm/mediatek: implement connection from BLS to DPI0

2018-05-28 Thread CK Hu
Hi, Bibby: On Mon, 2018-05-14 at 15:52 +0800, Bibby Hsieh wrote: > Modify display driver to support connection from BLS to DPI. > > Signed-off-by: Bibby Hsieh > --- > drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 14 +- > 1 file changed, 13 insertions(+), 1 deletion(-) > > diff --git

Re: [PATCH v1 3/7] drm/mediatek: add dpi driver for mt2701 and mt7623

2018-05-28 Thread CK Hu
Hi, Bibby: On Mon, 2018-05-14 at 15:52 +0800, Bibby Hsieh wrote: > From: chunhui dai > > This patch adds dpi driver suppot for both mt2701 and mt7623. > And also support other (existing or future) chips that use > the same binding and driver. > > Signed-off-by: chunhui dai > --- >

Re: [PATCH v1 6/7] drm/mediatek: add a error return value when clock driver has been prepared

2018-05-28 Thread CK Hu
Hi, Bibby: On Mon, 2018-05-14 at 15:52 +0800, Bibby Hsieh wrote: > DRM driver get the comp->clk by of_clk_get(), we only > assign NULL to comp->clk when error happened, but do > not return the error number. > Reviewed-by: CK Hu > Signed-off-by: Bibby Hsieh > --- >

Re: [PATCH 3/3] drm/mediatek: Use drm_gem_cma_object instead of mtk_drm_gem_obj

2018-10-28 Thread CK Hu
Hi,Daniel: On Fri, 2018-10-26 at 12:21 +0200, Daniel Vetter wrote: > On Fri, Oct 26, 2018 at 03:22:03PM +0800, CK Hu wrote: > > After adding dma_dev in struct drm_device and > > drm_gem_cma_dumb_create_no_kmap(), drm_gem_cma_object could replace > > mtk_drm_gem_obj, so u

Re: [PATCH 3/3] drm/mediatek: Use drm_gem_cma_object instead of mtk_drm_gem_obj

2018-10-30 Thread CK Hu
Hi, Daniel: On Mon, 2018-10-29 at 10:16 +0100, Daniel Vetter wrote: > On Mon, Oct 29, 2018 at 11:11:16AM +0800, CK Hu wrote: > > Hi,Daniel: > > > > On Fri, 2018-10-26 at 12:21 +0200, Daniel Vetter wrote: > > > On Fri, Oct 26, 2018 at 03:22:03PM +0800, CK Hu wrote

Re: [PATCH v3 05/12] drm/mediatek: convert dpi driver to use drm_of_find_panel_or_bridge

2018-09-21 Thread CK Hu
Hi, Bibby: On Fri, 2018-09-21 at 11:28 +0800, Bibby Hsieh wrote: > From: chunhui dai > > Convert dpi driver to use drm_of_find_panel_or_bridge. > This changes some error messages to debug messages (in the graph core). > Graph connections are often "no connects" depending on the particular >

Re: [PATCH v2 02/15] [media] mtk-mipicsi: add mediatek mipicsi driver for mt2712

2019-04-17 Thread CK Hu
Hi, Stu: On Tue, 2019-04-16 at 17:30 +0800, Stu Hsieh wrote: > This patch add mediatek mipicsi driver for mt2712, > including probe function to get the value from device tree, > and register to v4l2 the host device. > > Signed-off-by: Stu Hsieh > --- >

Re: [v3 3/3] drm/mediatek: add mt8183 dpi support

2019-05-07 Thread CK Hu
Hi, Jitao: On Tue, 2019-04-16 at 13:52 +0800, Jitao Shi wrote: I need the commit message. Even though the code is easy to understand, words for this patch is still necessary. Regards, CK > Signed-off-by: Jitao Shi > --- > drivers/gpu/drm/mediatek/mtk_dpi.c | 19 +++ > 1 file

Re: [v2 1/5] drm/mediatek: move mipi_dsi_host_register to probe

2019-05-07 Thread CK Hu
Hi, Jitao: On Tue, 2019-04-16 at 14:04 +0800, Jitao Shi wrote: > DSI panel driver need attach function which is inculde in > mipi_dsi_host_ops. > > If mipi_dsi_host_register is not in probe, dsi panel will > probe fail or more delay. I think this patch just prevent delay, not to prevent dsi

Re: [PATCH v5 03/12] dt-binding: gce: add binding for gce subsys property

2019-05-07 Thread CK Hu
Hi, Bibby: On Tue, 2019-05-07 at 16:13 +0800, Bibby Hsieh wrote: > tcmdq driver provide a function that get the relationship > of sub system number from device node for client. > add specification for #subsys-cells, mediatek,gce-subsys. > > Signed-off-by: Bibby Hsieh > --- >

Re: [PATCH v5 04/12] dt-binding: gce: add binding for gce event property

2019-05-07 Thread CK Hu
Hi, Bibby: On Tue, 2019-05-07 at 16:13 +0800, Bibby Hsieh wrote: > Client hardware would send event to GCE hardware, > mediatek,gce-event-names and mediatek,gce-events > can be used to present the event. > > Signed-off-by: Bibby Hsieh > --- >

Re: [PATCH v5 08/12] soc: mediatek: cmdq: define the instruction struct

2019-05-07 Thread CK Hu
Hi, Bibby: On Tue, 2019-05-07 at 16:13 +0800, Bibby Hsieh wrote: > Define a instruction structure for gce driver to append command. I would like you to describe _WHY_ do this. I think you do this for 'code readability'. > > Signed-off-by: Bibby Hsieh > --- >

Re: [PATCH v5 09/12] soc: mediatek: cmdq: add polling function

2019-05-07 Thread CK Hu
Hi, Bibby: On Tue, 2019-05-07 at 16:13 +0800, Bibby Hsieh wrote: > add polling function in cmdq helper functions Reviewed-by: CK Hu > > Signed-off-by: Bibby Hsieh > --- > drivers/soc/mediatek/mtk-cmdq-helper.c | 29 > include/linux/mailbox/mtk-c

Re: [PATCH v5 04/12] dt-binding: gce: add binding for gce event property

2019-05-10 Thread CK Hu
Hi, Bibby: On Fri, 2019-05-10 at 11:27 +0800, Bibby Hsieh wrote: > Hi, CK, > > On Wed, 2019-05-08 at 13:10 +0800, CK Hu wrote: > > Hi, Bibby: > > > > On Tue, 2019-05-07 at 16:13 +0800, Bibby Hsieh wrote: > > > Client hardware would send event to GCE hard

Re: [PATCH v4 05/12] soc: mediatek: cmdq: move the CMDQ_IRQ_MASK into cmdq driver data

2019-04-21 Thread CK Hu
Hi, Bibby: On Mon, 2019-04-15 at 20:58 +0800, Bibby Hsieh wrote: > The interrupt mask and thread number has positive correlation, > so we move the CMDQ_IRQ_MASK into cmdq driver data and calculate > it by thread number. Reviewed-by: CK Hu > > Signed-off-by: Bibby Hsieh &

Re: [PATCH v4 06/12] soc: mediatek: cmdq: support mt8183 gce function

2019-04-21 Thread CK Hu
Hi, Bibby: On Mon, 2019-04-15 at 20:58 +0800, Bibby Hsieh wrote: > add mt8183 compatible name for supporting gce function Reviewed-by: CK Hu > > Signed-off-by: Bibby Hsieh > --- > drivers/mailbox/mtk-cmdq-mailbox.c | 1 + > 1 file changed, 1 insertion(+) > > diff

Re: [PATCH v4 07/12] soc: mediatek: cmdq: clear the event in cmdq initial flow

2019-04-21 Thread CK Hu
o wait event but not really trigger the > corresponding hardware. > > In order to make sure that the wait event function is > exactly correct, we need to clear the sysram value in > cmdq initial flow. > > Fixes: 623a6143a845 ("mailbox: mediatek: Add Mediatek CMDQ driver&q

Re: [PATCH v4 08/12] soc: mediatek: cmdq: add packet encoder function

2019-04-21 Thread CK Hu
Hi, Bibby: On Mon, 2019-04-15 at 20:58 +0800, Bibby Hsieh wrote: > Implement a function can encode the GCE instructions > > Signed-off-by: Bibby Hsieh > --- > drivers/soc/mediatek/mtk-cmdq-helper.c | 125 --- > include/linux/mailbox/mtk-cmdq-mailbox.h | 2 + >

Re: [PATCH v6 11/12] soc: mediatek: cmdq: add cmdq_dev_get_event function

2019-05-16 Thread CK Hu
Hi, Bibby: On Thu, 2019-05-16 at 17:02 +0800, Bibby Hsieh wrote: > When client ask gce to clear or wait for event, > client need to pass event number to the API. > We suggest client store the event information in device node, > so we provide an API for client parse the event property. > >

Re: [PATCH v6 10/12] soc: mediatek: cmdq: add cmdq_dev_get_subsys function

2019-05-16 Thread CK Hu
Hi, Bibby: On Thu, 2019-05-16 at 17:02 +0800, Bibby Hsieh wrote: > GCE cannot know the register base address, this function > can help cmdq client to get the relationship of subsys > and register base address. > > Signed-off-by: Bibby Hsieh > --- > drivers/soc/mediatek/mtk-cmdq-helper.c | 25

Re: [PATCH v6 03/12] dt-binding: gce: add binding for gce subsys property

2019-05-16 Thread CK Hu
Hi, Bibby: On Thu, 2019-05-16 at 17:02 +0800, Bibby Hsieh wrote: > tcmdq driver provide a function that get the relationship What is 'tcmdq'? > of sub system number from device node for client. > add specification for #subsys-cells, mediatek,gce-subsys. The property name is

Re: [PATCH v6 08/12] soc: mediatek: cmdq: define the instruction struct

2019-05-16 Thread CK Hu
Hi, Bibby: On Thu, 2019-05-16 at 17:02 +0800, Bibby Hsieh wrote: > Define a instruction structure for gce driver to append command. > This structure can make the client's code more readability. > > Signed-off-by: Bibby Hsieh > --- > drivers/soc/mediatek/mtk-cmdq-helper.c | 113

Re: [PATCH v3 02/13] [media] mtk-mipicsi: add mediatek mipicsi driver for mt2712

2019-05-17 Thread CK Hu
Hi, Stu: On Tue, 2019-05-14 at 14:13 +0800, Stu Hsieh wrote: > This patch add mediatek mipicsi driver for mt2712, > including probe function to get the value from device tree, > and register to v4l2 the host device. > > Signed-off-by: Stu Hsieh > --- >

Re: [PATCH v3 09/13] [media] mtk-mipicsi: add ISR for writing the data to buffer

2019-05-17 Thread CK Hu
Hi, Stu: On Tue, 2019-05-14 at 14:13 +0800, Stu Hsieh wrote: > This patch add ISR for writing the data to buffer > > When mipicsi HW complete to write the data in buffer, > the interrupt woulb be trigger. > So, the ISR need to clear interrupt status for next interrupt. > > Signed-off-by: Stu

Re: [PATCH V6 8/8] drm/mediatek: fix the rate of parent for hdmi phy in MT2701

2019-03-20 Thread CK Hu
Hi, Wangyan: On Wed, 2019-03-06 at 18:13 +0800, CK Hu wrote: > Hi, Wangyan: > > On Mon, 2019-02-25 at 10:09 +0800, wangyan wang wrote: > > From: chunhui dai > > > > We should not change the rate of parent for hdmi phy when > > doing round_rate for this clock.

Re: [PATCH V7 1/6] drm/mediatek: recalculate hdmi phy clock of MT2701 by querying hardware

2019-04-01 Thread CK Hu
On Wed, 2019-03-27 at 17:19 +0800, wangyan wang wrote: > From: chunhui dai > > Recalculate the rate of this clock, by querying hardware. You just describe _WHAT_ do you do here, I would like you to describe _WHT_ do you do here. I think this patch is to make implementation of recalc_rate() to

Re: [PATCH] drm/mediatek: add mt8183 dpi support

2019-02-18 Thread CK Hu
Hi, Jitao: On Tue, 2019-02-19 at 09:53 +0800, Jitao Shi wrote: > On Fri, 2019-02-15 at 00:13 +0800, CK Hu wrote: > > Hi, Jitao: > > > > On Mon, 2019-02-11 at 12:50 +0800, Jitao Shi wrote: > > > MT8183 sample on rising and falling edge. It can reduce half da

Re: [v2 1/1] drm/mediatek: add mt8183 dpi support

2019-02-18 Thread CK Hu
Hi, Jitao: On Tue, 2019-02-19 at 11:06 +0800, Jitao Shi wrote: > MT8183 samples on rising and falling edge. It can reduce half data > io. > MT8173 also has those registers. But the hw function is removed. > So MT8173 doesn't support DPI dual edge sample and can't use the > same setting to mt8183.

Re: [PATCH v1 1/2] drm/mediatek: separate mipi_tx to different file

2019-02-19 Thread CK Hu
Hi, Jitao: On Tue, 2019-02-19 at 17:14 +0800, Jitao Shi wrote: > Different IC has different mipi_tx setting of dsi. > This patch separates the mipi_tx hardware relate part for mt8173. > > Signed-off-by: Jitao Shi > --- > drivers/gpu/drm/mediatek/Makefile | 1 + >

Re: [PATCH v1 2/2] drm/mediatek: add mipi_tx driver for mt8183

2019-02-20 Thread CK Hu
Hi, Jitao: On Tue, 2019-02-19 at 17:14 +0800, Jitao Shi wrote: > This patch add mt8183 mipi_tx driver. > And also support other chips that use the same binding and driver. > > Signed-off-by: Jitao Shi > --- > drivers/gpu/drm/mediatek/mtk_mipi_tx.c| 2 + >

Re: [PATCH v2 03/10] dt-binding: gce: add binding for gce subsys property

2019-03-07 Thread CK Hu
Hi, Bibby: On Wed, 2019-03-06 at 17:50 +0800, Bibby Hsieh wrote: > cmdq driver provide a function that get the relationship > of sub system number from device node for client. > add specification for #subsys-cells, mediatek,gce-subsys. > > Signed-off-by: Bibby Hsieh > --- >

Re: [PATCH v2 04/10] soc: mediatek: cmdq: add mt8183 compatible name

2019-03-07 Thread CK Hu
Hi, Bibby: On Wed, 2019-03-06 at 17:50 +0800, Bibby Hsieh wrote: > add mt8183 compatible name This patch doest not just add compatible name, it let this driver support mt8183 gce function. And I think this patch should be moved after the patch 'soc: mediatek: cmdq: move the CMDQ_IRQ_MASK into

Re: [PATCH v2 06/10] soc: mediatek: cmdq: clear the event in cmdq initial flow

2019-03-07 Thread CK Hu
Hi, Bibby: On Wed, 2019-03-06 at 17:50 +0800, Bibby Hsieh wrote: > GCE hardware stored event information in own internal sysram, > if the initial value in those sysram is not zero value > it will cause a situation that gce can wait the event immediately > after client ask gce to wait event but

Re: [PATCH v2 02/10] dt-binding: gce: add binding for gce event property

2019-03-08 Thread CK Hu
Hi, Bibby: On Wed, 2019-03-06 at 17:50 +0800, Bibby Hsieh wrote: > cmdq driver provide a function that get event number > from device node for client. I think device tree is based on the view of hardware design, so you need not to mention how the driver design. Client hardware would send event

Re: [PATCH] drm/mediatek: add mipi_tx driver for mt8183

2019-02-15 Thread CK Hu
Hi, Jitao: On Tue, 2019-02-12 at 14:19 +0800, Jitao Shi wrote: > This patch adds mipi tx driver support for mt8183. > > Mipi_tx of mt8183 is very different to mt8173. > 1.Separate mipi tx setting to mtk_mt8173_mipi_tx.c for mt8173 > 2.Separate mipi tx setting to mtk_mt8183_mipi_tx.c for mt8183 >

Re: [PATCH V6 0/8] make mt7623 clock of hdmi stable

2019-03-05 Thread CK Hu
On Mon, 2019-02-25 at 10:09 +0800, wangyan wang wrote: > From: Wangyan Wang > > V6 adopt maintainer's suggestion. > Here is the change list between V5 & V6 > 1. change "unsigned char mux_flags;" to "u8 mux_flags;" to > match with the struct in " clk: mediatek: add MUX_GATE_FLAGS_2". > Hi,

Re: [PATCH V6 0/8] make mt7623 clock of hdmi stable

2019-03-06 Thread CK Hu
Hi, Wangyan: On Wed, 2019-03-06 at 09:52 +0800, CK Hu wrote: > On Mon, 2019-02-25 at 10:09 +0800, wangyan wang wrote: > > From: Wangyan Wang > > > > V6 adopt maintainer's suggestion. > > Here is the change list between V5 & V6 > > 1. change "

Re: [PATCH v6 1/8] drm/mediatek: recalculate hdmi phy clock of MT2701 by querying hardware

2019-03-06 Thread CK Hu
Hi, Wangyan: On Mon, 2019-02-25 at 10:09 +0800, wangyan wang wrote: > From: chunhui dai > > Recalculate the rate of this clock, by querying hardware. > > Signed-off-by: chunhui dai > Signed-off-by: wangyan wang > --- > drivers/gpu/drm/mediatek/mtk_hdmi_phy.c| 7 ++ >

Re: [PATCH V6 8/8] drm/mediatek: fix the rate of parent for hdmi phy in MT2701

2019-03-06 Thread CK Hu
Hi, Wangyan: On Mon, 2019-02-25 at 10:09 +0800, wangyan wang wrote: > From: chunhui dai > > We should not change the rate of parent for hdmi phy when > doing round_rate for this clock. The parent clock of hdmi > phy must be the same as it. We change it when doing set_rate > only. > >

Re: [PATCH v2 03/10] dt-binding: gce: add binding for gce subsys property

2019-03-06 Thread CK Hu
Hi, Bibby: On Wed, 2019-03-06 at 17:50 +0800, Bibby Hsieh wrote: > cmdq driver provide a function that get the relationship > of sub system number from device node for client. > add specification for #subsys-cells, mediatek,gce-subsys. > > Signed-off-by: Bibby Hsieh > --- >

Re: [PATCH v2 03/10] dt-binding: gce: add binding for gce subsys property

2019-03-06 Thread CK Hu
Hi, Bibby: On Thu, 2019-03-07 at 09:39 +0800, CK Hu wrote: > Hi, Bibby: > > On Wed, 2019-03-06 at 17:50 +0800, Bibby Hsieh wrote: > > cmdq driver provide a function that get the relationship > > of sub system number from device node for client. > > add specification

Re: [PATCH 06/10] soc: mediatek: add register device function

2019-01-31 Thread CK Hu
Hi, Bibby: On Tue, 2019-01-29 at 15:32 +0800, Bibby Hsieh wrote: > GCE cannot know the register base address, we store the subsys-base address > relationship in the device node, and store the relationship by > cmdq_register_device function. > > Signed-off-by: Bibby Hsieh > --- >

Re: [PATCH 01/10] soc: mediatek: add mt8183 compatible name

2019-01-31 Thread CK Hu
Hi, Bibby: I would like to add the prefix 'cmdq' in the commit title so that we could understand that this patch is applied to cmdq not pwrap. Regards, CK On Tue, 2019-01-29 at 15:31 +0800, Bibby Hsieh wrote: > add mt8183 compatible name > > Signed-off-by: Bibby Hsieh > --- >

Re: [PATCH V2,4/8] drm/mediatek: fix the rate and divder of hdmi phy for MT2701

2019-01-23 Thread CK Hu
On Fri, 2019-01-18 at 20:59 +0800, Wangyan Wang wrote: > From: chunhui dai Describe something here. > > Fixes: 0fc721b2968e ("drm/mediatek: add hdmi driver for MT2701 and MT7623") > Signed-off-by: chunhui dai Any one who pass a patch should sign off it. Regards, CK > --- >

Re: [PATCH 1/9] drm/mediatek: recalculate hdmi phy clock of MT2701 by querying hardware

2019-01-09 Thread CK Hu
Hi, Chunhui: On Fri, 2019-01-04 at 15:03 +0800, chunhui dai wrote: > Recalculate the rate of this clock, by querying hardware. > > Signed-off-by: chunhui dai > --- > drivers/gpu/drm/mediatek/mtk_hdmi_phy.c| 7 ++-- > drivers/gpu/drm/mediatek/mtk_hdmi_phy.h| 3 +- >

Re: [PATCH 2/9] drm/mediatek: move the setting of fixed divider

2019-01-10 Thread CK Hu
Hi, Chunhui: On Fri, 2019-01-04 at 15:03 +0800, chunhui dai wrote: > move the setting of fixed divider from enable/disable > to the function of setting rate. Please describe more about _WHY_ of this patch. Does it fix any bug, or enhance some thing, or a new feature? Regards, CK > >

Re: Aw: Re: [PATCH] drm/mediatek: Add MTK Framebuffer-Device (mt7623)

2019-01-10 Thread CK Hu
eric workflow > > as the posted driver is "only" a driver ported from kernel 4.4 by Alexander, > i don't know if this new framework can be used and which parts need to be > changed. I only try to bring his code Mainline > Maybe CK Hu can help here because driver is

Re: Re: [PATCH] drm/mediatek: Add MTK Framebuffer-Device (mt7623)

2019-01-10 Thread CK Hu
kflow > > > > as the posted driver is "only" a driver ported from kernel 4.4 by > > Alexander, i don't know if this new framework can be used and which parts > > need to be changed. I only try to bring his code Mainline > > Maybe CK Hu can help here because d

Re: Re: [PATCH] drm/mediatek: Add MTK Framebuffer-Device (mt7623)

2019-01-11 Thread CK Hu
Hi, Daniel: On Fri, 2019-01-11 at 10:20 +0100, Daniel Vetter wrote: > On Fri, Jan 11, 2019 at 11:20:09AM +0800, CK Hu wrote: > > Hi, Daniel: > > > > On Thu, 2019-01-10 at 21:02 +0100, Daniel Vetter wrote: > > > On Thu, Jan 10, 2019 at 08:01:37PM +0100, Frank Wunde

Re: [PATCH 01/18] drm/mediatek: update dt-bindings for mt8183

2018-12-25 Thread CK Hu
Hi, Yongqiang: I would like you to add 'dt-bindings' in title. On Mon, 2018-12-24 at 16:08 +0800, Yongqiang Niu wrote: > Update device tree binding documention for the display subsystem for > Mediatek MT8183 SOCs > > Signed-off-by: Yongqiang Niu > --- >

Re: [PATCH 02/18] drm/mediatek: add mutex mod and sof into ddp private data

2018-12-25 Thread CK Hu
Hi, Yongqiang: On Mon, 2018-12-24 at 16:08 +0800, Yongqiang Niu wrote: > This patch add mutex mod and sof into ddp private data Usually, the commit title shows 'WHAT' does this patch do, commit message shows 'WHY' does this patch do, and commit body shows 'HOW' does this patch do. This commit

Re: [PATCH 04/18] drm/mediatek: move rdma sout from mtk_ddp_mout_en into mtk_ddp_sout_sel

2018-12-25 Thread CK Hu
Hi, Yongqiang: On Mon, 2018-12-24 at 16:08 +0800, Yongqiang Niu wrote: > This patch move rdma sout from mtk_ddp_mout_en into mtk_ddp_sout_sel This patch looks good to me, but you should describe why do you do this. Regards, CK > > Signed-off-by: Yongqiang Niu > --- >

Re: [PATCH 05/18] drm/mediatek: add ddp component CCORR

2018-12-25 Thread CK Hu
Hi, Yongqiang: On Mon, 2018-12-24 at 16:08 +0800, Yongqiang Niu wrote: > This patch add ddp component CCORR Reviewed-by: CK Hu > Signed-off-by: Yongqiang Niu > --- > drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 32 > + > driver

Re: [PATCH 06/18] drm/mediatek: add mmsys private data for ddp path config

2018-12-25 Thread CK Hu
Hi, Yongqiang: On Mon, 2018-12-24 at 16:08 +0800, Yongqiang Niu wrote: > This patch add mmsys private data for ddp path config Describe WHY do this. > > Signed-off-by: Yongqiang Niu > --- > drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 4 ++ > drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 102 >

Re: [PATCH 07/18] drm/mediatek: add commponent OVL0_2L

2018-12-26 Thread CK Hu
Hi, Yongqiang: On Mon, 2018-12-24 at 16:08 +0800, Yongqiang Niu wrote: > This patch add commponent OVL0_2L > > Signed-off-by: Yongqiang Niu > --- > drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 1 + > drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 1 + > 2 files changed, 2 insertions(+) > >

Re: [PATCH 09/18] drm/mediatek: add component DITHER

2018-12-26 Thread CK Hu
Hi, Yongqiang: On Mon, 2018-12-24 at 16:08 +0800, Yongqiang Niu wrote: > This patch add component DITHER > Reviewed-by: CK Hu > Signed-off-by: Yongqiang Niu > --- > drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 32 > + > dri

Re: [PATCH 11/18] drm/medaitek: add layer_nr for ovl private data

2018-12-26 Thread CK Hu
Hi, Yongqiang: On Mon, 2018-12-24 at 16:08 +0800, Yongqiang Niu wrote: > This patch add layer_nr for ovl private data > I think you do this because ovl-2l and ovl share the same driver and the ovl layer is different, so this patch is a preparation for ovl-2l and ovl share the same driver.

Re: [PATCH 13/18] drm/mediatek: add ddp write register common api

2018-12-26 Thread CK Hu
Hi, Yongqiang: On Mon, 2018-12-24 at 16:08 +0800, Yongqiang Niu wrote: > This patch add ddp write register common api > I could not see anywhere you use these function. If the function is useless, drop this patch. Regards, CK > Signed-off-by: Yongqiang Niu > --- >

Re: [PATCH 14/18] drm/mediatek: add connect function for ovl

2018-12-26 Thread CK Hu
Hi, Yongqiang: On Mon, 2018-12-24 at 16:08 +0800, Yongqiang Niu wrote: > This patch add connect function for ovl Could you describe more about how ovl-2l works? I guess that ovl-2l is a ovl hardware which has 3 layer, the bottom two layer is from DRAM and the top layer is from another hardware

Re: [PATCH 15/18] drm/mediatek: add RDMA1 fifo size into RDMA private data

2018-12-27 Thread CK Hu
Hi, Yongqiang: On Mon, 2018-12-24 at 16:08 +0800, Yongqiang Niu wrote: > This patch add RDMA1 fifo size into RDMA private data > > Signed-off-by: Yongqiang Niu > --- > drivers/gpu/drm/mediatek/mtk_disp_rdma.c | 16 +++- > 1 file changed, 15 insertions(+), 1 deletion(-) > > diff

Re: [PATCH v1 14/15] drm/mediatek: fixed the error value for add DSI1 in mutex

2018-07-24 Thread CK Hu
Hi, Stu: On Tue, 2018-07-24 at 16:17 +0800, Stu Hsieh wrote: > This patch fixed the error value for add DSI1 in mutex > English is not my mother language, but should it be 'fix' rather than 'fixed'? Regards, CK > Signed-off-by: Stu Hsieh > --- > drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 2

Re: [PATCH v1 11/15] drm/mediatek: add dummy buffer for RDMA memory mode

2018-07-24 Thread CK Hu
Hi, Stu: On Tue, 2018-07-24 at 16:17 +0800, Stu Hsieh wrote: > This patch add dummy buffer for RDMA memory mode > > When display power on, the drm frame work would modeset and > set up the display HW. > > In this time, the RDMA would start wroking and read the data from memory. > But, user

Re: [PATCH v22 4/4] soc: mediatek: Add Mediatek CMDQ helper

2018-07-03 Thread CK Hu
Hi, Houlong: On Wed, 2018-07-04 at 08:47 +0800, houlong wei wrote: > On Fri, 2018-06-29 at 17:22 +0800, CK Hu wrote: > > Hi, Houlong: > > > > On Fri, 2018-06-29 at 07:32 +0800, houlong wei wrote: > > > On Thu, 2018-06-28 at 18:41 +0800, CK Hu wrote: > > &g

Re: [PATCH v22 2/4] mailbox: mediatek: Add Mediatek CMDQ driver

2018-07-04 Thread CK Hu
Hi, Houlong: On Wed, 2018-07-04 at 08:10 +0800, houlong wei wrote: > On Fri, 2018-06-29 at 15:08 +0800, CK Hu wrote: > > Hi, Houlong: > > > > Some inline comment. > > > > On Wed, 2018-06-27 at 19:16 +0800, Houlong Wei wrote: > > > This patch is fi

Re: [PATCH 23/28] drm/mediatek: add DPI1 support for mutex

2018-06-13 Thread CK Hu
Hi, Stu: On Mon, 2018-06-11 at 11:26 +0800, Stu Hsieh wrote: > This patch add the DPI1 support for mutex > > Signed-off-by: Stu Hsieh Reviewed-by: CK Hu > --- > drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/

Re: [PATCH 24/28] drm/mediatek: add DSI2 support for mutex

2018-06-13 Thread CK Hu
Hi, Stu: On Mon, 2018-06-11 at 11:26 +0800, Stu Hsieh wrote: > This patch add the DSI2 support for mutex > > Signed-off-by: Stu Hsieh Reviewed-by: CK Hu > --- > drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/

Re: [PATCH 14/28] drm/mediatek: add connection from RDMA1 to DPI1

2018-06-13 Thread CK Hu
Hi, Stu: On Wed, 2018-06-13 at 15:56 +0800, Stu Hsieh wrote: > Hi, CK: > > On Wed, 2018-06-13 at 14:13 +0800, CK Hu wrote: > > Hi, Stu: > > > > On Mon, 2018-06-11 at 11:26 +0800, Stu Hsieh wrote: > > > This patch add the connection from RDMA1 to DPI1 &

Re: [PATCH v5 05/12] drm: mediatek: Omit warning on probe defers

2018-11-18 Thread CK Hu
Hi, Matthias: On Fri, 2018-11-16 at 13:54 +0100, matthias@kernel.org wrote: > From: Matthias Brugger > > It can happen that the mmsys clock drivers aren't probed before the > platform driver gets invoked. The platform driver used to print a warning > that the driver failed to get the

Re: [PATCH v5 04/12] drm/mediatek: Add support for mmsys through a pdev

2018-11-18 Thread CK Hu
get probed from the same > device tree compatible. Looks good to me except one coding style preference. Reviewed-by: CK Hu > > Signed-off-by: Matthias Brugger > --- > drivers/gpu/drm/mediatek/mtk_drm_drv.c | 23 +++ > drivers/gpu/drm/mediatek/mtk_drm_drv

Re: [Resend PATCH 5/5] arm: dts: mt7623: add display subsystem related device nodes

2018-09-25 Thread CK Hu
Hi, Ryder: On Wed, 2018-09-05 at 22:09 +0800, Ryder Lee wrote: > Add display subsystem related device nodes for MT7623. > > Cc: CK Hu > Signed-off-by: chunhui dai > Signed-off-by: Bibby Hsieh > Signed-off-by: Ryder Lee > --- > I forgot to sort nodes in

Re: [Resend PATCH 5/5] arm: dts: mt7623: add display subsystem related device nodes

2018-09-25 Thread CK Hu
Hi, Ryder: On Wed, 2018-09-26 at 10:38 +0800, Ryder Lee wrote: > On Wed, 2018-09-26 at 09:37 +0800, CK Hu wrote: > > Hi, Ryder: > > > > On Wed, 2018-09-05 at 22:09 +0800, Ryder Lee wrote: > > > Add display subsystem related device nodes for MT7623. > >

Re: [Resend PATCH 5/5] arm: dts: mt7623: add display subsystem related device nodes

2018-09-26 Thread CK Hu
Hi, Ryder: More inline comment. On Wed, 2018-09-05 at 22:09 +0800, Ryder Lee wrote: > Add display subsystem related device nodes for MT7623. > > Cc: CK Hu > Signed-off-by: chunhui dai > Signed-off-by: Bibby Hsieh > Signed-off-by: Ryder Lee > --- > I forgot to sort n

[RFC][PATCH 0/2] MT8173 DRM support

2015-05-13 Thread CK Hu
d.org/pipermail/linux-mediatek/2015-March/58.html 2. add IOMMU dma_ops cherry picked from git://linux-arm.org/linux-rm iommu/dma commit d76a1911b02185bdc5f8b5525f9228cf266725c5 CK Hu (2): dt-bindings: drm/mediatek: Add Mediatek DRM dts binding drm/mediatek: Add DRM Driv

[RFC][PATCH 2/2] drm/mediatek: Add DRM Driver for Mediatek SoC MT8173.

2015-05-13 Thread CK Hu
This patch is a DRM Driver for Mediatek SoC MT8173. Now support one crtc with MIPI DSI interface. We used GEM framework for buffer management and use iommu for physically non-continuous memory. Signed-off-by: CK Hu --- drivers/gpu/drm/Kconfig |2 + drivers/gpu/drm

[RFC][PATCH 1/2] dt-bindings: drm/mediatek: Add Mediatek DRM dts binding

2015-05-13 Thread CK Hu
This patch includes 1. Mediatek DRM Device binding 2. Mediatek DSI Device binding 3. Mediatek CRTC Main Device binding 4. Mediatek DDP Device binding Signed-off-by: CK Hu --- .../bindings/drm/mediatek/mediatek,crtc-main.txt | 38 ++ .../bindings/drm/mediatek/mediatek

[PATCH 1/2] dt-bindings: drm/bridge: Add IT6151 bridge chip driver bindings.

2015-03-10 Thread CK Hu
Add devicetree bindings for IT6151 MIPI to eDP bridge chip driver. --- Documentation/devicetree/bindings/drm/bridge/it6151.txt | 15 +++ 1 file changed, 15 insertions(+) create mode 100644 Documentation/devicetree/bindings/drm/bridge/it6151.txt diff --git

[PATCH 2/2] drm/bridge: Add IT6151 bridge driver

2015-03-10 Thread CK Hu
This patch adds a drm_bridge driver for the IT6151 MIPI to eDP bridge chip. Signed-off-by: CK Hu Signed-off-by: Jitao Shi --- drivers/gpu/drm/bridge/Kconfig | 10 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/it6151.c | 601

[PATCH 1/2] dt-bindings: drm/bridge: Add IT6151 bridge chip driver bindings.

2015-03-11 Thread CK Hu
Add devicetree bindings for IT6151 MIPI to eDP bridge chip driver. Signed-off-by: CK Hu Signed-off-by: Jitao Shi --- Documentation/devicetree/bindings/drm/bridge/it6151.txt | 15 +++ 1 file changed, 15 insertions(+) create mode 100644 Documentation/devicetree/bindings/drm/bridge

[PATCH 2/2] drm/bridge: Add IT6151 bridge driver

2015-03-11 Thread CK Hu
This patch adds a drm_bridge driver for the IT6151 MIPI to eDP bridge chip. Signed-off-by: CK Hu Signed-off-by: Jitao Shi --- drivers/gpu/drm/bridge/Kconfig | 10 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/it6151.c | 601

Re: [PATCH v2] drm/mediatek: fixed the calc method of data rate per lane

2016-10-26 Thread CK Hu
Hi, Jitao: On Tue, 2016-10-25 at 13:40 +0800, Jitao Shi wrote: > Tune dsi frame rate by pixel clock, dsi add some extra signal (i.e. Tlpx, > Ths-prepare, Ths-zero, Ths-trail,Ths-exit) when enter and exit LP mode, this > signal will cause h-time larger than normal and reduce FPS. > Need to

Re: [PATCH v3] drm/mediatek: fixed the calc method of data rate per lane

2016-10-26 Thread CK Hu
Hi, Jitao: On Wed, 2016-10-26 at 16:59 +0800, Jitao Shi wrote: > Tune dsi frame rate by pixel clock, dsi add some extra signal (i.e. Tlpx, > Ths-prepare, Ths-zero, Ths-trail,Ths-exit) when enter and exit LP mode, this > signal will cause h-time larger than normal and reduce FPS. > Need to

Re: [PATCH] drm/mediatek: fix null pointer dereference

2016-10-28 Thread CK Hu
Hi, Matthias: Even though OVL HW would not be enabled before component_add() in current design, your patch would be safe for any situation. Acked-by CK Hu Regards, CK On Wed, 2016-10-26 at 16:09 +0200, Matthias Brugger wrote: > The probe function requests the interrupt before initializ

Re: [PATCH v11 10/12] drm/mediatek: add non-continuous clock mode and EOT packet control

2017-01-18 Thread CK Hu
; > Signed-off-by: shaoming chen > Signed-off-by: YT Shen Acked-by: CK Hu > --- > drivers/gpu/drm/mediatek/mtk_dsi.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c > b/drivers/gpu/drm/mediatek/mtk_dsi.c > index b3c7fd8..85f22

<    1   2   3   4   5   6   >