Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp598005pxj; Wed, 2 Jun 2021 06:59:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxN2IGLgIbWbozrjxSWDMp7OOq1It4tUkU5s98Jpf1RRUxoJCfQU+OANZSwY0wEUNII59MR X-Received: by 2002:a17:907:ea0:: with SMTP id ho32mr33752196ejc.396.1622642399303; Wed, 02 Jun 2021 06:59:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622642399; cv=none; d=google.com; s=arc-20160816; b=CXVF/aSQyihl3cZet9C70i62P4EUa/KM2OHHfhZh1E8/XFEk071sQWuLQPv4bHi20F WU9R6e+wJVmwbmkFy0+Y3/M2IJVRvhWxtE0K3CziIUTZGdfQWY4d6DDXfuv8xQad2XEs Uq+DYfgjI+hk5GiXg1M8bxNpUSymtRuFCEv676ecYoMXHSh9NCuUNM3Ce2OtLyUXQPRM AIzCnuTYqy+0WrLgg5K3W50+oNjd1KMlu8Nefu/MAAspZ9YETL1bYLXn4Wk3+CoQnEQ7 eNkVoRxI+I3+iQvWRN7fs8A4B/a/Uyc9MBYrdgTHHNWRlXGbt2dkkL5gDNd9zZj/pl7K Ao1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=KRJsa0ayMQWIzyINjK7qaNdBqxhpt3ZV56lIxuqJVss=; b=VFUQgVC5Zt1GHHPecrDiQk3Y+LNSaDVhQa0Si6YXa4DrrVIZROYEcFyXs7JGShSOZR zWgkJoIV5aASbZa2i4Auy5Mjwc82u9N4mssbXJctBhKMDTurv0r7YxLs1cDwWokG2/dn ggenRK0T4/Jps6uGqcGQ7kii0VD9kN68X/7FGq6YX7PWnPKKdD/myFVwT6gyTTUi7id5 Fb4852hVBzHDxWz79D7mZuuAWidc+PCxm5L+0DPpyIY4GoxIJ2Di5+4q/38fMrlp7AyB C7TDUEU4CH7oG5xqVhD4qADf2EGEIYC76uCsvf3xmTHXNrJMFS+u3oQTc/jwAgX+d7Tx Aeog== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l23si23021341ejb.573.2021.06.02.06.59.36; Wed, 02 Jun 2021 06:59:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229880AbhFBN6U (ORCPT + 99 others); Wed, 2 Jun 2021 09:58:20 -0400 Received: from foss.arm.com ([217.140.110.172]:45358 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229586AbhFBN6U (ORCPT ); Wed, 2 Jun 2021 09:58:20 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 701DF1042; Wed, 2 Jun 2021 06:56:36 -0700 (PDT) Received: from e123648.arm.com (unknown [10.57.1.174]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 9D1BF3F73D; Wed, 2 Jun 2021 06:56:32 -0700 (PDT) From: Lukasz Luba To: linux-kernel@vger.kernel.org Cc: linux-pm@vger.kernel.org, peterz@infradead.org, rjw@rjwysocki.net, viresh.kumar@linaro.org, vincent.guittot@linaro.org, qperret@google.com, dietmar.eggemann@arm.com, vincent.donnefort@arm.com, lukasz.luba@arm.com, mingo@redhat.com, juri.lelli@redhat.com, rostedt@goodmis.org, segall@google.com, mgorman@suse.de, bristot@redhat.com Subject: [PATCH 0/2] Add allowed CPU capacity knowledge to EAS Date: Wed, 2 Jun 2021 14:56:07 +0100 Message-Id: <20210602135609.10867-1-lukasz.luba@arm.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, This is a patch set which aims to add knowledge about reduced CPU capacity into the Energy Model (EM) and Energy Aware Scheduler (EAS). Currently the issue is that SchedUtil CPU frequency and EM frequency are not aligned, when there is a CPU thermal capping. This causes an estimation error. This patch set provides the information about allowed CPU capacity into the EM (thanks to thermal pressure signal). This improves the energy estimation. More info about this mechanism can be found in the patches comments. Regards, Lukasz Lukasz Luba (2): sched/fair: Take thermal pressure into account while estimating energy sched/cpufreq: Consider reduced CPU capacity in energy calculation include/linux/energy_model.h | 16 +++++++++++++--- include/linux/sched/cpufreq.h | 2 +- kernel/sched/cpufreq_schedutil.c | 1 + kernel/sched/fair.c | 13 +++++++++++-- 4 files changed, 26 insertions(+), 6 deletions(-) -- 2.17.1