From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 92EAA1B217 for ; Tue, 8 Jan 2019 16:25:28 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Jan 2019 07:25:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,454,1539673200"; d="scan'208";a="125218948" Received: from silpixa00399952.ir.intel.com (HELO silpixa00399952.ger.corp.intel.com) ([10.237.223.64]) by orsmga001.jf.intel.com with ESMTP; 08 Jan 2019 07:25:26 -0800 From: David Hunt To: dev@dpdk.org Cc: david.hunt@intel.com, liang.j.ma@intel.com Date: Tue, 8 Jan 2019 15:25:23 +0000 Message-Id: <20190108152523.39944-1-david.hunt@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH] examples/power: fix intel pstate power manager X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jan 2019 15:25:29 -0000 The vm_power_manager starts by setting the environment to acpi using rte_power_set_env(PM_ENV_ACPI_CPUFREQ). This causes a problem starting vm_power_manager when the system is using the intel_pstate driver. The env should be set to none, or not called at all, because the library now auto-detects the environment to be either acpi or intel_pstate. This patch sets the environment to none so that the library can successfully auto-detect. Fixes: e6c6dc0f96c8 ("power: add p-state driver compatibility") Signed-off-by: David Hunt --- examples/vm_power_manager/power_manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/vm_power_manager/power_manager.c b/examples/vm_power_manager/power_manager.c index 21dc3a727..aef832644 100644 --- a/examples/vm_power_manager/power_manager.c +++ b/examples/vm_power_manager/power_manager.c @@ -83,7 +83,7 @@ power_manager_init(void) struct core_info *ci; unsigned int max_core_num; - rte_power_set_env(PM_ENV_ACPI_CPUFREQ); + rte_power_set_env(PM_ENV_NOT_SET); ci = get_core_info(); if (!ci) { -- 2.17.1