Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp2592658rdb; Wed, 6 Sep 2023 09:03:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEXRrLIqPT6hsu3CteJEF5LDhRhjeaOme1mpmh0/hvErqtcANJWzE2TAcONyNmFktq4VXBp X-Received: by 2002:a05:6402:607:b0:52a:1c3c:2ecf with SMTP id n7-20020a056402060700b0052a1c3c2ecfmr2340414edv.28.1694016229270; Wed, 06 Sep 2023 09:03:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694016229; cv=none; d=google.com; s=arc-20160816; b=hjhz/9plK+bliany6/oIq/pMRBKnmEf9dRdqZQ2fBEocY/Y1GSVYlolHBl2FJp9MPc YJJT87v2LkHBsnYAMcCv0DvKUb0d7tONSEMLFDLNu6NxKS2zdUdyDF3xjPjHY4RTqqBs rvjReARFGX2UkDohtTPcGeKoQnRCTsJy+nyjOaofbybP4jgEbE092olSj37CAKHVWn7k DnbVIF3zFEYy/WAi7KowjxMa7b5bvBp1SKVtdBeN2c0rkM9/mUAbru+3sI9coMcHTnw2 caVu8EFv5b8huLM6pJEe6SvhBliDLqZVG02+SSXYYG4STPtg2UTm4y/8enZ3EObj8ux+ B/jw== 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:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=aU/SRPj1IuLDfiCIJHA1VJoQ63Ua05D6o0qSop4J5+o=; fh=6mxHNjAtFZE0cKHEEG+nGV6sjcP2Gy5NDNK5ANpD+2c=; b=xON2mNwkuPyZQkz/FMoK3UUY72vFwImwpsZdRksXQtRedimkKVvlGQcLMAGyc3COOy kEiC2WpHRzCOsSU8corfpX9MET9s/BdQjFO2a1/kOoiR1OtP+kV0FMASr07JL7GMR+sR UfZHFyuBQGlaM7znICWHCdGtbyunaLy6kZk8gxC6B1t/FL86ZK0g2hEcFadAamoNxc7u WDBUWKYHrXIZwnMKywMsWTZy/MbHfH7KFYdb5LOJ1fxv31kTUxZU0XNE4hD3+5Hz8k0n Znw5E4S/Y4vjhqdeVQY0aaa00QWwM707yms9LClxGW3t9vpKikeABSb0HyinilDeQQ+y 0GwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="SacT/kN1"; 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 h8-20020aa7de08000000b0052a0fd83709si9318118edv.540.2023.09.06.09.03.07; Wed, 06 Sep 2023 09:03:49 -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="SacT/kN1"; 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 S241090AbjIFNIV (ORCPT + 99 others); Wed, 6 Sep 2023 09:08:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbjIFNIU (ORCPT ); Wed, 6 Sep 2023 09:08:20 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D776CC7 for ; Wed, 6 Sep 2023 06:08:17 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 694E4C433C8; Wed, 6 Sep 2023 13:08:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694005696; bh=q5UnNoIfDw2T6R2bmsCTlYu42NHHujjkDP1szlKTbB0=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=SacT/kN1kenGL/QEd9lzT+gCmIKj4LKhAm5aGiqPrm3ZrvxN9fHaqB5ao/qrQyO+m RmSqi5QfrIwpEf3owWBmfChp2qN15F4FJ8mF6AGx5/QfrU6lJNUS8R63IjnZHydEDw 8U+sWFTkEYzxge432X7NoNqvqGrxOP0o853VrxulwXgj4RNMy9O0mz7QNeLvy0t1X+ jpjWHoSmSyQ0sa1f/U65djTxUfQsaRcqZV4/A/ODheRT2Ns+lDi072Yh/oWlZjh/QC NZoEOAcDC9ApFT5odfDPZ9a4GoUFh2dZz1lpmY6tyU3AEuXzCY1IaRaGeS6rOzqehd jwbK9upiEZrow== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 05BF4CE0FF4; Wed, 6 Sep 2023 06:08:16 -0700 (PDT) Date: Wed, 6 Sep 2023 06:08:16 -0700 From: "Paul E. McKenney" To: Valentin Schneider Cc: linux-kernel@vger.kernel.org, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com Subject: Re: "Dying CPU not properly vacated" splat Message-ID: Reply-To: paulmck@kernel.org References: <20220425173320.GX4285@paulmck-ThinkPad-P17-Gen-1> <20220426000328.GY4285@paulmck-ThinkPad-P17-Gen-1> <20220426162445.GG4285@paulmck-ThinkPad-P17-Gen-1> <20220622195856.GA1694215@paulmck-ThinkPad-P17-Gen-1> <20220705172342.GB1790663@paulmck-ThinkPad-P17-Gen-1> 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_BLOCKED,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 Tue, Aug 02, 2022 at 10:30:02AM +0100, Valentin Schneider wrote: > On 05/07/22 10:23, Paul E. McKenney wrote: > > The second of these occurred near shutdown, but the first was quite some > > time before shutdown. In case that makes a difference. > > > > I have not seen this since. > > > > Any other diagnostics I should add? > > > > Sorry, I let this get buried to the bottom of my inbox :( > > I've had another look at rcutorture.c but just like for > rcu_torture_reader(), I don't see any obvious culprit (no > kthread_set_per_cpu() usage)). > > One thing I think would help is a scheduling trace (say sched_switch, > sched_wakeup and cpuhp*, combined with ftrace_dump_on_oops + panic_on_warn > ?) - that should at least tell us if the issue is in the wakeup placement > (if the task gets placed on a dying CPU *after* CPUHP_AP_ACTIVE), or in the > balance_push() mechanism (the task was *already* on the CPU when it started > dying and never moved away). > > Neither make sense to me, but it has to be somewhere in there... And given that it has been more than a year since I have seen this, I am considering it to be fixed, whether purposefully or accidentally. Thanx, Paul