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 508E4A054D; Wed, 8 Jun 2022 06:55:16 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4AADF4113F; Wed, 8 Jun 2022 06:55:16 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 5BEB84021D for ; Wed, 8 Jun 2022 06:55:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654664114; x=1686200114; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=DjUV74ZpSmXZqVtiXrPdTZ7I/lyT0N3a5UjWPojehzQ=; b=drmP/taegNgAaDQ4TcP3uR8dsHyYQdGF4oCYTUa8D+et5Hwm1KhH3bel 2UMrfUgIRr1BvICqYfybcH/GF/xKy4iMjXqRCnBOKxGykPfn/uw/T910a e8n4byFT0tL15pqsRi2kZibGxDNxkjFj6rtNHb4h256c2b3X+77rkQyap MKy6LTmjQ/8ksk/1rX378pdvOaZ3FDU8BtTCeFSdzCYTRSwg6F9M9eJHj 3L2uq4facD2p+sCxP2ddSrgM1oXY1TUJQj3gbQ2gLCBabJrec8j3HL4Aa 2K7F33wJM8nRKWV03tU0chL/0o4+WwhM/aSUOVK7JxLmyUTd1/5omaKyG A==; X-IronPort-AV: E=McAfee;i="6400,9594,10371"; a="265542889" X-IronPort-AV: E=Sophos;i="5.91,285,1647327600"; d="scan'208";a="265542889" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2022 21:55:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,285,1647327600"; d="scan'208";a="670347351" Received: from dpdk-yaqi.sh.intel.com ([10.67.118.178]) by FMSMGA003.fm.intel.com with ESMTP; 07 Jun 2022 21:55:12 -0700 From: Yaqi Tang To: dts@dpdk.org Cc: xueqin.lin@intel.com, Yaqi Tang Subject: [dts][PATCH V1 1/2] test_plans/blocklist: Modify testpmd port and adjust format Date: Wed, 8 Jun 2022 04:55:07 +0000 Message-Id: <20220608045508.350806-2-yaqi.tang@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220608045508.350806-1-yaqi.tang@intel.com> References: <20220608045508.350806-1-yaqi.tang@intel.com> MIME-Version: 1.0 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 Testpmd port in test plan is wrong, so modify test case 3 testpmd port. And adjust the format of test plan according to test plan template. Signed-off-by: Yaqi Tang --- test_plans/blocklist_test_plan.rst | 171 +++++++++++++++-------------- 1 file changed, 86 insertions(+), 85 deletions(-) diff --git a/test_plans/blocklist_test_plan.rst b/test_plans/blocklist_test_plan.rst index f20fc207..26d1f202 100644 --- a/test_plans/blocklist_test_plan.rst +++ b/test_plans/blocklist_test_plan.rst @@ -18,88 +18,89 @@ to the device under test:: modprobe vfio-pci usertools/dpdk-devbind.py --bind=vfio-pci device_bus_id -Test Case: Testpmd with no blocklisted device -============================================= - -Run testpmd in interactive mode and ensure that at least 2 ports -are bound and available:: - - build/app/dpdk-testpmd -c 3 -- -i - .... - EAL: unbind kernel driver /sys/bus/pci/devices/0000:01:00.0/driver/unbind - EAL: Core 1 is ready (tid=357fc700) - EAL: bind PCI device 0000:01:00.0 to uio driver - EAL: Device bound - EAL: map PCI resource for device 0000:01:00.0 - EAL: PCI memory mapped at 0x7fe6b68c7000 - EAL: unbind kernel driver /sys/bus/pci/devices/0000:01:00.1/driver/unbind - EAL: bind PCI device 0000:01:00.1 to uio driver - EAL: Device bound - EAL: map PCI resource for device 0000:01:00.1 - EAL: PCI memory mapped at 0x7fe6b6847000 - EAL: unbind kernel driver /sys/bus/pci/devices/0000:02:00.0/driver/unbind - EAL: bind PCI device 0000:02:00.0 to uio driver - EAL: Device bound - EAL: map PCI resource for device 0000:02:00.0 - EAL: PCI memory mapped at 0x7fe6b6580000 - EAL: unbind kernel driver /sys/bus/pci/devices/0000:02:00.1/driver/unbind - EAL: bind PCI device 0000:02:00.1 to uio driver - EAL: Device bound - EAL: map PCI resource for device 0000:02:00.1 - EAL: PCI memory mapped at 0x7fe6b6500000 - Interactive-mode selected - Initializing port 0... done: Link Up - speed 10000 Mbps - full-duplex - Initializing port 1... done: Link Up - speed 10000 Mbps - full-duplex - Initializing port 2... done: Link Up - speed 10000 Mbps - full-duplex - Initializing port 3... done: Link Up - speed 10000 Mbps - full-duplex - - -Test Case: Testpmd with one port blocklisted -============================================ - -Select first available port to be blocklisted and specify it with -b option. For the example above:: - - build/app/dpdk-testpmd -c 3 -b 0000:01:00.0 -- -i - -Check that corresponding device is skipped for binding, and -only 3 ports are available now::: - - EAL: unbind kernel driver /sys/bus/pci/devices/0000:01:00.1/driver/unbind - EAL: bind PCI device 0000:01:00.1 to uio driver - EAL: Device bound - EAL: map PCI resource for device 0000:01:00.1 - EAL: PCI memory mapped at 0x7f0037912000 - EAL: unbind kernel driver /sys/bus/pci/devices/0000:02:00.0/driver/unbind - EAL: bind PCI device 0000:02:00.0 to uio driver - EAL: Device bound - EAL: map PCI resource for device 0000:02:00.0 - EAL: PCI memory mapped at 0x7f0037892000 - EAL: unbind kernel driver /sys/bus/pci/devices/0000:02:00.1/driver/unbind - EAL: bind PCI device 0000:02:00.1 to uio driver - EAL: Device bound - EAL: map PCI resource for device 0000:02:00.1 - EAL: PCI memory mapped at 0x7f0037812000 - Interactive-mode selected - Initializing port 0... done: Link Up - speed 10000 Mbps - full-duplex - Initializing port 1... done: Link Up - speed 10000 Mbps - full-duplex - Initializing port 2... done: Link Up - speed 10000 Mbps - full-duplex - - -Test Case: Testpmd with all but one port blocklisted -==================================================== - -Blocklist all devices except the last one. -For the example above::: - - build/app/dpdk-testpmd -c 3 -b 0000:01:00.0 -b 0000:01:00.0 -b 0000:02:00.0 -- -i - -Check that 3 corresponding device is skipped for binding, and -only 1 ports is available now::: - - EAL: unbind kernel driver /sys/bus/pci/devices/0000:02:00.1/driver/unbind - EAL: bind PCI device 0000:02:00.1 to uio driver - EAL: Device bound - EAL: map PCI resource for device 0000:02:00.1 - EAL: PCI memory mapped at 0x7f22e9aeb000 - Interactive-mode selected - Initializing port 0... done: Link Up - speed 10000 Mbps - full-duplex +Test Case +========= + +Test Case 1: Testpmd with no blocklisted device +----------------------------------------------- + +1. Run testpmd in interactive mode and ensure that at least 2 ports + are bound and available:: + + build/app/dpdk-testpmd -c 3 -- -i + .... + EAL: unbind kernel driver /sys/bus/pci/devices/0000:01:00.0/driver/unbind + EAL: Core 1 is ready (tid=357fc700) + EAL: bind PCI device 0000:01:00.0 to uio driver + EAL: Device bound + EAL: map PCI resource for device 0000:01:00.0 + EAL: PCI memory mapped at 0x7fe6b68c7000 + EAL: unbind kernel driver /sys/bus/pci/devices/0000:01:00.1/driver/unbind + EAL: bind PCI device 0000:01:00.1 to uio driver + EAL: Device bound + EAL: map PCI resource for device 0000:01:00.1 + EAL: PCI memory mapped at 0x7fe6b6847000 + EAL: unbind kernel driver /sys/bus/pci/devices/0000:02:00.0/driver/unbind + EAL: bind PCI device 0000:02:00.0 to uio driver + EAL: Device bound + EAL: map PCI resource for device 0000:02:00.0 + EAL: PCI memory mapped at 0x7fe6b6580000 + EAL: unbind kernel driver /sys/bus/pci/devices/0000:02:00.1/driver/unbind + EAL: bind PCI device 0000:02:00.1 to uio driver + EAL: Device bound + EAL: map PCI resource for device 0000:02:00.1 + EAL: PCI memory mapped at 0x7fe6b6500000 + Interactive-mode selected + Initializing port 0... done: Link Up - speed 10000 Mbps - full-duplex + Initializing port 1... done: Link Up - speed 10000 Mbps - full-duplex + Initializing port 2... done: Link Up - speed 10000 Mbps - full-duplex + Initializing port 3... done: Link Up - speed 10000 Mbps - full-duplex + +Test Case 2: Testpmd with one port blocklisted +---------------------------------------------- + +1. Select first available port to be blocklisted and specify it with -b option. For the example above:: + + build/app/dpdk-testpmd -c 3 -b 0000:01:00.0 -- -i + +2. Check that corresponding device is skipped for binding, and + only 3 ports are available now::: + + EAL: unbind kernel driver /sys/bus/pci/devices/0000:01:00.1/driver/unbind + EAL: bind PCI device 0000:01:00.1 to uio driver + EAL: Device bound + EAL: map PCI resource for device 0000:01:00.1 + EAL: PCI memory mapped at 0x7f0037912000 + EAL: unbind kernel driver /sys/bus/pci/devices/0000:02:00.0/driver/unbind + EAL: bind PCI device 0000:02:00.0 to uio driver + EAL: Device bound + EAL: map PCI resource for device 0000:02:00.0 + EAL: PCI memory mapped at 0x7f0037892000 + EAL: unbind kernel driver /sys/bus/pci/devices/0000:02:00.1/driver/unbind + EAL: bind PCI device 0000:02:00.1 to uio driver + EAL: Device bound + EAL: map PCI resource for device 0000:02:00.1 + EAL: PCI memory mapped at 0x7f0037812000 + Interactive-mode selected + Initializing port 0... done: Link Up - speed 10000 Mbps - full-duplex + Initializing port 1... done: Link Up - speed 10000 Mbps - full-duplex + Initializing port 2... done: Link Up - speed 10000 Mbps - full-duplex + +Test Case 3: Testpmd with all but one port blocklisted +------------------------------------------------------ + +1. Blocklist all devices except the last one. + For the example above::: + + build/app/dpdk-testpmd -c 3 -b 0000:01:00.0 -b 0000:01:00.1 -b 0000:02:00.0 -- -i + +2. Check that 3 corresponding device is skipped for binding, and + only 1 ports is available now::: + + EAL: unbind kernel driver /sys/bus/pci/devices/0000:02:00.1/driver/unbind + EAL: bind PCI device 0000:02:00.1 to uio driver + EAL: Device bound + EAL: map PCI resource for device 0000:02:00.1 + EAL: PCI memory mapped at 0x7f22e9aeb000 + Interactive-mode selected + Initializing port 0... done: Link Up - speed 10000 Mbps - full-duplex -- 2.25.1