From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 88412606A69F for ; Fri, 4 Dec 2026 04:19:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=iaRSf5X/ Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DE64B10EA0C; Fri, 4 Dec 2026 04:19:31 +0000 (UTC) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id B501910F841 for ; Fri, 4 Dec 2026 04:19:25 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id DEEB961543; Fri, 4 Dec 2026 04:19:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 849BC1F000CE; Fri, 4 Dec 2026 04:19:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796357964; bh=D3KeUGBqJQnPjVp2csYLtDxVikkl6wUKLVY9aZxvUyc=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=iaRSf5X/NyA89jSeT9JpyM65kn6bUIPKQDvppD92EcG0RgVS8txFSnwTqbEfKGPKG 7ahCwImqy9bh94KkRY3AFrhYWzOhw+zJ4SST14tc1TJtZvGh8aGpYD7z2A8k4ZgEXC KFMi7e/NMVwrFscsJErM7smuLUG4v+PuCkWQ8y2218pvplYNw59Ls4FMNhPfIaMVF9 t4JbgpdWf565kzIhQ3FZAiiUfKxhQ5rbgQPjWpHZaGAMrE8Zzg7PSu2WKlIm+kxVGT +XT0uFxYK+dbhYlUEQQ3wG+bUbBzNfQcHrfXd4FQ3A1BMsCgCYFT2SSpjON0C0VS2r k6p7C4fwC5Ydg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v3] drm/panel: skip enable after a failed prepare To: "Qianhui Xu" Cc: dri-devel@lists.freedesktop.org In-Reply-To: <20261204040332.175830-1-xiaqinghuan@mail.ustc.edu.cn> References: <20261204040332.175830-1-xiaqinghuan@mail.ustc.edu.cn> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 04:19:24 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev Sender: "dri-devel" X-Spam-Status: No, score=-6.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Archived-By: 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 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. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204040332.1758= 30-1-xiaqinghuan@mail.ustc.edu.cn?part=3D1