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 47707A04EA; Fri, 29 Nov 2019 03:52:00 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3E96C2B9C; Fri, 29 Nov 2019 03:52:00 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 6FDBB2B8E for ; Fri, 29 Nov 2019 03:51:59 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Nov 2019 18:51:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,255,1571727600"; d="scan'208";a="240896968" Received: from unknown (HELO DPDK-zhaoyan-dev-34.sh.intel.com) ([10.67.118.34]) by fmsmga002.fm.intel.com with ESMTP; 28 Nov 2019 18:51:57 -0800 From: "Chen, Zhaoyan" To: dts@dpdk.org Cc: "Chen, Zhaoyan" Date: Fri, 29 Nov 2019 10:46:34 +0800 Message-Id: <20191129024634.111137-1-zhaoyan.chen@intel.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1] Add download specific package to NIC 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" Add download specific package to NIC --- ...le_package_download_in_ice_driver_test_plan.rst | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) 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 14e5427..55a83e2 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 @@ -152,3 +152,36 @@ Test case 3: Driver enters Safe Mode failed 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 and testpmd failed to start. + + +Test Case 4: Check specific package loadding +============================================= + +This test case requires 2 Intel E810 NICs + +Copy 2 different ``ice.pkg`` into ``/lib/firmware/intel/ice/ddp/``, \ +and rename 1 ice.pkg to ice-.pkg, e.g. ice-8ce1abfffffefd3c.pkg + +Get interface's serial number by:: + + lspci -vs b1:00.0 #Change to your interface's BDF + +For example, +- ``ice.pkg`` version is 1.2.5.1 +- ``ice-8ce1abfffffefd3c.pkg`` version is 1.2.100.1 + +Compile DPDK and testpmd:: + + make install -j T=x86_64-native-linuxapp-gcc + +Launch testpmd with 1 default interface and 1 specific interface:: + + ./x86_64-native-linux-gcc/app/testpmd -l 6-9 -n 4 -w 18:00.0 -w b1:00.0 --log-level=8 -- -i + +In this case, b1:00.0 interface is specific interface. + +Check the initial output log, it shows:: + +EAL: PCI device 0000:b1:00.0 on NUMA socket 0 +EAL: probe driver: 8086:1593 net_ice +**ice_load_pkg(): pkg to be loaded: 1.2.100.0, ICE COMMS Package** \ No newline at end of file -- 2.13.0.windows.1