drm/exynos/decon5433: handle vblank in vblank interrupt
Subsystems (3)
PATCH 1/3 drm/exynos/decon5433: handle vblank in vblank interrupt
vblank should be signaled to userspace after reading framebuffers not before, signaling it in TE interrupt looks wrong. TE triggers reading framebuffers so it is the worst moment. Tearing is not observable because hardware prevents it, but there are frequently skipped vblank events.
--- drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/exynos/exynos5433_drm_decon.c +1 -2
@@ -443,8 +443,6 @@ static void decon_te_irq_handler(struct exynos_drm_crtc *crtc)if (test_and_clear_bit (BIT_WIN_UPDATED , &ctx->flags))decon_set_bits (ctx,DECON_TRIGCON ,TRIGCON_SWTRIGCMD , ~0 ); - -drm_crtc_handle_vblank (&ctx->crtc->base); }static void decon_clear_channels (struct exynos_drm_crtc *crtc)
@@ -577,6 +575,7 @@ static irqreturn_t decon_irq_handler(int irq, void *dev_id)/* clear */ writel (val, ctx->addr +DECON_VIDINTCON1 ); +drm_crtc_handle_vblank (&ctx->crtc->base); } out:
Signature · 6 lines
1.9.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 2/3 drm/exynos/decon5433: do not use unnecessary software trigger
Software trigger should not be used if hardware trigger is configured.
--- drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/exynos/exynos5433_drm_decon.c +2 -1
@@ -438,7 +438,8 @@ static void decon_te_irq_handler(struct exynos_drm_crtc *crtc) {struct decon_context *ctx = crtc->ctx; -if (!test_bit (BIT_CLKS_ENABLED , &ctx->flags)) +if (!test_bit (BIT_CLKS_ENABLED , &ctx->flags) || + (ctx->out_type &I80_HW_TRG ))return ;if (test_and_clear_bit (BIT_WIN_UPDATED , &ctx->flags))
Signature · 6 lines
1.9.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 3/3 drm/exynos/decon5433: fix trigger configuration
In reply to Andrzej HajdaIt seems trigger cannot be configured too early, otherwise it does not work in case of panel. The patch fixes also trigger flag logic, previously HW-TRIGGER flag was cleared in case of panel - as a result panel used always software trigger.
--- drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)
drivers/gpu/drm/exynos/exynos5433_drm_decon.c +4 -6
@@ -151,11 +151,13 @@ static void decon_commit(struct exynos_drm_crtc *crtc) val =CMU_CLKGAGE_MODE_SFR_F |CMU_CLKGAGE_MODE_MEM_F ;writel (val, ctx->addr +DECON_CMU ); +if (ctx->out_type & (IFTYPE_I80 |I80_HW_TRG )) +decon_setup_trigger (ctx); +/* lcd on and use command if */ val =VIDOUT_LCD_ON ;if (ctx->out_type &IFTYPE_I80 ) { val |=VIDOUT_COMMAND_IF ; -decon_setup_trigger (ctx); }else { val |=VIDOUT_RGB_IF ; }
@@ -380,9 +382,6 @@ static void decon_swreset(struct decon_context *ctx)writel (VIDCON1_VCLK_RUN_VDEN_DISABLE , ctx->addr +DECON_VIDCON1 );writel (CRCCTRL_CRCEN |CRCCTRL_CRCSTART_F |CRCCTRL_CRCCLKEN , ctx->addr +DECON_CRCCTRL ); - -if (ctx->out_type &IFTYPE_I80 ) -decon_setup_trigger (ctx); }static void decon_enable (struct exynos_drm_crtc *crtc)
@@ -652,9 +651,8 @@ static int exynos5433_decon_probe(struct platform_device *pdev)if (ctx->out_type &IFTYPE_HDMI ) { ctx->first_win =1 ; - ctx->out_type =IFTYPE_I80 ; }else if (of_get_child_by_name (dev->of_node,"i80-if-timings" )) { - ctx->out_type =IFTYPE_I80 ; + ctx->out_type |=IFTYPE_I80 ; }for (i =0 ; i <ARRAY_SIZE (decon_clks_name); i++) {
Signature · 6 lines
1.9.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Inki Dae
maintainerRe: [PATCH 3/3] drm/exynos/decon5433: fix trigger configuration
Hi Andrzej,
2016년 04월 29일 22:42에 Andrzej Hajda 이(가) 쓴 글:
Quoted 3 lines
It seems trigger cannot be configured too early, otherwise it does not work in case of panel. The patch fixes also trigger flag logic, previously HW-TRIGGER flag was cleared in case of panel - as a result panel used always software
Andrzej, sorry but I can't understand what above two lines mean. Can you give me more details?
Quoted 12 lines
trigger.
Signed-off-by Andrzej Hajda <[email protected]>--- drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)drivers/gpu/drm/exynos/exynos5433_drm_decon.c +0
-0
drivers/gpu/drm/exynos/exynos5433_drm_decon.c static void decon_commit(struct exynos_drm_crtc *crtc) · line 155
Quoted 5 lines
drivers/gpu/drm/exynos/exynos5433_drm_decon.c +2
-0@@ -151,11 +151,13 @@ static void decon_commit(struct exynos_drm_crtc *crtc) val =CMU_CLKGAGE_MODE_SFR_F |CMU_CLKGAGE_MODE_MEM_F ;writel (val, ctx->addr +DECON_CMU ); +if (ctx->out_type & (IFTYPE_I80 |I80_HW_TRG )) +decon_setup_trigger (ctx);
Shouldn't it be configured in case of using SW trigger mode also?
Thanks,
Inki Dae
Quoted 21 lines
drivers/gpu/drm/exynos/exynos5433_drm_decon.c +1
-4+/* lcd on and use command if */ val =VIDOUT_LCD_ON ;if (ctx->out_type &IFTYPE_I80 ) { val |=VIDOUT_COMMAND_IF ; -decon_setup_trigger (ctx); }else { val |=VIDOUT_RGB_IF ; }@@ -380,9 +382,6 @@ static void decon_swreset(struct decon_context *ctx)writel (VIDCON1_VCLK_RUN_VDEN_DISABLE , ctx->addr +DECON_VIDCON1 );writel (CRCCTRL_CRCEN |CRCCTRL_CRCSTART_F |CRCCTRL_CRCCLKEN , ctx->addr +DECON_CRCCTRL ); - -if (ctx->out_type &IFTYPE_I80 ) -decon_setup_trigger (ctx); }static void decon_enable (struct exynos_drm_crtc *crtc)
drivers/gpu/drm/exynos/exynos5433_drm_decon.c static int exynos5433_decon_probe(struct platform_device *pdev) · line 658
Quoted 10 lines
drivers/gpu/drm/exynos/exynos5433_drm_decon.c +1
-2@@ -652,9 +651,8 @@ static int exynos5433_decon_probe(struct platform_device *pdev)if (ctx->out_type &IFTYPE_HDMI ) { ctx->first_win =1 ; - ctx->out_type =IFTYPE_I80 ; }else if (of_get_child_by_name (dev->of_node,"i80-if-timings" )) { - ctx->out_type =IFTYPE_I80 ; + ctx->out_type |=IFTYPE_I80 ; }for (i =0 ; i <ARRAY_SIZE (decon_clks_name); i++) {
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 3/3] drm/exynos/decon5433: fix trigger configuration
Hi Inki,
Quoted 7 lines · Inki Dae
Hi Andrzej,
2016년 04월 29일 22:42에 Andrzej Hajda 이(가) 쓴 글:
Quoted 3 lines
It seems trigger cannot be configured too early, otherwise it does not work in case of panel. The patch fixes also trigger flag logic, previously HW-TRIGGER flag was cleared in case of panel - as a result panel used always software
Andrzej, sorry but I can't understand what above two lines mean. Can you give me more details?
Details below.
Quoted 44 lines
Quoted 13 lines
trigger.
Signed-off-by Andrzej Hajda <[email protected]>--- drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)drivers/gpu/drm/exynos/exynos5433_drm_decon.c +0
-0drivers/gpu/drm/exynos/exynos5433_drm_decon.c static void decon_commit(struct exynos_drm_crtc *crtc) · line 155
Quoted 5 lines
drivers/gpu/drm/exynos/exynos5433_drm_decon.c +2
-0@@ -151,11 +151,13 @@ static void decon_commit(struct exynos_drm_crtc *crtc) val =CMU_CLKGAGE_MODE_SFR_F |CMU_CLKGAGE_MODE_MEM_F ;writel (val, ctx->addr +DECON_CMU ); +if (ctx->out_type & (IFTYPE_I80 |I80_HW_TRG )) +decon_setup_trigger (ctx);Shouldn't it be configured in case of using SW trigger mode also?
Thanks,
Inki DaeQuoted 21 lines
drivers/gpu/drm/exynos/exynos5433_drm_decon.c +1
-4+/* lcd on and use command if */ val =VIDOUT_LCD_ON ;if (ctx->out_type &IFTYPE_I80 ) { val |=VIDOUT_COMMAND_IF ; -decon_setup_trigger (ctx); }else { val |=VIDOUT_RGB_IF ; }@@ -380,9 +382,6 @@ static void decon_swreset(struct decon_context *ctx)writel (VIDCON1_VCLK_RUN_VDEN_DISABLE , ctx->addr +DECON_VIDCON1 );writel (CRCCTRL_CRCEN |CRCCTRL_CRCSTART_F |CRCCTRL_CRCCLKEN , ctx->addr +DECON_CRCCTRL ); - -if (ctx->out_type &IFTYPE_I80 ) -decon_setup_trigger (ctx); }static void decon_enable (struct exynos_drm_crtc *crtc)@@ -652,9 +651,8 @@ static int exynos5433_decon_probe(struct platform_device *pdev)
Quoted 6 lines
drivers/gpu/drm/exynos/exynos5433_drm_decon.c static int exynos5433_decon_probe(struct platform_device *pdev) · line 655
Quoted 6 lines
drivers/gpu/drm/exynos/exynos5433_drm_decon.c +1
-2if (ctx->out_type &IFTYPE_HDMI ) { ctx->first_win =1 ; - ctx->out_type =IFTYPE_I80 ; }else if (of_get_child_by_name (dev->of_node,"i80-if-timings" )) { - ctx->out_type =IFTYPE_I80 ; + ctx->out_type |=IFTYPE_I80 ;
ctx->out_type was overwritten here with IFTYPE_I80. So when decon_setup_trigger
were called I80_HW_TRG bit was always clear and DECON_TRIGCON was configured to use soft trigger.
Regards
Andrzej
Quoted 4 lines
drivers/gpu/drm/exynos/exynos5433_drm_decon.c static int exynos5433_decon_probe(struct platform_device *pdev) · line 658
Quoted 4 lines
drivers/gpu/drm/exynos/exynos5433_drm_decon.c +0
-0}for (i =0 ; i <ARRAY_SIZE (decon_clks_name); i++) {
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Inki Dae
maintainerRe: [PATCH 3/3] drm/exynos/decon5433: fix trigger configuration
Hi Andrzej,
2016년 05월 10일 15:08에 Andrzej Hajda 이(가) 쓴 글:
Quoted 58 lines
Hi Inki,
Quoted 7 lines · Inki Dae
Hi Andrzej,
2016년 04월 29일 22:42에 Andrzej Hajda 이(가) 쓴 글:
Quoted 3 lines
It seems trigger cannot be configured too early, otherwise it does not work in case of panel. The patch fixes also trigger flag logic, previously HW-TRIGGER flag was cleared in case of panel - as a result panel used always software
Andrzej, sorry but I can't understand what above two lines mean. Can you give me more details?
Details below.
Quoted 44 lines
Quoted 13 lines
trigger.
Signed-off-by Andrzej Hajda <[email protected]>--- drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)drivers/gpu/drm/exynos/exynos5433_drm_decon.c +0
-0drivers/gpu/drm/exynos/exynos5433_drm_decon.c static void decon_commit(struct exynos_drm_crtc *crtc) · line 155
Quoted 5 lines
drivers/gpu/drm/exynos/exynos5433_drm_decon.c +2
-0@@ -151,11 +151,13 @@ static void decon_commit(struct exynos_drm_crtc *crtc) val =CMU_CLKGAGE_MODE_SFR_F |CMU_CLKGAGE_MODE_MEM_F ;writel (val, ctx->addr +DECON_CMU ); +if (ctx->out_type & (IFTYPE_I80 |I80_HW_TRG )) +decon_setup_trigger (ctx);Shouldn't it be configured in case of using SW trigger mode also?
Thanks,
Inki DaeQuoted 21 lines
drivers/gpu/drm/exynos/exynos5433_drm_decon.c +1
-4+/* lcd on and use command if */ val =VIDOUT_LCD_ON ;if (ctx->out_type &IFTYPE_I80 ) { val |=VIDOUT_COMMAND_IF ; -decon_setup_trigger (ctx); }else { val |=VIDOUT_RGB_IF ; }@@ -380,9 +382,6 @@ static void decon_swreset(struct decon_context *ctx)writel (VIDCON1_VCLK_RUN_VDEN_DISABLE , ctx->addr +DECON_VIDCON1 );writel (CRCCTRL_CRCEN |CRCCTRL_CRCSTART_F |CRCCTRL_CRCCLKEN , ctx->addr +DECON_CRCCTRL ); - -if (ctx->out_type &IFTYPE_I80 ) -decon_setup_trigger (ctx); }static void decon_enable (struct exynos_drm_crtc *crtc)@@ -652,9 +651,8 @@ static int exynos5433_decon_probe(struct platform_device *pdev)
Quoted 11 lines
Quoted 6 lines
drivers/gpu/drm/exynos/exynos5433_drm_decon.c static int exynos5433_decon_probe(struct platform_device *pdev) · line 655
Quoted 6 lines
drivers/gpu/drm/exynos/exynos5433_drm_decon.c +1
-2if (ctx->out_type &IFTYPE_HDMI ) { ctx->first_win =1 ; - ctx->out_type =IFTYPE_I80 ; }else if (of_get_child_by_name (dev->of_node,"i80-if-timings" )) { - ctx->out_type =IFTYPE_I80 ; + ctx->out_type |=IFTYPE_I80 ;
ctx->out_typewas overwritten here withIFTYPE_I80. So whendecon_setup_trigger
were calledI80_HW_TRGbit was always clear andDECON_TRIGCONwas configured to use soft trigger.
Indeed. Then shouldn't decon_setup_trigger function be called in both cases - SW and HW trigger modes? Is there any reason to call the function only in case of HW trigger mode?
Thanks,
Inki Dae
Quoted 10 lines
Regards
AndrzejQuoted 4 lines
Quoted 4 lines
drivers/gpu/drm/exynos/exynos5433_drm_decon.c +0
-0}for (i =0 ; i <ARRAY_SIZE (decon_clks_name); i++) {
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 3/3] drm/exynos/decon5433: fix trigger configuration
Quoted 69 lines · Inki Dae
Hi Andrzej,
2016년 05월 10일 15:08에 Andrzej Hajda 이(가) 쓴 글:
Quoted 56 lines
Hi Inki,
Quoted 7 lines · Inki Dae
Hi Andrzej,
2016년 04월 29일 22:42에 Andrzej Hajda 이(가) 쓴 글:
Quoted 3 lines
It seems trigger cannot be configured too early, otherwise it does not work in case of panel. The patch fixes also trigger flag logic, previously HW-TRIGGER flag was cleared in case of panel - as a result panel used always software
Andrzej, sorry but I can't understand what above two lines mean. Can you give me more details?
Details below.
Quoted 43 lines
Quoted 12 lines
trigger.
Signed-off-by Andrzej Hajda <[email protected]>--- drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)drivers/gpu/drm/exynos/exynos5433_drm_decon.c +0
-0drivers/gpu/drm/exynos/exynos5433_drm_decon.c static void decon_commit(struct exynos_drm_crtc *crtc) · line 155
Quoted 5 lines
drivers/gpu/drm/exynos/exynos5433_drm_decon.c +2
-0@@ -151,11 +151,13 @@ static void decon_commit(struct exynos_drm_crtc *crtc) val =CMU_CLKGAGE_MODE_SFR_F |CMU_CLKGAGE_MODE_MEM_F ;writel (val, ctx->addr +DECON_CMU ); +if (ctx->out_type & (IFTYPE_I80 |I80_HW_TRG )) +decon_setup_trigger (ctx);Shouldn't it be configured in case of using SW trigger mode also?
Thanks,
Inki DaeQuoted 21 lines
drivers/gpu/drm/exynos/exynos5433_drm_decon.c +1
-4+/* lcd on and use command if */ val =VIDOUT_LCD_ON ;if (ctx->out_type &IFTYPE_I80 ) { val |=VIDOUT_COMMAND_IF ; -decon_setup_trigger (ctx); }else { val |=VIDOUT_RGB_IF ; }@@ -380,9 +382,6 @@ static void decon_swreset(struct decon_context *ctx)writel (VIDCON1_VCLK_RUN_VDEN_DISABLE , ctx->addr +DECON_VIDCON1 );writel (CRCCTRL_CRCEN |CRCCTRL_CRCSTART_F |CRCCTRL_CRCCLKEN , ctx->addr +DECON_CRCCTRL ); - -if (ctx->out_type &IFTYPE_I80 ) -decon_setup_trigger (ctx); }static void decon_enable (struct exynos_drm_crtc *crtc)@@ -652,9 +651,8 @@ static int exynos5433_decon_probe(struct platform_device *pdev)Quoted 10 lines
Quoted 6 lines
drivers/gpu/drm/exynos/exynos5433_drm_decon.c static int exynos5433_decon_probe(struct platform_device *pdev) · line 655
Quoted 6 lines
drivers/gpu/drm/exynos/exynos5433_drm_decon.c +1
-2if (ctx->out_type &IFTYPE_HDMI ) { ctx->first_win =1 ; - ctx->out_type =IFTYPE_I80 ; }else if (of_get_child_by_name (dev->of_node,"i80-if-timings" )) { - ctx->out_type =IFTYPE_I80 ; + ctx->out_type |=IFTYPE_I80 ;
ctx->out_typewas overwritten here withIFTYPE_I80. So whendecon_setup_trigger
were calledI80_HW_TRGbit was always clear andDECON_TRIGCONwas configured to use soft trigger.
Quoted 2 lines
Indeed. Then shouldn't
decon_setup_triggerfunction be called in both cases - SW and HW trigger modes? Is there any reason to call the function only in case of HW trigger mode?
With this patch function is called under following condition:
drivers/gpu/drm/exynos/exynos5433_drm_decon.c static void decon_commit(struct exynos_drm_crtc *crtc) · line 155
Quoted 2 lines
drivers/gpu/drm/exynos/exynos5433_drm_decon.c +2
-0+if (ctx->out_type & (IFTYPE_I80 |I80_HW_TRG )) +decon_setup_trigger (ctx);
So it is called always in case of I80 mode, in such case value of I80_HW_TRG determines if it should use sw or hw trigger.
Regards
Andrzej
Quoted 12 lines
Thanks,
Inki DaeQuoted 8 lines
Regards
AndrzejQuoted 4 lines
Quoted 4 lines
drivers/gpu/drm/exynos/exynos5433_drm_decon.c +0
-0}for (i =0 ; i <ARRAY_SIZE (decon_clks_name); i++) {
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Inki Dae
maintainerRe: [PATCH 3/3] drm/exynos/decon5433: fix trigger configuration
2016년 05월 10일 16:08에 Andrzej Hajda 이(가) 쓴 글:
Quoted 73 lines · Inki Dae
Quoted 69 lines
Hi Andrzej,
2016년 05월 10일 15:08에 Andrzej Hajda 이(가) 쓴 글:
Quoted 56 lines
Hi Inki,
Quoted 7 lines · Inki Dae
Hi Andrzej,
2016년 04월 29일 22:42에 Andrzej Hajda 이(가) 쓴 글:
Quoted 3 lines
It seems trigger cannot be configured too early, otherwise it does not work in case of panel. The patch fixes also trigger flag logic, previously HW-TRIGGER flag was cleared in case of panel - as a result panel used always software
Andrzej, sorry but I can't understand what above two lines mean. Can you give me more details?
Details below.
Quoted 43 lines
Quoted 12 lines
trigger.
Signed-off-by Andrzej Hajda <[email protected]>--- drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)drivers/gpu/drm/exynos/exynos5433_drm_decon.c +0
-0drivers/gpu/drm/exynos/exynos5433_drm_decon.c static void decon_commit(struct exynos_drm_crtc *crtc) · line 155
Quoted 5 lines
drivers/gpu/drm/exynos/exynos5433_drm_decon.c +2
-0@@ -151,11 +151,13 @@ static void decon_commit(struct exynos_drm_crtc *crtc) val =CMU_CLKGAGE_MODE_SFR_F |CMU_CLKGAGE_MODE_MEM_F ;writel (val, ctx->addr +DECON_CMU ); +if (ctx->out_type & (IFTYPE_I80 |I80_HW_TRG )) +decon_setup_trigger (ctx);Shouldn't it be configured in case of using SW trigger mode also?
Thanks,
Inki DaeQuoted 21 lines
drivers/gpu/drm/exynos/exynos5433_drm_decon.c +1
-4+/* lcd on and use command if */ val =VIDOUT_LCD_ON ;if (ctx->out_type &IFTYPE_I80 ) { val |=VIDOUT_COMMAND_IF ; -decon_setup_trigger (ctx); }else { val |=VIDOUT_RGB_IF ; }@@ -380,9 +382,6 @@ static void decon_swreset(struct decon_context *ctx)writel (VIDCON1_VCLK_RUN_VDEN_DISABLE , ctx->addr +DECON_VIDCON1 );writel (CRCCTRL_CRCEN |CRCCTRL_CRCSTART_F |CRCCTRL_CRCCLKEN , ctx->addr +DECON_CRCCTRL ); - -if (ctx->out_type &IFTYPE_I80 ) -decon_setup_trigger (ctx); }static void decon_enable (struct exynos_drm_crtc *crtc)@@ -652,9 +651,8 @@ static int exynos5433_decon_probe(struct platform_device *pdev)Quoted 10 lines
Quoted 6 lines
drivers/gpu/drm/exynos/exynos5433_drm_decon.c static int exynos5433_decon_probe(struct platform_device *pdev) · line 655
Quoted 6 lines
drivers/gpu/drm/exynos/exynos5433_drm_decon.c +1
-2if (ctx->out_type &IFTYPE_HDMI ) { ctx->first_win =1 ; - ctx->out_type =IFTYPE_I80 ; }else if (of_get_child_by_name (dev->of_node,"i80-if-timings" )) { - ctx->out_type =IFTYPE_I80 ; + ctx->out_type |=IFTYPE_I80 ;
ctx->out_typewas overwritten here withIFTYPE_I80. So whendecon_setup_trigger
were calledI80_HW_TRGbit was always clear andDECON_TRIGCONwas configured to use soft trigger.Quoted 2 lines
Indeed. Then shouldn't
decon_setup_triggerfunction be called in both cases - SW and HW trigger modes? Is there any reason to call the function only in case of HW trigger mode?
Quoted 6 lines
With this patch function is called under following condition:
drivers/gpu/drm/exynos/exynos5433_drm_decon.c static void decon_commit(struct exynos_drm_crtc *crtc) · line 155
Quoted 2 lines
drivers/gpu/drm/exynos/exynos5433_drm_decon.c +2
-0+if (ctx->out_type & (IFTYPE_I80 |I80_HW_TRG )) +decon_setup_trigger (ctx);So it is called always in case of I80 mode, in such case value of
I80_HW_TRGdetermines if it should use sw or hw trigger.
Ah, sorry. I misleaded above condition.
Thanks,
Inki Dae
Quoted 19 lines
Regards
AndrzejQuoted 12 lines
Thanks,
Inki DaeQuoted 8 lines
Regards
AndrzejQuoted 4 lines
Quoted 4 lines
drivers/gpu/drm/exynos/exynos5433_drm_decon.c +0
-0}for (i =0 ; i <ARRAY_SIZE (decon_clks_name); i++) {
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel