All of lore.kernel.org
 help / color / mirror / Atom feed
From: Aradhya Bhatia <aradhya.bhatia@linux.dev>
To: "Linus Walleij" <linusw@kernel.org>,
	"Vicente Bergas" <vicencb@gmail.com>,
	"Tomi Valkeinen" <tomi.valkeinen@ideasonboard.com>,
	"Marek Vasut" <marek.vasut+renesas@mailbox.org>,
	"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
	"Maxime Ripard" <mripard@kernel.org>,
	"Thomas Zimmermann" <tzimmermann@suse.de>,
	"David Airlie" <airlied@gmail.com>,
	"Simona Vetter" <simona@ffwll.ch>,
	"Laurent Pinchart" <laurent.pinchart+renesas@ideasonboard.com>,
	"Tomi Valkeinen" <tomi.valkeinen+renesas@ideasonboard.com>,
	"Kieran Bingham" <kieran.bingham+renesas@ideasonboard.com>,
	"Geert Uytterhoeven" <geert+renesas@glider.be>,
	"Magnus Damm" <magnus.damm@gmail.com>,
	"Aradhya Bhatia" <a-bhatia1@ti.com>,
	"Dmitry Baryshkov" <lumag@kernel.org>,
	"Linus Walleij" <linus.walleij@linaro.org>,
	"Sandy Huang" <hjc@rock-chips.com>,
	"Heiko Stübner" <heiko@sntech.de>,
	"Andy Yan" <andy.yan@rock-chips.com>
Cc: dri-devel@lists.freedesktop.org,
	linux-renesas-soc@vger.kernel.org,
	linux-rockchip@lists.infradead.org
Subject: Re: [PATCH v6 4/4] RFT: drm/rockchip: Create custom commit tail
Date: Thu, 4 Dec 2025 15:40:13 +0000	[thread overview]
Message-ID: <e46f5376-6ec2-41dd-a536-125ff51fd5d5@linux.dev> (raw)
In-Reply-To: <20251202-mcde-drm-regression-thirdfix-v6-4-f1bffd4ec0fa@kernel.org>

Hi,

On 02/12/2025 21:02, Linus Walleij wrote:
> commit c9b1150a68d9362a0827609fc0dc1664c0d8bfe1
> "drm/atomic-helper: Re-order bridge chain pre-enable and post-disable"
> caused a series of regressions in all panels that send
> DSI commands in their .prepare() and .unprepare()
> callbacks when used with the Rockchip driver.
> 
> As the CRTC is no longer online at bridge_pre_enable()
> and gone at brige_post_disable() which maps to the panel
> bridge .prepare()/.unprepare() callbacks, any CRTC that
> enable/disable the DSI transmitter in it's enable/disable
> callbacks will be unable to send any DSI commands in the
> .prepare() and .unprepare() callbacks.
> 
> However the Rockchip driver definitely need the CRTC to be
> enabled during .prepare()/.unprepare().
> 
> Solve this by implementing a custom commit tail function
> in the Rockchip driver that always enables the CRTC first
> and disables it last, using the newly exported helpers.
> 
> This patch is an edited carbon-copy of the same patch to
> the ST-Ericsson MCDE driver.
> 
> Link: https://lore.kernel.org/all/CAAMcf8Di8sc_XVZAnzQ9sUiUf-Ayvg2yjhx2dWmvvCnfF3pBRA@mail.gmail.com/
> Reported-by: Aradhya Bhatia <aradhya.bhatia@linux.dev>
> Reported-by: Vicente Bergas <vicencb@gmail.com>
> Signed-off-by: Linus Walleij <linusw@kernel.org>
> ---
> Rockchip people: can you please test this patch (along
> with patch 1 of course).
> ---
>  drivers/gpu/drm/rockchip/rockchip_drm_fb.c | 50 +++++++++++++++++++++++++++++-
>  1 file changed, 49 insertions(+), 1 deletion(-)
> 
Acked-by: Aradhya Bhatia <aradhya.bhatia@linux.dev>

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

