Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp266792rdb; Thu, 22 Feb 2024 03:08:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXrqm8Mfv/kjl50NeGyuCmcsCtGbh3rODhDkgGrKUWn+1InA4H9f3FPoe2DIzdq0E74mCNKuGUXARUd7EcmsnzJ3weYjSKxsXGqb08A3Q== X-Google-Smtp-Source: AGHT+IHzJhB52saCCczVPB5r/L6UGQylVB+jNrCsAzmsA3x8aLqJ2rY1dSciV8ih006ns2BCr+uJ X-Received: by 2002:a17:902:eccf:b0:1db:f513:28cf with SMTP id a15-20020a170902eccf00b001dbf51328cfmr14063166plh.23.1708600101593; Thu, 22 Feb 2024 03:08:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708600101; cv=pass; d=google.com; s=arc-20160816; b=dVD/RTCTGNEaJICam15wI3/1XsTdk0GLWgBixMItBnJfvBnTnRsoyVk7IOIimTZWRg P4SEiRCJ51lXVuWZHKlO2kZhfrkQ+AM7GJMo0ZKQOwt4ZApKiWmrlFCuyh1Zxp927UgY 79Jxh6Wimtmxe/I4zRaTlnA+6vNC/9ct85D40rPLsfhtT3iC+Cd1TB+NzIJfgH6MOfks qxhU9onrBYSr7+tQTwBlBB7dPDKNN80kt5rbOsvbkuAyfJtDuAn8EG9o0sDNb9JgLlpl dumRhkoUsCCRuzZMgEQp6AcdxVIw9quezd/02zcuk4RX86BuFuq/vH8DSszWMr3Yi4g0 A3qg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=3o+yjEOmzEAHMWmAs/2aQHBmCyuuFhKadyiGa73qocM=; fh=2cjIZIKEHzx8w58gjylvdNswDnfS/1UIUhBFW4D59q0=; b=Z8GK6XrWS9lGYFt0O9F4ML7i74qPWGSEo2qhDZKgCc8SGVvWMNuBYjUsbAlTRLuz3m lIoXW6JY+pHGywD9WWoGiVRT6NqXUJvTwruph5akEyDq5SNhwIklx9UIRUJWLyppNgsT KaeIHLpc3IYlAjU+8pbaTJAzFTlXNDTXeasC6r54xjghzUQmJbCQup/UsIj6fhqIPqoX jx66pzVId9s8QtSLZoYse6ewmExkWcJAyId3QnnNPq2/SMid0/oPrZ7wGspWlYFVWjFX UJB5rh5/qRIR/N1v3WjLAEuGbpSFyZrR09DvWrNpz0pRLf3XB7RUx1DkO1fJQTywUCrc fUSQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="iVhjiO9/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-76384-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76384-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id mc16-20020a1709032b1000b001dc34023543si2933093plb.490.2024.02.22.03.08.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 03:08:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76384-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="iVhjiO9/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-76384-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76384-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4F95C282AD0 for ; Thu, 22 Feb 2024 11:08:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 811573FE47; Thu, 22 Feb 2024 11:08:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iVhjiO9/" 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 A4FD7182D2; Thu, 22 Feb 2024 11:08:14 +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=1708600094; cv=none; b=EKKbQkyYha2EmFvKUd/LsbTq5Re8y/2T0XLGMyvebHO65p7IPGEKp9xBx6bpva6EXT8fko4jGHmd+2+LIjN7AcjY665epzWN2qAwdet89CDb2R2mlAbK4ng7h2aamsejtP6EYh8M13kZyXSKBbF85zYy4M7vX2h1Qsc4bQU5q88= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708600094; c=relaxed/simple; bh=3o+yjEOmzEAHMWmAs/2aQHBmCyuuFhKadyiGa73qocM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lWR+bF8DB3JusLxNv7bMYpRdK2DbttHFjpOiaJctdQQBGZb+17Z2ovb5a3KMYGb1JQ5A/CH50YDYhm8xnIYNJBGaSwYSGLcL6IHRSomhPttnAjh4/YLFWuupS5ApHS1c5SLvg1riOCe21Z4E+uLn5havDBOXDMKQd+ygDuDGud4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iVhjiO9/; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B9DFEC433C7; Thu, 22 Feb 2024 11:08:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708600094; bh=3o+yjEOmzEAHMWmAs/2aQHBmCyuuFhKadyiGa73qocM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iVhjiO9/ryG0HtP5+vJ2YWmbhCXPcsGGNk7emS65u1Cv4J0/9Q2lHzIoUGx2F6l2n lHYnhMONnVOjH4wWbbvfkKqWvI7P4g+PVJo1FkaagQP2gWr3n5PdUvOAYHng85FLno IHz2X9htzZGEBTIQo9QF0WImEF1Dzt7AZ7Bx+sVExZ9pjwobF6m8H4lvHa3gGtRCDj AmQIAttPkrzst/fFIC93ZnH2flF/7F3a63jaYqBlb7+l1qeteVLDQdeRlU1siKLlaS KRlVInkxvJ/u8bJ/1Ty9IhPZ7Pbypd+ov9tAGUoOWoK4bHdHFNxy42DMPQT0nL6bC1 HtgZdqP/vcd0A== Date: Thu, 22 Feb 2024 12:08:11 +0100 From: Maxime Ripard To: Daniel van Vugt Cc: Mario Limonciello , Greg Kroah-Hartman , Helge Deller , Daniel Vetter , Thomas =?utf-8?Q?Hellstr=C3=B6m?= , Jani Nikula , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 2/2] fbcon: Defer console takeover for splash screens to first switch Message-ID: References: <20240219090239.22568-1-daniel.van.vugt@canonical.com> <20240219090239.22568-2-daniel.van.vugt@canonical.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="pvd2vhdd32pzrrsm" Content-Disposition: inline In-Reply-To: <20240219090239.22568-2-daniel.van.vugt@canonical.com> --pvd2vhdd32pzrrsm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Daniel, On Mon, Feb 19, 2024 at 05:02:34PM +0800, Daniel van Vugt wrote: > Until now, deferred console takeover only meant defer until there is > output. But that risks stepping on the toes of userspace splash screens > as console messages may appear before the splash screen. >=20 > This becomes more likely the later the splash screen starts, but even > systems whose splash exists in initrd may not be not immune because they > still rely on racing against all possible kernel messages that might > trigger the fbcon takeover. And those kernel messages are hardware > dependent so what boots silently on one machine may not be so quiet on > the next. We also want to shield users from seeing warnings about their > hardware/firmware that they don't always have the power to fix themselves, > and may not be deemed worthy of fixing by the vendor. >=20 > So now we check the command line for the expectation of userspace splash > (CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER_CONDITION) and if present > then defer fbcon's takeover until the first console switch. In the case > of Plymouth, its value would typically be "splash". This keeps the boot > experience clean and silent so long as the command line requests so. >=20 > Closes: https://bugs.launchpad.net/bugs/1970069 > Cc: Mario Limonciello > Signed-off-by: Daniel van Vugt It's not clear to me why we should want to make it an option? If one strategy is better than the other, and I guess the new one is if you consider it fixes a bug and bothered to submit it upstream, why not just get rid of the old one entirely? I guess my question is: why do we want the choice, and what are the tradeoff each strategy brings? Maxime --pvd2vhdd32pzrrsm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZdcrGgAKCRDj7w1vZxhR xaWTAQCGNckiumaOI6zifOp2sbK3AemQ51LpaqAihgsRhuAKzgD8CyvObKZWGIBl E7dbvsR5McDa3GsUg5v5r9ThU+B/QA8= =1pEj -----END PGP SIGNATURE----- --pvd2vhdd32pzrrsm--