From patchwork Wed Sep 4 14:07:32 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: 1980856 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 4WzPXt1gRYz1yhr for ; Thu, 5 Sep 2024 00:10:54 +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 1slqic-0005hU-AG; Wed, 04 Sep 2024 14:10:46 +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 1slqiZ-0005dq-Vf for kernel-team@lists.ubuntu.com; Wed, 04 Sep 2024 14:10:44 +0000 Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) (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 8FF933FA55 for ; Wed, 4 Sep 2024 14:10:43 +0000 (UTC) Received: by mail-pg1-f197.google.com with SMTP id 41be03b00d2f7-7cd98f27becso6987182a12.3 for ; Wed, 04 Sep 2024 07:10:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725459042; x=1726063842; 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=uQVBEwIPnN2bvdn4sdoLEfplZVUqDXyqeTRXsQEvvkE=; b=UpZOgk0pAjrWGEcNF6gRC+QGjdI038GUmSwZ2B6vXV+oEg2eGa4fTAux7zFBZhs+jo tl4sCs6G1z0o4/r1oInsRBqw+9v/c5/tAE724iz6w6hvseA1pqIKE6u+AVDrSiHLHtPK ZbIxFAqHYPTrWXVo9xgFK5PhUjlBnRQKZXn3GCMyalxgd5izUeP+JSmiumVNt4mfYEWA wFhOHjxtjhN01bfuUloXMIVe3T1jbJhB/J7i49DnXo/Gy5SBsvf+5jQs9p2Qxqe031Nw 0loABC5UcFun8tG+cbwWvLR3rxDWFz9bzIeYw2RzNjpteDPX4njad/3mEK7HlBxrX7rj lo9w== X-Gm-Message-State: AOJu0YzmMARWn9vB9IsxHFuZEafa/Oq2biXohmt9wzUgf6gT5uWOVY2f ypDRRW3eqcbRLuCw9ugmhYLgGjO37oU7Fad4EIusyg0JqjVwDtt+Q8j3LLwy1ZT4h7Wl2VrGZMC gFByHPgVrK1UcRpYI06Hr3N57ZICcNAhtaiqibpuqi2mhSNIpp8znE1BGi5w9/tRc+Ar/Uew1vv ijl+Arh1sL1A== X-Received: by 2002:a05:6300:4044:b0:1be:c33e:1357 with SMTP id adf61e73a8af0-1cecf757febmr17961624637.34.1725459041911; Wed, 04 Sep 2024 07:10:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF9R+75N3ou5AzR3QQ/Enp/uFMemPhQidLNs3SkMAaas5L5MbwrfT67fscKgMN8N3U5Kczb9g== X-Received: by 2002:a05:6300:4044:b0:1be:c33e:1357 with SMTP id adf61e73a8af0-1cecf757febmr17961571637.34.1725459041385; Wed, 04 Sep 2024 07:10:41 -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.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2024 07:10:41 -0700 (PDT) From: Pedro Henrique Kopper To: kernel-team@lists.ubuntu.com Subject: [SRU][N][PATCH 3/5 v2] cpufreq: intel_pstate: Update Meteor Lake EPPs Date: Wed, 4 Sep 2024 11:07:32 -0300 Message-ID: <20240904141033.819456-4-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 the default balance_performance EPP to 64. This gives better performance and also perf/watt compared to current value of 115. For example: Speedometer 2.1 score: +19% Perf/watt: +5.25% Webxprt 4 score score: +12% Perf/watt: +6.12% 3DMark Wildlife extreme unlimited score score: +3.2% Perf/watt: +11.5% Geekbench6 MT score: +2.14% Perf/watt: +0.32% Also update balance_power EPP default to 179. With this change: Video Playback power is reduced by 52% Team video conference power is reduced by 35% With Power profile daemon now sets balance_power EPP on DC instead of balance_performance, updating balance_power EPP will help to extend battery life. Signed-off-by: Srinivas Pandruvada Signed-off-by: Rafael J. Wysocki Signed-off-by: Pedro Henrique Kopper (cherry picked from commit 809830e40526765f5dbea68ef1704dc056864c34) Signed-off-by: Pedro Henrique Kopper --- drivers/cpufreq/intel_pstate.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index 18ba78cdf6ed..0c52fe2ef310 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c @@ -3429,10 +3429,10 @@ static const struct x86_cpu_id intel_epp_default[] = { * which can result in one core turbo frequency for * AlderLake Mobile CPUs. */ - 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)), + X86_MATCH_VFM(INTEL_ALDERLAKE_L, HWP_SET_DEF_BALANCE_PERF_EPP(102)), + X86_MATCH_VFM(INTEL_SAPPHIRERAPIDS_X, HWP_SET_DEF_BALANCE_PERF_EPP(32)), + X86_MATCH_VFM(INTEL_METEORLAKE_L, HWP_SET_EPP_VALUES(HWP_EPP_POWERSAVE, + 179, 64, 16)), {} };