Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3776178yba; Tue, 7 May 2019 06:57:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxbGAVF+FHJhxaYYa2craGZjc4jjFKJeDB2GlUqv0cK4BEX3aDd20wmsrsWdGzyPB2RWpxm X-Received: by 2002:a65:4c4c:: with SMTP id l12mr14662840pgr.404.1557237445654; Tue, 07 May 2019 06:57:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557237445; cv=none; d=google.com; s=arc-20160816; b=rkYD+KaPmE7o8EfbSpPtoC8r+Ro1GGYC0L0rUckt5Z97bQvt9Oco/t23Ctz16AR1ln //CYjJB535/WldAaG90TdRFmJanbjF5dVRvr5hPiJcXbAAudjNgpL1/GDoZReiDxj5Ni oaH1CKx7+rQE5tUaygZ3zrpmRPmY2mzVvImiqNZ8DWoILJAr7tNww1F2XyAN6hfaxW0e Fg3R4XUXWH2o1Ax3y26JUUbta9ve1nTHNz4bHzhETcLuj5g/JpV1lqlffvTMg6emsbUT azZXpL07s1+gSS7NeOHRjj45h1k77qXbaImUXnCueWBoTBTUNrPiUrFcnVYaLXXkLsMO pc1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=GL4GdceTvSBDxGp9W+MspMxjOoV99Lda4j4e4jx38nI=; b=nd9qHURbXvMz4sNMLkRyTtc06dhNp3YVg1mYA1jhRsPXIgCKj1xpyk3ukjYNs73E67 BdALJOhLTeMYyWxkBny6Fa6U+gbAUlN1MAtDw3OYOfcKANmbcsH1SFLEWbnnPTbWJLNu tnyGkKPPKQ2YP8ynJD4ZWGe/BPVf8syS9aj7CLTo3Hroj6AjM084n5006Je/qU+orToQ VZy1JX+rv2WitGuIjbXqjiVaTr4g3nu40WrXSDWRWnPkyBz/X07c4GEnsTZiEq9iSghm dLr5CdkSpPP2WsYrs+k2R4Wp/+6ZPqf++xE9zqYsm8a/WPaitxmdMZjj+UIWAkCrp2ca dXmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=llFcOTK+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h185si19966410pfc.241.2019.05.07.06.57.10; Tue, 07 May 2019 06:57:25 -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=pass header.i=@linaro.org header.s=google header.b=llFcOTK+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726914AbfEGNzx (ORCPT + 99 others); Tue, 7 May 2019 09:55:53 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:45456 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726906AbfEGNzv (ORCPT ); Tue, 7 May 2019 09:55:51 -0400 Received: by mail-lj1-f196.google.com with SMTP id r76so3352622lja.12 for ; Tue, 07 May 2019 06:55:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GL4GdceTvSBDxGp9W+MspMxjOoV99Lda4j4e4jx38nI=; b=llFcOTK+JkPns+fb4NcOVv0q5GX/MkbEvLVrRcmQmQuLjeReEygm2oo4TQK2ESIoeC qpk+7qDr4E2vZHh/7r5kzvVev7KuXcBa94RdAlDSZP2KJ1Gt9mKrytjoRTEWRABSm1fZ 2M02NrzjG4ijQ3/UySGQh39ERffrUwLnuy1nIvh+Q7uRXxsht53qaV3OwxnySPLs1LXb VG7PrdYlT+fKUQ2qDmc491dlWBX/1kNkD0W7E4VaZjRKEnDoKkCF8F3X+M3FU6bhgOvq MU8xYZ9sk/52vBJFW7GguZBMYBs6u4/tgJQqvutUuyLjJfmy3b2nMc0CGdCqbUtaVsII jd3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GL4GdceTvSBDxGp9W+MspMxjOoV99Lda4j4e4jx38nI=; b=Sm+kV54U5xyxqAbeIdhLAYmTJOLbuMYf3lXvmKRSxHiRvteX3E3zQqmCwQdt6gN4v6 ssZAa4rvMxCEnG0r3OpsNfur8evqwmVxxqtbK+mBB/7nY5tehWjFEVVA9QF6T31EGD/W KgDV7O680/Ns+KQvY3imnRGHu0bNzgmZjwtbxjWu+mWwRkbc9k1fDct0hSg3+Q62aMX8 0IhawcmAwOmkd9uxajfhHFCpLiRGRThf1398++LJXzwCKdWp7Bia2+47eWT3NbMh4O9z 9M5mc8Gd0PB7rZQ9l0xuFTKZtLf/bUk/5OMyeP3VCa/LL71gX8T4Dl7NjPu70OqXhGpU STog== X-Gm-Message-State: APjAAAXT2Jt2A/yq3kokqGuivNxWLTA6bs9q3QlXwFQlwu1lkV0NsiC6 DagbUq3Hz7fmEfl8zr/JSwHscbFQAcvSIUeectsugC7x7BI= X-Received: by 2002:a2e:d1a:: with SMTP id 26mr17526393ljn.147.1557237348745; Tue, 07 May 2019 06:55:48 -0700 (PDT) MIME-Version: 1.0 References: <20190506044836.2914-1-luca.abeni@santannapisa.it> <20190506044836.2914-2-luca.abeni@santannapisa.it> <20190507134850.yreebscc3zigfmtd@queper01-lin> In-Reply-To: <20190507134850.yreebscc3zigfmtd@queper01-lin> From: Vincent Guittot Date: Tue, 7 May 2019 15:55:37 +0200 Message-ID: Subject: Re: [RFC PATCH 1/6] sched/dl: Improve deadline admission control for asymmetric CPU capacities To: Quentin Perret Cc: Luca Abeni , linux-kernel , Greg Kroah-Hartman , "Rafael J . Wysocki" , Ingo Molnar , Peter Zijlstra , "Paul E . McKenney" , Joel Fernandes , Luc Van Oostenryck , Morten Rasmussen , Juri Lelli , Daniel Bristot de Oliveira , Patrick Bellasi , Tommaso Cucinotta Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 7 May 2019 at 15:48, 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 ? I was looking at the same point. Also this doesn't take into account if the cpu is offline Do we also need of the line below in set_rq_online + rq->rd->rd_capacity += arch_scale_cpu_capacity(NULL, cpu_of(rq)); building the sched_domain seems a better place to set rq->rd->rd_capacity > > > per_cpu(cpu_scale, cpu) = capacity; > > } > > Thanks, > Quentin