Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3815910yba; Tue, 7 May 2019 07:32:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqyf2ag4vhMmdR6vofdQH+v9ukOIE8i6kEITkWFIjb9O9RwGku+dlufWhSlr04h95AjBxfhZ X-Received: by 2002:a17:902:1d4a:: with SMTP id u10mr35119481plu.272.1557239563431; Tue, 07 May 2019 07:32:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557239563; cv=none; d=google.com; s=arc-20160816; b=gtljmdYWGpOQTLaZZZZnkURL0InwVOrAiamOJvwknW50uAnUcNq6Ew5ZTpnsGJ8U8K 1YGhIKt+0BX9V3mKPZo+Mvq3fq1l93vAC1o2v2SZWuMEXAHlG38a6idW5LsYQaS+B10b gfVsPaMIcLFmkH0qy6rSQ9SlmlD3uabuYz3tR/7yE4jKdUj566u3nWzkystgCHR+/1g/ U9vxVJZCqHRIlX12Q2yBgiv3VMeGFvUQypwYo4tSmi1T4QCpOtb+g66sN+xR+8QE1b/p WPsJTsSElxiO8h/7Ic/KRIqC41QhM56RWg2x9TvRp7DO2UUqeBL6XxME/ogZSPmbG2Bv BFFg== 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; bh=PM+CJe7fOAVHqfO8p7QQzSZlJUYEtd2SzyBqlpvrmV4=; b=d9Rx9zRK8OZSFf3jB4+fXOuUJpnSJvGuv5jCzg+DXDIF1QNr+WgA+zqC5EIYu6nLk0 qGedX7Y8y4oTv5qltbI/+mmMPK95iXxkYeAW+i88YY8Qr48bxpi9ssz830Zx4GjNXdyt AyUeZLUxPCjn5+ocCLycfPXlgmaUISbBMwvvEiUMF8t9so4/xccnwm/fIlqiIjmYM7G9 AujpwgrL+tXaJQ594vlPN8t6ZjwqIlo/N8eBBnASjNjoGHMzDv+QgzJ83W0F94K4P8dR ZUDw25AGUIELbumsI8INM50Y91QuL8722UyF+UGp/J1K5mMFxvr17cK2MeLYan64raHS +OEQ== 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 c139si20549602pfb.161.2019.05.07.07.32.26; Tue, 07 May 2019 07:32:43 -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 S1726695AbfEGObc (ORCPT + 99 others); Tue, 7 May 2019 10:31:32 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:56028 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726403AbfEGObc (ORCPT ); Tue, 7 May 2019 10:31:32 -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 AE06680D; Tue, 7 May 2019 07:31:31 -0700 (PDT) Received: from queper01-lin (queper01-lin.cambridge.arm.com [10.1.195.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2ECE73F5C1; Tue, 7 May 2019 07:31:29 -0700 (PDT) Date: Tue, 7 May 2019 15:31:27 +0100 From: Quentin Perret To: luca abeni Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , "Rafael J . Wysocki" , Ingo Molnar , Peter Zijlstra , Vincent Guittot , "Paul E . McKenney" , Joel Fernandes , Luc Van Oostenryck , Morten Rasmussen , Juri Lelli , Daniel Bristot de Oliveira , Patrick Bellasi , Tommaso Cucinotta Subject: Re: [RFC PATCH 1/6] sched/dl: Improve deadline admission control for asymmetric CPU capacities Message-ID: <20190507143125.cjfhdxngcugqmko3@queper01-lin> References: <20190506044836.2914-1-luca.abeni@santannapisa.it> <20190506044836.2914-2-luca.abeni@santannapisa.it> <20190507134850.yreebscc3zigfmtd@queper01-lin> <20190507162523.6a405d48@nowhere> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190507162523.6a405d48@nowhere> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 07 May 2019 at 16:25:23 (+0200), luca abeni wrote: > On Tue, 7 May 2019 14:48:52 +0100 > Quentin Perret wrote: > > > Hi Luca, > > > > On Monday 06 May 2019 at 06:48:31 (+0200), Luca Abeni wrote: > > > diff --git a/drivers/base/arch_topology.c > > > b/drivers/base/arch_topology.c index edfcf8d982e4..646d6d349d53 > > > 100644 --- a/drivers/base/arch_topology.c > > > +++ b/drivers/base/arch_topology.c > > > @@ -36,6 +36,7 @@ DEFINE_PER_CPU(unsigned long, cpu_scale) = > > > SCHED_CAPACITY_SCALE; > > > void topology_set_cpu_scale(unsigned int cpu, unsigned long > > > capacity) { > > > + topology_update_cpu_capacity(cpu, per_cpu(cpu_scale, cpu), > > > capacity); > > > > Why is that one needed ? Don't you end up re-building the sched > > domains after this anyways ? > > If I remember correctly, this function was called at boot time when the > capacities are assigned to the CPU cores. > > I do not remember if the sched domain was re-built after this call, but > I admit I do not know this part of the kernel very well... Right and things moved recently in this area, see bb1fbdd3c3fd ("sched/topology, drivers/base/arch_topology: Rebuild the sched_domain hierarchy when capacities change") > This achieved the effect of correctly setting up the "rd_capacity" > field, but I do not know if there is a better/simpler way to achieve > the same result :) OK, that's really an implementation detail, so no need to worry too much about it at the RFC stage I suppose :-) Thanks, Quentin