All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Dmitry Baryshkov" <dmitry.baryshkov@oss.qualcomm.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] drm/msm/mdp5: drop cursor pipe for msm8x76
Date: Sun, 13 Sep 2026 23:38:43 +0000	[thread overview]
Message-ID: <20260913233843.B7C2C1F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260914-mdp5-fix-cursor-v1-1-9fba3ace6cb9@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] Missing `flush_hw_mask` update when converting to legacy LM cursor breaks cursor updates.
--

commit e1dbf3d7b78aa6bf44fff588ff9b069eceea7f6b
Author: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>

drm/msm/mdp5: drop cursor pipe for msm8x76

This commit removes the separate cursor plane configuration for MSM8976/56
platforms. It drops the erroneously added pipe configuration to let the LM
block provide a legacy cursor instead.

> diff --git a/drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c b/drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c
> index 7c91fc1915f39..389d74ff75163 100644
> --- a/drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c
> +++ b/drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c
> @@ -698,15 +698,6 @@ static const struct mdp5_cfg_hw msm8x76_config = {
>  			MDP_PIPE_CAP_SW_PIX_EXT	|
>  			0,
>  	},
> -	.pipe_cursor = {
> -		.count = 1,
> -		.base = { 0x440DC },
> -		.caps = MDP_PIPE_CAP_HFLIP	|
> -			MDP_PIPE_CAP_VFLIP	|
> -			MDP_PIPE_CAP_SW_PIX_EXT	|
> -			MDP_PIPE_CAP_CURSOR	|
> -			0,
> -	},

[Severity: High]
Since this drops the cursor pipe to rely on the legacy LM cursor, does the
ctl.flush_hw_mask in msm8x76_config also need to be updated?

Currently, flush_hw_mask is set to 0xffffffff for this platform. When
standalone cursor updates use MDP5_CTL_FLUSH_CURSOR_0, fix_sw_flush() in
mdp5_ctl.c translates this to an LM flush for legacy cursors. However, this
fallback is only triggered if BIT_NEEDS_SW_FIX() determines the cursor flush
bit is excluded from the platform's flush_hw_mask.

Because the cursor bit is still included in the 0xffffffff mask, the
software fix evaluates to false. This prevents the LM from being flushed
and sends a hardware flush for a non-existent cursor block, which can
cause the cursor to lag or freeze during standalone updates.

Should flush_hw_mask be updated to exclude the cursor flush bits (for
example, 0xffffffff & ~MDP5_CTL_FLUSH_CURSOR_0)?

>  	.lm = {
>  		.count = 2,
>  		.base = { 0x44000, 0x45000 },

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260914-mdp5-fix-cursor-v1-1-9fba3ace6cb9@oss.qualcomm.com?part=1

  reply	other threads:[~2026-09-13 23:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-13 23:24 [PATCH] drm/msm/mdp5: drop cursor pipe for msm8x76 Dmitry Baryshkov
2026-09-13 23:38 ` sashiko-bot [this message]
2026-09-14  0:23   ` Dmitry Baryshkov
2026-09-14  8:02 ` Konrad Dybcio
2026-10-03  0:46 ` Dmitry Baryshkov

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=20260913233843.B7C2C1F000FF@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=dmitry.baryshkov@oss.qualcomm.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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.