From patchwork Wed Aug 28 19:41:45 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: 1978043 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 4WvFHR4bm1z1yfy for ; Thu, 29 Aug 2024 05:44:51 +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 1sjOax-0007EP-B5; Wed, 28 Aug 2024 19:44:43 +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 1sjOau-0007Br-M0 for kernel-team@lists.ubuntu.com; Wed, 28 Aug 2024 19:44:40 +0000 Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) (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 734AB3F297 for ; Wed, 28 Aug 2024 19:44:40 +0000 (UTC) Received: by mail-pf1-f199.google.com with SMTP id d2e1a72fcca58-714484a692dso855690b3a.1 for ; Wed, 28 Aug 2024 12:44:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724874279; x=1725479079; 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=7K8tGy6dWb1Ty1QLr9QZWZrrv+FV/J01tplBSfZ0jxg=; b=MBktvA5XWQL4I6GjIMnEG9Gd+GhurGEQx5XHxen14OPrGzCgIP33wC1HYJWdO4MzYz 1UuWYUGvGkR0ZvIZ7BUi7SElUcJYRmqu3I0w8Y+eo4Nhv2hiPkHpZCbIkAXEzvwKZ8Jt 3bDBFPETydu/vuwluLfSI6JGwIN3QSMBFmhSwvAfyNtl85cMrYhEiylyp9bngQzmIDUS vrAk7zillE72nqyI9Sf7emAHFPZ0a/10dbWJ/HJfE0N79TKbn4RtTr5CHjLZL37l0AEZ 5Yu89pUAPLffKoc4qDVTlf1IyfBKZA7f8R+ite1UhHzkp1LHipxGss3hLdJfVUsyArdn nQrg== X-Gm-Message-State: AOJu0YxjMM6BC2bhxcqriR0gApdiC2i7lwdUyQxrBodriFs+iZgDiu5m nxFzXvgRaV/TT+bUt8aSA8S57G+jJzTnGfVipI0z2mY4hcqDW7s4kBvzj6iPlD564PrauGyPS6T rlYxnnajStKrgTOeMCOl4bh/5ayMOd2bu2bmdKUUXdAygZrfaj8bebEXhsxcJrYJYy9oltnFWB8 TQFXz+QkSQHQ== X-Received: by 2002:a05:6a20:6a11:b0:1c6:b0cc:c44b with SMTP id adf61e73a8af0-1cce16968b5mr346124637.19.1724874278835; Wed, 28 Aug 2024 12:44:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEs+UO5Yv8NgtRrYKCHPwQZCNTMTNHdmbbxDUVZIMh+geVaYc1r1ejtqVXLjojFz1U8Fu+/eA== X-Received: by 2002:a05:6a20:6a11:b0:1c6:b0cc:c44b with SMTP id adf61e73a8af0-1cce16968b5mr346097637.19.1724874278305; Wed, 28 Aug 2024 12:44:38 -0700 (PDT) Received: from capivara.cloud ([186.250.11.100]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71434253dbesm10485974b3a.76.2024.08.28.12.44.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Aug 2024 12:44:38 -0700 (PDT) From: Pedro Henrique Kopper To: kernel-team@lists.ubuntu.com Subject: [PATCH 3/5] cpufreq: intel_pstate: Update Meteor Lake EPPs Date: Wed, 28 Aug 2024 16:41:45 -0300 Message-ID: <20240828194431.1737399-4-pedro.kopper@canonical.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240828194431.1737399-1-pedro.kopper@canonical.com> References: <20240828194431.1737399-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 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 --- 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)), {} };