Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp1992976imb; Sun, 3 Mar 2019 13:54:52 -0800 (PST) X-Google-Smtp-Source: APXvYqwiWRPwwxnQNR4ZA0afZ3T9pkhZGUolxq9sAExOHKAzCyIqQ8SupZa7tCujgd1CaIS9ZnAV X-Received: by 2002:a17:902:f209:: with SMTP id gn9mr682296plb.50.1551650092247; Sun, 03 Mar 2019 13:54:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551650092; cv=none; d=google.com; s=arc-20160816; b=gduFMqyi4eONab0BD+n+TP6lKESB+adneQrNUjkDd/QMV5fiWywMR79yRVa8k8rAaR If1wk2e7zHw2yjhdfK690efOnTJ6FOvBquSFg1IWuICk9eg4B4CEnDUwYMgTXatgSFqm wrjSYXSIGhZzHCpPzXRS0NABDwP1X4wLUq6pg/BPoTdmt8PXZrki8W6A5uyAb0RYRHDz 1CFV38WvcWxU96gSBsMXQCon/tRvWprECc6RbIjGeSrAak8BMA3TC/KLcd86ksgQpBcC 98c3zewriKu6mJxXYmvejI8s2rnTxeXyB+dFji/3ikizgAUsef3lvH2EzQ6vYauaopAF vvxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=xJAKWxNdLPhf1x4Xo3jWbcwM90lY4yAIGKFLWLrrhrY=; b=I62zqRQieJYeFUVSpq9VC+pjuylv4umNbhehDQ/pF5Vu3nBp4Jb9iWpvIlg1NjLmGY JAZmnS3nyTReQNoujCwFvWT+tFXUsFht3w8JPkGT21gNS+zZ98ecuwnolQ/2B8EzSgTk CbdiOc8jRiSiLsDcTp5DqIVVCOSkSXT3G/JZg/H7d8cHpAK3deRrYyiohZDgIEiPozZL Eyv+Vjr391DBDMQ+WZugCCM+Mix701pn+r94+40CEcGMdJr1XE0n1eyjXLa/x1E7iTDA E0Eap9GyPCOJNvqKcDWuBjg3t6LkVAlQXkgbHUbj93ngaAS84NAn1NPIe+t7+6+K0UD5 Es9w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r23si3627077pgv.406.2019.03.03.13.54.37; Sun, 03 Mar 2019 13:54:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726703AbfCCVwB (ORCPT + 99 others); Sun, 3 Mar 2019 16:52:01 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:46870 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726639AbfCCVwA (ORCPT ); Sun, 3 Mar 2019 16:52:00 -0500 Received: by mail-ot1-f65.google.com with SMTP id c18so2609187otl.13; Sun, 03 Mar 2019 13:51:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xJAKWxNdLPhf1x4Xo3jWbcwM90lY4yAIGKFLWLrrhrY=; b=SWVneBRjyAr2/8tN8ZXYSD4dSBZue66eO2QMTAejlwFNzhUNyWDD343g5X3Zhm0x7k ei6IyedPx7/CpYJ2LmkGxS9/ilRTcNKU3jidlcYliOV0LuZDmiqEzvCo8GK54YLCZVFo qgMN9AylVNNJxiXyqcZPL0+TJwfBYlYIJT/7dC2MGonS+2FyXV6EcUdbg3ZaEf3SaKDD odxvBfU+TGqcz6DrSkt+eYKzNdai42j4Y2fSwBP5R2HwdBm3L6dABTEp0XA0j+eS78yJ PY1F9KM/EIdHW86Oj9gEjkWT32uKKcg2klkG3MaE66/nHWSJ30TJhYnW6gNwNEQLJqLx uW2w== X-Gm-Message-State: APjAAAX3kiNztwKvuLwyS8jKmf+MaSbRc3v5usTr89sCfSBt21xXTTtk 19hETdHYfgRkgWf8ZmTbHMvt9b8pUOYnAcbH7B8= X-Received: by 2002:a9d:6498:: with SMTP id g24mr10783966otl.343.1551649919266; Sun, 03 Mar 2019 13:51:59 -0800 (PST) MIME-Version: 1.0 References: <9956076.F4luUDm1Dq@aspire.rjw.lan> In-Reply-To: From: "Rafael J. Wysocki" Date: Sun, 3 Mar 2019 22:51:46 +0100 Message-ID: Subject: Re: [RFT][PATCH 0/2] cpufreq: intel_pstate: Handle _PPC updates on global turbo disable/enable To: Srinivas Pandruvada Cc: "Rafael J. Wysocki" , "Rafael J. Wysocki" , Linux PM , LKML , Viresh Kumar , Chen Yu , Gabriele Mazzotta Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 3, 2019 at 10:20 PM Srinivas Pandruvada wrote: > > On Sun, 2019-03-03 at 18:03 +0100, Rafael J. Wysocki wrote: > > On Fri, Mar 1, 2019 at 6:39 PM Srinivas Pandruvada > > wrote: > > > > > > On Fri, 2019-03-01 at 13:43 +0100, Rafael J. Wysocki wrote: > > > > Hi All, > > > > > > > > This is how I would fix the issue reported in BZ 200759 (see this > > > > patch series > > > > from Yu too: https://marc.info/?l=linux-pm&m=155137672924029&w=2) > > > > . > > > > > > > > Patch [1/2] causes intel_pstate to update all policies if it gets > > > > a > > > > _PPC change > > > > notification and sees a global turbo disable/enable change. > > > > > > > > Patch [2/2] makes it update cpuinfo.max_freq for all policies in > > > > those cases. > > > > > > > > The patches here have not been tested yet, so testing would be > > > > much > > > > appreciated. > > > > > > > > Of course, comments are welcome too! > > > > > > This is the only platform, someone reported such issue. > > > > I don't think this matters. > > > > First, it doesn't mean that no other problems have this problem. > > > > Second, the current handling of MSR_IA32_MISC_ENABLE_TURBO_DISABLE > > changes in intel_pstate is not sufficient if the changes is from set > > to unset anyway. > > Any platform with HWP, you can't even notify of this change. So any > platform beyond SKL is not useful. Do you mean that HWP platforms don't supply _PPS (as a rule) and so they don't send _PPC notifications? Is there anything they do instead of it? That's fair enough, but the point is that the driver doesn't do the right thing even if the platform does send a _PPC notification. > Fixing is always good :-) Well, I can only agree with that ...