Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp1511619rwj; Fri, 23 Dec 2022 21:39:43 -0800 (PST) X-Google-Smtp-Source: AMrXdXtQOdyuA4UOhfg3TNze5Ciu9xP7Wd7uaMPkpZDZG007steT0kEeYMHP0c4LdXGqCvSyHgEU X-Received: by 2002:a17:907:c786:b0:7ad:a797:5bb9 with SMTP id tz6-20020a170907c78600b007ada7975bb9mr14019291ejc.29.1671860382763; Fri, 23 Dec 2022 21:39:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671860382; cv=none; d=google.com; s=arc-20160816; b=Etb2L7Z6VaWjA/F3rr8EGfTNQA6PAXBF0zWlFybS2zitEqj4hrjJL3sLZnuGp+7wvk 8GY0YViafxZbKGLgyxuZZ7PdgijGiaGIC+mzxCnCjpXxHwMP0n/G1oItctgqzZTjsemP 4wdne4g/37r/SFf2Jt3wbh4zRoAYojeHIc6r05vBTIHKfbSDgjaeTP3ns7o2ndaYstS2 ndpIwyGAaAJFk/bLgyNYkWrJXPVx74QqpzgX3JoqWhp2TWphCBiX5WlQmI9g0peRqGky TkbUdko4A1CeW1d64HPSYwSjKug/jeehLx87nYxO1Hn/R9Geu4sVkFIy4cOZ8N7ikGlZ rYIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=x0c/80eCHAHyWPlXY5P/0MQuu58T74w3dRrB12Y2cU8=; b=CuotiYBfPok0x6lV/00ri1pfhUPac1xtME2csAuV5KCSVzooFtEfJaEWwevsxOO+3d SiiroYs0/SVqNaAsDCWANXjlJlHohxOdAJTKuwydoX1kCH/VTTRXg1sdwO0Rz4sm41XE Hk8m1C/EDBjJFcwwsn0YKm6N9ngeQQKWYhEGo6ossv8nreCsTx5qRhYdr/MFE+1iN3BT 045T8K837cGylodnOMjWHx3KxVqAKdsLxNsHAQTGJwkNThF3tmRkvK6Aao1la96F1J9I VUKwiOrY9YJXVTKPmkcyorZ0fJKW7W0QGZWXZsTCGfIxYE1fxdJ69ZAr8gRC6cIC9HQq fOyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Y3wtqrMy; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l2-20020a170906a40200b0082ad5e78975si3221028ejz.803.2022.12.23.21.39.28; Fri, 23 Dec 2022 21:39:42 -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=@intel.com header.s=Intel header.b=Y3wtqrMy; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230522AbiLXFUc (ORCPT + 64 others); Sat, 24 Dec 2022 00:20:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbiLXFUZ (ORCPT ); Sat, 24 Dec 2022 00:20:25 -0500 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 116E018688 for ; Fri, 23 Dec 2022 21:20:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671859225; x=1703395225; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=voB+nAyHNEktsQe6rbbt2Lz35Dw3Tx7cQbow3+txWcE=; b=Y3wtqrMyQEHG7+sQ/yg6IUIZd8sAmku10+zO0deLNJYihLWW317jTabW YLn88IkHsDSlscdl097T/l5OV6rR8u50l7wAkh3S8I036Zu8bJLY8Xi5J n3mNbWyldSraGNdBG2UZnDpnT2IHPlVHTqRwbb8nBWnajUkV13TWgIpfU 3e4P7RPg2VjRQiIClUvKQCUmvE9Z3767oIdMiUTQf97AbKFyz74CXowT4 q6Xsp6k1LmvduI/XpP+15r3f9QGVBPsofvSTscmwqssgOuaW6yLmOTBqa R6Ds1jxCo/n0WuYnoFbaKfsTnnII4SXIJY6Np2R8eI9LgF1uTBbct6Y2d Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10570"; a="318050896" X-IronPort-AV: E=Sophos;i="5.96,270,1665471600"; d="scan'208";a="318050896" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Dec 2022 21:20:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10570"; a="645730540" X-IronPort-AV: E=Sophos;i="5.96,270,1665471600"; d="scan'208";a="645730540" Received: from ranerica-svr.sc.intel.com ([172.25.110.23]) by orsmga007.jf.intel.com with ESMTP; 23 Dec 2022 21:20:24 -0800 Date: Fri, 23 Dec 2022 21:28:50 -0800 From: Ricardo Neri To: Valentin Schneider Cc: "Peter Zijlstra (Intel)" , Juri Lelli , Vincent Guittot , Ricardo Neri , "Ravi V. Shankar" , Ben Segall , Daniel Bristot de Oliveira , Dietmar Eggemann , Len Brown , Mel Gorman , "Rafael J. Wysocki" , Srinivas Pandruvada , Steven Rostedt , Tim Chen , x86@kernel.org, linux-kernel@vger.kernel.org, "Tim C . Chen" Subject: Re: [PATCH v2 4/7] sched/fair: Introduce sched_smt_siblings_idle() Message-ID: <20221224052850.GA8245@ranerica-svr.sc.intel.com> References: <20221122203532.15013-1-ricardo.neri-calderon@linux.intel.com> <20221122203532.15013-5-ricardo.neri-calderon@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,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 On Thu, Dec 22, 2022 at 04:56:22PM +0000, Valentin Schneider wrote: > On 22/11/22 12:35, Ricardo Neri wrote: > > Architectures that implement arch_asym_cpu_priority() may need to know the > > idle state of the SMT siblings of a CPU. The scheduler has this information > > and functionality. Expose it. > > > > Move the existing functionality outside of the NUMA code. > > > > test_idle_cores() does something similar without an iteration, did you > consider using that instead? IIUC, test_idle_cores() returns true if there is at least one idle core in the package. In my case, I need to know the idle state of only the SMT siblings of a specific CPU. Am I missing something? Thanks and BR, Ricardo