Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp789177ybj; Thu, 7 May 2020 07:41:32 -0700 (PDT) X-Google-Smtp-Source: APiQypLIsOIFFJlwmHPYHAAKRtzfK6uUb12SOYV5G8uiwwWnX1trsQFS/xYAWioxKpgGSIz5DMRj X-Received: by 2002:a05:6402:b47:: with SMTP id bx7mr11809952edb.374.1588862492280; Thu, 07 May 2020 07:41:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588862492; cv=none; d=google.com; s=arc-20160816; b=apsB5lA2NT9mEqMnJ88GtO1EuSoUVlBFHm/0Wn9uq5KPiFIytyuxNc0PW8vRu93vOq g3Tl1g0ASX3Jh4jbqNj2lmQWCXWhIJM6JxEUOLQQ/9fQ8z/AHSy3vZ4B79x8CxJsJJX4 D6SLzHFpBNia1vAAb18SqedEUMMu9aM06Our8yNlDqyAKUmfqrIqfFo16W/qnZnMwkdG FQsvy14UtaiYOCInNOCT8ODhJD1v3z1yCWL/RVEU8/8X/VwUeIIbz0gAWmvWXKi4xXBA q4SoaG+YTLNewXMcc7vnLufmf1up5D5nKq3068uimI6gEJQih06TyPoNcEZqHlknDqA2 B9bg== 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=L3T2jtJuElcFslTbC3kxab7TOtXhV2q4lhrt34IwRg4=; b=t8PVMgEUYrb34R7CheEhGPvNdVtNT0DyWnARDPfuY7mhfiA+NtjHJW5HNBic2vFfyp Plth/cVb6ayN0OJ45/ioSd52I+4s3cWdMGvC0zH3s/G1Qv+tvw+3VIdAOtWQcD48Hksg xK9YFVGI2lux1rxrYU6csNfr7jnSWynuTD68MeX+cAciWG7ic8GEVN6o1FYtJBUSvT2B dcT9qP3diHl/VBXSKaVnnwc3ypzfxvvP33LxVMVeD7h7vUbsfOoKHlRah9BdpzVCTkBi oUmDCx9kCHKY1y9zIA5TO5yIRAfAElsb8u6Xel4s2Zolje6HZN41MuJ9F0syUhesNcSc uKqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=f3IxI38Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id g5si3241596ejs.290.2020.05.07.07.41.08; Thu, 07 May 2020 07:41:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=f3IxI38Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727975AbgEGOhj (ORCPT + 99 others); Thu, 7 May 2020 10:37:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:53982 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727839AbgEGO14 (ORCPT ); Thu, 7 May 2020 10:27:56 -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 5C2B62084D; Thu, 7 May 2020 14:27:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588861676; bh=g8MXi/Qh+MMLXU3CQUCfIqQ+603ZewnyD4kz1EXjib0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f3IxI38ZB0Bj7ExzarEeFBn2lKOr7d07tq/B/aszBzIql7kbnPvFNzTg29g8HtEzu EAiop2tcx/tveSyfzTa0oGJmGQgrY54dzre5LpLBtdZsFEfx8AxqTotWUh5yYzZzf0 82EIUCclqZyY77EX4zUUfEsff+28QGAwZIvn0xGw= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Chris Wilson , "Rafael J . Wysocki" , Sasha Levin , linux-pm@vger.kernel.org Subject: [PATCH AUTOSEL 5.6 24/50] cpufreq: intel_pstate: Only mention the BIOS disabling turbo mode once Date: Thu, 7 May 2020 10:27:00 -0400 Message-Id: <20200507142726.25751-24-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200507142726.25751-1-sashal@kernel.org> References: <20200507142726.25751-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review 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: Chris Wilson [ Upstream commit 8c539776ac83c0857395e1ccc9c6b516521a2d32 ] Make a note of the first time we discover the turbo mode has been disabled by the BIOS, as otherwise we complain every time we try to update the mode. Signed-off-by: Chris Wilson Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- drivers/cpufreq/intel_pstate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index c81e1ff290697..b4c014464a208 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c @@ -1058,7 +1058,7 @@ static ssize_t store_no_turbo(struct kobject *a, struct kobj_attribute *b, update_turbo_state(); if (global.turbo_disabled) { - pr_warn("Turbo disabled by BIOS or unavailable on processor\n"); + pr_notice_once("Turbo disabled by BIOS or unavailable on processor\n"); mutex_unlock(&intel_pstate_limits_lock); mutex_unlock(&intel_pstate_driver_lock); return -EPERM; -- 2.20.1