Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp674561rdb; Fri, 8 Sep 2023 12:32:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGGkXMj7o8B1y6fUnDO8mbu6IqacqyhCPg8C1sQq1QzearoBA86BLSWYULhjHhj+RtM5Uym X-Received: by 2002:a05:6402:2054:b0:522:ab06:7213 with SMTP id bc20-20020a056402205400b00522ab067213mr2584564edb.27.1694201542184; Fri, 08 Sep 2023 12:32:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694201542; cv=none; d=google.com; s=arc-20160816; b=ZEVyhur6VYvkgrOapG5IvDmzquvDH8VnwtLwWfoa1joMVX43xobmQJA7G2Z4Q02JOR fEtP3vJ6TXbYDEjdXHF14mGEkcimm5eK0htYGPz0qckI964bvSqyILBhSWbGySfGLYMH n2LSmSsgS0JZNGTD0lTiNj2vcpcthdVYoW7hBkImwoxFy6IPFgGJu2YqfBkW6lGfgru1 q3a77Tin3lp3DpgmkpZgljqoPufeXdmOiDS1kDag3diThSI1zWk5TgeBI/MsWTsLPy9P qDqhJyvvTeGPAo2gpu3gsxzrPs7+FnjDnkyDJWNwnVsQWTXrOjyM2rIXRXE6FHTkfsch wKvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=OGIVLbmXbtisQC2tpf0KxytV/RhBDGc+BkteWXbajGw=; fh=Pj7hn9hSiIBbBUJ0lL1RP4xGgUEUh7gIC6/R4W1gXXs=; b=ROT0EeLX5rQ9QCAMhhuypXotv9t5sxzkPMC+KqkgDNla2dhm6wMdc+YVk+Nr3k4saS a3LMH2HT6A9eeWls3VZ1BtLfR0uRhvqIMUsikCk2aRAYJGjB/VoD4Ho3s8EYxO8fMiGd sPTzd2UnjO74NLSq0kwb3VFlSBH6Mk/gVVJjxPS/PduhaHCZtbz6CUvwgh9tIgW0hrCj YxGJt0fxCTKZyncPGeC8j0nJLL7Owprc3hrS8lOgvUXMn+WWb0FgH2FYBqG1w0k0vR/4 PmQ+ftdzecroAD9vxhwxMi7SlVWTAqDD1bMXa7XU1XjbjIRZdQwDbre1sS0sPlehEuIr CWlw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d22-20020aa7ce16000000b0052e40d2bf5asi1939686edv.124.2023.09.08.12.31.54; Fri, 08 Sep 2023 12:32:22 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244052AbjIHP6u (ORCPT + 99 others); Fri, 8 Sep 2023 11:58:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244128AbjIHP6t (ORCPT ); Fri, 8 Sep 2023 11:58:49 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 299861BF5 for ; Fri, 8 Sep 2023 08:58:42 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D145C150C; Fri, 8 Sep 2023 08:59:19 -0700 (PDT) Received: from [10.57.5.217] (unknown [10.57.5.217]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6C2363F67D; Fri, 8 Sep 2023 08:58:38 -0700 (PDT) Message-ID: Date: Fri, 8 Sep 2023 16:58:31 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: [PATCH v5 10/24] tick/nohz: Move tick_nohz_full_mask declaration outside the #ifdef Content-Language: en-US To: Reinette Chatre , x86@kernel.org, linux-kernel@vger.kernel.org Cc: Fenghua Yu , Thomas Gleixner , Ingo Molnar , Borislav Petkov , H Peter Anvin , Babu Moger , shameerali.kolothum.thodi@huawei.com, D Scott Phillips OS , carl@os.amperecomputing.com, lcherian@marvell.com, bobo.shaobowang@huawei.com, tan.shaopeng@fujitsu.com, xingxin.hx@openanolis.org, baolin.wang@linux.alibaba.com, Jamie Iles , Xin Hao , peternewman@google.com, dfustini@baylibre.com References: <20230728164254.27562-1-james.morse@arm.com> <20230728164254.27562-11-james.morse@arm.com> <989616c3-ea4c-1c9b-b857-6d8bcb4843bd@intel.com> From: James Morse In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE 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 Reinette, On 8/25/23 01:43, Reinette Chatre wrote: > On 8/24/2023 9:55 AM, James Morse wrote: >> On 09/08/2023 23:34, Reinette Chatre wrote: >>> On 7/28/2023 9:42 AM, James Morse wrote: >>>> tick_nohz_full_mask lists the CPUs that are nohz_full. This is only >>>> needed when CONFIG_NO_HZ_FULL is defined. tick_nohz_full_cpu() allows >>>> a specific CPU to be tested against the mask, and evaluates to false >>>> when CONFIG_NO_HZ_FULL is not defined. >>>> >>>> The resctrl code needs to pick a CPU to run some work on, a new helper >>>> prefers housekeeping CPUs by examining the tick_nohz_full_mask. Hiding >>>> the declaration behind #ifdef CONFIG_NO_HZ_FULL forces all the users to >>>> be behind an ifdef too. >>>> >>>> Move the tick_nohz_full_mask declaration, this lets callers drop the >>>> ifdef, and guard access to tick_nohz_full_mask with IS_ENABLED() or >>>> something like tick_nohz_full_cpu(). >>>> >>>> The definition does not need to be moved as any callers should be >>>> removed at compile time unless CONFIG_NO_HZ_FULL is defined. >>> This is outside of the resctrl area. What is the upstreaming >>> plan for this patch? >> >> Once you're happy with the rest of it - we can give the other folk on CC a poke. >> I'd assume changes to this file also go via tip. It would just need an ack from the >> relevant person. > > At the moment this change is buried within a pile of resctrl > changes so we need to make sure that folks are not surprised by this > thinking we are trying to sneak it in. Please note that > CC is currently missing Frederic Weisbecker. Oops, fixed. > I wonder if it may help to change cover letter to be something like > "x86/resctrl and tick/nohz: Monitor ..." Just an idea. I think that would be excessive - the subject of the patch already matches what is normal for that file. I'll move the patch to the top of the series as that makes it clearer that there is no dependency on the rest of the series. Thanks, James