Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1005795yba; Thu, 4 Apr 2019 02:14:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqwzRVKQaNh+AC2Ba1PJC0vbRpMwXzZyDMWbgHxmqqsieRtmIilhI78AOfVfFWtO07twW7D+ X-Received: by 2002:a65:5202:: with SMTP id o2mr4495590pgp.402.1554369273652; Thu, 04 Apr 2019 02:14:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554369273; cv=none; d=google.com; s=arc-20160816; b=W+xtDs0CVrpzyF8xZcF1HA8YNWn9IGJ1QtkoM2jgIfuYjgmNAIv5ILufzlgGfuHcRf wmfBaLlYa9dIv0gKKhh86TsfaxXV+e2DdT69c3JCPeHIgHWa3pTYx/o0vmZBTJp+Z4hb NLaN2j1CcGLM7YUwAu2YDEwxSIbfT/dc0YHRGJbFyiXZ1aobGP88d2st3YHH0sH8ySKw /1pC/GO4Ne4DB0NTqEN3NNMlCfnMic374yNki3qeBbm3On2b8OgPkEkxom+Fy5J2SnRI /BtHH+wjlGDI9Hz2oA90WspsAh3MjtcxlFfSYrBGiqJi/Y1VdUidtI/w2Cucakf5V0kg 2ZBA== 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=95YuK2ugTghP2rETFRxosg4iuK1lmKEvSWCfQplbINQ=; b=aHd1h4fStiZbR9TCCCbus54Jw+NVHFpIk/bDWlLOt371qYoc3WbzH2dVfHgERBSARy nvp8HQX50ImADFcxaTK1mrkpO1DvsnmETeKWgFglmJKvmMKlHpztOXsRaw7Y4KvKbVhG l3jVe3z4FdXryiGc9BL43YkD/G/BVDXkJ3qN8rdV0t82HCoKlw2d78OqGdNNrwykqnop mhhJIhD30q6ZQXsluLNspd0aEFputSEVV+hHs5LutPut8IPhnEYT6O2lolrgXfstc82U pvakTizM5hzWvToOqDZOs8r2rV53FfnawjKLhU8NRn4f+Te/eLBV3nbNNdhOX2npWt3B Fh2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tAylGd6B; 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 n31si15914021pgm.10.2019.04.04.02.14.18; Thu, 04 Apr 2019 02:14:33 -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=tAylGd6B; 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 S1732918AbfDDJMc (ORCPT + 99 others); Thu, 4 Apr 2019 05:12:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:52550 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732919AbfDDJMa (ORCPT ); Thu, 4 Apr 2019 05:12:30 -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 1D48520820; Thu, 4 Apr 2019 09:12:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554369149; bh=VPKkW92j3z42TOOHvCDELx8rtS8U1WRHogC5wMAW7q4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tAylGd6BHeyAKm6rbzrM95YOrkLUUYD2NBMTu5dUgGj7465r35dsXyro3w+Tmnfhs BGHdxO+h92xLNncTcmIrblhnhEGn88fRbfGDOODQMdJO6/AOcPUDI4XvO1oRBoGAAj VqfiVXhOkrWDXLSw+CTlLSPp4ELjJrqkKHNDENKg= 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 5.0 102/246] cpufreq: acpi-cpufreq: Report if CPU doesnt support boost technologies Date: Thu, 4 Apr 2019 10:46:42 +0200 Message-Id: <20190404084622.716656230@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190404084619.236418459@linuxfoundation.org> References: <20190404084619.236418459@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 5.0-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 d62fd374d5c7..c72258a44ba4 100644 --- a/drivers/cpufreq/acpi-cpufreq.c +++ b/drivers/cpufreq/acpi-cpufreq.c @@ -916,8 +916,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