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 994A3A0A0E; Wed, 3 Feb 2021 07:52:04 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6851424042E; Wed, 3 Feb 2021 07:52:04 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 43CA724041A for ; Wed, 3 Feb 2021 07:52:02 +0100 (CET) IronPort-SDR: OJUwwH0VUFPiSRWFYUWCf9vffxmKpgt4qkx5bNd9doq5Q274OjFSneoxH8fIss/mZUppU9+65h MHIICVX4pKjA== X-IronPort-AV: E=McAfee;i="6000,8403,9883"; a="245072126" X-IronPort-AV: E=Sophos;i="5.79,397,1602572400"; d="scan'208";a="245072126" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2021 22:51:59 -0800 IronPort-SDR: h8et/oFPIVI9NLdfu1JZbxg4R0hySFf6Lp+I2xelGES+8EgCw2z261JvduM9xeWnsIFwTp0XIJ lFVcp0owXUGw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,397,1602572400"; d="scan'208";a="480241430" Received: from fmsmsx606.amr.corp.intel.com ([10.18.126.86]) by fmsmga001.fm.intel.com with ESMTP; 02 Feb 2021 22:51:58 -0800 Received: from shsmsx603.ccr.corp.intel.com (10.109.6.143) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Tue, 2 Feb 2021 22:51:57 -0800 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX603.ccr.corp.intel.com (10.109.6.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 3 Feb 2021 14:51:55 +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.1713.004; Wed, 3 Feb 2021 14:51:55 +0800 From: "Tu, Lijuan" To: "Xie, WeiX" , "dts@dpdk.org" CC: "Xie, WeiX" Thread-Topic: [dts] [PATCH V1] tests/vm_power_manager: change coremask Thread-Index: AQHW+dmSpqQBrDisTEu6rUJS0FOWiKpF/Qvg Date: Wed, 3 Feb 2021 06:51:55 +0000 Message-ID: References: <20210203030954.16375-1-weix.xie@intel.com> In-Reply-To: <20210203030954.16375-1-weix.xie@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 V1] tests/vm_power_manager: change coremask 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 Xie wei > Sent: 2021=1B$BG/=1B(B2=1B$B7n=1B(B3=1B$BF|=1B(B 11:10 > To: dts@dpdk.org > Cc: Xie, WeiX > Subject: [dts] [PATCH V1] tests/vm_power_manager: change coremask >=20 > according to dpdk commit b49c677, adjust the coremask given to > vm_power_manager. >=20 > Signed-off-by: Xie wei > --- > tests/TestSuite_vm_power_manager.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/tests/TestSuite_vm_power_manager.py > b/tests/TestSuite_vm_power_manager.py > index 00910ebd..854e1617 100644 > --- a/tests/TestSuite_vm_power_manager.py > +++ b/tests/TestSuite_vm_power_manager.py > @@ -94,7 +94,7 @@ class TestVmPowerManager(TestCase, > IxiaPacketGenerator): > self.path =3D self.vm_dut.apps_name['guest_cli'] > self.guest_cmd =3D self.path + "-c 0xf -n 4 -- --vm-name=3D%s --= vcpu- > list=3D0,1,2,3" % self.vm_name > self.vm_power_dir =3D self.vm_dut.apps_name['vm_power_manager'] > - mgr_cmd =3D self.vm_power_dir + "-c 0x7 -n 4" > + mgr_cmd =3D self.vm_power_dir + "-c 0x1ff -n 4" check cores is necessary before using these cores. dpdk commit b49c677 said "=20 When vm_power_manager is started, it takes over power management on all cores. This should be limited to cores defined in the core mask. When initialising, if a core is not on the coremask, skip it. Applies to both initialisation and exit." So, please go through script, don't missing any other places. The cores tha= t not on core mask will be not taken over by app. > out =3D self.dut.send_expect(mgr_cmd, "vmpower>", 120) > self.dut.send_expect("add_vm %s" % self.vm_name, "vmpower>") > self.dut.send_expect("add_channels %s all" % self.vm_name, "vmpo= wer>") > -- > 2.17.1