From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9BB54A0C41; Wed, 12 May 2021 18:33:37 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E0A2B4110F; Wed, 12 May 2021 18:33:21 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 123734003E; Wed, 12 May 2021 18:33:17 +0200 (CEST) IronPort-SDR: Iyy50WjvByWTTGBicaC6mqcvqoCw6HP3TqPNaDh1R8y+I6fPjpY0f5A1le7JPhujjxnRf54WEF J7zR9Wqi4K3Q== X-IronPort-AV: E=McAfee;i="6200,9189,9982"; a="180014979" X-IronPort-AV: E=Sophos;i="5.82,293,1613462400"; d="scan'208";a="180014979" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 May 2021 09:33:06 -0700 IronPort-SDR: dc1sR3xrDvbFsh/icKnhpITYrKJLmGYlL4ARBINm1BDaYIQz6e9BnDIpQ9McGoQCYyOIsYrg95 GACHIaPDAgZw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,293,1613462400"; d="scan'208";a="430816422" Received: from silpixa00399952.ir.intel.com (HELO silpixa00399952.ger.corp.intel.com) ([10.237.222.38]) by orsmga007.jf.intel.com with ESMTP; 12 May 2021 09:33:05 -0700 From: David Hunt To: dev@dpdk.org Cc: david.hunt@intel.com, stable@dpdk.org Date: Wed, 12 May 2021 17:32:53 +0100 Message-Id: <20210512163254.9945-3-david.hunt@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210512163254.9945-1-david.hunt@intel.com> References: <20210422144030.16746-1-david.hunt@intel.com> <20210512163254.9945-1-david.hunt@intel.com> Subject: [dpdk-dev] [PATCH v2 3/4] test/power: fix low freq test when turbo enabled X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" With the intel_pstate driver and turbo enabled, indexing is slightly different to normal, so to get the test to work properly, enable turbo at the start. Fixes: ed7c51a6a680 ("app/test: vm power management") Cc: stable@dpdk.org Signed-off-by: David Hunt --- changes in v2 none --- app/test/test_power_cpufreq.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/test/test_power_cpufreq.c b/app/test/test_power_cpufreq.c index 2b4728d2e1..c24b706f4f 100644 --- a/app/test/test_power_cpufreq.c +++ b/app/test/test_power_cpufreq.c @@ -249,6 +249,8 @@ check_power_freq_down(void) { int ret; + rte_power_freq_enable_turbo(TEST_POWER_LCORE_ID); + /* test with an invalid lcore id */ ret = rte_power_freq_down(TEST_POWER_LCORE_INVALID); if (ret >= 0) { -- 2.17.1