Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2801618rwb; Thu, 29 Sep 2022 15:30:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4raK43K7RCG2P2X3ufgxTGecfG/C41Thy2Eld6tKD5/kAZPDizZn5TT1GhRYaSbRGAbO/C X-Received: by 2002:a17:902:ccc2:b0:178:29f9:5c5e with SMTP id z2-20020a170902ccc200b0017829f95c5emr5328886ple.21.1664490634711; Thu, 29 Sep 2022 15:30:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664490634; cv=none; d=google.com; s=arc-20160816; b=AD4YfN3UPUlUGT1g46fb33Gk4w5IVtFv3MMaYlwHMaiktbPOn51jbq6+MRU6xG99jD nCyOpeYPZ5ybG04CK9NNDCMIF7VMtX9+FT2DCKUMeUw0OoBQ+0Oswk+0L7F2TyCQ2czy Vcw5JCS8G3PSP6akg79ga/tprttsVk5IQBF5G3fZkyYigGi+GazLYqJC1DEwk5OTDLDp OYNmlFunzFP1Ev5AXX3wY9oZmeazEWrdZ/qb5xSaPoPOQqSOVLt3wQSvYx6VGq1+LRY+ hacOyfYYLFGH7M7JSo9AQyAD2HlXk6uRXJ40chXqXV820VnAOBCQVzGDSH5KD8Gj3pKj y9aA== 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=WepCbD55SAugtDDNJNc8d7kk81H5dOJy5U0NMW4QsLs=; b=SRIiLV+OBMJ3/w5z3Eg8+IsR22DtXOPa9T+YLfJvl+JWD8e9p+TU2jGw2iXYZBUBS3 qJDGrZYc5ekLU9uD8a2CkZ+BaQmKpkabZDrjNf8Pk6N6O/9AOX76nPvumdzMoSvJu/9+ j3mWDUhsaIbmRzkwNj8wt0LuS6a58ZarhxPyAHB3qF/4vAQ+RxlH7TY9UvhF2nUB2q1T 9L4jF0o1DHUbDeh/oKM3PTmZ0iVcv1UO2Zd0mtJtV8JH1DYuSgX6bPMNaNtkwMSidiyj Q/e1rZ43Pfx8opmCWBfdUwBRQSjqWBz2dI+surcFXbB0ddZtLOWC/braxmolgZV0vknb dQkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="i+/oAj9n"; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w12-20020a63490c000000b004350783ee63si1085048pga.237.2022.09.29.15.30.21; Thu, 29 Sep 2022 15:30:34 -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=@kernel.org header.s=k20201202 header.b="i+/oAj9n"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229562AbiI2VXA (ORCPT + 99 others); Thu, 29 Sep 2022 17:23:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229551AbiI2VW6 (ORCPT ); Thu, 29 Sep 2022 17:22:58 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E69DCD8E11 for ; Thu, 29 Sep 2022 14:22:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id A79DBB82677 for ; Thu, 29 Sep 2022 21:22:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8B7BC433C1; Thu, 29 Sep 2022 21:22:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664486575; bh=ZQBrV7Cm8QPG0bNDPWceRvng7omwE0U4ca+kAIHCPbU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=i+/oAj9nxCLSoekdUOdRgO4VR5NjohOWFkUcffpqOj0w0xbcl5XlmTWY5ZtvF0238 ish+m54d+veEyHjM1JaececphWaQeYNAjoX7+plpPQ425D9qNrqsVL2AmcokaAn6QL JkUUSBjOCcBswXmGoW1uw/cyXU2SDsoNqWj+yaHvwItLeh2k4McbDSJFK8LlhHvGNj 7K3Cl/3ALcBJ8Tg06hDSbDtX9MGgAgeJGMBqxbHKzKjrjcVsnzbKAho27bOKlJuS58 JpJJ07MQgRTEoXVb4xKE8qExUrap1w8Nu9JYE5vxnL4DU3KET/ud/qcNSOFHQc+Cdm W5oIvQlxNwlqg== Date: Thu, 29 Sep 2022 22:22:50 +0100 From: Conor Dooley To: John Ogness Cc: Conor Dooley , Petr Mladek , Thorsten Leemhuis , senozhatsky@chromium.org, rostedt@goodmis.org, linux-kernel@vger.kernel.org, regressions@lists.linux.dev Subject: Re: [resend][bug] low-probability console lockups since 5.19 Message-ID: References: <98f62903-3d6f-30b4-82ef-3b0460824907@leemhuis.info> <877d1m46c0.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <877d1m46c0.fsf@jogness.linutronix.de> X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Thu, Sep 29, 2022 at 04:19:03PM +0206, John Ogness wrote: > On 2022-09-29, Conor Dooley wrote: > > I will, possibly tonight but probably not, run the bisection again > > with the threaded printer merge reverted. Hopefully it is not filled > > with conflicts if I go that way... > > It might be easier for you to just apply the following patch to run your > tests . This simple patch disables kthread usage. Thanks a million John, restarted bisection from master prior to the merge of the reverts & have ended up finding the actual issue thanks to your hack - a RISC-V specific clocksource change. I'll close the regzbot issue & open a new one against the actual source of my issues. #regzbot invalid: bisection lead me up the garden path It looks like I have an issue that's caused by the PCI controller driver on this SoC* which triggers RCU stalls - but thanks to the clocksource issue the RCU stalls never get reported & the system just locks up. The system locked up in the same place on the kthreads branch so I guess I just got unlucky with my bisection because of that. Thanks again for the hack to bisect with, Conor. * likely due to running the wrong FPGA bitstream, the root port's connection to the cpus is configured by the FPGA fabric. > > John Ogness > > > diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c > index b095fb5f5f61..9679887c0805 100644 > --- a/kernel/printk/printk.c > +++ b/kernel/printk/printk.c > @@ -3605,6 +3605,10 @@ static int __init printk_activate_kthreads(void) > { > struct console *con; > > + /* hack: never activate kthreads */ > + if (!printk_kthreads_available) > + return 0; > + > console_lock(); > printk_kthreads_available = true; > for_each_console(con)