All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Qianhui Xu" <xiaqinghuan@mail.ustc.edu.cn>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v3] drm/panel: skip enable after a failed prepare
Date: Fri, 04 Dec 2026 04:19:24 +0000	[thread overview]
Message-ID: <sashiko-outbox-249081@kernel.org> (raw)
In-Reply-To: <20261204040332.175830-1-xiaqinghuan@mail.ustc.edu.cn>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] drm/panel: stale follower_lock doc and overly broad commit
  locking claim
--

commit 176ae2399799a2aa4414b9123430d1e072bb7acb
Author: Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn>

drm/panel: skip enable after a failed prepare

This commit tracks a failed drm_panel_prepare() in a new prepare_failed
flag so drm_panel_enable() skips enabling the panel, and takes
follower_lock before reading or updating the panel state flags in the
four drm_panel helpers.

> All reads and writes of prepared, enabled and the flag happen with
> follower_lock held, which all four helpers now take before looking at
> the panel state.

[Severity: Low]
Should this claim be scoped to the drm_panel core helpers?  Drivers
outside drm_panel.c (e.g. s6e8aa5x01_ams561ra01_update_status() in
panel-samsung-s6e8aa5x01-ams561ra01.c) still read panel.prepared or
panel.enabled without follower_lock.

Also, the kernel-doc for follower_lock in include/drm/drm_panel.h still
says only "Lock for followers list.", and prepared, enabled, and
prepare_failed do not mention it.  Updating those comments avoids future
changes bypassing follower_lock when no followers are registered.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204040332.175830-1-xiaqinghuan@mail.ustc.edu.cn?part=1

  reply	other threads:[~2026-12-04  4:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  4:03 [PATCH v3] drm/panel: skip enable after a failed prepare Qianhui Xu
2026-12-04  4:19 ` sashiko-bot [this message]
2026-12-04  9:04   ` Qianhui Xu

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=sashiko-outbox-249081@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=xiaqinghuan@mail.ustc.edu.cn \
    /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.