Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp1863575imb; Sun, 3 Mar 2019 09:05:53 -0800 (PST) X-Google-Smtp-Source: APXvYqynnfetwwTAg72eI2jaRuIOFIltWPTMCURkXeRrf9JOpftrGHvvsFnNAqMZFVoG6jJYVC6n X-Received: by 2002:a62:1752:: with SMTP id 79mr15707761pfx.127.1551632753141; Sun, 03 Mar 2019 09:05:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551632753; cv=none; d=google.com; s=arc-20160816; b=phohfmVwJpTvQS03125qszv9YZ+GSysEGCIAjP4L0FMmKLybDKi797cV4vcKRAXQWa tJuRwmQfsFI3c6545O4O65uXl9K1uou/ZHrU3BYY57oN5z9hyhgldr3GpEpwJIv2sHlP CM7QpwY5NlfBCxGfyn8g2UnQFwSmrEEWxZDMIg/2WgCtCnePXED6Tb/mdxXnRMW1RtRx FvVO+4/Ag/i1F3GAKddLKT7g7k1/bKXcUJMXBluZG76hAkeMdLJf53bP02lmL6M+16ly 2PUKxtKkNVhWpEygY8MkaOxmm9LIZnZXRRyw/7pH9Ycf9z+xfiMteXInlhwQwncCJUhg dcwA== 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=8AJHS4UMKpFflvwz+4BeOpgi2G3Gdp/pzVPWguHeoWE=; b=pUWIByGp2kPeSaO8tTOfR6MG0UZTDyI3Iu+oWzRhOCyd/sWs2LpwR9LiX7k0ZMs9QI HUNp/rKNjO5ZdEsvIEkByjRMB+AbASkv9thU3/3eqEzScHS9RBjiSkVn7XmIAQt76H8o I1aekf/0+7+38TfuUnQTp0ebDBHclOC/MVtom00+6WNWwnMwChuwKrffT0FRzNj4AFE7 n9FxU3lgEIbSJdRZ7Bt/KT2ou1RH5fQ8BuhWGJ28QF8n68bvTXoBidEwvnMTGJO9cywM 5NzgJy9R8wMjT4Ns3XL4er6XMRYIIwC41DGOapomtNCCocMejCMlj0XNm3Hv+VKH55AZ tOKg== 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 g28si3185742pgm.455.2019.03.03.09.05.38; Sun, 03 Mar 2019 09:05:53 -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 S1726485AbfCCREH (ORCPT + 99 others); Sun, 3 Mar 2019 12:04:07 -0500 Received: from mail-oi1-f193.google.com ([209.85.167.193]:34110 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726293AbfCCREH (ORCPT ); Sun, 3 Mar 2019 12:04:07 -0500 Received: by mail-oi1-f193.google.com with SMTP id g16so2037424oib.1; Sun, 03 Mar 2019 09:04:07 -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=8AJHS4UMKpFflvwz+4BeOpgi2G3Gdp/pzVPWguHeoWE=; b=RNctCHLruNk+iYv/s/g5a8MvOShq47hrOcMipzSpo0f17gx2SSEnc+tQ7yVPx8cpZd wqSq1kNTnvg8G2HI0x24THa/Ph8hX2ilE6kN6NJvP9GL30k7yrqMePb+Hsn0A6SQc/+5 57rMJZR+SCrrIITW7P5q14sPMuy3I/AbMMkZktO+sLwTzt4G1NChQitYPyZQfHkh5ODI boNMtiNhm7cxvkRtmQEbTEI8zJT97TwdY0Hz9xbjUf/O/z8T2bCwVh0F1parMk6oink+ DIu/JdEVm+5mP7MPb5zpWPGx99oh1X271ZtrQtyiyQ6S3LwXQRxcLLxku6sl/te2hxeN 5gOw== X-Gm-Message-State: APjAAAWP2OI2H2nl8x18iTUPWYGFOtuTGgNXj+BYdOMMwtrakIn674p/ /M7h6oqNHq9VActSA2N6v30L0HroZC8jFv4tccA= X-Received: by 2002:aca:f4d3:: with SMTP id s202mr9526663oih.178.1551632646648; Sun, 03 Mar 2019 09:04:06 -0800 (PST) MIME-Version: 1.0 References: <9956076.F4luUDm1Dq@aspire.rjw.lan> In-Reply-To: From: "Rafael J. Wysocki" Date: Sun, 3 Mar 2019 18:03:52 +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" , 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 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.