Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp458057rdb; Thu, 22 Feb 2024 08:50:08 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVi3aBzb59NnBKZ9gVyNqAhFpJ34ID2a9VihEPzC7m6T51kMj7d350l/z8Xu7jp+NHMV1QC6t/y4VN27DKn1OqpeknlcPB+lTQgwQIAvg== X-Google-Smtp-Source: AGHT+IHc78PxFBxstvoGaDdlYOmQJij9m6KBhdEuse9dhF0lCcDmZvqVRJgOy5hy31tefbTA/4dy X-Received: by 2002:a05:6358:d090:b0:17a:e9db:bc10 with SMTP id jc16-20020a056358d09000b0017ae9dbbc10mr23447008rwb.20.1708620607840; Thu, 22 Feb 2024 08:50:07 -0800 (PST) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id y18-20020a056a00191200b006e488589de4si4409967pfi.297.2024.02.22.08.50.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 08:50:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76874-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=DYcKR5D2; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-76874-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76874-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 99901B24632 for ; Thu, 22 Feb 2024 16:25:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6A14F152DED; Thu, 22 Feb 2024 16:25:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="DYcKR5D2" Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2044.outbound.protection.outlook.com [40.107.93.44]) (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 6803414C5AB; Thu, 22 Feb 2024 16:25:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.93.44 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708619136; cv=fail; b=ayJb7p7r86H1wZZtu4siAgP6pE14yYsS4BJaPxzDM7jbRkDfmbb/E+mXRHy704IgXDhv6MRY0N63nD/aN2rOMstlGORoWehaSzUkMHW+rz+sxmLVWOfofMdqyEiduOwAxFci6+aRs96AUHe5LAzXknMPQvhkFp/TGm+kN2B9BvA= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708619136; c=relaxed/simple; bh=CxxrYfUrnHIk9YsdLjdFg+YL7bqT3gB+OzRqYGtVhh8=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=MtKdwwO4scOlwYEguxd9V7baVYaFSeR4NGs5FeoPLkdQLC3ipq6fFBzAaviVlDLizfYapgzZlbMGQyZd+vkKU4o/6Aiwf9Du1KIs8J3726izeBBM8w82xrJ7QTbNWIkRWcQ49q6cGqty5mXheA/4A+t9cXMRKaT1AlS+zNRlzf4= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=DYcKR5D2; arc=fail smtp.client-ip=40.107.93.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FINb9CdOqwiB6GL1VUqkm3vkTmMe1NNU8dSG7MJ2nNzrjGwbJK6dU81ZTEDBse5Y1rqTlpF8Hj+Li39F8y2TMuPJ99rBIu57lpT7U1QvlT9Ewp+OHo4uNDw8fS39oqIbthtNCCpQm8JqapLkH0SHB7QJRfqvBUh+XxQ/3oTdtOtiH8WU+alGY2wN/L9piZcHzT7nQm4UAhg6GrmRnAFl5mzfvgLTu4VQH2xdgC4XfoDqZ5i9uGGLurG9C+iIj713Q7NwDZ+wZekb8qfPSkc0VX6cBtjiXTQlGmhP/kYxGGFyzAbz/C1DS/HPX1dLm22kwTkx5055AYlLZ4Dkz6w3Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5HS1nTxAMJ4jJWcv/kzaDhy/sq4PKGej8exUWYgLOww=; b=nifyBneb6WAVUSyQ7buLbiRbb/m6UpOUsI/kDo2zPNsonRolnsYhQSqDlE7yX1rjw/DXja6gWdZdJTg9I0en/ufdWSXlH92ONu2GsFB+WwMFvvbQb1dA8VykC/84UqI1UTEeUm94yi4FRRFtEdR9J9cGIeAAazhC/htuEN69P9mwgnIzg7kxzxTGZBaLrQXntT0m0J9C7dS0StFLQi0S/WCn0VEwwOWKL3cK0yiHc2kpfiRHFs9X1/AuEkV+DGzNWML4tWvGR7BJvY6yAILlpgpsTuSethmZWEh5vx9GGcA7RshPxUGxmBfulAEf3vpajUvSs6dtunvhANEsJtJqqQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5HS1nTxAMJ4jJWcv/kzaDhy/sq4PKGej8exUWYgLOww=; b=DYcKR5D2R9ojxiy500DYIUfezKd+FD2gZqhljkNfeSewOz1Vk+1jwWfC2/yeEK9I/Rn6jOl+tW+4Jv4oiqoNKS859wXpIiTXB7S66DEGdrh+5CXmXWVwXOGLjWuQOSV1pJV3bPlWrBnvVaNtQBIg1TdqCxdnqexv+YzfeGYkyVY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from MN0PR12MB6101.namprd12.prod.outlook.com (2603:10b6:208:3cb::10) by MW6PR12MB8914.namprd12.prod.outlook.com (2603:10b6:303:244::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.22; Thu, 22 Feb 2024 16:25:31 +0000 Received: from MN0PR12MB6101.namprd12.prod.outlook.com ([fe80::dd00:9ab5:4d11:2d1a]) by MN0PR12MB6101.namprd12.prod.outlook.com ([fe80::dd00:9ab5:4d11:2d1a%7]) with mapi id 15.20.7316.018; Thu, 22 Feb 2024 16:25:31 +0000 Message-ID: <46329386-c779-4e9c-80b0-c0f01e51d0a5@amd.com> Date: Thu, 22 Feb 2024 10:25:27 -0600 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 2/2] fbcon: Defer console takeover for splash screens to first switch Content-Language: en-US To: Maxime Ripard , Daniel van Vugt Cc: Greg Kroah-Hartman , Helge Deller , Daniel Vetter , =?UTF-8?Q?Thomas_Hellstr=C3=B6m?= , Jani Nikula , "linux-fbdev@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" References: <20240219090239.22568-1-daniel.van.vugt@canonical.com> <20240219090239.22568-2-daniel.van.vugt@canonical.com> From: Mario Limonciello In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DS7PR03CA0261.namprd03.prod.outlook.com (2603:10b6:5:3b3::26) To MN0PR12MB6101.namprd12.prod.outlook.com (2603:10b6:208:3cb::10) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN0PR12MB6101:EE_|MW6PR12MB8914:EE_ X-MS-Office365-Filtering-Correlation-Id: 92c41afe-9120-48a7-daf4-08dc33c2e330 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uq8mri15awSGuZAcfd92+r2jLRHHovz2xRpCtxNNcbiwMq0MQ6KlQL1HH5+4Lwh5cb5TFsvU0SaSUPDRAWsEEhHtyFfGFx7NR8U/bHvSwLbi60cAg+NlkcbNuh/wog78nTYyZC2vgTsifQGI2Xrc714tJr1zY6P1Xqmysj0/fAgZt+dKUIQOyq+FUTsa6qexQLlg0rTc5XFxNku1Sd0/KrpUEq3vkntxsRL7eq1d6/93XaTVfvRQTeUNNarVUgGCNs/gaKxOKT8++6fT696glVQFpDYejdA4TFnjJky9d9w/5OmWYPkPplET6xZHCIb0L+rZe01J9dc/xGGX/SaFb7LLOdDiEnwARQqQ/9fhMpUK9Q4mUUgSEA/4qJS2lPWiQChmlxUSEK9KWqcWhJo0OtYncxDghbIM1ULp7IEYJXvi5YCAVGspwZ0m2riNgEyvDukq7JN7GdDQHNo9+o43S8g/epQyC81fymXMR7ERyPStHN6KBUwYLjmEsd/MxrDiXKrHCWf32SGY0HYS/bGVwKKXNcNHhczpw23Un/rI9mmuqq90qmSHF4KdD0Ur7KxS X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN0PR12MB6101.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(230273577357003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Nms4WlVQSHJzNFM4Y2Q0T2ZaUFVqUU1kNDRaMlBWZU5LdTdNeGxycS9keWF5?= =?utf-8?B?eWE1Q0dDSEVmRU8wd2dXaE1icENtcnA1Zm9FU0ZuVDhhMVN2dWloOCs1bFNy?= =?utf-8?B?QVhKTDRRWVh2eDcwVjNhbTVHYlYvL0tmWldwcjZWM2dxNExFNGlrMlozYnZw?= =?utf-8?B?TTVsZFByVTE5dkxWVUt2WUhMeHlYZ3Y4N3h0MEFyMDlWZUlya0xsTTRSZGZ0?= =?utf-8?B?OHNYeDRTWU5FSTl4VlE4NHZFcXgrVHIySnl4dHJpVGU2WjlFZ21jMndTLzhj?= =?utf-8?B?bDRRSjJ2Mmwyc1FmOW1OSHU1OUZ5ckloZGxYS3NJbzF1cWk3cUl6cEtqc1JU?= =?utf-8?B?ckRJd1E5VytJbUpvT0xDVXVYa0VRblpHSENVM3A3M2ZzZGVMM2Yra2lMaVFr?= =?utf-8?B?Ymg2TCtHRzVwdGNHRHYwMi8vKzhEc1J0RG91d0VIeUZIZ3lqd1dmZytKQ3J6?= =?utf-8?B?K0lISnNvemxMdDB5bmJqUHVvNGxnN1prQVBPSkVpU2EyOXBJK0dpYlVjdEMv?= =?utf-8?B?a05BQld3b1dhZmhQWXRudmRjM3FkM0w2d3pmWm5HcnBuWitZV3BZeEE3VkFJ?= =?utf-8?B?NGxLclZrSTZKZExYaXl0R3JJMWhaN1dXUG1TaHV1Mk1NWUY4RmQrL1Z1S1Mx?= =?utf-8?B?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KWm11Q2Zj?= =?utf-8?B?MW1SS2hkRWdUKzhYNitFWWJzQnRpUkpwaDdDQW40TVJDSDVpaXNBelF5VzBQ?= =?utf-8?B?eERWL2UyQjF6cjFxeHhjOTUzeFUvSkNmRmlMVUJSdTlBdFE2WDZHSTErRFEw?= =?utf-8?B?R0MxK0ZPNnpWRTZKNkZySm9xRlFBdFdUWUhzR3E3M0tUSHpVM0tmMzAwZEZ1?= =?utf-8?B?Nzd3ZUQ5S2o0S3h4eHJnb0tUZWZtL08zTWFJNWFPRlFkWTB5akoydXN6bTdQ?= =?utf-8?B?Y2ZTdEV5WE13QnZUTCt4cERMbHlkQ0FXQVkrOVBrTzNpQWpTUnVDT2VoNzNE?= =?utf-8?B?cVFXU1dCbFd3RGw1Q0VudkdXcUw2Y1BHZXBFVitWQXRhYUMyeUQ4dncwWkxI?= =?utf-8?B?MlBBNWJ0UXgxY0c1Z29VVVNXUXpzTUVwc2lCYXdlb01BMjlrblVQVHk1RTJR?= =?utf-8?B?eTJ2dGRuc1YzT3lTU0VFNkpteXdrOUkwMzMrQ2NMRFBxVCtmcitzendlRWhl?= =?utf-8?B?VEU0MGdlUlNLNldPVE5lVWtycy9wZU5FNmI2K2xJRFE0M0FtM1pmVjFNZk5p?= =?utf-8?Q?aad1LhfD8sBzGi1NuxuLxDnVg?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 92c41afe-9120-48a7-daf4-08dc33c2e330 X-MS-Exchange-CrossTenant-AuthSource: MN0PR12MB6101.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Feb 2024 16:25:31.0162 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ZpSr0Ozllv16ZhscFAnCC6/u1FuDzhRr7pgwuo7+zNYJDv4ts20uFgV1x0TYOPZlhUMcrzvf/G7QqZ173uZSlg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW6PR12MB8914 On 2/22/2024 05:08, Maxime Ripard wrote: > 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. >> >> 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. >> >> 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. >> >> Closes: https://bugs.launchpad.net/bugs/1970069 >> Cc: Mario Limonciello >> Signed-off-by: Daniel van Vugt I did test this series on an Ubuntu userspace and it works as you suggest it should. Tested-by: Mario Limonciello > > 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 The reason for choice is that it keys off a kernel command line parameter that is inconsistent across distributions. For example Ubuntu uses "splash", Fedora used "rhgb" etc. Even the plymouth userspace maintains a list for it's behaviors of what parameters to look for to start at bootup. So the obvious alternative is to clone that list in the kernel.