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 06034A0579; Thu, 8 Apr 2021 10:55:29 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DB7F814115A; Thu, 8 Apr 2021 10:55:29 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 1CE0B40138 for ; Thu, 8 Apr 2021 10:55:28 +0200 (CEST) IronPort-SDR: El4hgkZgbTLkqvTVquMABeR4IT0Wpcqzm2cbFx5OaB0UZ09ZxOGqxIasw5c/YrPNDDfdeEQA/G wJI8E+CZxj0Q== X-IronPort-AV: E=McAfee;i="6000,8403,9947"; a="180625898" X-IronPort-AV: E=Sophos;i="5.82,205,1613462400"; d="scan'208";a="180625898" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2021 01:55:27 -0700 IronPort-SDR: xbSVnmL5xhUdZTS78FKmvpelqlp+nyQpG+uHRAxVTzDGiEM/Y6t+Fde9mCE/6QIzh69cj6Uqr4 da2K+BvaLMbA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,205,1613462400"; d="scan'208";a="380174146" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga003.jf.intel.com with ESMTP; 08 Apr 2021 01:55:27 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Thu, 8 Apr 2021 01:55:27 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX601.ccr.corp.intel.com (10.109.6.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Thu, 8 Apr 2021 16:55:25 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.2106.013; Thu, 8 Apr 2021 16:55:25 +0800 From: "Tu, Lijuan" To: "Pattan, Reshma" , "dts@dpdk.org" CC: "Pattan, Reshma" Thread-Topic: [dts] [PATCH 4/4] tests/TestSuite_vm_pw_mgmt_policy: change core_mask Thread-Index: AQHXK4aj/IcIGUKfWke9/2e8jahXEKqqUlzQ Date: Thu, 8 Apr 2021 08:55:25 +0000 Message-ID: References: <20210407081807.29110-1-reshma.pattan@intel.com> <20210407081807.29110-4-reshma.pattan@intel.com> In-Reply-To: <20210407081807.29110-4-reshma.pattan@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.5.1.3 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH 4/4] tests/TestSuite_vm_pw_mgmt_policy: change core_mask X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" > -----Original Message----- > From: dts On Behalf Of Reshma Pattan > Sent: 2021=1B$BG/=1B(B4=1B$B7n=1B(B7=1B$BF|=1B(B 16:18 > To: dts@dpdk.org > Cc: Pattan, Reshma > Subject: [dts] [PATCH 4/4] tests/TestSuite_vm_pw_mgmt_policy: change > core_mask >=20 > Change the vm_power_manager core mask and guest_vm_power_manager > core mask. >=20 > Now with dpdk 20.11 the cores used for guest_cli should be enabled in > vm_power_manager core mask. > Otherwise vm_power_manager will not grant the access to fetch the > information for those cores missing in the coremask. >=20 > Relevant DPDK patch > https://patchwork.dpdk.org/project/dpdk/patch/20210115125250.22416-1- > david.hunt@intel.com/ >=20 > Signed-off-by: Reshma Pattan > --- > test_plans/vm_pw_mgmt_policy_test_plan.rst | 4 ++-- > tests/TestSuite_vm_pw_mgmt_policy.py | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) >=20 > diff --git a/test_plans/vm_pw_mgmt_policy_test_plan.rst > b/test_plans/vm_pw_mgmt_policy_test_plan.rst > index cfbfe962..98894ff5 100644 > --- a/test_plans/vm_pw_mgmt_policy_test_plan.rst > +++ b/test_plans/vm_pw_mgmt_policy_test_plan.rst > @@ -172,7 +172,7 @@ Set up testing environment > export RTE_TARGET=3Dx86_64-native-linuxapp-gcc > make -C examples/vm_power_manager >=20 > - ./examples/vm_power_manager/build/vm_power_mgr -c 0x7 -n 4 > + ./examples/vm_power_manager/build/vm_power_mgr -c 0xffff -n 4 >=20 > vmpower> add_vm > vmpower> add_channels all @@ -195,7 +195,7 @@ Set up > testing environment > make -C examples/vm_power_manager/guest_cli >=20 > ./examples/vm_power_manager/guest_cli/build/guest_vm_power_mgr \ > - -c 0x1f -n 4 --file-prefix=3Dvmpower2 -- -i --vm-name=3D \ > + -c 0xff -n 4 --file-prefix=3Dvmpower2 -- -i --vm-name=3D \ > --policy=3D --vcpu-list=3D --busy-hours=3D >=20 > options description:: > diff --git a/tests/TestSuite_vm_pw_mgmt_policy.py > b/tests/TestSuite_vm_pw_mgmt_policy.py > index 9abcafd2..ac746180 100644 > --- a/tests/TestSuite_vm_pw_mgmt_policy.py > +++ b/tests/TestSuite_vm_pw_mgmt_policy.py > @@ -348,7 +348,7 @@ class TestVmPwMgmtPolicy(TestCase): > '-v ' > '-c {core_mask} ' > '-n {mem_channel} ').format(**{ > - 'core_mask': self.get_cores_mask("1S/3C/1T"), > + 'core_mask': '0xffff', Some server may not have so many cores, prefer to get_cores_mask("all") if = need many cores. > 'mem_channel': self.dut.get_memory_channels(), }) > prompt =3D 'vmpower>' > cmd =3D [' '.join([self.vm_power_mgr, eal_option]), prompt, 30] > -- > 2.17.1