From patchwork Wed Aug 28 19:41:47 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: 1978045 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 4WvFHV4Wsqz1yfy for ; Thu, 29 Aug 2024 05:44: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 1sjOb0-0007IY-Ry; Wed, 28 Aug 2024 19:44: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 1sjOax-0007EX-IL for kernel-team@lists.ubuntu.com; Wed, 28 Aug 2024 19:44:43 +0000 Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.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 17A193F297 for ; Wed, 28 Aug 2024 19:44:43 +0000 (UTC) Received: by mail-pf1-f198.google.com with SMTP id d2e1a72fcca58-71439227092so7589545b3a.3 for ; Wed, 28 Aug 2024 12:44:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724874281; x=1725479081; 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=Xuuii4Z+/0YxdT13nDX5nzRE8Vg/2uL6kJ1C88DWXYc=; b=uaEkXatv0c7wSqUNgloUg6K+aGghGfm1PQznaSMzWm7vSfAwJOx+iRssTNNIkEnd71 +3V+YsyfahagBbThLVNHtAEBpCz+hmvwn1xrWaLBmiAi9Wq4zLc1fnjg7OoHDaQrQxOx fQ1Uix3WKMXrXb05AtZvtxVvWaRD5TSjXZWDvqwJailXq8RJfDnotwjL1Rc2gpduqUtL WcDwI6NNkdkkUsUFoHvzV2dcfa4DUwgrW3jxsNTwv+xKy5hDkE9S0w95cQthyDyBYb70 QN8lxJxN3/Jg+gDdXVTzYZaxG8N3m4Lhka+NQ0IrXIDtY4wfNslbw3UkemGus9uBan2z Xdsg== X-Gm-Message-State: AOJu0Yz3b401vNEsyg6BM9djFag48/FAAlMFsmbBiPUnaNmlTcmKksoS 6PZJ6RGrAlcFTyFjszVWAE5xBGC+eV63JXVijoLubEhs5yHmOPPpdh1Afwe4glieoehWiQceKDA C3pLYfM21ewN3XYPLJJgyJMEGpSi0dWlFdub+r2VG0iOz2rgsmMFdtyo/6Xq4pDjY43QT8u5bOL bLLEfqqz6Klw== X-Received: by 2002:a05:6a21:164a:b0:1c3:acd1:5cdd with SMTP id adf61e73a8af0-1cce1125b2emr411093637.47.1724874281534; Wed, 28 Aug 2024 12:44:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH4yRQIZmwDzmMZ1smYTYPNeOeh3FvOY6nuSlY+4+76nTJnc3/7ef+YIWCcf9vZyzEfgt2hPA== X-Received: by 2002:a05:6a21:164a:b0:1c3:acd1:5cdd with SMTP id adf61e73a8af0-1cce1125b2emr411068637.47.1724874281020; Wed, 28 Aug 2024 12:44:41 -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.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Aug 2024 12:44:40 -0700 (PDT) From: Pedro Henrique Kopper To: kernel-team@lists.ubuntu.com Subject: [PATCH 5/5] cpufreq: intel_pstate: Update Balance performance EPP for Emerald Rapids Date: Wed, 28 Aug 2024 16:41:47 -0300 Message-ID: <20240828194431.1737399-6-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" On Intel Emerald Rapids machines, we ship the Energy Performance Preference (EPP) default for balance_performance as 128. However, during an internal investigation together with Intel, we have determined that 32 is a more suitable value. This leads to significant improvements in both performance and energy: POV-Ray: 32% faster | 12% less energy OpenSSL: 12% faster | energy within 1% Build Linux Kernel: 29% faster | 18% less energy Therefore, we should move the default EPP for balance_performance to 32. This is in line with what has already been done for Sapphire Rapids. Signed-off-by: Pedro Henrique Kopper Acked-by: Srinivas Pandruvada Link: https://patch.msgid.link/Zqu6zjVMoiXwROBI@capivara Signed-off-by: Rafael J. Wysocki --- drivers/cpufreq/intel_pstate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index 051a3294581b..13b035469844 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c @@ -3431,6 +3431,7 @@ static const struct x86_cpu_id intel_epp_default[] = { */ 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_EMERALDRAPIDS_X, HWP_SET_DEF_BALANCE_PERF_EPP(32)), X86_MATCH_VFM(INTEL_METEORLAKE_L, HWP_SET_EPP_VALUES(HWP_EPP_POWERSAVE, 179, 64, 16)), X86_MATCH_VFM(INTEL_ARROWLAKE, HWP_SET_EPP_VALUES(HWP_EPP_POWERSAVE,