From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0084.outbound.protection.outlook.com [104.47.38.84]) by dpdk.org (Postfix) with ESMTP id 360AE5A8D for ; Wed, 19 Apr 2017 14:22:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=H9xvkG1++ZM0bsj2j85g0htwtwd1g6RnVIuZMcJLC3c=; b=LFhBG8q4/JOhKWPlaTdpSx2b4tf/+D0W4V8r+AcZnpXmERAWWLFtehduRZOZ2RS32akYDi3d28R0MIcNSb6OKMbVLSAAGmrJD8128egiyOzGt2frKINfVIwF6nsOQkxdvGZ6TzV+BkErCJ5/Zc+4/YLrJx2eSiZCbG7OOckRPfU= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from angela-H81M-S1.semihalf.local (31.172.191.173) by CO2PR0701MB805.namprd07.prod.outlook.com (10.141.246.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10; Wed, 19 Apr 2017 12:22:45 +0000 From: Angela Czubak To: dts@dpdk.org Cc: Angela Czubak Date: Wed, 19 Apr 2017 14:21:58 +0200 Message-Id: <1492604540-12114-6-git-send-email-aczubak@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1492604540-12114-1-git-send-email-aczubak@caviumnetworks.com> References: <1491501092-14278-1-git-send-email-aczubak@caviumnetworks.com> <1492604540-12114-1-git-send-email-aczubak@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [31.172.191.173] X-ClientProxiedBy: AM5PR0701CA0064.eurprd07.prod.outlook.com (10.169.145.154) To CO2PR0701MB805.namprd07.prod.outlook.com (10.141.246.23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a446d32e-1f0f-4627-6b0d-08d4871ec928 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:CO2PR0701MB805; X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB805; 3:5e2JhSUvnoj9ZyhgDYogQ5XSKjxeHL5BFUSp9/xVnbPpBsreeHy8dZAdBcEtrritUNK3oYqH4j8LulYWwDWfKl91HSYbuVCPdG9Kw7Fsh/tpjo1sYAitwnuaY5niQUms2KOM1ypLCeRTAI/Di4dUYEsWtlXV9FSQ3MG2xD1CFvhONowlPbpjzECwUyyWlSN8RN3JGywbOCOabO7QZH6a+WL0wSJjHudwQMhhN6V+p47em9yX8yzVopnHJVi3ajcDj4ykAd9yxCTpLX3Qv4ETXr860xFUK5A4oqpix97dXByD7b7rVAYeCqm4LxhMyXk1wwBKpuPhvEbeOcads5ML/g==; 25:Q9bLYoaO5CnO/QD6BSj1aQIoFm7anh0QAIXyL1U6/IqOqpckpo3Y5spN4FK/LQ9U/eJDhn6zGCUcaF7uylioeJKLETILmvPoSZu8BTn05hESjMFZHmzhh+6dCenPSD0Uz4PWRPZGBSoHhSReDEoVmwnhZLa6Ek1KbJeeiXGArbObposl1Oh1fwAy02ChMxe15QgNR9KvSRqwl9tJhQogJlJlSI1p6Hxij9EhY5J0yueqsO6w52SoVDJyoJKzCKIoNbkSirp1KNnwnZTg3PlqoCpIdTS61PRoeZOdlScY8A5oktLJzw/HkCpNsIXxyIY4UxoZH1NDHIqnDKNugWWwshzFNpoUFDd4CylUG9tXZL3VW5RwFbcLqKU9uyio4Zh16e/KLhxrSW1z/Os3Zcm/yxw+AQp8rUiKstL4ySOJ2wVIUHF6puLdN+WfnFwr4zGdzmPiYCAs0lNRdOY3rV64fw== X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB805; 31:QofeW8PJalvcZ3CNFhhs4xL6IGcVTUg3RuniEnNfvpGy3C+UNQdvxCL40uGJtOzssEsz2nT53lhaVKseoQvBdfNpcYNYJSe9na7HR7zRZI+R9YH1LwROnbW96Jjy/jvLnkUS7Iu7UGmthQWCFcYK5pQIMwlf3pfdvQTj/V+382LWBJG8iYUPU7KDrpTk3463zjfumtMXfUP3zQOFxILRl13uH78Roontofe/ZeZGpwAF38HRB9UfU2s9cL+Y5CLx; 20:x3FSU4ZMe7opmID+kG6K+gUgrqA64jPYpT1W7Vct8oz9cSz36ElhsdICOVOo6UL2+wXd9XrQAJveJ+Zn4kJOlTs+L0MAYQ5FkoWzzigPieq7xBnYiQbDLfW4dP85szZgIk0txuaP2UtFRYCnvqnpzG9EUH+3wK2apSpaAO5mvJCuFVsJWeDmE9vHs9NxX4tYUQOTxzjl5hjaelQGBwM0L9M+n7BAxVl43NegRFJCHHRIXRJfkEfldDG/ROWAK7YIIzZ188P9+QfmjXxKnDMSAG3qMUyZ+o/+lKoxYRPNa6d4eZd/nXseNZAweufn5891ApdmEcKpfvi+FfYuSWf+uWO63BhrvVjY+2BfZa50nKt/PNyanLWy47LzK4HlBkMYXtR54m8xcEM0aFoG3WPWbLb2VeSYY4OqiOkEs3EUeVd6mqOsVG5nRtHsT3aIuejtTBWQ/G9hFkXUv5qXQ/MYi3OMjIuQv0PaxqiPs2npaOhOT40rjNDAToHbKRw/bRVE6lCHo7ekZaCrb+JOmLCMgLJA5TvZVZILsLYPjpTddY4lsQE5thtSzbwU3CG2KaVTel3mOwGGlt2kx9tWI4ZGlUe54bFl1JU1fPuqMRA3vRY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(6041248)(20161123560025)(20161123564025)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(6072148); SRVR:CO2PR0701MB805; BCL:0; PCL:0; RULEID:; SRVR:CO2PR0701MB805; X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB805; 4:OQEJD0JVHUsH+dOOeYU21YKVcNXGyI5qH0MOkIds0g3VNcditwiD0N0fApOhGp0HBlvHH0gxtDAVsfG2J6qcZCtd3NEocFfGCr3rERytA+bh2ocOFwf4diP7io1PgO0rDj5XQq/ZUPrLuihWA3KEBbGzEk47gm98hBfVMhmtM+JRD3YFFIMzhUIU5Q9U2/TFKzU5VSknYs2/agbTuAnuQ8g/sFiIHfHFguEuH+nPdWvDr8gUjd3Fff3kcArr0VWRAud8/jf1Yq/wBBbZDGEIXE/gbrMpf58Qt44AL6pwbQtwmjachqd09YxefP8IZIT+hht79YxclTFekvQMH9vN4w14rQMFUhvpb5SbhdARjzL/dv8rNEgBqCzK9Zaik9EzSZ2QECauuD8vFQGWOrTHiA6thhI9tNK+A7lOSREOLkmr6psYNwaB+tCXyVa7Wa8P2frAImbAwP9no8JLzLrj1VQfc/cubbpeAj8FM3deBLfs6INsf7XCmFbbvvjczA3jhbqLqzgbBqf08qI+A1h4F5B1xbFiSV17W8Cf8IsjP7Jjpw4qwHeYrxMOtLfWTAgJjqYPZyV6ZlTrJHOR878maNP6YILG8BnT4h/oHlbpMnBHg4pgSvCL53aZ5iqYhgcBNdLKylz76NUY6biwW0jL21vRYf89nT9seCj7DBABfB3vQxt8NnDes5REK9C1PWUi X-Forefront-PRVS: 028256169F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39410400002)(39850400002)(39400400002)(39840400002)(39450400003)(6486002)(5660300001)(38730400002)(6506006)(7736002)(6512007)(66066001)(305945005)(47776003)(53936002)(42882006)(110136004)(6916009)(2906002)(8676002)(4326008)(2950100002)(50226002)(81166006)(25786009)(107886003)(6666003)(36756003)(5003940100001)(42186005)(33646002)(3846002)(6116002)(2351001)(2361001)(189998001)(76176999)(50986999)(48376002)(50466002); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR0701MB805; H:angela-H81M-S1.semihalf.local; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR0701MB805; 23:/RXHDkP1tF+LZMTNRirMrxz/+tuLWTt6dsII2kEG?= =?us-ascii?Q?zecG582WNPkjIh3jAb/VnZ34ke2Ro9aBvU9ok9yMno3XUMymtwrQJi27cici?= =?us-ascii?Q?CAMPYxHv7LxhwTOc143uwATrf0P1Kin2sSzWjhq0BRc/yhjksfVmiK56CrzS?= =?us-ascii?Q?Z5XS2Kgk9FUbhE6eVRDL6zDerRPYeMSx4lRHZI3AfYe9UrmGX6bxlMf+fqFy?= =?us-ascii?Q?wN1LYyCQoe1Hjp0M4lBiZ4Zti04yElHflniVeBd+yprrb2Elw/HDaw1Xrtju?= =?us-ascii?Q?uWHT7ywu3oR6nwFQVjqJ28y3yWIrIrmchbJhGlJsivVFW6rVQJmgmJFhgBUg?= =?us-ascii?Q?qQ+F2GC9ixzrYdqMFmVcFJjwIWORgSLeGyfX4eDo4TCb3zBjT9SuCPyWY5cz?= =?us-ascii?Q?T4KuyV+EEaLziGb3+P8SJ6D5HJ6055UpII8kXFhz9KjIwEZfaDyv0w0SSrfy?= =?us-ascii?Q?3DoIcSCSA7kIlx5EJA80KqK17rXPaczDC56iSdv7MDj4+DxCUbW9HEecG4Tp?= =?us-ascii?Q?K9ylIpQ4TXhjivp+0wO+kJpzVShYHxwzNJgngOVNeS93TgUlOuPgme6n0wtv?= =?us-ascii?Q?MD7rwWOIfuGUftjmDn1rLXRnA/wR8ARbQNWu6lElUp79v5TYifDt+gdIjtk/?= =?us-ascii?Q?J+I+G4CRcFasFuZ/v9QWC+IpRs1oDYdw9d7HIl5L4d9Up4BzR9dws565DSWr?= =?us-ascii?Q?OHUKX5HN013sY2NJ0Se4N1z9BHly8qRL+e7Zd2RmuVijAuzQOWsiDZ1EdDl+?= =?us-ascii?Q?5NTSjhjQ7DmNkCqzoqNTRpU2FB+MkKB30LAZfE37/Cx2OZuFNnQp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MiCo+4NFbzIcncc0hV0E= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB805; 7:M8gbyyCK+v3fxeuVSZ3HnnWyZj85tWZw3FwNsLB3m7WeV8RNBzxkiSlbt5mJHpNdEWuax0aSZpWz09uzYUbv+UI9YArrOBoeiAGLfSg5kZuo2fL+eyLUaa1nl++b/1qC86KAN3quQm5CRY6opaTT9ZLJBOHY6XTu8Nh8fEwbpjF4UC2Fydc7J8I/tldZx/9Lv1OAz+b2dZgP8VRyHuRwjZUp4hf7lV+L6B9XhKzxrLSo3Iq0fp9uxEJmDa8W5+7fJRNl3D5KKJxZRxLZ+HDVGIppDH4uZVbfXHEKpSnfQXl5rv+nc1gPdOo6s3NO00aO0ZS1mPA5xi1EnfifhPk+/w== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2017 12:22:45.2494 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR0701MB805 Subject: [dts] [PATCH v3 05/27] framework project_dpdk: asserting loading vfio-pci by using DPDK binding script 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: , X-List-Received-Date: Wed, 19 Apr 2017 12:22:47 -0000 If one uses kernel with builtin modules lsmod does not print modules even though they may be used. Thus, it is better to check if vfio-pci can be bound by checking status with DPDK binding script (it appears in unused drivers). Signed-off-by: Angela Czubak --- framework/project_dpdk.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py index b9a6d4a..0cf8192 100644 --- a/framework/project_dpdk.py +++ b/framework/project_dpdk.py @@ -102,8 +102,17 @@ class DPDKdut(Dut): self.send_expect("rmmod vfio", "#", 70) self.send_expect("modprobe vfio", "#", 70) self.send_expect("modprobe vfio-pci", "#", 70) - out = self.send_expect("lsmod | grep vfio_iommu_type1", "#") - assert ("vfio_iommu_type1" in out), "Failed to setup vfio-pci" + # check with dpdk binding script instead of lsmod - kernel may have builtin modules + op = self.send_command("ls") + if "usertools" in op: + out = self.send_expect('usertools/dpdk-devbind.py --status', '# ') + else: + op = self.send_command("ls tools") + if "dpdk_nic_bind.py" in op: + out = self.send_expect('tools/dpdk_nic_bind.py --status', '# ') + else: + out = self.send_expect('tools/dpdk-devbind.py --status', '# ') + assert ("vfio-pci" in out), "Failed to setup vfio-pci" else: self.send_expect("modprobe uio", "#", 70) out = self.send_expect("lsmod | grep igb_uio", "#") -- 2.7.4