[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <a806a805-92a6-1b23-65f9-6ccd76a56f65@criteo.com>
Date: Tue, 12 Feb 2019 06:57:15 +0000
From: Erwan Velu <e.velu@...teo.com>
To: Srinivas Pandruvada <srinivas.pandruvada@...ux.intel.com>,
Erwan Velu <erwanaliasr1@...il.com>
CC: "Liam.Howlett@...cle.com" <Liam.Howlett@...cle.com>,
Len Brown <lenb@...nel.org>,
"Rafael J. Wysocki" <rjw@...ysocki.net>,
Viresh Kumar <viresh.kumar@...aro.org>,
"open list:INTEL PSTATE DRIVER" <linux-pm@...r.kernel.org>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v3] cpufreq: intel_pstate: Reporting reasons why driver
prematurely exit
Le 12/02/2019 à 00:17, Srinivas Pandruvada a écrit :
> [...]
> To know if the intel_pstate in control, you can look at:
> #cat /sys/devices/system/cpu/cpufreq/policy0/scaling_driver
>
> So if it is not loaded and Intel intend to support a processor model
> with intel_pstate, then OEM's platform_power_management policy can
> override. So we can add one pr_info to show that driver can't be loaded
> because of platform
> intel_pstate_platform_pwr_mgmt_exists(), return true.
Agreed.
But I do think the intel_pstate_msrs_not_valid() case also deserves a
pr_warn() as this is a premature exit because of some hardware settings.
> If HWP is used we already have a pr_info. If HWP is present it will
> always be used unless user overrides.
>
> The cases where a memory allocation fails you will see other warnings
> in the system, so don't need to add in driver. Also if someone
> explcitly using kernel command line to either disable or control
> features, user knows what he is doing.
>
> So no need of pr_warn or pr_info except one case for platform mower
> management. The others are debug messages only.
Ack.
I'm sending a v4 this way.
Thanks for the review & discussions.
Erwan,
Powered by blists - more mailing lists