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 D5F9EA046B for ; Fri, 26 Jul 2019 08:45:17 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9DB411C3C5; Fri, 26 Jul 2019 08:45:17 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 1F56B1C3C3 for ; Fri, 26 Jul 2019 08:45:15 +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 fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Jul 2019 23:45:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,309,1559545200"; d="scan'208";a="189547612" Received: from unknown (HELO debug193.icx.intel.com) ([10.240.176.193]) by fmsmga001.fm.intel.com with ESMTP; 25 Jul 2019 23:45:14 -0700 From: Wenjie Li To: dts@dpdk.org Cc: Wenjie Li Date: Fri, 26 Jul 2019 15:40:59 +0000 Message-Id: <1564155660-52549-1-git-send-email-wenjiex.a.li@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1 1/2] test_plans/enable_package_download_in_ice: chaneg 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 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