Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2717989rwb; Fri, 20 Jan 2023 06:36:38 -0800 (PST) X-Google-Smtp-Source: AMrXdXvlEH27esIRDjwcdTgJdv1qoxUm9oIjgS8kEjI00oeYblzTYlr6s6hTPY8bWZo3WTq6nlIg X-Received: by 2002:a17:90b:2389:b0:225:d190:f16c with SMTP id mr9-20020a17090b238900b00225d190f16cmr15431061pjb.21.1674225397797; Fri, 20 Jan 2023 06:36:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674225397; cv=none; d=google.com; s=arc-20160816; b=HySNtKglGu/AZy4pA5RiEtuEsLruTzLaSLFS09jw18nAVWLpxHALbv0avKoJyJ1yrk V9VyKSM3cnRmM797+cv+gd2ZOA+KsHS4/y+NaIFYnkJmVl9EnShkndaKtV10gvf58r+3 UbwmI2k+7tirwLJC5v0dGHG/GPfFJ5I4KzSjmVFtLmAXVsa+s5o5JuHxNpcHa9a/7U02 wCTrpY7xDJkTWdQSm0kMku7+/LcIcwjjCPhT3ngFvM0xeIbypuUEjPNf638kQ2DKcMPd kHwzk/AL73VnVQi66vDrQxoilQarJnOvE/3AIJPl7x9mZaxsJZziGy39yB9jWyhLU1El 4aSA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=L3lWsSzu5I7PAjiLeIG9/N+HmbwBbnm+s91e1F3CY40=; b=QgrorO8m0QwPQQ73HPck/S/3VrPWHFdKD/J8F6rqYAsk2JwgoXrMgsyJp7CR3lnIF6 NJNg9d80pttR5zIpi3TQmb/CAPETKKGzxhi9KGJG/yjKqevCpqezK6y/FHvrsiFNQcbm KBIW3oeEiOL9+fGxmnDBVrsXVUyAH2AtmliJ48/KFJmYP0jta1ng4T6lzk0OoL6PC2V8 NQopRv9ZdDkZQVtxoHQvpr9hlMKJTI3A4S4PvW326rsAFrD0Bp4eeD0E4gOGcPoA4rQu gYBxkCpio0/QyANWf3YkdJ/LSLCl900OhA27sXAqfuy37TF/tPAdejM2ievHhWga4vkR 2m0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uhcNop+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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o12-20020a6548cc000000b00476e3bafe6dsi42310139pgs.481.2023.01.20.06.36.31; Fri, 20 Jan 2023 06:36:37 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=uhcNop+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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229923AbjATNox (ORCPT + 49 others); Fri, 20 Jan 2023 08:44:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbjATNou (ORCPT ); Fri, 20 Jan 2023 08:44:50 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 924E86CCF2; Fri, 20 Jan 2023 05:44:49 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 2CFDA61F50; Fri, 20 Jan 2023 13:44:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A2F3C433EF; Fri, 20 Jan 2023 13:44:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1674222288; bh=Vx0Ly4/3FYSIZHj8WshPhEigMtjpQJssbX6/OvRC0Vs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uhcNop+tkx4/VgWHWf2r7USeTlryrpu4HsZOfu1C7MIAzxx8Z0XZvoKeej1TQk+b6 yLs5DpWsgsZRryoNWPjnQ+SyTZzDcdUrkCtK1ehSEvS1Avws+S9Qa3ihwX6P21gMCt A2L7qKgmYb5MQZmFAQ32FKHbITcI4wsesDTbPn6A= Date: Fri, 20 Jan 2023 14:44:46 +0100 From: Greg Kroah-Hartman To: Joel Fernandes Cc: linux-kernel@vger.kernel.org, Frederic Weisbecker , "Paul E. McKenney" , Zhouyi Zhou , Will Deacon , Marc Zyngier , rcu , Frederic Weisbecker , Ingo Molnar , "Rafael J. Wysocki" , Thomas Gleixner Subject: Re: [PATCH] tick/nohz: Fix cpu_is_hotpluggable() by checking with nohz subsystem Message-ID: References: <37171A49-82E9-4008-9B5B-1CEEDC9B653E@joelfernandes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <37171A49-82E9-4008-9B5B-1CEEDC9B653E@joelfernandes.org> X-Spam-Status: No, score=-7.1 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 Fri, Jan 20, 2023 at 08:32:30AM -0500, Joel Fernandes wrote: > > > > On Jan 20, 2023, at 2:05 AM, Greg Kroah-Hartman wrote: > > > > On Thu, Jan 19, 2023 at 08:44:35PM +0000, Joel Fernandes (Google) wrote: > >> For CONFIG_NO_HZ_FULL systems, the tick_do_timer_cpu cannot be offlined. > >> However, cpu_is_hotpluggable() still returns true for those CPUs. This causes > >> torture tests that do offlining to end up trying to offline this CPU causing > >> test failures. Such failure happens on all architectures. > >> > >> Fix it by asking the opinion of the nohz subsystem on whether the CPU can > >> be hotplugged. > >> > >> [ Apply Frederic Weisbecker feedback on refactoring tick_nohz_cpu_down(). ] > >> > >> Cc: Frederic Weisbecker > >> Cc: "Paul E. McKenney" > >> Cc: Zhouyi Zhou > >> Cc: Will Deacon > >> Cc: Marc Zyngier > >> Cc: rcu > >> Fixes: 2987557f52b9 ("driver-core/cpu: Expose hotpluggability to the rest of the kernel") > >> Signed-off-by: Joel Fernandes (Google) > > > > Also want to cc: stable on the patch? > > Oh sure, sorry. For some reason I thought Sasha and your AI scripts > were looking at the Linux-kernel list as well. Or are they, and a Cc > to stable is just to be doubly sure? As per the rules we have had for the last 15+ years, always add a cc: stable to be sure that the patch will be considered for stable releases. If not, you are on you own and sometimes we might notice it, others not. See: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for the details. thanks, greg k-h