From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0044.outbound.protection.outlook.com [104.47.40.44]) by dpdk.org (Postfix) with ESMTP id 7950A5596 for ; Mon, 10 Apr 2017 19:09:43 +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=nvXWgRIMKaT5uvh8ODpsSqHtqwa5aS1uSyh2tyvhsoA=; b=RxsT9kKsro0BMuSmkWdxAzqyZdRCJUoRpPfhFdRk3suG6FouxDA36THFc4fbCDQVrBzNeiZY5qXz4Wsw7KJroxD1gJoWUpMFsxEayiiPJd+wGRQIDKzQL0qMeG75paAuTw/KWdhSoYmoXNHI+etTNZTzQrWHFK5+r2B7+rvx1ew= 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 DM2PR0701MB812.namprd07.prod.outlook.com (10.242.127.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17; Mon, 10 Apr 2017 17:09:39 +0000 From: Angela Czubak To: dts@dpdk.org Cc: Angela Czubak Date: Mon, 10 Apr 2017 19:08:59 +0200 Message-Id: <1491844162-16300-6-git-send-email-aczubak@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1491844162-16300-1-git-send-email-aczubak@caviumnetworks.com> References: <1491501092-14278-1-git-send-email-aczubak@caviumnetworks.com> <1491844162-16300-1-git-send-email-aczubak@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [31.172.191.173] X-ClientProxiedBy: DB6PR05CA0010.eurprd05.prod.outlook.com (10.170.218.23) To DM2PR0701MB812.namprd07.prod.outlook.com (10.242.127.26) X-MS-Office365-Filtering-Correlation-Id: 9d33e676-81d8-44eb-e4ce-08d480345f98 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:DM2PR0701MB812; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB812; 3:99MB1sMim+rx9BIlw4P0ioEWOB2a3mWonRdUcQ820mPbCHdA8gI0ccBtn+SSVeEVX0xMnud5q4+bauAS1tmdiWZL68A3oAsZzcp5jZfOeAMdEXQCQrtlNpCqdjzjdgS39wer8MyACs0EyE4pDYzeksJe1ZjcOny1ZcZe8GsPpAC+d8c38nIWJ9WxM1yvHtj5bl/cDmWSMqWBWKQUaf0rmKimguc2XqNnpdimTL75m9wgzuIJDrw56e4zUEodK47vI0pfKyXzHt+Mr37Q9QCIxqLRjetChSLB245CIRV7FonoyQJHXUIFYcIA6tJm2opa2tOtD9vbqT1xTkMXj7aStg==; 25:CYpAcULC8oHRfLRC2tGUwabtLz6ZqFXnzYl/0p2SGyltxXREtOn2NxBjTzhGekxij0JXrJY7PI/m/QMVR8+PrOMlGwQRcHtXyfd8XMtg9zKkIhT5TKVzSF/yRM1V127OXe44gGTQCYz1VZe2GdGefg3R6DSTXJv0/q6qudPnBmzyuCSZUceGugP9yLgNvdMm2ZeRSWHOEUapaXXIUq59JFHQ6mxSeFqIk2VdUArxofhV1e9HbLiw8VuVwyGudg3FLJ+xYKttvP+0NyMnk0sw4IkciTZNGrg/SOYuUPQunC8/KD4ctPsptkqZFinGOsIo2+jRpGbIFawlcNdwaDKizKkxD1o6xZrMQi8slXVtvGk5Swu75Eqm8c2l1Hky+CMRy8eoDWddSAfflFaf3xtWDWnWqLHDsXdW66laUgt41JDPMk4/U7gcSSX/36W++AAvLUzELb6fSNG0qloD+lLw6A== X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB812; 31:T4GOQtIhNrwgS20F2C3Euqk3H205iPZJERRbdHpG2kRwVvAJZbRg7YZJv/X7yJ6Re9QvlhMAP718nar9Jj7xIjGiAe2P+Zny6+bM8neHcs1pxCPIWBX6yQk79RhARhc/z/NjqREWOu4Uscfw9oYsaXuib2jTDYl5dzYyPeaZeTN4qC4xYr9YMhJe1gL9tDpNKK991A8ZWBcH62jD0Vf6NpdZfR3k11yRNd1Vs+xqHZE=; 20:TWN5vjagWWDT4mivoHxOYClbx5DVrW4bsNx1efMH1jm9noDZqbzXj3NkkAd00hoHcfkHWN/Zs56ZG4dt8dkP+MJM+5E61A3mYckeXzVpueyqeBsEtovzdNeEC4H5wo8AiLXrobrsR0LrKb3ykpJKxma95Dc2TLMdKdtXXZjB2cXdd2ttaf6BSV8Bmknz5vJEWzNVdIh0tShy+Fa+ptmnriCCI4sbSF4VOfb2skh/Wxh4bquF0RyR2Uj9f4/E7aJT/OyyZrh2eTh7Yx+q5otSl4J9mmqdJXHquJuL5Gk4S7TTCWrdMrFueatOhO8HBcCYNKyz0TwG5PIXqjRnYuFCB72c+LX21aK2WGD8TPXLfNtAU2+ys8jWccBj7JZ86pHgMUHVgpZ26GLn//eqNPGm8sCPWq6Ht2mkVyvbUMkQ/NhZip/aIn9hLfudf64OHdEDaZ2qurcRMbbq2ydwYCC7BD9x9A+uaj4a0nTv+e2AcnMkSOldYnMxMa5l1qWSu+lMEC+r3jMQVz1lqg+Q4JbEamEGrqMs5PzobdcsoqxCwgQ+DhVnHMddecXfJUE/M8w8cUeFcY0/O9ouz1nGOWiFFaxb3xhcRkkHUbtT+klYWsg= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(93006095)(10201501046)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(6072148); SRVR:DM2PR0701MB812; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0701MB812; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB812; 4:aPlmGf391HBTqiRO2O8+x/yyH4srGVuXn5Z2TkS3IU8OpWoD3WxKeNS4GKDZj39RMsvPKWospbfBrNAafX+bXZV/9nOZMsfMN2R+FBXqPoNW6hlzVgD+ivoCBXky+qJSqKeM6rSgFkj1uGKRNOigSluoDUZOWYdJALMKMSOcetpk0YDaBJpB8DukjkDtxDMlQ+FwwguV9Y+0Aa+SjKeEoaGK/rjvr+J9k+2ed7FEyFgufCj6PqTFuKPRZ/KnlXp5wiz+z46/PSmDQnrFbE0oP9CRPoXfJkCsu3+nlqpJlyuBFXDV9F5bu47Y9zI1LKk9YVGREHHJv1Y3BIAkkIbdPnFT8pRhUAjg4TSvxGdBe67XFd5oHddxp20aIb2c9lsa4M4xdmKCNzPmuoxedszPYW+e25hvjBv/F0OKj18HVR0OBzDdbtVczYwPljp06sR7wicm8WS53HJmujZKSn23hBXYwBSlm8vmCropmhCE1eDy538ZwKy6poLdNkEPYsb7Eaa4N2LAW00e9M2eFVoGaXEcowAKn8ck3w9HaYLzN/wdUOOpqBRwbaIfJ9fqKcAFDsx0/Bx+/FN8txJwvKO2O0nc5yeGNj3cInqQKlCE2Xne3r2SL27+9f6e59iAFMQUMgD9K9g98NKWU3E2G0X30zC+oZT93wz3stRjvKyrE9YLjsq4HXZe08vxlT9/YfvX X-Forefront-PRVS: 027367F73D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39850400002)(39840400002)(39410400002)(39450400003)(39400400002)(8676002)(81166006)(2950100002)(305945005)(6512007)(7736002)(42882006)(6916009)(50226002)(48376002)(47776003)(6506006)(2906002)(53936002)(66066001)(6666003)(189998001)(6116002)(110136004)(33646002)(36756003)(38730400002)(107886003)(2361001)(5003940100001)(4326008)(3846002)(2351001)(5660300001)(6486002)(50466002)(50986999)(76176999)(42186005)(25786009); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0701MB812; H:angela-H81M-S1.semihalf.local; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0701MB812; 23:kkyTKNINycyZoeTtIAuQBKkjvWytCKJEdASPb5iG?= =?us-ascii?Q?2Mc/sEA+57N4l34uafvXMIhKiGk1dv9eQ80B0lnS25+JYNAmEoxsSXwddRn7?= =?us-ascii?Q?+IsnmhzTBrr/+GFiZWNYmgXxbJAJCjdZx1mHsOAzKqt/PVuL9ZcP26nDA8jD?= =?us-ascii?Q?DXfdVb9WVf3Qa5GFLimAHX2zIWxwSLQvbwRY6Z2agSzYir5BmtoE2GSan+pK?= =?us-ascii?Q?XUoE0zycJh72PQsIolhdPIjIp7t67M1MQwxteSq9UlrWNbU3neFWkMw1gP0+?= =?us-ascii?Q?JZe38M/rIlfk8fund+IvNoQUi1L4KBN0FAEEllFt9hfUEUkjJyXCDnV0fqv0?= =?us-ascii?Q?3de5L+2BF5aFESrlGBCosl5NcJYhnJNOHerNpgtGEOc7GTSb/EZ4ILzhQyu/?= =?us-ascii?Q?F4lYOoarSlRPQp4nYEDOfONwvQPJ1o4eop3o+FLz247f9dFD/TyBVedddaxO?= =?us-ascii?Q?GagluVZROq/aOZFrHUsegJBlssYLEjwXbCJ6ZoxtJJadgDt57eeX5PPijp0A?= =?us-ascii?Q?qhEU52s5rPykBCRU4Z9T6yFkBwABg+1QP7/d9qBn2nwmE4ee90Yis4m6NCqk?= =?us-ascii?Q?EffAOoaFP8lt9pxOZ5ttEx6N5ms67kUWf/xrWJZgbC4+ICpfEXmWjoTr4V9u?= =?us-ascii?Q?b1oYZalTXG+mh0yAXPpKvuIPrU8BZLmlwvG0S/Dm+iyf6nFUNwWyohH9hjfn?= =?us-ascii?Q?0YxbhcGwYL+9WCdWXzaJDh4x7xY6Ub5dgyVMDP5usaD07qNFbpbued3C0Uum?= =?us-ascii?Q?NX9sLdpcnmQW1H+efXrKxaORYyooirlNRagl4RMkuiJLdKSd5+3ogCmbZvNM?= =?us-ascii?Q?1TJ+CO/XMqSdF8VA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DiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB812; 7:CZUcqveKxp+yRss6I2ybVzCFB3hTFdylr8vW3N2ijuF6krThdMvOBKwacA5exGmtpSuhMVfl8B39lrklj7IjUGji9FvgKkMxnXsKVnwmGAO/9sRigMT6ZDe50HIstoQywMSi1JT1n5JipMHOTlFJpCl/l6dnjPwdBOvxSEAo3FPFHOzUERboGCmWjqAlnm0WWwhRrK+B5lDU4q2nwrs5TBa89y2FP25FhMCp5UhumABxvyUSiskDDDnGLQwBrgiHKWY86ztCaQg1izPzQXScUjLgZIx01HmeanwbroAHPQUidd/hAeWtrFO7EWSKEmYN3J4CtpXvVVIlLToukEMsLQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Apr 2017 17:09:39.0655 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0701MB812 Subject: [dts] [PATCH v2 05/28] 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: Mon, 10 Apr 2017 17:09:44 -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 97491c7..f3d3701 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