Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1697849ybt; Thu, 2 Jul 2020 11:30:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbAQ2l1KhWsjXnV6NsR6DPzzmQfpl/XEW5n7JrxNlUQ4k5/fUoPpp+7/Tries80PuIJoHB X-Received: by 2002:a50:fe0c:: with SMTP id f12mr30309711edt.360.1593714640327; Thu, 02 Jul 2020 11:30:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593714640; cv=none; d=google.com; s=arc-20160816; b=fDdxpujGIqCGcvO7PmElCE6o65c5DgWqqNujRQQooxSIZuA0CRHdftXUa2KSdHQpSs wAHgmLZJwnAs2CG3K469k7Y7h1UBdLJ93wMmqL1hJYq+jmy2IyIHGiVmSzHCu0wecQ0+ 8X/DRPk4cDUeLt6CYIyhS6TRqoZ/+LWQQllXenrm6nYc2vDrnQGujkIHz8R/+bLBXBSR 7a6gmwJn05Thrx6xDIJqjY1SnewhEqW+HpggUQr9LHGLkYveUQ350mciLkN4cv4L63eO uWt/og+xr7sm6JwjHm+jx8FTrRygBS1G7FxDmqS14zf8X2np3j2rYr29tKYg9664ie+l Bd/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=GWwLjJ/XWpbpY76BABllPtHKzlT9eW2Nt8PU2yNBbAM=; b=eY4EkYIW0R/C/cy983JBgeVzHq7SGx30kujjseBcOupZL8HjUzU1HLX0s/oLF+iJx0 F9pZgImiwuVu8UIfLzqHJ883kRZhAVh6lgs9iFrda0+ueP7od2aZdREzeNAteBJty5wQ DDWM+f5xEalyavIABBeqKfe9qLKQT8ZH5X6o11b7SHFVZ1cjNQvws7tC68eFlpo5N4SB hsJrc5YXqb86WRMNCmWhOtsoiWFIeZg0MceIhNQJ4G+pHI2y/GZMeXBi9ioZDioX61/c vw2MS9YL7DVz4zdcj9k9aN7v9QSlXx8Hc/LsLdGz8ED603nvdGhnBnBt4tCVrUePT6iF TDnw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm4si6722021edb.143.2020.07.02.11.30.17; Thu, 02 Jul 2020 11:30:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728042AbgGBSaA (ORCPT + 99 others); Thu, 2 Jul 2020 14:30:00 -0400 Received: from foss.arm.com ([217.140.110.172]:51682 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726997AbgGBSaA (ORCPT ); Thu, 2 Jul 2020 14:30:00 -0400 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 2D4FA1FB; Thu, 2 Jul 2020 11:30:00 -0700 (PDT) Received: from [192.168.178.2] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1FC863F71E; Thu, 2 Jul 2020 11:29:58 -0700 (PDT) Subject: Re: [PATCH v3 6/7] sched/topology: Introduce SD metaflag for flags needing > 1 groups To: Valentin Schneider , linux-kernel@vger.kernel.org Cc: Peter Zijlstra , mingo@kernel.org, vincent.guittot@linaro.org, morten.rasmussen@arm.com References: <20200701190656.10126-1-valentin.schneider@arm.com> <20200701190656.10126-7-valentin.schneider@arm.com> From: Dietmar Eggemann Message-ID: Date: Thu, 2 Jul 2020 20:29:27 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200701190656.10126-7-valentin.schneider@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/07/2020 21:06, Valentin Schneider wrote: [...] > @@ -105,16 +122,18 @@ SD_FLAG(SD_SERIALIZE, 8, SDF_SHARED_PARENT) > * Place busy tasks earlier in the domain > * > * SHARED_CHILD: Usually set on the SMT level. Technically could be set further > - * up, but currently assumed to be set from the base domain upwards (see > - * update_top_cache_domain()). > + * up, but currently assumed to be set from the base domain > + * upwards (see update_top_cache_domain()). > */ > -SD_FLAG(SD_ASYM_PACKING, 9, SDF_SHARED_CHILD) > +SD_FLAG(SD_ASYM_PACKING, 9, SDF_SHARED_CHILD | SDF_NEEDS_GROUPS) > > /* > * Prefer to place tasks in a sibling domain > * > * Set up until domains start spanning NUMA nodes. Close to being a SHARED_CHILD > * flag, but cleared below domains with SD_ASYM_CPUCAPACITY. > + * > + * NEEDS_GROUPS: Load balancing flag. > */ > SD_FLAG(SD_PREFER_SIBLING, 10, 0) Related to my comment in [PATCH v3 5/7], maybe you wanted to add SDF_NEEDS_GROUPS for SD_PREFER_SIBLING as well ? This comment 'NEEDS_GROUPS: Load balancing flag.' makes me wondering. Currently, SD_PREFER_SIBLING isn't in SD_DEGENERATE_GROUPS_MASK=0xaef. [...]