Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp745129iog; Mon, 13 Jun 2022 11:59:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s6pe4+4Y04d27gaWOprRD4z5mrvsJHI04700KQNHalxSEzIhaR4mbikdGzbrRxiQnZBoet X-Received: by 2002:a05:6402:51ce:b0:42f:41c6:4d70 with SMTP id r14-20020a05640251ce00b0042f41c64d70mr1334562edd.335.1655146788840; Mon, 13 Jun 2022 11:59:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655146788; cv=none; d=google.com; s=arc-20160816; b=cdO4Q+ojc2YHU2LH2US0aPOFv35VkejleeWGossUWwiVsgn2sEBeZjsfuaIapCXMyk 8IPFQ0tuVwgI2j4qIULvmCJ9+x76nxr4QRoTMlziNKf52ndJ523bdVf7biVCNW9iSHuT 7m9ZulykXnKcgcN+3nLJNKmD2HAgNAEXSa3kmVo6qlASscn4nIW15QnnypRxM/fTwG9a ozCsdojrB/Uc7Y3YWuQBUCvIPtzJp6p9YAXEE8El4wGMeqIPl6Ijt+LpYv+eH8WasOJU GNueooPUqeAcvr0s3prXxbL4oEDzdPvaQSGwYDk3iYbPbIDO60dXdNdMUum0WYt/R2ms 1dSw== 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=Z7dlidkLU9Um70/JTQTwpR+Dj4Fvy0y6/Lfnd9UP1rE=; b=SqeqyZMNAynxt6jKK6NUzTY9E1rckF8MaBt84agbPl3rCSU0Ozj2zHZenP1M7Otq3u EaPs/Dg8xI+KbTejPpIhgiNW4n4E0Doiz9SfxhHOmpi9MBXPwstMgXV1P9JMf1avxRkb /ZBS4SUunoWwfPsD1tfH2O5ouOLvf5lgXQugJYFA7pMkZYl6LzDjvvOPmPCpWdBWymrM s2kVbq5eI6BehbKs+2k1Xad3X8J/e/pjL/7AlV2PlBJOSsRj1fX78QmkeQ+1FVJJFct7 FtLegu76M70cWdNVmH+HxeKxpt7QFOXjuxWjdjbdZO+StyGnDls/OYYyqVqvVccBLcnn ZMug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="I/O19Pe8"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bs1-20020a056402304100b00425b8cd99c0si8934844edb.370.2022.06.13.11.59.21; Mon, 13 Jun 2022 11:59:48 -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=@suse.com header.s=susede1 header.b="I/O19Pe8"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245743AbiFMSrL (ORCPT + 99 others); Mon, 13 Jun 2022 14:47:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343652AbiFMSqu (ORCPT ); Mon, 13 Jun 2022 14:46:50 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05DFF1408B for ; Mon, 13 Jun 2022 08:11:48 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id B31271F38A; Mon, 13 Jun 2022 15:11:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1655133106; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Z7dlidkLU9Um70/JTQTwpR+Dj4Fvy0y6/Lfnd9UP1rE=; b=I/O19Pe8jF4zHNt89mXvStjN3iRBYt1Ohq4Zq+R3YXICwPKJNbzsqH7Kox8YE8G/wx4zYU +zclLnmUiCvmbqDsT9msRo+dESKcuvEV9xHNIoGXkkSHpo0pG/NuyPI5Q7fsIhGo3RN3lA /NKiMLgv+Nj1N8t1C9qhvuC8+rDYrgI= Received: from suse.cz (unknown [10.100.201.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 57E2F2C141; Mon, 13 Jun 2022 15:11:46 +0000 (UTC) Date: Mon, 13 Jun 2022 17:11:46 +0200 From: Petr Mladek To: John Ogness Cc: Peter Geis , Sergey Senozhatsky , Linux Kernel Mailing List , "open list:ARM/Rockchip SoC..." Subject: Re: [BUG] Threaded printk breaks early debugging Message-ID: References: <87y1y48spg.fsf@jogness.linutronix.de> <87zgihlbst.fsf@jogness.linutronix.de> <87sfo9l2rt.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87sfo9l2rt.fsf@jogness.linutronix.de> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Mon 2022-06-13 04:29:50, John Ogness wrote: > On 2022-06-12, Peter Geis wrote: > > The buffer isn't an issue here, everything is available in dmesg when > > userspace becomes available. Instead some messages bound for the > > serial console are never output. > > OK. Good to know. > > > We run a serial console at 1.5m baud which is significantly higher > > than most SoCs which default to 115200. I have noticed some timing > > differences since the introduction of the threaded console. A > > significant amount of information is dumped very early in the boot > > process (between 0 and 4 seconds into boot), as most drivers are > > probing during this time. It also happens to be when the earlycon > > console hands over to the normal console. There is no abnormal > > debugging enabled, the output is a standard (non-quiet) boot log. The > > question is why is direct mode not triggering during a panic? > > Just to be clear, you are not losing any intermediate messages. Only the > tail end of the kernel log was never printed. Is this correct? > > This may be the same issue being discussed here [0]. > > John Ogness > > [0] https://lore.kernel.org/all/87v8t5l39z.fsf@jogness.linutronix.de If the last messages are missing then it is most likely the same issue. Peter, could you please try if the patch at https://lore.kernel.org/r/YqdSw/fJvnkRbjvc@alley would make any difference? Best Regards, Petr