From: Inki Dae <inki.dae@samsung.com>
To: Andrzej Hajda <a.hajda@samsung.com>
Cc: linux-samsung-soc@vger.kernel.org,
Marek Szyprowski <m.szyprowski@samsung.com>,
dri-devel@lists.freedesktop.org,
Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Subject: Re: [PATCH 5/9] drm/exynos/decon5433: kill BIT_IRQS_ENABLED flag
Date: Thu, 13 Apr 2017 17:33:48 +0900 [thread overview]
Message-ID: <58EF37EC.5040700@samsung.com> (raw)
In-Reply-To: <1491377317-8042-6-git-send-email-a.hajda@samsung.com>
2017년 04월 05일 16:28에 Andrzej Hajda 이(가) 쓴 글:
> Since DECON uses enable_irq/disable_irq to full control IRQs,
> there is no point in having flags to trace it separately.
> As a bonus condition for software trigger becomes always true,
> so it can be removed.
>
> Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
> ---
> drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 8 +-------
> 1 file changed, 1 insertion(+), 7 deletions(-)
>
> diff --git a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c
> index 5bdf1a0..dc2e69a 100644
> --- a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c
> +++ b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c
> @@ -49,7 +49,6 @@ static const char * const decon_clks_name[] = {
>
> enum decon_flag_bits {
> BIT_CLKS_ENABLED,
> - BIT_IRQS_ENABLED,
> BIT_WIN_UPDATED,
> BIT_SUSPENDED
> };
> @@ -112,8 +111,6 @@ static int decon_enable_vblank(struct exynos_drm_crtc *crtc)
> if (!(ctx->out_type & I80_HW_TRG))
> enable_irq(ctx->te_irq);
>
> - set_bit(BIT_IRQS_ENABLED, &ctx->flags);
> -
> return 0;
> }
>
> @@ -121,7 +118,6 @@ static void decon_disable_vblank(struct exynos_drm_crtc *crtc)
> {
> struct decon_context *ctx = crtc->ctx;
>
> - clear_bit(BIT_IRQS_ENABLED, &ctx->flags);
> if (test_bit(BIT_SUSPENDED, &ctx->flags))
> return;
>
> @@ -536,9 +532,7 @@ static irqreturn_t decon_te_irq_handler(int irq, void *dev_id)
> (ctx->out_type & I80_HW_TRG))
> return IRQ_HANDLED;
>
> - if (test_and_clear_bit(BIT_WIN_UPDATED, &ctx->flags) ||
> - test_bit(BIT_IRQS_ENABLED, &ctx->flags))
> - decon_set_bits(ctx, DECON_TRIGCON, TRIGCON_SWTRIGCMD, ~0);
> + decon_set_bits(ctx, DECON_TRIGCON, TRIGCON_SWTRIGCMD, ~0);
This code would incur mulfunction if now decon driver uses sw trigger mode.
The panel device on TM2 and TM2E boards supports ALPM mode which makes Panel device to be keeped on with low power even ARM, crtc and encoder devices are off.
In this case, even if decon device is off te interrupt could happen and writing to decon register could be tried.
Thanks,
Inki Dae
>
> return IRQ_HANDLED;
> }
>
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2017-04-13 8:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20170405072841eucas1p1c207e7d096c8f750f65a8fce2aae149e@eucas1p1.samsung.com>
2017-04-05 7:28 ` [PATCH 0/9] drm/exynos/decon5433: move TE handling to DECON Andrzej Hajda
2017-04-05 7:28 ` [PATCH 1/9] drm/exynos/decon5433: always do sw-trigger when vblanks enabled Andrzej Hajda
2017-04-05 7:28 ` [PATCH 2/9] dt-bindings: exynos5433-decon: fix interrupts bindings Andrzej Hajda
2017-04-05 7:28 ` [PATCH 3/9] dt-bindings: exynos5433-decon: add TE interrupt binding Andrzej Hajda
2017-04-05 7:28 ` [PATCH 4/9] drm/exynos/decon5433: move TE handling to DECON Andrzej Hajda
2017-04-05 7:28 ` [PATCH 5/9] drm/exynos/decon5433: kill BIT_IRQS_ENABLED flag Andrzej Hajda
2017-04-13 8:33 ` Inki Dae [this message]
2017-04-13 9:10 ` Andrzej Hajda
2017-04-05 7:28 ` [PATCH 6/9] drm/exynos/decon5433: kill BIT_CLKS_ENABLED flag Andrzej Hajda
2017-04-05 7:28 ` [PATCH 7/9] drm/exynos/decon5433: kill BIT_WIN_UPDATED flag Andrzej Hajda
2017-04-05 7:28 ` [PATCH 8/9] drm/exynos/decon5433: kill BIT_SUSPENDED flag Andrzej Hajda
2017-04-05 7:28 ` [PATCH 9/9] drm/exynos/decon5433: remove useless check Andrzej Hajda
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=58EF37EC.5040700@samsung.com \
--to=inki.dae@samsung.com \
--cc=a.hajda@samsung.com \
--cc=b.zolnierkie@samsung.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.