Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp8324992rwl; Tue, 10 Jan 2023 11:56:04 -0800 (PST) X-Google-Smtp-Source: AMrXdXtbPIDmyJRrKlqAzSeFN2BZL+ddYuPmcAjgFa8Wj/jrxi1UGo19m3FYojvnh8OXGeKOyGKr X-Received: by 2002:a17:906:370a:b0:7c0:a350:9d29 with SMTP id d10-20020a170906370a00b007c0a3509d29mr57527761ejc.18.1673380563935; Tue, 10 Jan 2023 11:56:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673380563; cv=none; d=google.com; s=arc-20160816; b=HMZTMjgQVaEPmEbRT7Ndz1BuTM9h0/JhymMvNsTQjSoQ/x7Mh+LFJpPcNy8cEgWDE/ CUWSPTWVYkwTsqLVV++6kIcAzOex6Z7bxltl2TXC93Vd/qR+WWbO3s20Fz75JAskPRTe bfpcCL2DTy3QDPpMltLnxh31fd2pdizunjMyTa0A7egsNTn73EYgumSGfajZczQsHLH2 7DRgpKG6D4BiJIK6PI4yCruDfSIE+tHNykrkzvbd4GHiBg9kaeN4pWcURu+3a7t4W0vc +enxxPtZH6+n9+YpJtS7iPRv1hPYMSImNHOUofFez1KW43czso2qfytKfHPEd5WbJdTB 3evg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=0tcquH2WPqM6N2QYKoGswqk2PTA6lrKjh3bpNBpXPHI=; b=jgm3cIGkVP01o1sjmNYLhHEmZ7H5YhF+tfhOUU1NXGLfbAEtXGlVPX6u5FPTXdOOoS M+aJn84Wu4dLUdWimm4PW2buldLwbCPe8SYuninPgzKBT6+KzfzqpIryhCqBgTmLWas9 JN67GCzPR1ItQutpxKGYQ3FDIBS80dujmCZdOf8rFjfvB5B1Gs0JuutExPvJ8SpxHvNd qHGFLmAzSfCgB/qgL9P62ybQvqbCVdC0MPal0aoJvNQ2SS544fNwgr6AA5flMSpekqk6 rRb4rR7xC2KrXWg478/EcO3djOKkuklhtDs1cV6DehSWbNK6VA2R7rSPVNWSN5AU+uiX 1J0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AkewyK9i; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cs18-20020a170906dc9200b007c164dc0fabsi12879814ejc.904.2023.01.10.11.55.50; Tue, 10 Jan 2023 11:56:03 -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=@redhat.com header.s=mimecast20190719 header.b=AkewyK9i; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234562AbjAJTXe (ORCPT + 53 others); Tue, 10 Jan 2023 14:23:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231874AbjAJTWp (ORCPT ); Tue, 10 Jan 2023 14:22:45 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26C3D5A8A3 for ; Tue, 10 Jan 2023 11:21:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1673378489; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=0tcquH2WPqM6N2QYKoGswqk2PTA6lrKjh3bpNBpXPHI=; b=AkewyK9iW1bj9APddteJdQc2/4LESAtyU/+3DVBu7SIIQOWc4JUPjQlyoITHqb42Vjejm7 z7uFd+zS11kz8mmDQmrpNXAEZ+be+cjEeK0lXVp9QU1scCx40YA+TQl3Yn49BYI48dPWbT wLiJsthkJ7WHUFK/PTD+yFYP96CYXzQ= Received: from mail-ua1-f71.google.com (mail-ua1-f71.google.com [209.85.222.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-438-A88E9aP9NIO02DFwJ754SQ-1; Tue, 10 Jan 2023 14:21:27 -0500 X-MC-Unique: A88E9aP9NIO02DFwJ754SQ-1 Received: by mail-ua1-f71.google.com with SMTP id o43-20020ab0596e000000b0038421e4c7deso5857430uad.19 for ; Tue, 10 Jan 2023 11:21:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0tcquH2WPqM6N2QYKoGswqk2PTA6lrKjh3bpNBpXPHI=; b=54rFJ7m/yeJ+Z/QQQhehLZHvGGR6ygzYa1yvYlr6s+yDqy/dWtGsKDqFHqD0d3DK3I JBK0bfB+Bm0Fhf5YEdJJjsfaRQX9ZqsDia2BU5LXmBODSMMhJ7bZOeMwiKBu+pMAZzf2 Uya9PwAwj4QTq26vVKGS34h720WQZU8x4AgBZBY4HUX+R/hl8FDBUrqLjhmbno5kH96F Dg2tnuUZAA426ultGLbuqXZHyD0Ufl43C9iDtVsYLA33nuJs7ZgAj6pwVaNZObMfYB/I FmT7HVWY8jHKEa7WEVtwEBY7BbeYzzq4YuF6IyAFwkGNdwScDBrlPQA5BRX3WZujW9WM Xd3Q== X-Gm-Message-State: AFqh2koXhqBliDR70wWrYhK4+NMu9ebRP71HXqFF5XPTsNVALYQ5D0dL C9PhCwoj4WvU6fJUcmnMjvOztm/KM7OdF86cHmYb2xfYr4yn5xPhFbZqybmagWe/FkxI1ncz0jW ZRJ5NInagaM0VHeIdW6XZs4Nz X-Received: by 2002:a67:f149:0:b0:3ce:e2c7:d979 with SMTP id t9-20020a67f149000000b003cee2c7d979mr11336848vsm.30.1673378486531; Tue, 10 Jan 2023 11:21:26 -0800 (PST) X-Received: by 2002:a67:f149:0:b0:3ce:e2c7:d979 with SMTP id t9-20020a67f149000000b003cee2c7d979mr11336829vsm.30.1673378486334; Tue, 10 Jan 2023 11:21:26 -0800 (PST) Received: from vschneid.remote.csb ([154.57.232.159]) by smtp.gmail.com with ESMTPSA id p16-20020a05620a057000b006fa12a74c53sm7534099qkp.61.2023.01.10.11.21.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jan 2023 11:21:25 -0800 (PST) From: Valentin Schneider To: Ricardo Neri 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() In-Reply-To: <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> <20221224052850.GA8245@ranerica-svr.sc.intel.com> Date: Tue, 10 Jan 2023 19:21:23 +0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain 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_NONE, RCVD_IN_MSPIKE_H2,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 23/12/22 21:28, Ricardo Neri wrote: > 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? > No, you're right, clearly I needed that end of the year break - sorry for the noise. > Thanks and BR, > Ricardo