From patchwork Wed Aug 28 19:41:44 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: 1978041 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 4WvFHP0QMSz1yg0 for ; Thu, 29 Aug 2024 05:44:48 +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 1sjOav-0007DC-MH; Wed, 28 Aug 2024 19:44:41 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1sjOat-0007BD-Ce for kernel-team@lists.ubuntu.com; Wed, 28 Aug 2024 19:44:39 +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-1.canonical.com (Postfix) with ESMTPS id 20D703F2F2 for ; Wed, 28 Aug 2024 19:44:39 +0000 (UTC) Received: by mail-pg1-f197.google.com with SMTP id 41be03b00d2f7-5e4df21f22dso840900a12.0 for ; Wed, 28 Aug 2024 12:44:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724874277; x=1725479077; 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=t7SOsZDwDjE2S97PQr8nPyR+LhtMkATYGHzqX9Ajcms=; b=n0KvgpWBTD0cB5dk26dq1bv2rpUiBQQMNTpQoW66fgO5RExvIb/6S/PhaMQ2cG0PIE aRZlwTPsyHj4bfWy9oTNTKylpdVsNNzabHvjvSWn/I5XCtN3pyVw+Fh1uGUJ47wjnoqt XoBoRFm/rD4MSYlULrie+HR+D6pTMJNA0wweTiHMeZoCHf8U1XUliDsoCtxEjBt7Mi0Q KHGPd4HUfFmjEINi33hyP/XQZrXvHmUJge1QKK+UPBRcqvRTbqsv2fh/AU6SvpVF4LTH dmmfiT7mxxd5fqjj0CWAamc/XnHf+s/4e92cIG9Xt8ivr1BchgXyfkbvwIEuLLpYc9F4 7R2Q== X-Gm-Message-State: AOJu0YwVAAASCo4UBVmMZWGX92YYNwj0g2HHJaTX/sTsrviuGGH9eRLm yDcJvA8XTNjeyVwPXX1mEWMFDTx4c152XY/PJWssvdQSZHCpFWouL17Ar6V7cLrAaPsDk/FLK9+ mbeNsUYy2OkXmoe7jIvEALMflZw3kOV+SUPyiocondDxHTtyL2SBsrql8LFaztIFg3K8MRUPtl5 wOOSdD0K8BBg== X-Received: by 2002:a05:6a21:e8a:b0:1cc:dcc9:9549 with SMTP id adf61e73a8af0-1cce162b3a7mr441578637.13.1724874277583; Wed, 28 Aug 2024 12:44:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGRMuJAZyE08mPlNH2sb6ZXu5Jrm/+YrXcjebHFFkdV9flEhhSiEZ8i3kka/AWPTxWk49al6Q== X-Received: by 2002:a05:6a21:e8a:b0:1cc:dcc9:9549 with SMTP id adf61e73a8af0-1cce162b3a7mr441532637.13.1724874276984; Wed, 28 Aug 2024 12:44:36 -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.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Aug 2024 12:44:36 -0700 (PDT) From: Pedro Henrique Kopper To: kernel-team@lists.ubuntu.com Subject: [PATCH 2/5] cpufreq: intel_pstate: Update default EPPs for Meteor Lake Date: Wed, 28 Aug 2024 16:41:44 -0300 Message-ID: <20240828194431.1737399-3-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 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 --- 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)), {} };