Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1238843iog; Tue, 14 Jun 2022 02:01:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sgVtQybFeP7iq8SoMM+tshrqGiX0b02Pu3EWcBAjg04dqpG1kk58LmJp9sSsQacCT/bpug X-Received: by 2002:a17:906:ca91:b0:70d:52ca:7e7d with SMTP id js17-20020a170906ca9100b0070d52ca7e7dmr3231600ejb.552.1655197306975; Tue, 14 Jun 2022 02:01:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655197306; cv=none; d=google.com; s=arc-20160816; b=uxhz2jP/QzuDDMHSF5/s+egnl3ff4yJCFDxSYZDhANJOfVSDtH9H8TVBwx/nQIFhaZ PSgkA2ELTshwZBLg8Jj4wrDHZfY96P+KTXhBgUGlXZiDaoycHbu85nD4BKD6XYInXdjt bgNkw3KF0MDc6Df/u9+RzJlMMpze2HH+p3Fg5k0zG9U2ZYjZbSSxRDV0J7j569lM3KmK kNhx+8t8WU5vjpT8K/JrrZQLJUcFOdt8EDziuuCpatbfJ5p00IJk+lepsdmrF9oypHPh Gd2xARwblmnETxT2OuVNRiKB8/xyW/kKcQuiUMnZdk+PIcvt+9a0mz3kVrtek2G+7R6j Gfrg== 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=01j4ea8PbgWlNi5v0zYZJxxY0Tiy59ZXmfVMBYkPEtU=; b=NAE3wHEyLEaiJmSufEzoRQv9stPNqk08IiSUb6fzD44LboDFYZypY1P789au3KmUnN mQUbo88l5awqKilUSjXKQVBl9BtaAWxXoKMraHR2fCAZmcpouED6zFiB4MOhR5EfJJAo wEG/E/g6ve5wiT9ZCRtVEqdGf/f6cklfofPE02PZ3qNwbxfWRj6bWcMsk/sUJcmnUuS7 8eWlDBb46wg8dzXYRbzr0azJHiENuP2LgJ9omQ8lRbiVShnbrWpYbi0zG3LIXFcL01Qj /nnjVi/etn0mKHkjtLZK6w2H64C8NY1aOfg/8X+ZPC11G41FsXIYeKz23K2RT8N66tUf neWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=VUNe+c+T; 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 o2-20020a056402438200b0042b756321f5si12248270edc.104.2022.06.14.02.01.18; Tue, 14 Jun 2022 02:01:46 -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=VUNe+c+T; 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 S1352890AbiFNIks (ORCPT + 99 others); Tue, 14 Jun 2022 04:40:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355547AbiFNIkZ (ORCPT ); Tue, 14 Jun 2022 04:40:25 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A179443389 for ; Tue, 14 Jun 2022 01:38:59 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 5457B1F460; Tue, 14 Jun 2022 08:38:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1655195938; 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=01j4ea8PbgWlNi5v0zYZJxxY0Tiy59ZXmfVMBYkPEtU=; b=VUNe+c+TOepqw10rHOTKPJ7BdHf+m1yLky4f+vCaUmDWeIb4hsFIZPFbM2U99cHenO6fJO B+2cFUohog6oIR/xeuBjYdYbkFe6jZGjuKHueYqEM0agSTeXRh3yZ2I46DbeTbgP9KGoHG rFigcf8M0EJF4Q7Q4cGdjCZwuflvaoo= 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 341182C141; Tue, 14 Jun 2022 08:38:58 +0000 (UTC) Date: Tue, 14 Jun 2022 10:38:57 +0200 From: Petr Mladek To: Peter Geis Cc: John Ogness , 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: 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 18:20:03, Peter Geis wrote: > On Mon, Jun 13, 2022 at 11:11 AM Petr Mladek wrote: > > > > 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? > > This patch permits the panic to come through to the console port. Thank you! > Tested-by: Peter Geis Great news. Thanks a lot for feedback. I guess that the patch is not final. But it seems to be a good direction. Best Regards, Petr