test suite reviews and discussions
 help / color / Atom feed
* [dts] [PATCH V1] Add download specific package to NIC
@ 2019-11-29  2:46 Chen, Zhaoyan
  2019-12-04  5:56 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: Chen, Zhaoyan @ 2019-11-29  2:46 UTC (permalink / raw)
  To: dts; +Cc: Chen, Zhaoyan

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-<interface serial number>.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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dts] [PATCH V1] Add download specific package to NIC
  2019-11-29  2:46 [dts] [PATCH V1] Add download specific package to NIC Chen, Zhaoyan
@ 2019-12-04  5:56 ` Tu, Lijuan
  0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2019-12-04  5:56 UTC (permalink / raw)
  To: Chen, Zhaoyan, dts; +Cc: Chen, Zhaoyan

Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Chen, Zhaoyan
> Sent: Friday, November 29, 2019 10:47 AM
> To: dts@dpdk.org
> Cc: Chen, Zhaoyan <zhaoyan.chen@intel.com>
> Subject: [dts] [PATCH V1] Add download specific package to NIC
> 
> 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-<interface serial number>.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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-29  2:46 [dts] [PATCH V1] Add download specific package to NIC Chen, Zhaoyan
2019-12-04  5:56 ` Tu, Lijuan

test suite reviews and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/ public-inbox