Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4169938pxb; Tue, 10 Nov 2020 09:30:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJzIy2+UtnvoYUSM9lSKkyddYBhkSO0cR3VORbQ3Y+o+aLUtJDNZCpg7Z+HGlWC/TJS+dLvi X-Received: by 2002:a17:906:180b:: with SMTP id v11mr20978156eje.466.1605029441460; Tue, 10 Nov 2020 09:30:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605029441; cv=none; d=google.com; s=arc-20160816; b=qUbxTZUJAdsk+Nur6s3bEpJisheAit3OakTDh9bIXkLmO6e0zAGhEtb9Wkk8pgT/dK C8hLk9kvmBLa3G/mvkhsriEFH7JfWqFz4h75KNfExhZnxlgXOp64xOuXArpwk0UgM6W2 EcAjGVWZBQlHJZnVqp+6nVuFk/C8gfciTHINHRXZHWCzSAcujH867fNWklxe3+SMC3Ab RGbW5yITA0Q0ky4+QQxmXE+7QMY6X9b46Rsh6NLMom/LcDJphbLZ65VGXyaGXfiDBie5 O+1Mx6sHby4gv2qax/fHu1UmsyTDHsW9D8uAMLKRRIHXkHXSbkD7rVCI0bTZ9MP+AffT Mdrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=X2VQwgYTcaaMIG0fO8JQ0hnGnjTHctm0CVwUbQF+EVY=; b=JPuOxFJMy9Nv8cS2cJgAfApoOxLPEKuVHjRomR5E8rxi0OAvNhLdrnrnqr9VAACmpt dv4MTKUG8aG5R/X3w2dfx+sPY40pSiJX7Q+Q/Vr/YjiSAVhmLi1lhrpfT8wgy8Y1DIEl ncyH2DxsHuxVx1eNzB71lpUNrWxfumJbj/aj5jNbtym91yS0wfFCdnH1qHBKO4srwh3t e5dSO0cIJTBQIh8A/1OaYZ/DbrcLXhwRqwdy172FQd4rEVHEpVkIXq8DF7lWcQVngFav 9T6TwqNMMaxL6r6Kr4eTuGf/xSddNAWhuXblwQijg11Bp55D9yLSZKvnU2KSnk/F7Oe0 hifg== 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 a2si9388163eju.633.2020.11.10.09.30.16; Tue, 10 Nov 2020 09:30:41 -0800 (PST) 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 S1730983AbgKJR2Z (ORCPT + 99 others); Tue, 10 Nov 2020 12:28:25 -0500 Received: from cloudserver094114.home.pl ([79.96.170.134]:48720 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730845AbgKJR2Y (ORCPT ); Tue, 10 Nov 2020 12:28:24 -0500 Received: from 89-64-88-129.dynamic.chello.pl (89.64.88.129) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.520) id 9ecaaf740a3def68; Tue, 10 Nov 2020 18:28:21 +0100 From: "Rafael J. Wysocki" To: Linux PM Cc: "Rafael J. Wysocki" , Viresh Kumar , Srinivas Pandruvada , Zhang Rui , LKML , Doug Smythies Subject: [PATCH v3 0/4] cpufreq: intel_pstate: Handle powersave governor correctly in the passive mode with HWP Date: Tue, 10 Nov 2020 18:21:56 +0100 Message-ID: <11312387.r5AVKgp8zO@kreacher> In-Reply-To: <13269660.K2JYd4sGFX@kreacher> References: <13269660.K2JYd4sGFX@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Monday, November 9, 2020 5:49:49 PM CET Rafael J. Wysocki wrote: > > Even after the changes made very recently, the handling of the powersave > governor is not exactly as expected when intel_pstate operates in the > "passive" mode with HWP enabled. > > Namely, in that case HWP is not limited to the policy min frequency, but it > can scale the frequency up to the policy max limit and it cannot be constrained > currently, because there are no provisions for that in the framework. > > To address that, patches [1-3/4] add a new governor flag to indicate that this > governor wants the target frequency to be set to the exact value passed to the > driver, if possible, and change the powersave and performance governors to have > that flag set. > > The last patch makes intel_pstate take that flag into account when programming > the HWP Request MSR. The v3 simply uses different names for the new governor flags. Thanks!