From patchwork Wed Sep 11 03:15:46 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: 1983612 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 4X3Qlw0Jspz1y23 for ; Wed, 11 Sep 2024 13:19:23 +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 1soDsr-0004wY-G2; Wed, 11 Sep 2024 03:19:09 +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 1soDsq-0004wR-Gq for kernel-team@lists.ubuntu.com; Wed, 11 Sep 2024 03:19:08 +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 4BB843F20C for ; Wed, 11 Sep 2024 03:19:08 +0000 (UTC) Received: by mail-pg1-f197.google.com with SMTP id 41be03b00d2f7-7cd9ac1fa89so7886321a12.1 for ; Tue, 10 Sep 2024 20:19:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726024746; x=1726629546; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=T8Lm7HwSqeIatDgGCT3TIl3zncUt/8ILdfGkASFwq64=; b=l4YK/bdEO1H91KV8Lw7fZQooHWiQp4xHx1NpQyr+tHs7PjrLUyHwQ9Ug5t8vvg8HFI 2sPUQHp/yRYPZ+Se/TMCWfIlZPY5cB3NxlF3sOWIJ6xmHITEVn5SF1R2z2RyHC4V89lB C14HZp4Uoivj4x/j6sRZwkWULBpGwP1Nf9IVjsqiUSU4FC4I0CwsaRh4yXe4hByt4ulK GdIcJp1pHZ3EvyIPn1qdWFPanyT/oHmkm+H5Ue9B14n8YGVRF3LXak0R+/shyveUPnDS NnGeY1Cz8sQ7YTXpJW58kdKDdzBCN7T9XHh3WFsrMRvCZHbKUJcKkfdngf36vMteZsiN 3r8Q== X-Gm-Message-State: AOJu0YwVMuLI/TdB2Bhks9VNMx+zfY+WD+T039hvvYnXriI5HuK/2MmV ebqQNSbxGoLudTXo1ligIA1yMxPPBN9behVZ9gCX3hplpXChARqIL+Ny4CfJV8F+JcrA/XQR4ho ZoyJnX6WQD8ioVOVtGmRF4JT9klLrjAZkUz86KG0oizU8KJOMTKQePoqRI4MQyHLPfj2xS6pni2 S5vl6l0fsLjQ== X-Received: by 2002:a05:6a21:1698:b0:1cf:45d9:c28b with SMTP id adf61e73a8af0-1cf5e0ee529mr4741636637.17.1726024746618; Tue, 10 Sep 2024 20:19:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH5ERq8Cacelx4ibEEwq761Mqf+jIjuw3nhGNNeDZBMoJ8yewP0QGAzq+LvpqBkPVFjaJzx4g== X-Received: by 2002:a05:6a21:1698:b0:1cf:45d9:c28b with SMTP id adf61e73a8af0-1cf5e0ee529mr4741604637.17.1726024746100; Tue, 10 Sep 2024 20:19:06 -0700 (PDT) Received: from localhost.localdomain ([186.250.11.100]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7d823cf3cefsm5399903a12.32.2024.09.10.20.19.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 20:19:05 -0700 (PDT) From: Pedro Henrique Kopper To: kernel-team@lists.ubuntu.com Subject: [SRU][N][PATCH v3 0/6] Update default Intel EPP Values Date: Wed, 11 Sep 2024 00:15:46 -0300 Message-ID: <20240911031901.3907840-1-pedro.kopper@canonical.com> X-Mailer: git-send-email 2.43.0 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" BugLink: https://bugs.launchpad.net/bugs/2077470 SRU Justification: [ Impact ] * Intel currently provides an Energy Performance Preference (EPP) tunable via its intel_pstate to control power management. It ranges from 0 (performance) to 255 (powersaving). * When the governor is set to powersave, which is the default, the EPP value of balance_performance controls how the CPU frequency scaling occurs. However, on some platforms (Emerald Rapids, Meteor Lake, Arrow Lake) it is set to a very conservative value out of the box, resulting in degraded performance by default. * These EPP tuning values work as a black-box and vary per-generation, so having the latest values available is important to keep systems running at maximum achievable performance. Both Intel and Canonical perform this kinds of tests and supply values. [ Test Plan ] * Perform a benchmark on a stock Ubuntu 24.04 image * On Emerald Rapids: * Change the EPP to 32 by executing echo 32 | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/energy_performance_preference * Observe the performance difference. In our internal testing, we found the following results when setting EPP to 32: POV-Ray: 32% faster | 12% less energy OpenSSL: 12% faster | energy within 1% Build Linux Kernel: 29% faster | 18% less energy * On Meteor Lake and Arrow Lake: * Change the EPP to 64 by executing echo 64 | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/energy_performance_preference * Observe the performance difference. Intel found out the following for Meteor Lake: > 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% * The same outcome should be obtained from Arrow Lake as per Intel. [ Where problems could occur ] * The regression risks are very low. The CPU should perform in a more efficient zone, resulting in overall power savings, despite the more aggressive scaling. This was verified using a Yokogawa WT310 power meter and an Emerald Rapids reference platform. * Tests on Meteor Lake and Arrow Lake were performed by Intel. They were not independently verified by Canonical. [ Other Info ] * Patch for Emerald Rapids: https://lore.kernel.org/lkml/Zqu6zjVMoiXwROBI@capivara/ (merged in 6.11-rc3 https://lore.kernel.org/lkml/CAJZ5v0hQ3O7E3ygvFKbzjkJbx7pddyD9Qc+rE4EFYzJS12oTMg@mail.gmail.com/) * Patch for Meteor Lake: https://lore.kernel.org/lkml/CAJZ5v0i8RnWs9OgxxqVOCG4RHhN7X3ELcruPoGrS1iP8hNSGsw@mail.gmail.com/ * Patch for Arrow Lake: https://lore.kernel.org/lkml/CAJZ5v0g+R6JK=T9EjmweRPKmcorw93JmPM4u-Z=pywv6kH7zUA@mail.gmail.com/ (both values for MTL and ARL merged in 6.11-rc1 https://lore.kernel.org/lkml/CAJZ5v0h7OHR7ipj6ubgTLEz238JZkTshh93CYe_gDx5j+zBwfA@mail.gmail.com/) Pedro Henrique Kopper (1): cpufreq: intel_pstate: Update Balance performance EPP for Emerald Rapids Srinivas Pandruvada (4): cpufreq: intel_pstate: Allow model specific EPPs cpufreq: intel_pstate: Update default EPPs for Meteor Lake cpufreq: intel_pstate: Update Meteor Lake EPPs cpufreq: intel_pstate: Use Meteor Lake EPPs for Arrow Lake Tony Luck (1): cpufreq: intel_pstate: Switch to new Intel CPU model defines drivers/cpufreq/intel_pstate.c | 128 ++++++++++++++++++++------------- 1 file changed, 80 insertions(+), 48 deletions(-) Acked-by: Thibault Ferrante Acked-by: Manuel Diewald