Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5650119img; Wed, 27 Mar 2019 12:26:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqy/fyio/4RcUg6DhydeMcpUf1pLXTkf40SpyCGw2qU6rsJZhsrHFWPf+rq6WgL1QlZgjYgd X-Received: by 2002:a17:902:e113:: with SMTP id cc19mr39924933plb.179.1553714794766; Wed, 27 Mar 2019 12:26:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553714794; cv=none; d=google.com; s=arc-20160816; b=LN6TW2CximIFvGgUoM+l8fJvozpg/IqdDn+UYirAjhZ58xucrnR2FPTV1GcyFL1aoi 277jqLvwxEY+YoIUi1QtJ7DaPI6MyjALacVvWwGu6Igvx2bUAB5RTzm3UNRECkTb/qFC GzgM5aH52sDyKRev69oBbJlcV7KuAJ1F10yTsXWDkZsHrClZQ1Sg9yNu3muAaXb6zKWz Mhm6mF0P4JUIDeicQAuhHSRnth4qt4/GcoU0xMuipLEf4ANmVh54OmbgUqxfmiTYOK+3 LyImtVDEz25HvqPU1ZMcNEb6qjhtWswtvHhqEz8RhhzQXpnJ+CUPjxrRy3VOlweLL97O Hrrw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5L3DpID0dCf1cDdDsJCJq4XqyEI/F5sw1iUZ8A7Edj8=; b=XiduuFX6xB9MEbaZorJRfXuhhJ1HlgOnsIKx462tSx9WKIHW06MpV5XxtSaHoMiRvE V+SL0XuAaZNXuKyMlRmBGeOQayKyZ8hGNIIdszSwA7XEGrOVyw+DdUR9WO4TxD9XB9cx Y7Lv+VU5RU11WvviikbfRTJyL6/p8EJLHOzAhY57oMgHPjDENfnKSR/B90lfC/7sCxn0 WgQaMayiYkVvYIe1ZRKswppnKPmx8ncj4akPYzhR7YyExq9ut2nYhZcg2U7l71+ByLSk TlqlwK9XgGqyZXi4+PFl5O25pwEFQySWpyPfobRuI534Y4EUUospJvpMMFcNUXdr3Fdz eZLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=C7OndqDd; 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=pass (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 w14si18928525pga.584.2019.03.27.12.26.19; Wed, 27 Mar 2019 12:26:34 -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=C7OndqDd; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388062AbfC0TZm (ORCPT + 99 others); Wed, 27 Mar 2019 15:25:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:46298 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387632AbfC0SFP (ORCPT ); Wed, 27 Mar 2019 14:05:15 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 61A2E217F9; Wed, 27 Mar 2019 18:05:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553709914; bh=L5DVtnfAeB1dhNOpFZXhe9aUDAAf5Dkw0v8tUmuSn4U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=C7OndqDdshyZr2ekSR/DiJb0uuZsKPSdGiftlk5ybJ2dSNQ9XLJC/QO80AZdaDt6/ ZO6pv75+4o/tclUfiyqbO2jIPGlgz14k30r8WwCc9c2WX7zPMPXr4HcAdjzt118bGf dhV87uDTbm5/mM5dhVHnN6U4LbusZSlQFduVQIuI= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Erwan Velu , Erwan Velu , "Rafael J . Wysocki" , Sasha Levin , linux-pm@vger.kernel.org Subject: [PATCH AUTOSEL 5.0 109/262] cpufreq: acpi-cpufreq: Report if CPU doesn't support boost technologies Date: Wed, 27 Mar 2019 13:59:24 -0400 Message-Id: <20190327180158.10245-109-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190327180158.10245-1-sashal@kernel.org> References: <20190327180158.10245-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Erwan Velu [ 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