Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3587326pxb; Sun, 24 Oct 2021 06:06:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRSEolZfSQ6tt6UxaCpuT2JnHdt4AGuEMxUPU8qy+QTkNuCoAxOu7HguxIpt0cUotvrSnL X-Received: by 2002:a63:8c0f:: with SMTP id m15mr9047929pgd.7.1635080800961; Sun, 24 Oct 2021 06:06:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635080800; cv=none; d=google.com; s=arc-20160816; b=Dh8iJ/OFRKFDVd/DmBufNbMP9et71V8Ma0Ey+UZxbILMONXWBUTn9Sk2XPV2FISo7u k59W1oP69IrVt8HvxeUI2jijt8puYLx6ZiE23ToTMEP9I5lJKaFU2W/Lxu6hqtNQHsR6 f+0/YUtUdEnxoZGQeCEdCOC4PPjWlpsrVXRSfo13idmcmxzaWSHthN481ia5qIHYqx4G N6J6gnW2bdRFyQKDpCP9Rfuy2LbGXhGeU9/ZSAbkeH65IC2uLC4TjfTuFJkI0xNK1zJU RwZpkVrSEdm6W5bU87hCWJFIVdo74igFk4a09Db6uE0oErTcOL9hPzRDSOL3wVUwJOV6 EJcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:subject:cc:to :from:date:ironport-hdrordr; bh=gQES0+dTRkoYBXtUijx+U2vRckQrnuDizVprnR/HLVE=; b=o5bfoQ/2riyiic7bPGI4hFrPO9o68eMCuKQSeJXhFhKMk/IttpUkKypWBWID33nIU3 AdgPDrlTsF7+pqRaWBCrhzBuRULVZbofJppenXbpnR35BQiAJskhRin5QbGz1eIrnYEy Rl4Nkgxo2Ne3U0xVX/4s4bEvcC+7xcTU5hGcgbntKwekryd1+Ox9CqJkFgsQgmzKLvjQ lGB61Tghrx6Sw1tPK6gI6JYDdWUdCaH6sfceCidtUL2EDnkV+cM1DE5QgmxrOUa+9Cdz +ZYo90uQJh/8AczBZZxUP4+eD23zbEfsB2uujl/5yt/mRuqsrvCgZI/pyTC51ZpbJcSO aAyg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p23si20932694plr.150.2021.10.24.06.06.27; Sun, 24 Oct 2021 06:06:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231285AbhJXNFW (ORCPT + 99 others); Sun, 24 Oct 2021 09:05:22 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:31958 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230301AbhJXNFV (ORCPT ); Sun, 24 Oct 2021 09:05:21 -0400 IronPort-HdrOrdr: =?us-ascii?q?A9a23=3AdLI+OKPeR7FDE8BcTsqjsMiBIKoaSvp037BL?= =?us-ascii?q?7TESdfU7SKelfqyV9sjztiWE6wr5OktApTnoAsDpfZq2z/BICOcqUYtKEDOHhE?= =?us-ascii?q?KYaLAn14fkzjH6cheSysdW385bHJRDNA=3D=3D?= X-IronPort-AV: E=Sophos;i="5.84,326,1620684000"; d="scan'208";a="397206040" Received: from 173.121.68.85.rev.sfr.net (HELO hadrien) ([85.68.121.173]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Oct 2021 15:02:58 +0200 Date: Sun, 24 Oct 2021 15:02:58 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Srinivas Pandruvada , Len Brown , "Rafael J. Wysocki" , Viresh Kumar , linux-pm@vger.kernel.org cc: linux-kernel@vger.kernel.org Subject: problem in changing from active to passive mode Message-ID: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, I have an Intel 6130 and an Intel 5218. These machines have HWP. They are configured to boot with active mode and performance as the power governor. Since the following commit: commit a365ab6b9dfbaf8fb4fb4cd5d8a4c55dc4fb8b1c (HEAD, refs/bisect/bad) Author: Rafael J. Wysocki Date: Mon Dec 14 21:09:26 2020 +0100 cpufreq: intel_pstate: Implement the ->adjust_perf() callback If I change te mode from active to passive, I have the impression that the machine is no longer able to raise the core frequencies above the minimum. Changing the mode back to active has no effect. This persists if I reboot to another kernel. Here are some runs that illustrate the problem. I have tested the benchmark many times, and apart from this issue its performance is stable. Intel 6130: root@yeti-2:/tmp# java -jar dacapo-9.12-MR1-bach.jar avrora -n 3 ===== DaCapo 9.12-MR1 avrora starting warmup 1 ===== ===== DaCapo 9.12-MR1 avrora completed warmup 1 in 3420 msec ===== ===== DaCapo 9.12-MR1 avrora starting warmup 2 ===== ===== DaCapo 9.12-MR1 avrora completed warmup 2 in 2536 msec ===== ===== DaCapo 9.12-MR1 avrora starting ===== ===== DaCapo 9.12-MR1 avrora PASSED in 2502 msec ===== root@yeti-2:/tmp# echo passive | tee /sys/devices/system/cpu/intel_pstate/status passive root@yeti-2:/tmp# root@yeti-2:/tmp# echo active | tee /sys/devices/system/cpu/intel_pstate/status active root@yeti-2:/tmp# java -jar dacapo-9.12-MR1-bach.jar avrora -n 3 ===== DaCapo 9.12-MR1 avrora starting warmup 1 ===== ===== DaCapo 9.12-MR1 avrora completed warmup 1 in 7561 msec ===== ===== DaCapo 9.12-MR1 avrora starting warmup 2 ===== ===== DaCapo 9.12-MR1 avrora completed warmup 2 in 6528 msec ===== ===== DaCapo 9.12-MR1 avrora starting ===== ===== DaCapo 9.12-MR1 avrora PASSED in 7796 msec ===== ------------------------------------------------------------------------- Intel 5218: root@troll-2:/tmp# java -jar dacapo-9.12-MR1-bach.jar avrora -n 3 ===== DaCapo 9.12-MR1 avrora starting warmup 1 ===== ===== DaCapo 9.12-MR1 avrora completed warmup 1 in 2265 msec ===== ===== DaCapo 9.12-MR1 avrora starting warmup 2 ===== ===== DaCapo 9.12-MR1 avrora completed warmup 2 in 2033 msec ===== ===== DaCapo 9.12-MR1 avrora starting ===== ===== DaCapo 9.12-MR1 avrora PASSED in 2068 msec ===== root@troll-2:/tmp# echo passive | tee /sys/devices/system/cpu/intel_pstate/status passive root@troll-2:/tmp# echo active | tee /sys/devices/system/cpu/intel_pstate/statusactive root@troll-2:/tmp# java -jar dacapo-9.12-MR1-bach.jar avrora -n 3 ===== DaCapo 9.12-MR1 avrora starting warmup 1 ===== ===== DaCapo 9.12-MR1 avrora completed warmup 1 in 4363 msec ===== ===== DaCapo 9.12-MR1 avrora starting warmup 2 ===== ===== DaCapo 9.12-MR1 avrora completed warmup 2 in 4486 msec ===== ===== DaCapo 9.12-MR1 avrora starting ===== ===== DaCapo 9.12-MR1 avrora PASSED in 3417 msec ===== ------------------------------------------------------------------------- thanks, julia