WARNING: multiple messages have this Message-ID (diff)
From: Aradhya Bhatia <aradhya.bhatia@linux.dev>
To: "Linus Walleij" <linusw@kernel.org>,
	"Vicente Bergas" <vicencb@gmail.com>,
	"Tomi Valkeinen" <tomi.valkeinen@ideasonboard.com>,
	"Marek Vasut" <marek.vasut+renesas@mailbox.org>,
	"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
	"Maxime Ripard" <mripard@kernel.org>,
	"Thomas Zimmermann" <tzimmermann@suse.de>,
	"David Airlie" <airlied@gmail.com>,
	"Simona Vetter" <simona@ffwll.ch>,
	"Laurent Pinchart" <laurent.pinchart+renesas@ideasonboard.com>,
	"Tomi Valkeinen" <tomi.valkeinen+renesas@ideasonboard.com>,
	"Kieran Bingham" <kieran.bingham+renesas@ideasonboard.com>,
	"Geert Uytterhoeven" <geert+renesas@glider.be>,
	"Magnus Damm" <magnus.damm@gmail.com>,
	"Aradhya Bhatia" <a-bhatia1@ti.com>,
	"Dmitry Baryshkov" <lumag@kernel.org>,
	"Linus Walleij" <linus.walleij@linaro.org>,
	"Sandy Huang" <hjc@rock-chips.com>,
	"Heiko Stübner" <heiko@sntech.de>,
	"Andy Yan" <andy.yan@rock-chips.com>
Cc: dri-devel@lists.freedesktop.org,
	linux-renesas-soc@vger.kernel.org,
	linux-rockchip@lists.infradead.org
Subject: Re: [PATCH v6 4/4] RFT: drm/rockchip: Create custom commit tail
Date: Thu, 4 Dec 2025 15:40:13 +0000	[thread overview]
Message-ID: <e46f5376-6ec2-41dd-a536-125ff51fd5d5@linux.dev> (raw)
In-Reply-To: <20251202-mcde-drm-regression-thirdfix-v6-4-f1bffd4ec0fa@kernel.org>

Hi,

