Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp1059748img; Thu, 28 Feb 2019 12:19:02 -0800 (PST) X-Google-Smtp-Source: APXvYqxSbJtkEVyyfsmJK5XBk0RoVF/dCvJLdPBtj2R9hUagGdxaBEREbxjfJs95h7MbQq6zxh33 X-Received: by 2002:a63:d814:: with SMTP id b20mr989682pgh.312.1551385142831; Thu, 28 Feb 2019 12:19:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551385142; cv=none; d=google.com; s=arc-20160816; b=NJWgt8VEuccygGhmi0PEptJERu588ddBsPIfJeoPLR0ORrb+vzjs25Qwn6JUTvAHna n89KuZnOjmay3Sf0TKjux8RLXt/khoecfs13vEOXEv1fNrhHq7q6CT+rK0SwLVMIkHYR dWY7GbrfYQPMKpb2Vxn8m0BMa56WoZG6oJYi4aI9Ntvuz80rf7STNUO7pOXuBKUTwY81 fyTnHzZE6UeaDdKKld/BfYMRcU9h3IOwgzvL7Y8FF8F+d4Lwqs5634yLHhoaMvndDyG0 QsUfXN/8/RLch7W3i/JFUA3oBe6eKQbjlt4vq97r49p1FPIpFsCONYGgMARLkZtRT2x9 3cMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=EPu8ONelHglI2xaWHHNKk+k+K6x4Z68WcinDDILWD7g=; b=F7owwFh8+gwOy4yXzzcJ+QJjuW/coaChIoAC5OruAxGRsRDmvGua9piaAdZxu5OcN7 Ns30bP25AaSdPv6E8CnqgtdkisDTzVBkR64Kn++X0A+Mnn3K3LVzUiyXKYpoUvBiGqOD CEUSJ83IvOcMZfFHM7CJFhUH9JaGBdCanowqXLzOLC+/8yQDG/5cbN8vHhhqOrMmsGqd HzT6ROK8BpF58inVhyGGGSvEY8yq8SXQGLJRPbHxQLJGPjaY1xenaygplu20RPIDJEdJ TCfmGbKlJAElgMT+CQjBkEfWcZ5ZU+BxFfloslmCWZ//Av7CR4TMvydw0qs4oyUeQqGM c8iA== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e189si19842280pfc.156.2019.02.28.12.18.47; Thu, 28 Feb 2019 12:19:02 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388322AbfB1R6t (ORCPT + 99 others); Thu, 28 Feb 2019 12:58:49 -0500 Received: from mga11.intel.com ([192.55.52.93]:1658 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726214AbfB1R6s (ORCPT ); Thu, 28 Feb 2019 12:58:48 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Feb 2019 09:58:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,423,1544515200"; d="scan'208";a="125946636" Received: from chenyu-office.sh.intel.com ([10.239.158.163]) by fmsmga007.fm.intel.com with ESMTP; 28 Feb 2019 09:58:46 -0800 From: Chen Yu To: "Rafael J. Wysocki" , Viresh Kumar , Srinivas Pandruvada , Len Brown Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, yu.chen.surf@gmail.com, Chen Yu Subject: [PATCH 0/2][RFC v2] Update the cpuinfo.max when power supply changes Date: Fri, 1 Mar 2019 02:06:54 +0800 Message-Id: X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Dell Inc. XPS13 9333, the BIOS changes the value of MSR_IA32_MISC_ENABLE_TURBO_DISABLE at runtime (e.g., when the power source changes), the maximum frequency of the CPU is not updated accordingly. This is due to the policy's cpuinfo.max is not updated when _PPC notifier fires. Firstly we should update the cpuinfo.max in this corner case, secondly we should broadcast the _PPC notifier to all online CPUs to keep information consistent. Chen Yu (2): ACPI: add "processor.broadcast_ppc" hook to broadcast _PPC ACPI: Update cpuinfo.max after bootup if necessary drivers/acpi/processor_perflib.c | 16 ++++++++++++++-- drivers/cpufreq/cpufreq.c | 2 ++ drivers/cpufreq/intel_pstate.c | 15 +++++++++++++-- 3 files changed, 29 insertions(+), 4 deletions(-) -- 2.17.1