Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp843572ybf; Thu, 27 Feb 2020 00:29:38 -0800 (PST) X-Google-Smtp-Source: APXvYqyqwtIYu2RCr3K6irWR/KzX4jtwZrB32JzvcoeDasuUrb2CrX1Pm03/LSF98YI7k6b4vX6Y X-Received: by 2002:a05:6808:b1c:: with SMTP id s28mr2420957oij.2.1582792178610; Thu, 27 Feb 2020 00:29:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582792178; cv=none; d=google.com; s=arc-20160816; b=YgBrwSElGjnqW6TwHkH5HQseClU8LqlaWLolCoM1HRHlPanZXPIePlgCNhL+yi3YpB trAUEcsJJZPG3VAjRnF9HLVviPcXuQcGz6BhWy2++VCSLumu/ZiI1OplY/inDWNMW8qT n+QLeznlrHw2Awh5EXfFcwBnoDenPSc9I7biEeGzVgAVCrMWziCI1kinxNuhW+WXTPbs M+MZOnSWI2pO0zAOoSazJDNMbG4KdPBSiUhdaBpaUb+pIzoYMfDoWpHGt5WGsbGdZ4IJ mjEWVQIOZmL0lZRWQWbBxQS6gp5JbDgkYoDVBR5cLhwC5To9Q+Ry/+EFISDfp3XbsmHO hn0A== 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:date:cc:to:reply-to:from:subject :message-id; bh=cRzrckEMN6QM4GdSkGXh8fPTyvIYHW78NKi0RMIrNi0=; b=J8XggC52+BhOaxYmED0OBG+XQ8GzCD17y+sCdj/GhcAcMHUkvJdi+XkFgD50xZ9BC1 Mn+5jD1eeJAxTHx6Pzflczc68Qtf/LVJ+7CbYfMDGfX2Zx8iExtMYcUPLvkbwvmlD0Xy 7/jcvj5oIp23uTk0+21jBHziGtp8WJy8Hmo474zTttBFIxq0Plxqae5p7GAVE6UM7EFy Cj6GKEpCqhk3+/Bz5TRM/dX90sFggnBE6uYB7CBOSyIkQG8zH9tpNsEqMpuLU3+CDmxH pOjse/U4hOe1Q9veOX2dAGFbS/8Fs+nYHjMjMaHjari/9AOnp1NQEfOxZpaNz9SfVMOe CXDQ== 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z4si1073121otk.66.2020.02.27.00.29.26; Thu, 27 Feb 2020 00:29:38 -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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728612AbgB0I2x (ORCPT + 99 others); Thu, 27 Feb 2020 03:28:53 -0500 Received: from mga02.intel.com ([134.134.136.20]:27621 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728454AbgB0I2w (ORCPT ); Thu, 27 Feb 2020 03:28:52 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Feb 2020 00:28:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,491,1574150400"; d="scan'208";a="261376670" Received: from linux.intel.com ([10.54.29.200]) by fmsmga004.fm.intel.com with ESMTP; 27 Feb 2020 00:28:47 -0800 Received: from abityuts-desk1.fi.intel.com (abityuts-desk1.fi.intel.com [10.237.68.148]) by linux.intel.com (Postfix) with ESMTP id 4CCA6580107; Thu, 27 Feb 2020 00:28:45 -0800 (PST) Message-ID: Subject: Re: [PATCH] cpufreq: Fix policy initialization for internal governor drivers From: Artem Bityutskiy Reply-To: dedekind1@gmail.com To: "Rafael J. Wysocki" , Linux PM Cc: "Rafael J. Wysocki" , Viresh Kumar , Srinivas Pandruvada , LKML Date: Thu, 27 Feb 2020 10:28:44 +0200 In-Reply-To: <3873122.F9s1CIEcb3@kreacher> References: <3873122.F9s1CIEcb3@kreacher> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.5 (3.32.5-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-02-26 at 22:39 +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Before commit 1e4f63aecb53 ("cpufreq: Avoid creating excessively > large stack frames") the initial value of the policy field in struct > cpufreq_policy set by the driver's ->init() callback was implicitly > passed from cpufreq_init_policy() to cpufreq_set_policy() if the > default governor was neither "performance" nor "powersave". After > that commit, however, cpufreq_init_policy() must take that case into > consideration explicitly and handle it as appropriate, so make that > happen. > > Fixes: 1e4f63aecb53 ("cpufreq: Avoid creating excessively large stack frames") > Link: https://lore.kernel.org/linux-pm/39fb762880c27da110086741315ca8b111d781cd.camel@gmail.com/ > Reported-by: Artem Bityutskiy > Cc: 5.4+ # 5.4+ > Signed-off-by: Rafael J. Wysocki Many thanks, fixes the issue. Artem.