From patchwork Wed Apr 7 08:18:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Pattan, Reshma" X-Patchwork-Id: 90789 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id F1695A0546; Wed, 7 Apr 2021 10:18:21 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E4C52141088; Wed, 7 Apr 2021 10:18:21 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id B6F2114106C for ; Wed, 7 Apr 2021 10:18:19 +0200 (CEST) IronPort-SDR: Z4U5q5FpnA/LqbKLvCZqS/QSmI80bNkFFZQaD/FJBIud5utapaN972ZcWV6D/m1rh+V3/oRULb osYExjlDJ7LA== X-IronPort-AV: E=McAfee;i="6000,8403,9946"; a="173332556" X-IronPort-AV: E=Sophos;i="5.82,203,1613462400"; d="scan'208";a="173332556" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2021 01:18:18 -0700 IronPort-SDR: v9k6ufKnnDcYajIQf9bhjVd3xkMqY4txdNXRwCXSFHzIDzJbUurLW3kss8Y23hSEk7D6EgPXMZ tZw/eHystteg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,203,1613462400"; d="scan'208";a="415165183" Received: from silpixa00400215.ir.intel.com (HELO silpixa00400215.ger.corp.intel.com) ([10.237.223.24]) by fmsmga008.fm.intel.com with ESMTP; 07 Apr 2021 01:18:17 -0700 From: Reshma Pattan To: dts@dpdk.org Cc: Reshma Pattan Date: Wed, 7 Apr 2021 09:18:04 +0100 Message-Id: <20210407081807.29110-1-reshma.pattan@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH 1/4] conf/power_pstate: change core 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" Now with dpdk 20.11, vm_power_manager only grants access to the cores listed in its coremask, so change core number to be the one from vm_power_mgr core mask. Relevant DPDK patch https://patchwork.dpdk.org/project/dpdk/patch/20210115125250.22416-1-david.hunt@intel.com/ Signed-off-by: Reshma Pattan --- conf/power_pstate.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/power_pstate.cfg b/conf/power_pstate.cfg index 269dcc2b..228e0829 100644 --- a/conf/power_pstate.cfg +++ b/conf/power_pstate.cfg @@ -1,2 +1,2 @@ [suite] -check_core = 20 \ No newline at end of file +check_core = 4 From patchwork Wed Apr 7 08:18:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Pattan, Reshma" X-Patchwork-Id: 90790 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2CE34A0579; Wed, 7 Apr 2021 10:18:22 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 218091410A0; Wed, 7 Apr 2021 10:18:22 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 595E314106C for ; Wed, 7 Apr 2021 10:18:20 +0200 (CEST) IronPort-SDR: gZ6fGUWJ9JnVIvO6McP9y6e6GmMkmvT8dJtp/0DW+CW90IYg0Hmrqalgzs/BJBC+NpWTJAYiYM AWp0p/KW0RKQ== X-IronPort-AV: E=McAfee;i="6000,8403,9946"; a="173332559" X-IronPort-AV: E=Sophos;i="5.82,203,1613462400"; d="scan'208";a="173332559" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2021 01:18:19 -0700 IronPort-SDR: IZjPQRHToF9o3Ou7hNFR/Ma9vGugqF6eDEGDfMC3d8IzPv4oxaZiPASXqyADJnGgIinkqtsUlv t4V5N7Sw+NSw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,203,1613462400"; d="scan'208";a="415165191" Received: from silpixa00400215.ir.intel.com (HELO silpixa00400215.ger.corp.intel.com) ([10.237.223.24]) by fmsmga008.fm.intel.com with ESMTP; 07 Apr 2021 01:18:18 -0700 From: Reshma Pattan To: dts@dpdk.org Cc: Reshma Pattan Date: Wed, 7 Apr 2021 09:18:05 +0100 Message-Id: <20210407081807.29110-2-reshma.pattan@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210407081807.29110-1-reshma.pattan@intel.com> References: <20210407081807.29110-1-reshma.pattan@intel.com> Subject: [dts] [PATCH 2/4] tests/power_bidirection_channel: change core masks 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" Change the vm_power_manager and gues_cli app core masks. 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. Relevant DPDK patch https://patchwork.dpdk.org/project/dpdk/patch/20210115125250.22416-1-david.hunt@intel.com/ Signed-off-by: Reshma Pattan --- .../power_bidirection_channel_test_plan.rst | 20 +++++++++---------- tests/TestSuite_power_bidirection_channel.py | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/test_plans/power_bidirection_channel_test_plan.rst b/test_plans/power_bidirection_channel_test_plan.rst index e26a6033..a6df6597 100644 --- a/test_plans/power_bidirection_channel_test_plan.rst +++ b/test_plans/power_bidirection_channel_test_plan.rst @@ -59,7 +59,7 @@ Step 1. Launch VM using libvirt:: Step 2. Launch VM power manager example on the host to monitor the channel from VM:: - ./examples/vm_power_manager/build/vm_power_mgr -l 12-14 -n 4 --no-pci + ./examples/vm_power_manager/build/vm_power_mgr -c 0xfffe -n 4 --no-pci vmpower> add_vm [vm name] vmpower> add_channels [vm name] all vmpower> set_channel_status [vm name] all enabled @@ -73,7 +73,7 @@ Step 2. Launch VM power manager example on the host to monitor the channel from Step 3. In the VM, launch guest_vm_power_mgr to set and send the power manager policy to the host power example:: - ./examples/vm_power_manager/guest_cli/build/guest_vm_power_mgr -c 0xff -n 4 -m 1024 --no-pci --file-prefix=vm_power -- --vm-name=ubuntu --vcpu-list=0-7 + ./examples/vm_power_manager/guest_cli/build/guest_vm_power_mgr -c 0xfe -n 4 -m 1024 --no-pci --file-prefix=vm_power -- --vm-name=ubuntu --vcpu-list=0-7 Send command to the core 7 on host APP: vmpower(guest)> set_cpu_freq 7 down @@ -86,8 +86,8 @@ Step 3. In the VM, launch guest_vm_power_mgr to set and send the power manager p Step 4. Set frequency on core which is out of the VM's core scope:: - For example, the vcpu range is 0-7, we set command to vcpu number 9 as following: - vmpower(guest)> set_cpu_freq 9 down + For example, the vcpu range is 0-7, we set command to vcpu number 8 as following: + vmpower(guest)> set_cpu_freq 8 down GUEST_CHANNEL: Channel is not connected Error sending message: Unknown error -1 @@ -100,7 +100,7 @@ Step 1. Launch VM using libvirt:: Step 2. Launch VM power manager example on the host to monitor the channel from VM:: - ./examples/vm_power_manager/build/vm_power_mgr -l 12-14 -n 4 --no-pci + ./examples/vm_power_manager/build/vm_power_mgr -c 0xfffe -n 4 --no-pci vmpower> add_vm [vm name] vmpower> add_channels [vm name] all vmpower> set_channel_status [vm name] all enabled @@ -115,7 +115,7 @@ Step 3. Enable the query permission for target VM from host vm_power_mgr example Step 4. Query the CPU frequency for all CPU cores from VM side:: - ./examples/vm_power_manager/guest_cli/build/guest_vm_power_mgr -c 0xff -n 4 -m 1024 --no-pci --file-prefix=vm_power -- --vm-name=ubuntu --vcpu-list=0-7 + ./examples/vm_power_manager/guest_cli/build/guest_vm_power_mgr -c 0xfe -n 4 -m 1024 --no-pci --file-prefix=vm_power -- --vm-name=ubuntu --vcpu-list=0-7 vmpower> query_cpu_freq | all Check vcpu 0~7 frequency info will be returned, for example: @@ -158,16 +158,16 @@ Step4: Query all the valid CPU core capability of host, check all cores' informa Step 5: Query CPU capability for core out of scope, check no CPU info will be return:: - For example, the valid vcpu range is 0~7, query cpu capability of core 9 should return error as following: - vmpower(guest)> query_cpu_caps 9 + For example, the valid vcpu range is 0~7, query cpu capability of core 8 should return error as following: + vmpower(guest)> query_cpu_caps 8 Invalid parameter provided. Step 6: Disable query permission from VM, check the host CPU capability won't be returned:: at host side, disable query permission by vm_power_mgr example: vmpower> set_query ubuntu disable - + at VM side, query CPU capability again, this action should not be executed successfully, log as following: vmpower(guest)> query_cpu_caps all GUEST_CLI: Error receiving message. - Error during capabilities reception. \ No newline at end of file + Error during capabilities reception. diff --git a/tests/TestSuite_power_bidirection_channel.py b/tests/TestSuite_power_bidirection_channel.py index 05e135af..1aa02976 100644 --- a/tests/TestSuite_power_bidirection_channel.py +++ b/tests/TestSuite_power_bidirection_channel.py @@ -269,7 +269,7 @@ class TestPowerBidirectionChannel(TestCase): '-c {core_mask} ' '-n {mem_channel} ' '--no-pci ').format(**{ - 'core_mask': self.get_cores_mask("1S/3C/1T"), + 'core_mask': self.get_cores_mask("1S/12C/1T"), 'mem_channel': self.dut.get_memory_channels(), }) prompt = 'vmpower>' cmd = [' '.join([self.vm_power_mgr, option]), prompt, 30] @@ -320,7 +320,7 @@ class TestPowerBidirectionChannel(TestCase): '-- ' '--vm-name={vm_name} ' '--vcpu-list={vpus} ').format(**{ - 'core_mask': '0xff', + 'core_mask': '0xfe', 'memory_channel': self.vm_dut.get_memory_channels(), 'memory_size': 1024, 'file_prefix': 'vmpower1', From patchwork Wed Apr 7 08:18:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Pattan, Reshma" X-Patchwork-Id: 90791 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4ED38A0A02; Wed, 7 Apr 2021 10:18:23 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 49B891410A7; Wed, 7 Apr 2021 10:18:23 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 4D547141083 for ; Wed, 7 Apr 2021 10:18:21 +0200 (CEST) IronPort-SDR: 47U67eiUn+Ub5R/RVz0Qlsj+eM2CPsEEdgflgtpinL3Nylh8+U579cm4DCV5OpWiRSu8LOY9tu KHcKtHyLWLzg== X-IronPort-AV: E=McAfee;i="6000,8403,9946"; a="173332561" X-IronPort-AV: E=Sophos;i="5.82,203,1613462400"; d="scan'208";a="173332561" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2021 01:18:20 -0700 IronPort-SDR: eXcGRIKV4aGNSc8SPifc9aGTUKwPS7qs/BQXXOCTIR9Hk9UcEODzyWELJADWL6trRLfuJ1A1zj 3H2bazKp3dMQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,203,1613462400"; d="scan'208";a="415165199" Received: from silpixa00400215.ir.intel.com (HELO silpixa00400215.ger.corp.intel.com) ([10.237.223.24]) by fmsmga008.fm.intel.com with ESMTP; 07 Apr 2021 01:18:19 -0700 From: Reshma Pattan To: dts@dpdk.org Cc: Reshma Pattan Date: Wed, 7 Apr 2021 09:18:06 +0100 Message-Id: <20210407081807.29110-3-reshma.pattan@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210407081807.29110-1-reshma.pattan@intel.com> References: <20210407081807.29110-1-reshma.pattan@intel.com> Subject: [dts] [PATCH 3/4] tests/power_pbf: 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" Change the vm_power_manager core mask to accommodate maximum cores to allow the access to any core information requested by guest_cli application. 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. Relevant DPDK patch https://patchwork.dpdk.org/project/dpdk/patch/20210115125250.22416-1-david.hunt@intel.com/ Signed-off-by: Reshma Pattan --- test_plans/power_pbf_test_plan.rst | 6 +++--- tests/TestSuite_power_pbf.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test_plans/power_pbf_test_plan.rst b/test_plans/power_pbf_test_plan.rst index a8046244..6a38fc61 100644 --- a/test_plans/power_pbf_test_plan.rst +++ b/test_plans/power_pbf_test_plan.rst @@ -59,7 +59,7 @@ Step 1. Create powermonitor fold for:: Step 2. Compile DPDK with Power Lib debug info on, then Luanch VM power manager sample:: - ./examples/vm_power_manager/build/vm_power_mgr -l 1-4 -n 4 --file-prefix=power --no-pci + ./examples/vm_power_manager/build/vm_power_mgr -l 1-46 -n 4 --file-prefix=power --no-pci Check two different base_max frequency will be shown in log, for example on Intel 6230N Processor: The log will be like as following @@ -87,7 +87,7 @@ Step 1. Create powermonitor fold for:: Step 2. Compile DPDK with Power Lib debug info on, then aunch VM power manager sample:: - ./examples/vm_power_manager/build/vm_power_mgr -l 1-4 -n 4 --file-prefix=power --no-pci + ./examples/vm_power_manager/build/vm_power_mgr -l 1-46 -n 4 --file-prefix=power --no-pci Step 3. Prepare different command in JSON format:: @@ -129,7 +129,7 @@ Step 1. Create powermonitor fold for:: Step 2. Compile DPDK with Power Lib debug info on, then launch VM power manager sample:: - ./examples/vm_power_manager/build/vm_power_mgr -l 1-4 -n 4 --file-prefix=power --no-pci + ./examples/vm_power_manager/build/vm_power_mgr -l 1-46 -n 4 --file-prefix=power --no-pci Step 3. Prepare Several command in JSON format then send it to the fifo channel for the high priority core:: diff --git a/tests/TestSuite_power_pbf.py b/tests/TestSuite_power_pbf.py index 6109a3bf..c3e2075c 100644 --- a/tests/TestSuite_power_pbf.py +++ b/tests/TestSuite_power_pbf.py @@ -166,7 +166,7 @@ class TestPowerPbf(TestCase): if self.is_mgr_on: return bin_file = os.sep.join([self.target_dir, '']) - config = "1S/4C/1T" + config = "2S/23C/1T" option = '-v -c {0} -n {1} --file-prefix=vmpower --no-pci'.format( self.get_cores_mask(config), self.memory_channels) From patchwork Wed Apr 7 08:18:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Pattan, Reshma" X-Patchwork-Id: 90792 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 73945A0546; Wed, 7 Apr 2021 10:18:25 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6E2621410AB; Wed, 7 Apr 2021 10:18:25 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id E74C314109B for ; Wed, 7 Apr 2021 10:18:22 +0200 (CEST) IronPort-SDR: Z7uZIaR4pxYEUbwetEurrHIIQqlvjIc4SzVXkLI1v7lgHQIR9go1uYhlXJBaTaSCPh4Ma5rKoK JM6otXk5Jb2g== X-IronPort-AV: E=McAfee;i="6000,8403,9946"; a="173332562" X-IronPort-AV: E=Sophos;i="5.82,203,1613462400"; d="scan'208";a="173332562" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2021 01:18:22 -0700 IronPort-SDR: cNaZA1rrTR7kTl7yGGfzrM7YCeKYzKBrCeTfRBGosz/PS8SE+MuRYOr5NGEcyp3jjdh/FsDktN N+6/7IjJqt6g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,203,1613462400"; d="scan'208";a="415165206" Received: from silpixa00400215.ir.intel.com (HELO silpixa00400215.ger.corp.intel.com) ([10.237.223.24]) by fmsmga008.fm.intel.com with ESMTP; 07 Apr 2021 01:18:20 -0700 From: Reshma Pattan To: dts@dpdk.org Cc: Reshma Pattan Date: Wed, 7 Apr 2021 09:18:07 +0100 Message-Id: <20210407081807.29110-4-reshma.pattan@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210407081807.29110-1-reshma.pattan@intel.com> References: <20210407081807.29110-1-reshma.pattan@intel.com> Subject: [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" Change the vm_power_manager core mask and guest_vm_power_manager core mask. 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. Relevant DPDK patch https://patchwork.dpdk.org/project/dpdk/patch/20210115125250.22416-1-david.hunt@intel.com/ 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(-) 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=x86_64-native-linuxapp-gcc make -C examples/vm_power_manager - ./examples/vm_power_manager/build/vm_power_mgr -c 0x7 -n 4 + ./examples/vm_power_manager/build/vm_power_mgr -c 0xffff -n 4 vmpower> add_vm vmpower> add_channels all @@ -195,7 +195,7 @@ Set up testing environment make -C examples/vm_power_manager/guest_cli ./examples/vm_power_manager/guest_cli/build/guest_vm_power_mgr \ - -c 0x1f -n 4 --file-prefix=vmpower2 -- -i --vm-name= \ + -c 0xff -n 4 --file-prefix=vmpower2 -- -i --vm-name= \ --policy= --vcpu-list= --busy-hours=