Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1989223rwi; Tue, 11 Oct 2022 03:22:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5qRkp8Li717adjBuXOpFEvhRurHX30rIJcotLo9oyfuXB9+r+nj2n5FWP0R80wpor2OQVo X-Received: by 2002:a17:907:160e:b0:78d:9f3b:612a with SMTP id hb14-20020a170907160e00b0078d9f3b612amr11274257ejc.285.1665483724683; Tue, 11 Oct 2022 03:22:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665483724; cv=none; d=google.com; s=arc-20160816; b=uK9/eO4LEeraxf1P3dgmDLN+9oww6KPipT1DNH+Dlwi4c3kB2A8dhnUVKEsWGn4ha1 d0ahhP0cOgLbVNuVBtYygDQe4K+qFdP62tVqDz4jRf1CZ7qJ+EHGNrqkXRYNLjmz+iVx ZnguButGJS9bgN2NiJtU5dz1kksu7CBiBszyF4OiV6FsPKJCjnscJ2kuBZC0PtroTm90 tufOrxuNXJwUeM+gdF71Wzqej4I6smoc7BCUtmhUXWQjTLoXRnDWNm/u9S0SMyfaBBhx O9XLG0mgu/JsHmnegL2ro7QMvnQwuxUodNWPdi0DZD5hH1wiT8jPOugfmiuGoIc7O4wz DQoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ZMcAAyBurX213ms++6fxs5yYshR15LQEWIK6Brhfq2U=; b=qRvdRhl/NaZ9cwfQvbT+euYqKwwSywf+M7KvpV1E6syluwxqsU7quPCJRSw5w3BT6d Mx7CzFoLLIb9w2GdWc31hyVMFlpzfFNZQ1b16UBAVI7X+CEVAF1SUgkOmfm77hqgzFlA XpPeOs84FSDEOW/VNzkzTjEaJqzTAOGkFMcV5AcIMMNGpqqaP/ZOpAlOl3y0iWlPLfLV 5JMZQVOOGAvTPu57FZcMqLNMORYCA5SdlP5pJ+reQfJjtdbr8NhxcyEpcVzG+eZltvm4 5t57Uih68UcDFdAuc/+gqQkwTBSsJYms43Iw2fVbbHwVwvfo2ESs7jt7cpL/409MdFG8 NNrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=E30jldzj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jr6-20020a170906a98600b0078c73bd90e3si11954582ejb.371.2022.10.11.03.21.31; Tue, 11 Oct 2022 03:22:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=E30jldzj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229758AbiJKJut (ORCPT + 99 others); Tue, 11 Oct 2022 05:50:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229745AbiJKJua (ORCPT ); Tue, 11 Oct 2022 05:50:30 -0400 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FD216715A for ; Tue, 11 Oct 2022 02:50:18 -0700 (PDT) Received: by mail-pj1-x102c.google.com with SMTP id fw14so12033318pjb.3 for ; Tue, 11 Oct 2022 02:50:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ZMcAAyBurX213ms++6fxs5yYshR15LQEWIK6Brhfq2U=; b=E30jldzjDUyedes4Dyz0G7M/yKxEwbf7zvDsjPTux3VYUTaiYNJwgckV4Afjq2WjOR KxgSgvDWZGcXxmegkYa5RqsqnsOFjsNCeN+f/N8/ujUHry2iOrtrN1AZs2RFLbjD4PEv Gois52svXqDPqXy3q+5GtSWlG2iN/KL4ewUZ0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ZMcAAyBurX213ms++6fxs5yYshR15LQEWIK6Brhfq2U=; b=nft4qwEWOun781LHetKEHOMsTct2TRePr2vfM+xi2qBhgDHShe1m+XA0AZbM8kuDm4 JykfO+ddY3SgYrnUeg/duXyNXyXTh8G4LHHngOGZ0NmqjYX4AGzZXxGntEUURGWnUr+8 pSTCEd7tc1obXBC7dESS0w9v9UVX+1UGhZ34RzmslLGBvzBiac1po+nR4gQ1EAwNyVhu 6XxMKZcx7hOoEwIEELFtPv/qE6uurZ3HNkB6Qp6pfj/k9gvCX04H117g9zSbHMLAVDMU EnIQUWCCEat3NbX2DqvJi+vu7WY+ahh3pPuQbmpc0rT/xciEdmyTEMlcuZjhUsBcC8a8 dCMQ== X-Gm-Message-State: ACrzQf1ACHLYQnQzUBru3eXsLZdYm2XKbnDdBKm7ySY7mjFcUedjjnB/ m0lYdnbi845Cxqdn9G+s+4/zQIakzgqckA== X-Received: by 2002:a17:902:d2c6:b0:17f:592b:35dd with SMTP id n6-20020a170902d2c600b0017f592b35ddmr23669488plc.172.1665481817725; Tue, 11 Oct 2022 02:50:17 -0700 (PDT) Received: from google.com ([240f:75:7537:3187:9be2:d006:f7fe:8f60]) by smtp.gmail.com with ESMTPSA id u6-20020a17090a3fc600b001faafa42a9esm7559083pjm.26.2022.10.11.02.50.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Oct 2022 02:50:17 -0700 (PDT) Date: Tue, 11 Oct 2022 18:50:12 +0900 From: Sergey Senozhatsky To: Paul Menzel Cc: Petr Mladek , Sergey Senozhatsky , Greg Kroah-Hartman , linux-serial@vger.kernel.org, LKML Subject: Re: Do not delay boot when printing log to serial console during startup? Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (22/10/11 11:03), Paul Menzel wrote: > > We boot our systems generally with the serial console enabled > `console=ttyS0,115200n8`, and noticed that initializing the console takes at > least one second. [..] > So it looks to me like, that the already recorded messages are printed out > over the serial console first, before it continues. The documentation of > `register_console()` in `kernel/printk/printk.c` confirms that: I guess your console has CON_PRINTBUFFER flag set, so we flush all pending kernel messages on this console after registration. Off the top of my head, you might want to play with the default console loglevel so that we will suppress printing of most of the messages.