From: Neil Armstrong <narmstrong@baylibre.com>
To: dri-devel@lists.freedesktop.org
Cc: Neil Armstrong <narmstrong@baylibre.com>,
khilman@baylibre.com, linux-amlogic@lists.infradead.org,
ayan.halder@arm.com, Brian.Starkey@arm.com,
linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 6/7] drm/meson: hold 32 lines after vsync to give time for AFBC start
Date: Mon, 14 Oct 2019 14:38:25 +0200 [thread overview]
Message-ID: <20191014123826.27629-7-narmstrong@baylibre.com> (raw)
In-Reply-To: <20191014123826.27629-1-narmstrong@baylibre.com>
When using an AFBC encoded frame, the AFBC Decoder must be resetted,
configured and enabled at each vsync IRQ.
To leave time for that, use the maximum lines hold time to give time
for AFBC setup and avoid visual glitches.
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
---
drivers/gpu/drm/meson/meson_viu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/meson/meson_viu.c b/drivers/gpu/drm/meson/meson_viu.c
index 07713588063e..0a762046699b 100644
--- a/drivers/gpu/drm/meson/meson_viu.c
+++ b/drivers/gpu/drm/meson/meson_viu.c
@@ -438,7 +438,7 @@ void meson_viu_init(struct meson_drm *priv)
/* Initialize OSD1 fifo control register */
reg = VIU_OSD_DDR_PRIORITY_URGENT |
- VIU_OSD_HOLD_FIFO_LINES(4) |
+ VIU_OSD_HOLD_FIFO_LINES(31) |
VIU_OSD_FIFO_DEPTH_VAL(32) | /* fifo_depth_val: 32*8=256 */
VIU_OSD_WORDS_PER_BURST(4) | /* 4 words in 1 burst */
VIU_OSD_FIFO_LIMITS(2); /* fifo_lim: 2*16=32 */
--
2.22.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
WARNING: multiple messages have this Message-ID (diff)
From: Neil Armstrong <narmstrong@baylibre.com>
To: dri-devel@lists.freedesktop.org
Cc: Neil Armstrong <narmstrong@baylibre.com>,
khilman@baylibre.com, linux-amlogic@lists.infradead.org,
ayan.halder@arm.com, linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 6/7] drm/meson: hold 32 lines after vsync to give time for AFBC start
Date: Mon, 14 Oct 2019 14:38:25 +0200 [thread overview]
Message-ID: <20191014123826.27629-7-narmstrong@baylibre.com> (raw)
In-Reply-To: <20191014123826.27629-1-narmstrong@baylibre.com>
When using an AFBC encoded frame, the AFBC Decoder must be resetted,
configured and enabled at each vsync IRQ.
To leave time for that, use the maximum lines hold time to give time
for AFBC setup and avoid visual glitches.
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
---
drivers/gpu/drm/meson/meson_viu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/meson/meson_viu.c b/drivers/gpu/drm/meson/meson_viu.c
index 07713588063e..0a762046699b 100644
--- a/drivers/gpu/drm/meson/meson_viu.c
+++ b/drivers/gpu/drm/meson/meson_viu.c
@@ -438,7 +438,7 @@ void meson_viu_init(struct meson_drm *priv)
/* Initialize OSD1 fifo control register */
reg = VIU_OSD_DDR_PRIORITY_URGENT |
- VIU_OSD_HOLD_FIFO_LINES(4) |
+ VIU_OSD_HOLD_FIFO_LINES(31) |
VIU_OSD_FIFO_DEPTH_VAL(32) | /* fifo_depth_val: 32*8=256 */
VIU_OSD_WORDS_PER_BURST(4) | /* 4 words in 1 burst */
VIU_OSD_FIFO_LIMITS(2); /* fifo_lim: 2*16=32 */
--
2.22.0
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
WARNING: multiple messages have this Message-ID (diff)
From: Neil Armstrong <narmstrong@baylibre.com>
To: dri-devel@lists.freedesktop.org
Cc: Neil Armstrong <narmstrong@baylibre.com>,
khilman@baylibre.com, linux-amlogic@lists.infradead.org,
ayan.halder@arm.com, Brian.Starkey@arm.com,
linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 6/7] drm/meson: hold 32 lines after vsync to give time for AFBC start
Date: Mon, 14 Oct 2019 14:38:25 +0200 [thread overview]
Message-ID: <20191014123826.27629-7-narmstrong@baylibre.com> (raw)
In-Reply-To: <20191014123826.27629-1-narmstrong@baylibre.com>
When using an AFBC encoded frame, the AFBC Decoder must be resetted,
configured and enabled at each vsync IRQ.
To leave time for that, use the maximum lines hold time to give time
for AFBC setup and avoid visual glitches.
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
---
drivers/gpu/drm/meson/meson_viu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/meson/meson_viu.c b/drivers/gpu/drm/meson/meson_viu.c
index 07713588063e..0a762046699b 100644
--- a/drivers/gpu/drm/meson/meson_viu.c
+++ b/drivers/gpu/drm/meson/meson_viu.c
@@ -438,7 +438,7 @@ void meson_viu_init(struct meson_drm *priv)
/* Initialize OSD1 fifo control register */
reg = VIU_OSD_DDR_PRIORITY_URGENT |
- VIU_OSD_HOLD_FIFO_LINES(4) |
+ VIU_OSD_HOLD_FIFO_LINES(31) |
VIU_OSD_FIFO_DEPTH_VAL(32) | /* fifo_depth_val: 32*8=256 */
VIU_OSD_WORDS_PER_BURST(4) | /* 4 words in 1 burst */
VIU_OSD_FIFO_LIMITS(2); /* fifo_lim: 2*16=32 */
--
2.22.0
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
next prev parent reply other threads:[~2019-10-14 12:41 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-14 12:38 [PATCH v2 0/7] drm/meson: add AFBC support Neil Armstrong
2019-10-14 12:38 ` Neil Armstrong
2019-10-14 12:38 ` Neil Armstrong
2019-10-14 12:38 ` [PATCH v2 1/7] drm/meson: add AFBC decoder registers for GXM and G12A Neil Armstrong
2019-10-14 12:38 ` Neil Armstrong
2019-10-14 12:38 ` Neil Armstrong
2019-10-14 12:38 ` [PATCH v2 2/7] drm/meson: store the framebuffer width for plane commit Neil Armstrong
2019-10-14 12:38 ` Neil Armstrong
2019-10-14 12:38 ` Neil Armstrong
2019-10-14 12:38 ` [PATCH v2 3/7] drm/meson: Add AFBCD module driver Neil Armstrong
2019-10-14 12:38 ` Neil Armstrong
2019-10-14 12:38 ` Neil Armstrong
2019-10-14 12:38 ` [PATCH v2 4/7] drm/meson: plane: add support for AFBC mode for OSD1 plane Neil Armstrong
2019-10-14 12:38 ` Neil Armstrong
2019-10-14 12:38 ` Neil Armstrong
2019-10-14 12:38 ` [PATCH v2 5/7] drm/meson: viu: add AFBC modules routing functions Neil Armstrong
2019-10-14 12:38 ` Neil Armstrong
2019-10-14 12:38 ` Neil Armstrong
2019-10-14 12:38 ` Neil Armstrong [this message]
2019-10-14 12:38 ` [PATCH v2 6/7] drm/meson: hold 32 lines after vsync to give time for AFBC start Neil Armstrong
2019-10-14 12:38 ` Neil Armstrong
2019-10-14 12:38 ` [PATCH v2 7/7] drm/meson: crtc: add OSD1 plane AFBC commit Neil Armstrong
2019-10-14 12:38 ` Neil Armstrong
2019-10-14 12:38 ` Neil Armstrong
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=20191014123826.27629-7-narmstrong@baylibre.com \
--to=narmstrong@baylibre.com \
--cc=Brian.Starkey@arm.com \
--cc=ayan.halder@arm.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=khilman@baylibre.com \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
/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.