From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E24C62EA149; Thu, 3 Jul 2025 15:06:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751555185; cv=none; b=VVSrwOC/52sqAFfxeuJrscAwP3lt+Vyp7nkCmaZNfp9xJahhfxPMTlbN28P5E15b+h1omzqDyVF/K00IuRS2Ou4GUnve24CjiBvD4LbupwkGaXvx3UV6x+K3xD46bt3qpodiiEwCO6vTE0Z1W88UQZNaKomh26TQELx06ZSYaqg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751555185; c=relaxed/simple; bh=ikTqWXQKfbjPFbU0K9Du1LIpq9e/8XjKPRP06Guaw5E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=itCN9BBHXEsL2367wJ2OcTy8IwsLjWZqG3b8atK1ApeWkgle97Lut75mms9eBXueMWoe/TqcAm2AsFsXvcccS0a6p3rJWKbW7TKNYA8RT2unKkS2IF3Hn0UDn1wDQzYM+3ZNZrOf2cp3DSaPAcgM7/sxqSw+tyVH5kbKXE7Un+U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=abKyztNs; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="abKyztNs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5195AC4CEE3; Thu, 3 Jul 2025 15:06:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751555184; bh=ikTqWXQKfbjPFbU0K9Du1LIpq9e/8XjKPRP06Guaw5E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=abKyztNs/itJcfg+QRFQPswORkP8d4ReY6Dfa+zqMDkwKqQFOW0kKR7OrutirmZ+r lsh6L/Rpks98MJMdObO4PqyvQSD9BrgH6fTY9ORJnRMVatL4560u1OEwkJYkdzIo/s NLXZTlZzx76hM7YsBmIJr//SVEc+DlotnQquH0/k= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Thomas Zimmermann , Jocelyn Falempe , Dave Airlie , dri-devel@lists.freedesktop.org Subject: [PATCH 6.15 202/263] drm/ast: Fix comment on modeset lock Date: Thu, 3 Jul 2025 16:42:02 +0200 Message-ID: <20250703144012.469107064@linuxfoundation.org> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250703144004.276210867@linuxfoundation.org> References: <20250703144004.276210867@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thomas Zimmermann commit 7cce65f3789e04c0f7668a66563e680d81d54493 upstream. The ast driver protects the commit tail against concurrent reads of the display modes by acquiring a lock. The comment is misleading as the lock is not released in atomic_flush, but at the end of the commit-tail helper. Rewrite the comment. Signed-off-by: Thomas Zimmermann Fixes: 1fe182154984 ("drm/ast: Acquire I/O-register lock in atomic_commit_tail function") Cc: Thomas Zimmermann Cc: Jocelyn Falempe Cc: Dave Airlie Cc: dri-devel@lists.freedesktop.org Cc: # v6.2+ Reviewed-by: Jocelyn Falempe Link: https://lore.kernel.org/r/20250324094520.192974-2-tzimmermann@suse.de Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/ast/ast_mode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/drivers/gpu/drm/ast/ast_mode.c +++ b/drivers/gpu/drm/ast/ast_mode.c @@ -922,9 +922,9 @@ static void ast_mode_config_helper_atomi /* * Concurrent operations could possibly trigger a call to - * drm_connector_helper_funcs.get_modes by trying to read the - * display modes. Protect access to I/O registers by acquiring - * the I/O-register lock. Released in atomic_flush(). + * drm_connector_helper_funcs.get_modes by reading the display + * modes. Protect access to registers by acquiring the modeset + * lock. */ mutex_lock(&ast->modeset_lock); drm_atomic_helper_commit_tail(state);