Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2900079imm; Fri, 20 Jul 2018 06:55:18 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfbjcTydIwBzzfnbTlqwUMZ0+9LWhsjf0RSxFa+xwLsUWVdyxs8OU5UdCoMgE/04HJg3qrS X-Received: by 2002:a63:710d:: with SMTP id m13-v6mr2234239pgc.66.1532094918092; Fri, 20 Jul 2018 06:55:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532094918; cv=none; d=google.com; s=arc-20160816; b=oJY+GUxjzdXwZKGaYRJIhedP9DdSmhIZoxbk8jaobWga0c3USloxWoes1eeQTmevdw 9a1avzK56f/9wB0FG/5w3A91tZxxJpclbmwKQxfJqi99m+06OApl9GhjCwXdYYSHiga5 SvhKDl6i+gRdH7sM+GqapIxvQtYTVGGmaXs7WtAzepuvqRk+TGgt4lsCtcZMipr1cioM aW865xpixwN8Mjbvxdk14oVKkEIP6SESH5a+MZ/2y9PGdQyB9qE/NZl6Tv9E2NOw51+I /bEwJTfq4q2Kp7TY7mgJyszCJ07jzR/2CPu9xQ6Tl6RwJVIhoa5XujiXYlgclcOBwWQV dgrw== 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:arc-authentication-results; bh=xjZ+Bk+zug0PkhkIk3rNFUiuW2GuQjBBhHziGGR7hB0=; b=Jue5iyvbshmvUAR2WM/N2k4ChwLVSC+b3OvoH9oN5CJLSoKRP5fnQly79XtTE3m1WS Vc3QTd/S3/CMDNJfpaWW2GnHWLEnL4zQgtzyXYE2wns144jfTw8elhFhKW09is3FLU1n mBhf5RRBo8AMKzRW6FwhEeb5m5MSNKT0VjcYyqv6nU49qCUelImNf2YGgz9yWIayFHgy szkwxLmtrryDpefRlzIC7GGgoMDMMLQ2nofI5V/cNBKjrL/tOD+BDC/wuaDQP/S8+R4C Nog5NiAbijqI6uka7NooH00h9/Wbxlx/a5V3Cso66a4cButZEVv3363V2hGw/UXHK4GH 1HNg== ARC-Authentication-Results: i=1; mx.google.com; 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 p17-v6si1932992pfd.76.2018.07.20.06.55.03; Fri, 20 Jul 2018 06:55:18 -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; 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 S1731891AbeGTOmj (ORCPT + 99 others); Fri, 20 Jul 2018 10:42:39 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:36686 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727693AbeGTOmj (ORCPT ); Fri, 20 Jul 2018 10:42:39 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 50D4F80D; Fri, 20 Jul 2018 06:54:14 -0700 (PDT) Received: from e105550-lin.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CB9BE3F73C; Fri, 20 Jul 2018 06:54:12 -0700 (PDT) Date: Fri, 20 Jul 2018 14:54:10 +0100 From: Morten Rasmussen To: Quentin Perret Cc: peterz@infradead.org, mingo@redhat.com, valentin.schneider@arm.com, dietmar.eggemann@arm.com, vincent.guittot@linaro.org, gaku.inami.xh@renesas.com, linux-kernel@vger.kernel.org Subject: Re: [PATCHv4 11/12] sched/core: Disable SD_ASYM_CPUCAPACITY for root_domains without asymmetry Message-ID: <20180720135410.GD19287@e105550-lin.cambridge.arm.com> References: <1530699470-29808-1-git-send-email-morten.rasmussen@arm.com> <1530699470-29808-12-git-send-email-morten.rasmussen@arm.com> <20180705133142.GD32579@e108498-lin.cambridge.arm.com> <20180705141349.GD8596@e105550-lin.cambridge.arm.com> <20180705150311.GE32579@e108498-lin.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180705150311.GE32579@e108498-lin.cambridge.arm.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 05, 2018 at 04:03:11PM +0100, Quentin Perret wrote: > On Thursday 05 Jul 2018 at 15:13:49 (+0100), Morten Rasmussen wrote: > > 3. Detecting the flag in generic kernel/sched/* code means that all > > architectures will pay the for the overhead when building/rebuilding the > > sched_domain hierarchy, and all architectures that sets the cpu > > capacities to asymmetric will set the flag whether they like it or not. > > I'm not sure if this is a problem. > > That is true as well ... > > > > > In the end it is really about how much of this we want in generic code > > and how much we hide in arch/, and if we dare to touch the sched_domain > > build code ;-) > > Right so you can argue that the arch code is here to give you a > system-level information, and that if the scheduler wants to virtually > split that system, then it's its job to make sure that happens properly. > That is exactly what your patch does (IIUC), and I now think that this > is a very sensible middle-ground option. But this is debatable so I'm > interested to see what others think :-) I went ahead an hacked up some patches that sets the flag automatically as part of the sched_domain build process. I posted them so people can have a look: 1532093554-30504-1-git-send-email-morten.rasmussen@arm.com With those patches this patch has to be reverted/dropped. Morten