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 8F8A2A0542; Thu, 29 Dec 2022 07:39:24 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6716F42B71; Thu, 29 Dec 2022 07:39:24 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 2F0EE41181 for ; Thu, 29 Dec 2022 07:39:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672295962; x=1703831962; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=X0Dqw6YsIL+2n4ReIcwbouhAABIONJ66QGoAHnaT9PY=; b=lDST6EJLXJ0TOKDFsW/9AuJOug/t7FXfJNZl4bmCoQHvF7oqF9V/0aHu l4QKvfqTDOKIwZ0Dfb7JfO+faMf0ENDVy5tj0mdxc1+WiREhxXnrqrmA9 l80FxDvkTUmqR+wpTzrOm5m8ljEEV7h1hrukqpFhz64U8MRjvo9A/XLFg 6H5mxzYrwxUooaPLMLk4fkKUfEqeMwfG5Us9J6r4r9QTfkQbc1gQUeH5J 6JLugGUoppkqbfYmQggpqb9CKhXhqU/NZIX4BBJfuRtL70QRkCGVu4zfl 6X9Gv280D4XycctGZm1cmBDjcttuAgMRkB94G8YRcScQwvE00YfPd5bZf A==; X-IronPort-AV: E=McAfee;i="6500,9779,10574"; a="319705727" X-IronPort-AV: E=Sophos;i="5.96,283,1665471600"; d="scan'208";a="319705727" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Dec 2022 22:39:21 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10574"; a="655509285" X-IronPort-AV: E=Sophos;i="5.96,283,1665471600"; d="scan'208";a="655509285" Received: from unknown (HELO localhost.localdomain) ([10.239.252.196]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Dec 2022 22:39:19 -0800 From: Yu Jiang To: qi.fu@intel.com, dts@dpdk.org Cc: Yu Jiang Subject: [dts][PATCH V1] tests/ice_1pps_signal: remove suite and test plan due to dpdk22.11 changes Date: Thu, 29 Dec 2022 14:39:19 +0800 Message-Id: <20221229063919.2247153-1-yux.jiang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 According to dpdk22.11 commit 1bcb7ba9 ("app/testpmd: drop PCI register commands"), reading and setting port registers related cmds have been removed from dpdk. Signed-off-by: Yu Jiang --- test_plans/ice_1pps_signal_test_plan.rst | 131 ----------------------- test_plans/index.rst | 1 - tests/TestSuite_ice_1pps_signal.py | 128 ---------------------- 3 files changed, 260 deletions(-) delete mode 100644 test_plans/ice_1pps_signal_test_plan.rst delete mode 100644 tests/TestSuite_ice_1pps_signal.py diff --git a/test_plans/ice_1pps_signal_test_plan.rst b/test_plans/ice_1pps_signal_test_plan.rst deleted file mode 100644 index 1c7c4d8a..00000000 --- a/test_plans/ice_1pps_signal_test_plan.rst +++ /dev/null @@ -1,131 +0,0 @@ -.. SPDX-License-Identifier: BSD-3-Clause - Copyright(c) 2021 Intel Corporation - -========================= -ICE 1PPS Signal Test Plan -========================= - -Description -=========== -The IntelĀ® Ethernet 800 Series supports a total of four single-ended GPIO signals(SPD[20:23])plus -one different GPIO signal (CLK_OUT_P/N), which is configured by default 1PPS(out). The SPD[20:23] -is mapping to pin_id[0:3]. This test plan is designed to check the value of related registers, -which make up the 1PPS signal. The registers address depends on some hardware config. -The test cases only give the example of E810-XXVDA4 and E810-CQ. - - -Prerequisites -============= - -Topology --------- -DUT port 0 <----> Tester port 0 - -Hardware --------- -Supported NICs: IntelĀ® Ethernet 800 Series E810-XXVDA4/E810-CQ - -Software --------- -dpdk: http://dpdk.org/git/dpdk -scapy: http://www.secdev.org/projects/scapy/ - -General set up --------------- -1. Compile DPDK:: - - # CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib --default-library=static - # ninja -C -j 110 - -2. Get the pci device id and interface of DUT and tester. - For example, 0000:18:00.0 and 0000:18:00.1 is pci device id, - ens785f0 and ens785f1 is interface:: - - # ./usertools/dpdk-devbind.py -s - - 0000:18:00.0 'Device 159b' if=ens785f0 drv=ice unused=vfio-pci - 0000:18:00.1 'Device 159b' if=ens785f1 drv=ice unused=vfio-pci - -3. Bind the DUT port to dpdk:: - - # ./usertools/dpdk-devbind.py -b vfio-pci - - -Test case -========= - -Test case 1: check registers when pin id is 0 ---------------------------------------------- - -this case is designed to check the register value is right when pin id is 0. - -test steps -~~~~~~~~~~ -1. start testpmd with different pin_id and dump registers:: - - /app/dpdk-testpmd -a ,pps_out='[pin:0]' -- -i --rxq=4 --txq=4 - testpmd> read reg 0 0x00088998 - testpmd> read reg 0 0x000889B8 - testpmd> read reg 0 0x00088928 - testpmd> read reg 0 0x00088930 - testpmd> read reg 0 0x000880C8 - -2. check the GLTSYN_AUX_OUT_0[0] 0x00088998 is 0x00000007 (7), GLTSYN_CLKO_0[0] 0x000889B8 is 0x1DCD6500 (500000000), the 0x00088928 and 0x00088930 is non-zero, - The 3rd Hexadecimal digit of GLGEN_GPIO_CTL[0] 0x000880C8 is 8. And the 5th binary digit is 1. - -Test case 2: check registers when pin id is 1 ---------------------------------------------- - -this case is designed to check the register value is right when pin id is 1. - -test steps -~~~~~~~~~~ -1. start testpmd with different pin_id and dump registers:: - - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xf -n 4 -a 0000:18:00.0,pps_out='[pin:1]' -- -i --rxq=4 --txq=4 - testpmd> read reg 0 0x000889A0 - testpmd> read reg 0 0x000889C0 - testpmd> read reg 0 0x00088938 - testpmd> read reg 0 0x00088940 - testpmd> read reg 0 0x000880CC - -2. check the GLTSYN_AUX_OUT_1[0] 0x000889A0 is 0x00000007 (7), GLTSYN_CLKO_1[0] 0x000889C0 is 0x1DCD6500 (500000000), the 0x00088938 and 0x00088940 is non-zero, - The 3rd Hexadecimal digit of GLGEN_GPIO_CTL[1] 0x000880CC is 9. And the 5th binary digit is 1. - -Test case 3: check registers when pin id is 2 ---------------------------------------------- - -this case is designed to check the register value is right when pin id is 2. - -test steps -~~~~~~~~~~ -1. start testpmd with different pin_id and dump registers:: - - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xf -n 4 -a 0000:18:00.0,pps_out='[pin:2]' -- -i --rxq=4 --txq=4 - testpmd> read reg 0 0x000889A8 - testpmd> read reg 0 0x000889C8 - testpmd> read reg 0 0x00088948 - testpmd> read reg 0 0x00088950 - testpmd> read reg 0 0x000880D0 - -2. check the GLTSYN_AUX_OUT_2[0] 0x000889A8 is 0x00000007 (7), GLTSYN_CLKO_2[0] 0x000889C8 is 0x1DCD6500 (500000000), the 0x00088948 and 0x00088950 is non-zero, - The 3rd Hexadecimal digit of GLGEN_GPIO_CTL[2] 0x000880D0 is A. And the 5th binary digit is 1. - -Test case 4: check registers when pin id is 3 ---------------------------------------------- - -this case is designed to check the register value is right when pin id is 3. - -test steps -~~~~~~~~~~ -1. start testpmd with different pin_id and dump registers:: - - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xf -n 4 -a 0000:18:00.0,pps_out='[pin:3]' -- -i --rxq=4 --txq=4 - testpmd> read reg 0 0x000889B0 - testpmd> read reg 0 0x000889D0 - testpmd> read reg 0 0x00088958 - testpmd> read reg 0 0x00088960 - testpmd> read reg 0 0x000880D4 - -2. check the GLTSYN_AUX_OUT_3[0] 0x000889B0 is 0x00000007 (7), GLTSYN_CLKO_3[0] 0x000889D0 is 0x1DCD6500 (500000000), the 0x00088958 and 0x00088960 is non-zero, - The 3rd Hexadecimal digit of GLGEN_GPIO_CTL[3] 0x000880D4 is B. And the 5th binary digit is 1. \ No newline at end of file diff --git a/test_plans/index.rst b/test_plans/index.rst index 9ca954e2..d2552f22 100644 --- a/test_plans/index.rst +++ b/test_plans/index.rst @@ -54,7 +54,6 @@ The following are the test plans for the DPDK DTS automated test system. ice_switch_filter_test_plan ice_switch_filter_pppoe_test_plan ice_vf_support_multicast_address_test_plan - ice_1pps_signal_test_plan ice_rss_protocol_agnostic_flow_test_plan ice_fdir_protocol_agnostic_flow_test_plan cloud_filter_with_l4_port_test_plan diff --git a/tests/TestSuite_ice_1pps_signal.py b/tests/TestSuite_ice_1pps_signal.py deleted file mode 100644 index ef94d466..00000000 --- a/tests/TestSuite_ice_1pps_signal.py +++ /dev/null @@ -1,128 +0,0 @@ -# SPDX-License-Identifier: BSD-3-Clause -# Copyright(c) 2010-2022 Intel Corporation -# - -import re - -from framework.pmd_output import PmdOutput -from framework.test_case import TestCase, check_supported_nic - - -class TestICE1PPS(TestCase): - supported_nic = ["ICE_100G-E810C_QSFP", "ICE_25G-E810C_SFP", "ICE_25G-E810_XXV_SFP"] - - @check_supported_nic(supported_nic) - def set_up_all(self): - """ - Run at the start of each test suite. - prerequisites. - """ - # Based on h/w type, chose how many ports to use - dut_ports = self.dut.get_ports(self.nic) - self.verify(len(dut_ports) >= 1, "Insufficient ports for testing") - # Verify that enough threads are available - self.cores = self.dut.get_core_list("1S/2C/1T") - self.verify(self.cores, "Insufficient cores for speed testing") - self.pci = self.dut.ports_info[dut_ports[0]]["pci"] - self.pmd_output = PmdOutput(self.dut) - self.GLTSYN_AUX = re.compile(r"0x00000007\s+\(7\)") - self.GLTSYN_CLKO = re.compile(r"0x1DCD6500\s+\(500000000\)") - self.pattern = re.compile( - "register\s+at\s+offset\s+.*:\s+(?P0x\w+)\s+\(\d+\)" - ) - - def set_up(self): - """ - Run before each test case. - """ - pass - - def read_register(self, addr, port_id=0): - cmd = "read reg {} {}".format(port_id, addr) - return self.pmd_output.execute_cmd(cmd) - - def launch_testpmd(self, pin_id, rxq=4, txq=4): - self.out = self.pmd_output.start_testpmd( - cores="1S/2C/1T", - param="--rxq={} --txq={} ".format(rxq, txq), - eal_param="-a {},pps_out='[pin:{}]'".format(self.pci, pin_id), - ) - # Check the GLTSYN_AUX_OUT, GLTSYN_CLKO and other two registers - - def check_four_registers(self, pin_id, addrs, port_id=0): - self.launch_testpmd(pin_id) - for i in range(len(addrs)): - out = self.read_register(addrs[i], port_id=port_id) - if i == 0: - pattern = self.GLTSYN_AUX - elif i == 1: - pattern = self.GLTSYN_CLKO - else: - pattern = self.pattern - res = pattern.search(out) - self.verify( - res, "pattern:{} not found in output info: {}".format(pattern, out) - ) - if i > 1: - actual_value = int(res.group("hex"), 16) - self.verify( - actual_value != 0, - "check pin id:{0} register address:{1} failed, expected value is non-zero, actual value is:{2}".format( - pin_id, addrs[i], actual_value - ), - ) - self.logger.info( - "check pin id: {0} register address: {1} pass".format(pin_id, addrs[i]) - ) - # complete checking registers - self.quit_testpmd() - return res - - def check_GLGEN_GPIO_CTL_value(self, hex_value, target_value): - self.verify( - hex_value[-3] == target_value, - "check register failed, target value is {} not match expected value {}".format( - hex_value[-3], target_value - ), - ) - bit_5th = bin(int(hex_value, 16))[-5] - self.verify( - bit_5th == "1", - "check register failed, the 5th bit is {} not match expected value {}".format( - bit_5th, 1 - ), - ) - self.logger.info("check register value {} pass".format(hex_value)) - - def test_check_register_with_pin_id_0(self): - addrs = ["0x00088998", "0x000889B8", "0x00088928", "0x00088930", "0x000880C8"] - res = self.check_four_registers(pin_id=0, addrs=addrs) - # 3rd Hexadecimal digit of GLGEN_GPIO_CTL[0] 0x000880C8 is 8. And the 5th binary digit is 1. - self.check_GLGEN_GPIO_CTL_value(hex_value=res.group("hex"), target_value="8") - - def test_check_register_with_pin_id_1(self): - addrs = ["0x000889A0", "0x000889C0", "0x00088938", "0x00088940", "0x000880CC"] - res = self.check_four_registers(pin_id=1, addrs=addrs) - # 3rd Hexadecimal digit of GLGEN_GPIO_CTL[1] 0x000880CC is 9. And the 5th binary digit is 1. - self.check_GLGEN_GPIO_CTL_value(hex_value=res.group("hex"), target_value="9") - - def test_check_register_with_pin_id_2(self): - addrs = ["0x000889A8", "0x000889C8", "0x00088948", "0x00088950", "0x000880D0"] - res = self.check_four_registers(pin_id=2, addrs=addrs) - # 3rd Hexadecimal digit of GLGEN_GPIO_CTL[2] 0x000880D0 is A. And the 5th binary digit is 1. - self.check_GLGEN_GPIO_CTL_value(hex_value=res.group("hex"), target_value="A") - - def test_check_register_with_pin_id_3(self): - addrs = ["0x000889B0", "0x000889D0", "0x00088958", "0x00088960", "0x000880D4"] - res = self.check_four_registers(pin_id=3, addrs=addrs) - # 3rd Hexadecimal digit of GLGEN_GPIO_CTL[3] 0x000880D4 is B. And the 5th binary digit is 1. - self.check_GLGEN_GPIO_CTL_value(hex_value=res.group("hex"), target_value="B") - - def quit_testpmd(self): - self.pmd_output.quit() - - def tear_down(self): - self.dut.kill_all() - - def tear_down_all(self): - self.dut.kill_all() -- 2.25.1