Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp997431yba; Thu, 4 Apr 2019 02:03:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqyXOYq2celWC2UcM3zPN7plPHHdvpCWXCB29x0Fl0iIgnc7tmSukT5+g/9c0saFmEvtS3vr X-Received: by 2002:a63:1d26:: with SMTP id d38mr4304534pgd.357.1554368633904; Thu, 04 Apr 2019 02:03:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554368633; cv=none; d=google.com; s=arc-20160816; b=UQW5WS19dLXKREIEJK6l+w9CpBxOou/sbGmUqffYtzKoj69rP+eW5fnw3J4OawwJ+L h/BMDLxZbbScAS/eb9vcArU/UahqsNKBMcxY9lX5s+P2rH86YE7iHBsm5P92547O/2Ux m5WdKoMMaJbp5rHTc+O76gzz1zYYAWfpsAv/im/6Jxlaid7qDAwG9vk6j28F/8Kzvp4O ffzZ8T5j+GyZOozKUh2OwurntT9wVJNbhpOVMGTUkmgbkQopI9FDfXHm/1PWgIp7CI8i CMvz2DodYpkBwRyr21C5Kugavm9Ch1sgXplAT11evWe++LbFQrfQsxTq4viksmzEALnw phZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=bbaMZpXL94cB4Ai8ZNSKWk3ZgLl7qkD0aBLfl1FbTjo=; b=Tkd3lFYef9N+uaTkkoXRNfYjWPr+d/Df5cQgLiI9IbNiJLiEpDDKsaX8OR8duE/lGV YkwqVZ8zbMsdLW+rX/LxBtlyRiib3c/sinmR/intTbXfZekH2OGBS3AofmAbsFV8qkLV k+z9U9duH2QtzyX9+OyXAL+VSKS1NhuSf2VY0GaYTVdM5DCAPMBrlnfdBMmrj9hGbfZw IjvX2cfAObbHdWiS39NtAlqZZudAyuIikKN5Dn/2HxeYKZTgAFxmtb+nKJFOuObhVjVJ +T0Ju0yhZN5fqd6ykeOwFN3XAm6Q6uH+5q+HQezfe1351BL8RWfQRvfRyJplQOjoXvhq WyJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oT1EbXkx; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h185si15504062pfc.241.2019.04.04.02.03.38; Thu, 04 Apr 2019 02:03:53 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=oT1EbXkx; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729879AbfDDJDD (ORCPT + 99 others); Thu, 4 Apr 2019 05:03:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:40552 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731707AbfDDJC5 (ORCPT ); Thu, 4 Apr 2019 05:02:57 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E7E4521741; Thu, 4 Apr 2019 09:02:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554368576; bh=aRygrkTRpNOj80+8d7E0sHx+5RlqO6UClzeir1+cF74=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oT1EbXkxx0clAywahT7lruFM900eGi8CSawyo9a8Yo2ZQ47f42smIKGEmCOZSAcSc aTGX1nb/cFQVEeJ7W8MzVUk/qBEslm4Yx8qfFrCs0MG4b0+Z3DkXQrDOiVHxQVInnw w2UMQ0FKIMBDtQQ29O8wHt7zZ0n++P0CGf3uFq7k= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Erwan Velu , "Rafael J. Wysocki" , Sasha Levin Subject: [PATCH 4.19 074/187] cpufreq: acpi-cpufreq: Report if CPU doesnt support boost technologies Date: Thu, 4 Apr 2019 10:46:51 +0200 Message-Id: <20190404084606.532165443@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190404084603.119654039@linuxfoundation.org> References: <20190404084603.119654039@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 1222d527f314c86a3b59a522115d62facc5a7965 ] There is some rare cases where CPB (and possibly IDA) are missing on processors. This is the case fixed by commit f7f3dc00f612 ("x86/cpu/AMD: Fix erratum 1076 (CPB bit)") and following. In such context, the boost status isn't reported by /sys/devices/system/cpu/cpufreq/boost. This commit is about printing a message to report that the CPU doesn't expose the boost capabilities. This message could help debugging platforms hit by this phenomena. Signed-off-by: Erwan Velu [ rjw: Change the message text somewhat ] Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- drivers/cpufreq/acpi-cpufreq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/cpufreq/acpi-cpufreq.c b/drivers/cpufreq/acpi-cpufreq.c index b61f4ec43e06..aca30f45172e 100644 --- a/drivers/cpufreq/acpi-cpufreq.c +++ b/drivers/cpufreq/acpi-cpufreq.c @@ -911,8 +911,10 @@ static void __init acpi_cpufreq_boost_init(void) { int ret; - if (!(boot_cpu_has(X86_FEATURE_CPB) || boot_cpu_has(X86_FEATURE_IDA))) + if (!(boot_cpu_has(X86_FEATURE_CPB) || boot_cpu_has(X86_FEATURE_IDA))) { + pr_debug("Boost capabilities not present in the processor\n"); return; + } acpi_cpufreq_driver.set_boost = set_boost; acpi_cpufreq_driver.boost_enabled = boost_state(0); -- 2.19.1