From patchwork Wed Sep 4 14:07:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pedro Henrique Kopper X-Patchwork-Id: 1980857 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WzPXt1wm4z1ynP for ; Thu, 5 Sep 2024 00:10:53 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1slqia-0005eq-UF; Wed, 04 Sep 2024 14:10:44 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1slqiY-0005d5-Tr for kernel-team@lists.ubuntu.com; Wed, 04 Sep 2024 14:10:42 +0000 Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 6D2993FA50 for ; Wed, 4 Sep 2024 14:10:42 +0000 (UTC) Received: by mail-pg1-f198.google.com with SMTP id 41be03b00d2f7-7cf546bbcffso6049458a12.1 for ; Wed, 04 Sep 2024 07:10:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725459040; x=1726063840; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GZsn/BNPl8kvwf3gWBPhBJohzKj3Emtkz3SJqp2RK4U=; b=GXQG+BaIJWGL+v0DSfRZEEAjzeQeYeeNnehuJbjEzr5X2NBgHhwv5NEaO5tThIGtw+ RPOItGFFNP4164bkMQu388w+c+KzQ/liEmmCDglaSZHKVTd3KXK/c/UCV7uGYeTfThhj EX3bId7zx6W+NR0/cIdwO2+NUhybnQPMYDph+yilUXtFEcduelA5e5iiBQdY637s2zHW imq5w7wIgKzHai8/bgde5QtOj6KRCpn+SEIamLGZLdLPX/KTYPZByTC4sJZCINWghXBo QocjMnpZum7Ynx11N4E4s5ZIGXnih4+kezpk82ymLTrGWoxK3DDU8jTJAzUMNHhBr9PH Kt+Q== X-Gm-Message-State: AOJu0YzKnKDi4Pyg1ysQ5YRkoAFCm4WInDzlQoKNMhBmY+PVtZatShUE EUFLVogfG+uX8+mXZYxbtDvXQrdvA6wqZeXJT+PGfbS3gJQWSH78CebZfCEk+xqgOS8U1O0o+u0 OWXxDrWAiniFwgriIhokdTZphSwaWiFp8WK6YQyyLAxj7nkQEQHCbj6kYjAXftw+pspn8qH9cAm YRD/1x0fdBnQ== X-Received: by 2002:a17:90a:5107:b0:2d8:812e:e3cb with SMTP id 98e67ed59e1d1-2d8972c23abmr12068823a91.22.1725459040431; Wed, 04 Sep 2024 07:10:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEqMZTk/7G/NrbxIlHVu9dVehOC9RkzJAh7x36+FtwsAYbwGmjgQgVQoUdBgXeXO9CgCuu2XA== X-Received: by 2002:a17:90a:5107:b0:2d8:812e:e3cb with SMTP id 98e67ed59e1d1-2d8972c23abmr12068794a91.22.1725459040027; Wed, 04 Sep 2024 07:10:40 -0700 (PDT) Received: from localhost.localdomain ([186.250.11.100]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7d4fbd85b0asm1728611a12.17.2024.09.04.07.10.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2024 07:10:39 -0700 (PDT) From: Pedro Henrique Kopper To: kernel-team@lists.ubuntu.com Subject: [SRU][N][PATCH 2/5 v2] cpufreq: intel_pstate: Update default EPPs for Meteor Lake Date: Wed, 4 Sep 2024 11:07:31 -0300 Message-ID: <20240904141033.819456-3-pedro.kopper@canonical.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240904141033.819456-1-pedro.kopper@canonical.com> References: <20240904141033.819456-1-pedro.kopper@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Srinivas Pandruvada BugLink: https://bugs.launchpad.net/bugs/2077470 Update default balanced_performance EPP to 115 and performance EPP to 16. Changing the balanced_performance EPP has better performance/watt compared to default powerup EPP value of 128. Changing the performance EPP to 0x10 shows reduced power for similar performance as EPP 0. On small form factor devices this is beneficial as lower power results in lower CPU and skin temperature. This results in reduced thermal throttling and higher performance. Signed-off-by: Srinivas Pandruvada Signed-off-by: Rafael J. Wysocki Signed-off-by: Pedro Henrique Kopper (cherry picked from commit 324b47e53a03951510ef2ebacce3e6e158114580) Signed-off-by: Pedro Henrique Kopper --- drivers/cpufreq/intel_pstate.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index 58dbfe9b76ae..18ba78cdf6ed 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c @@ -3431,6 +3431,8 @@ static const struct x86_cpu_id intel_epp_default[] = { */ X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_L, HWP_SET_DEF_BALANCE_PERF_EPP(102)), X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X, HWP_SET_DEF_BALANCE_PERF_EPP(32)), + X86_MATCH_INTEL_FAM6_MODEL(METEORLAKE_L, HWP_SET_EPP_VALUES(HWP_EPP_POWERSAVE, + HWP_EPP_BALANCE_POWERSAVE, 115, 16)), {} };