On 02/12/2025 21:02, Linus Walleij wrote:
> commit c9b1150a68d9362a0827609fc0dc1664c0d8bfe1
> "drm/atomic-helper: Re-order bridge chain pre-enable and post-disable"
> caused a series of regressions in all panels that send
> DSI commands in their .prepare() and .unprepare()
> callbacks when used with the Rockchip driver.
> 
> As the CRTC is no longer online at bridge_pre_enable()
> and gone at brige_post_disable() which maps to the panel
> bridge .prepare()/.unprepare() callbacks, any CRTC that
> enable/disable the DSI transmitter in it's enable/disable
> callbacks will be unable to send any DSI commands in the
> .prepare() and .unprepare() callbacks.
> 
> However the Rockchip driver definitely need the CRTC to be
> enabled during .prepare()/.unprepare().
> 
> Solve this by implementing a custom commit tail function
> in the Rockchip driver that always enables the CRTC first
> and disables it last, using the newly exported helpers.
> 
> This patch is an edited carbon-copy of the same patch to
> the ST-Ericsson MCDE driver.
> 
> Link: https://lore.kernel.org/all/CAAMcf8Di8sc_XVZAnzQ9sUiUf-Ayvg2yjhx2dWmvvCnfF3pBRA@mail.gmail.com/
> Reported-by: Aradhya Bhatia <aradhya.bhatia@linux.dev>
> Reported-by: Vicente Bergas <vicencb@gmail.com>
> Signed-off-by: Linus Walleij <linusw@kernel.org>
> ---
> Rockchip people: can you please test this patch (along
> with patch 1 of course).
> ---
>  drivers/gpu/drm/rockchip/rockchip_drm_fb.c | 50 +++++++++++++++++++++++++++++-
>  1 file changed, 49 insertions(+), 1 deletion(-)
> 
Acked-by: Aradhya Bhatia <aradhya.bhatia@linux.dev>

  parent reply	other threads:[~2025-12-04 15:40 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-02 21:02 [PATCH v6 0/4] drm/atomic-helpers: Fix MCDE/R-Car DU regressions Linus Walleij
2025-12-02 21:02 ` Linus Walleij
2025-12-02 21:02 ` [PATCH v6 1/4] drm/atomic-helper: Export and namespace some functions Linus Walleij
2025-12-02 21:02   ` Linus Walleij
2025-12-04 15:16   ` Aradhya Bhatia
2025-12-04 15:16     ` Aradhya Bhatia
2025-12-02 21:02 ` [PATCH v6 2/4] drm/mcde: Create custom commit tail Linus Walleij
2025-12-02 21:02   ` Linus Walleij
2025-12-03  6:27   ` Chaoyi Chen
2025-12-03  6:27     ` Chaoyi Chen
2025-12-03 23:13     ` Linus Walleij
2025-12-03 23:13       ` Linus Walleij
2025-12-04  2:07       ` Chaoyi Chen
2025-12-04  2:07         ` Chaoyi Chen
2025-12-04 13:54         ` Tomi Valkeinen
2025-12-04 13:54           ` Tomi Valkeinen
2025-12-05  1:54           ` Chaoyi Chen
2025-12-05  1:54             ` Chaoyi Chen
2025-12-04 15:17   ` Aradhya Bhatia
2025-12-04 15:17     ` Aradhya Bhatia
2025-12-02 21:02 ` [PATCH v6 3/4] drm/rcar-du: Modify " Linus Walleij
2025-12-02 21:02   ` Linus Walleij
2025-12-04 15:19   ` Aradhya Bhatia
2025-12-04 15:19     ` Aradhya Bhatia
2025-12-02 21:02 ` [PATCH v6 4/4] RFT: drm/rockchip: Create " Linus Walleij
2025-12-02 21:02   ` Linus Walleij
2025-12-03  3:10   ` Chaoyi Chen
2025-12-03  3:10     ` Chaoyi Chen
2025-12-03  9:54     ` Linus Walleij
2025-12-03  9:54       ` Linus Walleij
2025-12-03 11:59       ` Chaoyi Chen
2025-12-03 11:59         ` Chaoyi Chen
2025-12-05 13:53       ` Maxime Ripard
2025-12-05 13:53         ` Maxime Ripard
2025-12-05 14:11         ` Linus Walleij
2025-12-05 14:11           ` Linus Walleij
2025-12-08 10:53           ` Maxime Ripard
2025-12-08 10:53             ` Maxime Ripard
2025-12-03 14:11   ` Vicente Bergas
2025-12-03 14:11     ` Vicente Bergas
2025-12-04 15:40   ` Aradhya Bhatia [this message]
2025-12-04 15:40     ` Aradhya Bhatia
2025-12-04 15:16 ` [PATCH v6 0/4] drm/atomic-helpers: Fix MCDE/R-Car DU regressions Aradhya Bhatia
2025-12-04 15:16   ` Aradhya Bhatia

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=e46f5376-6ec2-41dd-a536-125ff51fd5d5@linux.dev \
    --to=aradhya.bhatia@linux.dev \
    --cc=a-bhatia1@ti.com \
    --cc=airlied@gmail.com \
    --cc=andy.yan@rock-chips.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=geert+renesas@glider.be \
    --cc=heiko@sntech.de \
    --cc=hjc@rock-chips.com \
    --cc=kieran.bingham+renesas@ideasonboard.com \
    --cc=laurent.pinchart+renesas@ideasonboard.com \
    --cc=linus.walleij@linaro.org \
    --cc=linusw@kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=lumag@kernel.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=magnus.damm@gmail.com \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=mripard@kernel.org \
    --cc=simona@ffwll.ch \
    --cc=tomi.valkeinen+renesas@ideasonboard.com \
    --cc=tomi.valkeinen@ideasonboard.com \
    --cc=tzimmermann@suse.de \
    --cc=vicencb@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 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.