Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4995190imm; Tue, 31 Jul 2018 03:55:53 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf3NR/KgYW8V96f+L6QF3l45duzs30HynIaHVRvgim2f+1wMdpewzK84XfJjZi6jpZmcEDC X-Received: by 2002:a63:8b44:: with SMTP id j65-v6mr20093403pge.248.1533034553526; Tue, 31 Jul 2018 03:55:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533034553; cv=none; d=google.com; s=arc-20160816; b=i9/5c7BZJIXamVGv0HpT9urI51HFfkkPNKDp8PZduV3AQa6OJsF2a5Qn1Yrg1Z4lfk 1GtezK4jMtIbJN8tirjBHMC/wnllE6XFaVW0hI0DRJ4AZrpXisx8lxsGZHRmmUszB7pL jC8AiueMq+jPuhMkf8J/9ZHRcbUi1LE00l3qgqmfI0Y4mpA4fEPCnkF0p2k6L9IjYx6C S27uNLh+XRyY2RwHxLOmiAQydc8NSgUOre6droXGF4QaTIrxU3rVygvM6jR6wMz2t0zE 89jb5E9Gy9zJpB77dAzxf4Bv5aMEyiFtNNO/QYZG1YNey0Dag59xJp6jDjEieJCosT7U KBNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=FcdI9rjTkKiuULTOFsgzi5GJs4af8bJ2DcdC90ZF9Bk=; b=RojN7yMhvOPTWwoaEFQ5Fmv6kL/mrzSo2SYAHKsz0GRvYTjAFuzG5YCPQ6i7OwM+zE Xg/HLwj/886lauXcem5PLXNrUeDLtNV/5GxzWUEitBDYXEXnLRvc5zn/4sCa41iOEVTZ FSgeqqYO9U6sBOJIKUvIQaolZSRQLky8ZpeZMdoxN+SSE85OmJj0q/GDGp9YQFOb5eOB kT07kx+27XO6noZ2h75uBqDfvUkxLeKsUL7FxoDoWpTtrRS48JZEbVD55XV1L8UCZsql slIIGYIaW5XHsPJF2GgtwO5tqZHiB3uKp1pdJ0Mt1edmMy2r7j8ilQ23UGRghT1PEBWl 6sfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=j+q5hTER; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d24-v6si12349477plr.178.2018.07.31.03.55.38; Tue, 31 Jul 2018 03:55:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=j+q5hTER; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732006AbeGaMdo (ORCPT + 99 others); Tue, 31 Jul 2018 08:33:44 -0400 Received: from merlin.infradead.org ([205.233.59.134]:54772 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731342AbeGaMdo (ORCPT ); Tue, 31 Jul 2018 08:33:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=FcdI9rjTkKiuULTOFsgzi5GJs4af8bJ2DcdC90ZF9Bk=; b=j+q5hTERlzwtXNVSD689DJaDQ 2azz4Bu/o9bQ/6mj979RK8q/p2Ko3zuUU+MsqzVe87ifQSBmq2rKuFXa3eUVJFvqdaPf091dqKjY/ e8na4t0hoqDcqx/gweqBF7E+tOfkAPVVyng5p/cw10ulEUM44xx3m3FiC7DsDdEXEA2RZ1H1/3IMq 1ov7NGkxf41eIVq5GXpCPPyQzVL7wf2yzC8OrZDq5u9n6j/P61I2u2zPpU8HdQ8WGuED+69Cb3FcS oczBf43yEFvK2BMIBHoXh/X8LIbEE94oyClXfo0nDYnngIdUSGyzZqDEmvFG3Tv/ZxAcVntEyyL+n LS2A+Na/Q==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fkSHo-0005Kp-K6; Tue, 31 Jul 2018 10:53:52 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 012522026833B; Tue, 31 Jul 2018 12:53:49 +0200 (CEST) Date: Tue, 31 Jul 2018 12:53:49 +0200 From: Peter Zijlstra To: Morten Rasmussen Cc: mingo@redhat.com, valentin.schneider@arm.com, dietmar.eggemann@arm.com, vincent.guittot@linaro.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 0/4] sched/topology: Set SD_ASYM_CPUCAPACITY flag automatically Message-ID: <20180731105349.GQ2476@hirez.programming.kicks-ass.net> References: <1532093554-30504-1-git-send-email-morten.rasmussen@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1532093554-30504-1-git-send-email-morten.rasmussen@arm.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 20, 2018 at 02:32:30PM +0100, Morten Rasmussen wrote: > The SD_ASYM_CPUCAPACITY flag has been around for some time now with no code to > actually set it. Android has carried patches to do this out-of-tree in the > meantime. The flag is meant to indicate cpu capacity asymmetry and is set at > the topology level where the sched_domain spans all available cpu capacity in > the system, i.e. all core types are visible, for any cpu in the system. > > The flag was merged as being a topology flag meaning that architecture had to > provide the flag explicitly, however when mixed with cpusets splitting the > system into multiple root_domains the flag can't be set without knowledge about > the cpusets. Rather than exposing cpusets to architecture code this patch set > moves the responsibility for setting the flag to generic topology code which is > simpler and make the code architecture agnostic. > > Morten Rasmussen (4): > sched/topology: SD_ASYM_CPUCAPACITY flag detection > drivers/base/arch_topology: Rebuild sched_domain hierarchy when > capacities change > arch/arm64: Rebuild sched_domain hierarchy when cpu capacity changes > arch/arm: Rebuild sched_domain hierarchy when cpu capacity changes > > arch/arm/include/asm/topology.h | 3 ++ > arch/arm64/include/asm/topology.h | 3 ++ > drivers/base/arch_topology.c | 26 +++++++++++++ > include/linux/arch_topology.h | 1 + > include/linux/sched/topology.h | 2 +- > kernel/sched/topology.c | 81 ++++++++++++++++++++++++++++++++++++--- > 6 files changed, 109 insertions(+), 7 deletions(-) I've picked up the lot; Thanks!