From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 78EF7A046B for ; Fri, 26 Jul 2019 08:59:32 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6C0D41C3CE; Fri, 26 Jul 2019 08:59:32 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 892CF1C3C3 for ; Fri, 26 Jul 2019 08:59:31 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Jul 2019 23:59:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,309,1559545200"; d="scan'208";a="189549844" Received: from unknown (HELO debug193.icx.intel.com) ([10.240.176.193]) by fmsmga001.fm.intel.com with ESMTP; 25 Jul 2019 23:59:29 -0700 From: Wenjie Li To: dts@dpdk.org Cc: yuan.peng@intel.com, Wenjie Li Date: Fri, 26 Jul 2019 15:55:14 +0000 Message-Id: <1564156515-53055-1-git-send-email-wenjiex.a.li@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V2 1/2] test_plans/enable_package_download_in_ice_driver:change cases X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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 test cases based on dpdk 603beeb970b5d87fa7. Signed-off-by: Wenjie Li --- ...ckage_download_in_ice_driver_test_plan.rst | 33 ++++++++++++++++--- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/test_plans/enable_package_download_in_ice_driver_test_plan.rst b/test_plans/enable_package_download_in_ice_driver_test_plan.rst index a6dcfc2..efe2f93 100644 --- a/test_plans/enable_package_download_in_ice_driver_test_plan.rst +++ b/test_plans/enable_package_download_in_ice_driver_test_plan.rst @@ -94,8 +94,8 @@ Test case 1: Download the package successfully with different IPV4/IPV6 address or TCP/UDP/SCTP ports, the packets can be distributed to different rx queues. -Test case 2: failed to download pkg -=================================== +Test case 2: Driver enters Safe Mode successfully +================================================= 1. Server power on, then put a new ice.pkg to /lib/firmware/intel/ice/ddp/ice.pkg. @@ -103,8 +103,9 @@ Test case 2: failed to download pkg 2. Start testpmd:: - ./testpmd -c 0x3fe -n 6 -- -i --nb-cores=8 --rxq=8 --txq=8 \ - --port-topology=chained + ./testpmd -c 0x3fe -n 6 \ + -w PORT0_PCI,safe-mode-support=1 -w PORT1_PCI,safe-mode-support=1 \ + -- -i --nb-cores=8 --rxq=8 --txq=8 --port-topology=chained There will be an error reported:: @@ -133,3 +134,27 @@ Test case 2: failed to download pkg 5. Send UPD/TCP/SCTP+IPV4/IPV6 packets with packet generator with different IPV4/IPV6 address or TCP/UDP/SCTP ports, the packets can be only distributed to rx queue 0. + +Test case 3: Driver enters Safe Mode failed +=========================================== + +1. Server power on, then put a new ice.pkg to + /lib/firmware/intel/ice/ddp/ice.pkg. + Make sure the new ice.pkg is different with the original one. + +2. Start testpmd:: + + ./testpmd -c 0x3fe -n 6 -- -i --nb-cores=8 --rxq=8 --txq=8 \ + --port-topology=chained + + There will be an error reported:: + + ice_dev_init(): Failed to load the DDP package,Use safe-mode-support=1 to enter Safe Mode + + The driver failed to go to safe mode. + +3. Check port info in testpmd:: + + testpmd> show port info all + + There is no listed port info. \ No newline at end of file -- 2.17.1