Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp918032pxj; Fri, 4 Jun 2021 01:11:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyg8ivL04Fktz2V0i9cU8m7McDQh84gUZGKVRLssZwM0RDyCI2mqmquKNX5X+X0ikx52k6 X-Received: by 2002:aa7:db93:: with SMTP id u19mr3429856edt.227.1622794289374; Fri, 04 Jun 2021 01:11:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622794289; cv=none; d=google.com; s=arc-20160816; b=mFD6OUX3p6GJXBwct0sqwFLDot5TwU1WQqVulQyh7pPkk+ecEsGXO21ABGoasElPNQ kfSIZA7AOCrS6KQBzD+2Uo+QhUToKy+hN/wLB7ATIgGDzM5Eq/FXQD2OoHW89c1n0rro 89UIn/MhF515GDE4owjRWt7PmlxviWcbA+fQxLAOKXUeI90KfmvUNprpZCgczkG+yYnE 6xqYnD8ZPBwu5/ecjWsZAgJONBrvt0iEovRwLTCDO2uud0WqcR6ueUPWtkgVwyFivzec K29lUPo79kvi1vQ8qNEmIRd3PTvZ3zh9tRjSzBjo20WmsuPojuxkc/W89PEjpQYCNGPD MfUQ== 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=E7Hg2ejMKJX5ixUS9neGVbiEgPNqlPlbxNXC5gIkMJQ=; b=eFMXndrDVroekflZ727YhS8SrUsOgl7wchw4I3D8qkBFF3Kjmz9uBdbo3KGmq2so4x 5KaCH1QFXrmra5AZo8Ir1/siB8//cI9J9osfEcV0mfnIG+J32XCgVm5GimJe12ZMrfb/ t2IQYhKFSxAyovXNiJPXSpPekLS6pgTtodGQyockRz24+Xj5/S3FZSYqfV1D2DSz1vpx VfqHFur4hlOXHAXAJNOom6Fmyn5e9kAqejrR1N2mXYf1zaLKd7FG3TAdx5G3x53TFIH0 lY7ST7aEb1ly/TV1EDYulewAtjTPgixv3ITXkFMy86tT2eXnBsrpkoH/utMSETEFU0EQ zh8g== 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 z9si4625062edr.483.2021.06.04.01.11.06; Fri, 04 Jun 2021 01:11:29 -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 S229959AbhFDIL5 (ORCPT + 99 others); Fri, 4 Jun 2021 04:11:57 -0400 Received: from foss.arm.com ([217.140.110.172]:60448 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229900AbhFDIL5 (ORCPT ); Fri, 4 Jun 2021 04:11:57 -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 E49621063; Fri, 4 Jun 2021 01:10:10 -0700 (PDT) Received: from e123648.arm.com (unknown [10.57.3.252]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 2C5713F719; Fri, 4 Jun 2021 01:10:05 -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, Beata.Michalska@arm.com, mingo@redhat.com, juri.lelli@redhat.com, rostedt@goodmis.org, segall@google.com, mgorman@suse.de, bristot@redhat.com Subject: [PATCH v2 0/2] Add allowed CPU capacity knowledge to EAS Date: Fri, 4 Jun 2021 09:09:52 +0100 Message-Id: <20210604080954.13915-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, The patch set v2 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. Changelog: v2: - clamp the returned value from effective_cpu_util() and avoid irq util scaling issues (Quentin) v1 is available at [1] Regards, Lukasz [1] https://lore.kernel.org/linux-pm/20210602135609.10867-1-lukasz.luba@arm.com/ 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 | 19 +++++++++++++++---- 4 files changed, 30 insertions(+), 8 deletions(-) -- 2.17.1