From: Neil Armstrong <neil.armstrong@linaro.org>
To: Vladimir Bely <vlwwwwww@gmail.com>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
Rob Clark <robin.clark@oss.qualcomm.com>,
Dmitry Baryshkov <lumag@kernel.org>
Cc: David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
Abhinav Kumar <abhinav.kumar@linux.dev>,
Jessica Zhang <jesszhan0024@gmail.com>,
Sean Paul <sean@poorly.run>,
Marijn Suijten <marijn.suijten@somainline.org>,
Stephan Gerhold <stephan@gerhold.net>,
Michael Srba <Michael.Srba@seznam.cz>,
dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org,
freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 4/5] drm/panel: s6e88a0-ams452ef01: move display off to disable callback
Date: Thu, 3 Dec 2026 11:26:50 +0100 [thread overview]
Message-ID: <16a3cff1-d0e7-4d41-8131-6a389262c955@linaro.org> (raw)
In-Reply-To: <20261129130026.581466-5-vlwwwwww@gmail.com>
On 11/29/26 14:00, Vladimir Bely wrote:
> Currently the driver has no .disable callback and only sends
> MIPI_DCS_SET_DISPLAY_OFF in unprepare(), after the DSI host has already
> stopped the video stream. Because this is a video-mode AMOLED panel
> without internal frame memory, leaving display-on active after video
> stops produces ~160 ms of visible noise/stripes on every screen blank.
>
> Add a .disable callback that sends display-off and waits 35 ms while
> the video stream is still active, keeping sleep-in in unprepare().
> Tested on Samsung Galaxy A3 (SM-A300F).
>
> Signed-off-by: Vladimir Bely <vlwwwwww@gmail.com>
> ---
> .../drm/panel/panel-samsung-s6e88a0-ams452ef01.c | 16 ++++++++++++++--
> 1 file changed, 14 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams452ef01.c b/drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams452ef01.c
> index a4063a5af..43502a3ea 100644
> --- a/drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams452ef01.c
> +++ b/drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams452ef01.c
> @@ -82,8 +82,6 @@ static void s6e88a0_ams452ef01_off(struct s6e88a0_ams452ef01 *ctx)
>
> dsi->mode_flags &= ~MIPI_DSI_MODE_LPM;
>
> - mipi_dsi_dcs_set_display_off_multi(&dsi_ctx);
> - mipi_dsi_msleep(&dsi_ctx, 35);
> mipi_dsi_dcs_enter_sleep_mode_multi(&dsi_ctx);
> mipi_dsi_msleep(&dsi_ctx, 120);
> }
> @@ -110,6 +108,19 @@ static int s6e88a0_ams452ef01_prepare(struct drm_panel *panel)
> return 0;
> }
>
> +/* Blank the panel while the video stream still runs, it shows noise without */
> +static int s6e88a0_ams452ef01_disable(struct drm_panel *panel)
> +{
> + struct s6e88a0_ams452ef01 *ctx = to_s6e88a0_ams452ef01(panel);
> + struct mipi_dsi_multi_context dsi_ctx = { .dsi = ctx->dsi };
> +
> + ctx->dsi->mode_flags &= ~MIPI_DSI_MODE_LPM;
> + mipi_dsi_dcs_set_display_off_multi(&dsi_ctx);
> + mipi_dsi_msleep(&dsi_ctx, 35);
> +
> + return dsi_ctx.accum_err;
> +}
> +
> static int s6e88a0_ams452ef01_unprepare(struct drm_panel *panel)
> {
> struct s6e88a0_ams452ef01 *ctx = to_s6e88a0_ams452ef01(panel);
> @@ -156,6 +167,7 @@ static int s6e88a0_ams452ef01_get_modes(struct drm_panel *panel,
> }
>
> static const struct drm_panel_funcs s6e88a0_ams452ef01_panel_funcs = {
> + .disable = s6e88a0_ams452ef01_disable,
> .unprepare = s6e88a0_ams452ef01_unprepare,
> .prepare = s6e88a0_ams452ef01_prepare,
> .get_modes = s6e88a0_ams452ef01_get_modes,
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Thanks,
Neil
next prev parent reply other threads:[~2026-12-03 10:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-29 13:00 [PATCH 0/5] drm: mipi-dsi/msm/panel: add DSI batch transfer and s6e88a0-ams452ef01 backlight Vladimir Bely
2026-11-29 13:00 ` [PATCH 1/5] drm/mipi-dsi: add multi-message batch transfer support Vladimir Bely
2026-11-29 13:00 ` [PATCH 2/5] drm/msm/dsi: implement transfer_batch using multi-packet CMD DMA Vladimir Bely
2026-11-29 13:00 ` [PATCH 3/5] drm/panel: s6e88a0-ams452ef01: set prepare_prev_first Vladimir Bely
2026-12-03 10:26 ` Neil Armstrong
2026-11-29 13:00 ` [PATCH 4/5] drm/panel: s6e88a0-ams452ef01: move display off to disable callback Vladimir Bely
2026-12-03 10:26 ` Neil Armstrong [this message]
2026-11-29 13:00 ` [PATCH 5/5] drm/panel: s6e88a0-ams452ef01: add backlight support Vladimir Bely
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=16a3cff1-d0e7-4d41-8131-6a389262c955@linaro.org \
--to=neil.armstrong@linaro.org \
--cc=Michael.Srba@seznam.cz \
--cc=abhinav.kumar@linux.dev \
--cc=airlied@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=jesszhan0024@gmail.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lumag@kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=marijn.suijten@somainline.org \
--cc=mripard@kernel.org \
--cc=robin.clark@oss.qualcomm.com \
--cc=sean@poorly.run \
--cc=simona@ffwll.ch \
--cc=stephan@gerhold.net \
--cc=tzimmermann@suse.de \
--cc=vlwwwwww@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®