Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1506188iol; Fri, 10 Jun 2022 08:51:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjHJYniuanhGeKi5nE1w1uAbTHYL2hv+sgWpLDoI9kxYBgYSPqAFWQABH8vDtl935+6gNt X-Received: by 2002:a05:6402:1941:b0:413:2b5f:9074 with SMTP id f1-20020a056402194100b004132b5f9074mr52222451edz.414.1654876297495; Fri, 10 Jun 2022 08:51:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654876297; cv=none; d=google.com; s=arc-20160816; b=UFUk8IMI7p0LWeCiov0sjU8n7kXNsfipBj3JtQAZR4FMs2V1HP+P7SPi3ggrs+pMBP mMl7URQZXZyF3gD5f0IkLJcAlpRO42nGyJMUeN/RzEzlDpJsyEigGrugtcZxeU/Pz01n SGOdYyS491VZrOiGbPMilHY8/5sYJ/iygXGXTYvmJnvjs6V0BqmXlJHvA5UDBEqOSIAS 8oe2GU3gGlPifA9ST40g/iN2LBhKamvfC03jjnY8b2jgz/z/12KwYM8s9C54SmG/WSkC WMH3SAC4RUrmZ1H1iVuC42xkW1aEmVczxHRenZT9dt8Nsol8OjcHgUtyCsLtf/aX6QAv TVJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=i/irLIUiOU3R1KbdYEek7Nb2Y14nGCRWA/qsrIaXAgY=; b=D2YeEShgFeqgPZqGa72kmV6Lf2R5xLYyS3kS2RtIBrCJO2/4PjZ+cbRVh6RTPAWEcJ zLFKn2w1w6uwP9GDyw+Lzs3mnaqfclT74TVGtPXMcsxPWew63a8OWYmjxzHhTVq8HG3W +za4+ZYtyAjIDoGA8qUIzQ9DyykohwO3Wb4C9YJhjZrQKnvTnIEdKWkv9XHc5k2xRmqK 1y6T2npGo9oI/JGh7el/LGjvlR1gM4vEL101A7tbyAvXDfURK0UkrtCHtNhwYt3+GmTv ypuRQokQOnX/pGOiriVMRN3Aba+PqvQOpCZPfrJN1nhyJpWBBY8ZEumhdgheDKJRQDbV SVVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Eqh6khc+; dkim=neutral (no key) header.i=@linutronix.de header.b=+lRnT2ox; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hc35-20020a17090716a300b00711fe0e94d1si8493212ejc.811.2022.06.10.08.51.08; Fri, 10 Jun 2022 08:51:37 -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=@linutronix.de header.s=2020 header.b=Eqh6khc+; dkim=neutral (no key) header.i=@linutronix.de header.b=+lRnT2ox; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242689AbiFJPFU (ORCPT + 99 others); Fri, 10 Jun 2022 11:05:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229515AbiFJPFS (ORCPT ); Fri, 10 Jun 2022 11:05:18 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AD4B63504 for ; Fri, 10 Jun 2022 08:05:17 -0700 (PDT) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1654873515; h=from:from:reply-to:subject:subject: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=i/irLIUiOU3R1KbdYEek7Nb2Y14nGCRWA/qsrIaXAgY=; b=Eqh6khc+lVpttb+8is7HqjuKWhoj/qFv8BYfDRbkiNecbpTxYYbcErvSA+lNQB5h7j0OLD 1R+jqBiPibSohGo1WPoO1GX8S6M140BdX7oEnnbRMrKjc7qHjET1xol/+4EFqKOkGgM0HE CRj19Hxhpcc544QcVw6wwCe/muc4MkPjRhnIbp4B6Rye7+kLG1ugyvYlxIxbQBUAjNgeZZ B1hv1RLGy3NYGvgc/2zcaZMy7CxcfB+AyK7z6zis9xBqbQbFETrowv/H8tdZUS7CAL67SI 2DEfYiT5jknalJ9TUWsKY4hEtWUDnnallyRmts37TSutS+h2UJNSbFQgbM857w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1654873515; h=from:from:reply-to:subject:subject: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=i/irLIUiOU3R1KbdYEek7Nb2Y14nGCRWA/qsrIaXAgY=; b=+lRnT2ox4AONfHl8lL1FxwRMHR0+vmqWE6twbUeEw1YLaFKBMH0DWjSeKd5tf7aNXVbWLm kR5ZCP2f2PBbA1Ag== To: Peter Geis Cc: Petr Mladek , Sergey Senozhatsky , Linux Kernel Mailing List , "open list:ARM/Rockchip SoC..." Subject: Re: [BUG] Threaded printk breaks early debugging In-Reply-To: References: Date: Fri, 10 Jun 2022 17:11:15 +0206 Message-ID: <87y1y48spg.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,INVALID_DATE_TZ_ABSURD, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 Hi Peter, On 2022-06-10, Peter Geis wrote: > However I've run into an issue debugging early boot issues. Anything > that causes the kernel threading system to die (for example here, a > NPE) causes the boot console to halt before it outputs the error. A null pointer exception should trigger a panic, which will cause printk to enter direct mode for the oops. It should be just as effective as before introducing the printing kthreads. Can you please provide a test case or patch that will trigger the problem you refer to? > Would it be possible to have both a kconfig option and a runtime > option to toggle printk_fallback_preferred_direct()? Currently I've > had to force it at all times while debugging. It would be trivial to provide a boot parameter for this behavior, but I think we first need to see a real problem and also see if we can fix that problem. John Ogness