Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3811586yba; Tue, 7 May 2019 07:28:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqxWaCl2yIv5OB6UJIyoL0uWFXVupCb7gRI1B0j0JsEJUv4w8x4MBtMSnQbEmT+qpXREQky2 X-Received: by 2002:a63:1b11:: with SMTP id b17mr39955903pgb.207.1557239325619; Tue, 07 May 2019 07:28:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557239325; cv=none; d=google.com; s=arc-20160816; b=DWbG2UtWQlfX3mt8jdI2XifClwtlEbMfeChLFA0uTUYkJ6fVABYzRn9GUXXaQ+hI1q fm4iw34scFQs2g93ncBzDIXbe5Obb6NVEFOyVMF7nbHJEajlyVc9tCSnxAxRtNdtDPzC Pcu4CBitOVixamsZb6of1Heo+xR+QV3ChgsyaFkEeoEfP8xtKECOJcCMfm5RaW5iStg2 8wRyFH3bvi6Gbe/TcpYIGg6XLI1djKtB+D7biiSWF4gYGzAUIjQsS7q7fYqLf4v2yYOT xaDl4Xj+VIyKBXIYXKQs3/6Mc6ysRSQIYM97PgunaYfjfwR7TkLh0UNEwQurtrK4KagC b2UA== 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:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=H0xVZSVeieya72cE5yrT8l1cY+QA36hnKG4/hIlfF2Q=; b=Fyn+kEDBubTm8xOWtaqZZNfRveXRQir3kfqnR4oG9czWt8YNjxv3y+9pVtQ3rMaMoQ gmxu1TfSflHTtreTAdxsBSz117mZfDQ8cahddkR2O3MoSJ3dNMO/HaUIJ3eTIG6HM7Z3 kctx1gBNP5Uqoe82+y5p23MOB0Iy0hueN2Do108qKqNzNU+F/414stemYGuSOp1s0uB1 HUpIcCeNjPCnGUm1woaGmj7vo+9Du64LC8WjZfVuaomiLax2vnsEDVTWHtzfEgatoScv WkVSLvM250vFDwuNxZ6ovjwsQihcNVT/oJKfqAuSEZXIrDbg5XjtSNar6lDsEVneTaZm YFfQ== 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 k3si20720992pgm.264.2019.05.07.07.28.28; Tue, 07 May 2019 07:28:45 -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 S1726674AbfEGO0G (ORCPT + 99 others); Tue, 7 May 2019 10:26:06 -0400 Received: from mail.santannapisa.it ([193.205.80.98]:64096 "EHLO mail.santannapisa.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726340AbfEGO0G (ORCPT ); Tue, 7 May 2019 10:26:06 -0400 Received: from [83.43.182.198] (account l.abeni@santannapisa.it HELO nowhere) by santannapisa.it (CommuniGate Pro SMTP 6.1.11) with ESMTPSA id 138898608; Tue, 07 May 2019 16:26:03 +0200 Date: Tue, 7 May 2019 16:25:23 +0200 From: luca abeni To: Quentin Perret 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: <20190507162523.6a405d48@nowhere> In-Reply-To: <20190507134850.yreebscc3zigfmtd@queper01-lin> References: <20190506044836.2914-1-luca.abeni@santannapisa.it> <20190506044836.2914-2-luca.abeni@santannapisa.it> <20190507134850.yreebscc3zigfmtd@queper01-lin> Organization: Scuola Superiore S.Anna X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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... 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 :) Thanks, Luca > > > per_cpu(cpu_scale, cpu) = capacity; > > } > > Thanks, > Quentin