From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0060.outbound.protection.outlook.com [104.47.33.60]) by dpdk.org (Postfix) with ESMTP id 04AD8235 for ; Fri, 7 Jul 2017 13:15:23 +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=KCjNJg+6VbWDVrDmhiZZzj7hr/lZS810/4vQmeltNVY=; b=fH3AHwVsO+NzZ3V8Ze+TSix6ARuCjyxDwaBDvZXaLNJ2sZRrJQqV/Pu+Nw2uIwWUKbosgdAC6H2NjvSMaJY+vLIvUCq9EHoYY0K3vNbiIQ6J4TnxuJg+i+nxdbGU0Hgr2cmV1bOGivoHEkzDEVYjqo2bqOm11xKq7NBs56lwRog= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from lio357.in.caveonetworks.com (14.140.2.178) by CY4PR07MB3063.namprd07.prod.outlook.com (10.172.116.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.11; Fri, 7 Jul 2017 11:15:18 +0000 From: Shijith Thotton To: dev@dpdk.org Cc: Ferruh Yigit , Gregory Etelson , Thomas Monjalon , Stephen Hemminger , Jianfeng Tan , Wenzhuo Lu Date: Fri, 7 Jul 2017 16:43:51 +0530 Message-Id: <1499426031-2664-1-git-send-email-shijith.thotton@caviumnetworks.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1497260285-27536-1-git-send-email-shijith.thotton@caviumnetworks.com> References: <1497260285-27536-1-git-send-email-shijith.thotton@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.140.2.178] X-ClientProxiedBy: PN1PR01CA0080.INDPRD01.PROD.OUTLOOK.COM (10.174.144.148) To CY4PR07MB3063.namprd07.prod.outlook.com (10.172.116.144) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5e97311e-f6d3-47d5-6262-08d4c5297538 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CY4PR07MB3063; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3063; 3:bP/MrwCjeQVIdiTaYSL+eyAIxbb3A10Fjejsf5pSK+gWYDwDKk874A1i5jJjXwykN+Kw4nt53psnUPA3STcuA/Pmr4uGzVkh2mCdBGROwuk6o8OW3A3yajemwIvjA0+r9F2e5VFk/V8qAlBkX0fznVBVqMT/3aiZGanwdo9DyvaTMXFd3Op3vA47BBKSQ8R2trkNVWW2F+ELK6vHyaD+xfDlwdJCDOUjtIPATV/R/22nIfX5NsR4ED1G4iQxEvbwSw1nVm49udJ2jjPSmXfeEG/G7oKxXXi91eUkEnaYxxXiGQp3v3E7vuuRgnCLvEohZViEGjjp8i2ZN69HSGRCKxGlekEKf6N/LUk5h2F5IM5DL17H4g35zjWhXvHWWGD5X9L7jgND0JLZmSuDHBUg5WMFEG/Ym9FlK2NT1njcUhN5lql3xf/O1bt8cYU/qb8R1Ote4vSbnOIDwi7ECegXDA+3f71tS2mP2XcvJpc4LsH0btnfyljSKHnpHinFsJGyQRaNBRCeA70Y250S3u4+7SyiBZvPAwJZF/X/Ndr4lvXKwP8s2YmJX6mGXF3e3hSqDQxkhmc7TkITHd5yO7FT7KF/yzM/zTuvAFShcOyrpZjQo/AJGF01H1m65swp3/1wlXXykBp96KAQpJedUViQ3M8BDkfJhhbcAReXUATn2Wl7gsv4ujpuNkhs7Mh3ESTqXbEOF23fSKBQsgt6FiaktALlAJuHBH0JQuiDs4wuQmdm4qxgVB7UKG/c8CGaSe0r X-MS-TrafficTypeDiagnostic: CY4PR07MB3063: X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3063; 25:q+5GswibVHxLYyT4/TViL3BhengKAFooLmqlfvnaYySnRhdu0zyc8CataoI0UnLyMeQ5QhTy0d+7et5AESoQP3f1KAZ483mfpihHZBEL25rNd2OtX4dip+FsLHQlE3QP5it5Sm/mS3Dj3cuscdDH3YEbCl/KjlbOoYvObLfMujH3iX2SAHpAoydGx84frJq+QKX6blvVjStrVOyCDiRY1ZIgoJCYbXbRJRuOP/BezCPFX3lJPSPw/YM+mfQ6LF6lO9qcv5XgemO5fnsJf50CkKic0ZD63fNooE7X7vZ3oBzK+N1hxzwkfAyBa17PNxm3o7BTzrK4VlwKLPcJC6x+KHGF54jcvK9RvCFS1oa3XqIagEh1nc8cL28rcFbQ/vUy0uEW/HNMkx0Oes43f95hcYu2PQ+p3TqxPGd9CZSLkArcMuuKAhnGVANlrbJoP5Cx92Orv0JGZ2kej2WgGpvGyKysg/l72fjpum1Bejm2JRZA1CiBhDTx+i5a9bFAMer+WWmOS10QFXu2ICt5Do/8uKrmQgfIPD3dX4HxR5ZQHyrUJOoUvqrsKs0dKL3MiXnl647A1DVB684eskYh61cm9kUpevgDALr1++r5wswEtEEpY+z5kZzITXaqxazXuMoA2USdtp8h9fLRMoEwgevb1p/S8F/vHD/PWuvdoiaJTYZKvZonZXhBEvE2HW35kxNDZU2qy/1KdmlBa1jAz5eX8niVdC/bbxizF2X7P/0F2ZTLMR/oOMFbvMyYeC1T696TLtQoHA3AgmBvDtbPYLTFT3vdIEgBKRjsu0qoSGQ3RkPmepzFPHg8f3+hpw7z8qQP+xEA7xd6lxC2GB/Ol9OK9uE/JOBemp8uGPiublZHcbdPrKum0xB8//Pyb/aIsWap4mg+R/rmqj4g0m0kWfvMC7QAPzcOFryveL5d43dSrEk= X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3063; 31:GploEiTRsTKczhRQBO15ZtWNSA3Lx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aeZ1Z1Xgj/wNnBYbxhv+bjX0ljJgq40nf0hMw2ixMJlJsu9ZCv0p+kk92aacslyFSp28c6OdvYkl2Q6pPRoYu+fdXiU0Tx7vlnMxTMax49IUbOk5eZBg1DxTy1KFmW27nR+8orVi44dGV1ACRmYigSxOp7m5ocjX6PXLprjlONNooNQBbWI+PQmqnAht6Rq42sZaYwZQB7PwyCbXNh2U/PLDH8MPjBUze7Ocs2BR4uJRjv9mddt0R/hkDIUkUAhRDZqDtMd/dEqUFJWzPofvtUHCWIknf1Ioc= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(17755550239193); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(2017060910062)(8121501046)(10201501046)(3002001)(93006095)(100000703101)(100105400095)(6041248)(20161123558100)(20161123555025)(20161123564025)(20161123562025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR07MB3063; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR07MB3063; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3063; 4:9Hhx5Mhx49rYmiKS2bGJcS4AOHNOkHV3e/P4epi15i?= =?us-ascii?Q?9X/5KwiGYa+n6FuX7qFC8/CWhEYKgHQue+BXMPd4DWd8irSQlGbXn0Mn8kss?= =?us-ascii?Q?bNfUqe4LG51lEVQD/o7y28WD++RJ13i7aE92YN20b+vir3+f+aItPLTrkBhB?= =?us-ascii?Q?fAoGFQ+CwB2g7VXpQqNqN4Y3SVdhQzE4eqY06R0BgiauVhzkBkaQHIeKeJcL?= =?us-ascii?Q?GauFYh2i+tCZCQg5lgQVYRvLdwg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?ENhqxLUYM4nIi36nJeWL61E3HUK3wQtFHUQ1h/T6e2hBANE+KvSHiF/IxmrI?= =?us-ascii?Q?7yBVEQx5v9tBPuqzlRukss4wsRDa6PfGQfIvcyRNXDQZWl+Y8JtOQhR483ty?= =?us-ascii?Q?KAFUcdQP0HymbJN0k=3D?= X-Forefront-PRVS: 0361212EA8 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39840400002)(39850400002)(39410400002)(39450400003)(39400400002)(43544003)(478600001)(33646002)(2361001)(3846002)(50986999)(6506006)(76176999)(2351001)(966005)(6486002)(189998001)(42186005)(4720700003)(6116002)(47776003)(5009440100003)(72206003)(5660300001)(110136004)(25786009)(53376002)(36756003)(4326008)(38730400002)(6512007)(8676002)(2906002)(54906002)(53936002)(81166006)(66066001)(6306002)(305945005)(2950100002)(50466002)(42882006)(6666003)(6916009)(48376002)(5003940100001)(50226002)(7736002)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3063; H:lio357.in.caveonetworks.com; FPR:; SPF:None; MLV:nov; PTR:InfoNoRecords; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3063; 23:sQGX4ubdgF5nGr4vAHlkLekv2jitv3R2Obckzf5bL?= =?us-ascii?Q?3rRiDdpBe54KrWPX6MMv1LDn1PjdUv701hjESB1vX05OjOG2Hawh9sRLQQOs?= =?us-ascii?Q?GL+Wtkb+BRyBPWZa6wXZgt9lOsSrItyxNJf1Au0eFAfdNAaLmU0CLB9QPkll?= =?us-ascii?Q?pMP39yHLtybIzBgURCczCLljRdf53mVe1ClZ5dA9QFALEqdXDYhqSM3X7QGB?= =?us-ascii?Q?UJWmLgtEwKME2FQofZOzxGXKzr7ZGq2KYLsmPrrUn+p+f3FASo+HdXEILdsL?= =?us-ascii?Q?JXkZjDeIqVl59HirEoyWQVCTpa4AFJsuKWFkSEuXebo8p4Kf3VRVwohrEsUO?= =?us-ascii?Q?rJ/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r?= =?us-ascii?Q?Qdxwqq/PLtHxVsXE4zcIjhVnfWs6DC9kycmKpX4?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3063; 6:oejPwx1rsKfJqsZeuPoYVPJ6Q/uYo6mfAJGJqVdtZ6?= =?us-ascii?Q?RSCjY8igTkaz6/GvkTbDf9l70IpsY1XRNfAtdH5iCuprPTOvI5l1uc40oFdb?= =?us-ascii?Q?Ln4LY0uHujVVW+cXFD3ibaNKETIR9lWS8qqL46FCYNy2DxRqISPaZiZ9k060?= =?us-ascii?Q?V6lK/WIjkNuKdgKv3eyEDJkg5UeQrNS/1h1AuGladBliO3a6X087f0im1IY/?= =?us-ascii?Q?S2LdgMF7+M1X98B6/wkD3ZHfMOqCGndY/DgmDKpR2w7Fq9KrxMWtX760QDX8?= =?us-ascii?Q?8KMMfkULJN9alVr6I/lgAGA9tzPgpm6CStD949A860zQtYMVz3cuJxyf1JUR?= =?us-ascii?Q?Y675o9CrrHOh35GzGt2/Bz5HzARQlWfOFuDT1/UD/DgD3WNQr1mKy0vfDSSk?= =?us-ascii?Q?XGgGVvi53H32l4u7lpCpGaUvrIYQPscapu+A9d7Zedxdof+qDh11wmpnRew7?= =?us-ascii?Q?Hz9nwp/QFfibuJ+4NhikVEghFDPAhBZQTUY8+dztniezw4hnoqrG7ZWyxKns?= =?us-ascii?Q?K5mo73JM0OmGM2Nz2cfFof+V3Q/rbtvc+E+EyrkCAvYj8HoI5SsJOTGzKDfa?= =?us-ascii?Q?6D6TzFEjSChV3I1CPLHdoDl/BUpfU93JmO+jxQZecyd50eaf6CrzyS9C4Bs2?= =?us-ascii?Q?bvkasHSYQuTT7M+otDMv9mLdC+92NT0mcJxZLEn7Xt02EbzpqHeeMDz2IRO5?= =?us-ascii?Q?zb4rQ2AeA2HMQ6jWFHFytylG0kVfkMUvxHmnsToAe9+NlCUhGQjWVf04FW0n?= =?us-ascii?Q?M+w5WFPvk5d/nRljyL1AqA77cbK5s6PQogshXIk3xU4UU4ljzFqBcp+6ANk6?= =?us-ascii?Q?E3++L7Mlg6qcnSnXUquNZu7VRuVnDnH1hlmb2opvEcVwpfXCWS9UNuM+kab5?= =?us-ascii?Q?CbqoekZyJ/FMm8noWvflXkEDg24KKhGYbe1nZP5u6HmkhGbA5BMsK0xQUBX8?= =?us-ascii?Q?4axDFqvyYohKcBGO9AYjkkRi0523N0YXtZVLlRylHxtvPaZmZpXQ8D6WvUBD?= =?us-ascii?Q?g=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3063; 5:S6snTcjH06fOXeYEYSj0+TQL/6bzzCiVBqMZdJ97gph0DgrTOLI1I6m1VJMvzsZAcdt1/zX95HfzkwNYeh0Pp2fknT3SDjrK3ddueQbKjYC8cr+ZSvgCv/HXZIuUwPCY9tXh9CPiICqhxfB8ycI8f45lpjIel76SNDwk3hZhBm0x/i0lRnHeo+bSwVBUVW4hh2QlO+tANxwdVCJsiJPhBoXPbtci6Mr2q/zfRxYcElh8QmnCKlGa5qgtmMQejMkP6LmwZK81ETs2qKWrNMpSk0wbBvTWdyfE3HYu3ej6xzPmsQH0yrVFGJviPYt1JSWFFVtHTfm5YieiMAKw5zO33oewey3iZYpYVySQVu+QQR0gXfm4IJ0cL6T2TnFByMRnDDukR7P7nUNtbV3wlxEDGfrDy/qf7CQwni6aMP+isRFAevJhYTU2sYlcCtXPuvAoF4zUuk+eF3MVOlzkvQ3w6svwUvY5cbct5dcfr/53fZTROcxmtBS7dk17gmQWbbT9; 24:bwWFWGVAxfT3BCEbdfS2nBzof3ahAuvgRzLHeC3om59b+4KYTFSrsbalfvvFMuZQ3cHFWIZIOH7djYyidpTHOKUW/r0d7YFWsBDMpWmf8mg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3063; 7:KcS3jNMJ0pKB4k5eUWdzsvmlyXOjvsuf879nHVm5SKXMU2yb8POe+2CaSwwAiM0zJhza43w2gEKPHwVnw59AN74damjsowekASV46sC8jKvwL2I/ywEgq1bWlDhD3xs1TwQDed/UzwivNfz5tOBAYi4WIg7HDW8oiymFXw7HRmeIqqEciKvCx4O/WAT+HYQbfPlKqYTQ7kL3hyG61ycKxAFuWEMKVCpIJWL3KVDOhFIOQqy5e3XsWmeskxLSeSLL/11pHxpI3hn/wZIhH7uSHXcSC4/8+nr8dt9eGh5lj5ZOp4OjGOgUQxXQ3qWRInKg3VmUWpTsfUfkScEFAjI7WzxpcZSF5XDVQ3ajxXbWQ4wnUy7Ew7S44LUYc0yvUt9CnEVfrDGrt5hCMuiKSz68XT8cBV38V2zgENz3PaaRU6QdX3Xap41CZJ53X1FAJMUDaQ70srjOa/vc3m/PVxbIIglHIm100eYvgrog0EnsOlxn6lupPlgRdZ2ywpwew1Wyj/GVjArukBQgN9UalMAamQgQiXim91+XL5oK+mHkDSOh37J3iQCP2mGMtWTp2b0zHTtPN7ACVUqfpMJhZ8lP153ry9A3pgNz3tTKKeDehAI/ID9U3tc1vMsOva65UDh3CbAQWQeCRRj4kwe45i//QkNLbNhu1w8/WhXVUGn2iRcDGqWNk49Fu3daJXwXF177PueeAwyyUEqLx3i8UoB2IAlBEGf3GqLFNp2Mpv6Qp6AUNg4VSA2z2Kj3YfsT2rGLNnKRwgIgkNyncj6Gi68ztLmSXLIM3Ku8QxbvDS5zwc8= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2017 11:15:18.5480 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3063 Subject: [dpdk-dev] [PATCH v2] igb_uio: issue FLR during open and release of device file X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jul 2017 11:15:24 -0000 Set UIO info device file operations open and release. Call pci reset function inside open and release to clear device state at start and end. Copied this behaviour from vfio_pci kernel module code. With this patch, it is not mandatory to issue FLR by PMD's during init and close. Bus master enable and disable are added in open and release respectively to take care of device DMA. Signed-off-by: Shijith Thotton --- v2 changes: - Replaced pci_try_reset_function with pci_reset_function as it is not available in older kernel versions. v1 changes: - Added pci set master inside open and clear master inside release. - Remove obvious comments. RFC: http://dpdk.org/ml/archives/dev/2017-May/066917.html lib/librte_eal/linuxapp/igb_uio/igb_uio.c | 33 +++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c index b9d427c..07a19a3 100644 --- a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c +++ b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c @@ -170,6 +170,37 @@ struct rte_uio_pci_dev { return IRQ_HANDLED; } +/** + * This gets called while opening uio device file. + */ +static int +igbuio_pci_open(struct uio_info *info, struct inode *inode) +{ + struct rte_uio_pci_dev *udev = info->priv; + struct pci_dev *dev = udev->pdev; + + pci_reset_function(dev); + + /* set bus master, which was cleared by the reset function */ + pci_set_master(dev); + + return 0; +} + +static int +igbuio_pci_release(struct uio_info *info, struct inode *inode) +{ + struct rte_uio_pci_dev *udev = info->priv; + struct pci_dev *dev = udev->pdev; + + /* stop the device from further DMA */ + pci_clear_master(dev); + + pci_reset_function(dev); + + return 0; +} + #ifdef CONFIG_XEN_DOM0 static int igbuio_dom0_mmap_phys(struct uio_info *info, struct vm_area_struct *vma) @@ -372,6 +403,8 @@ struct rte_uio_pci_dev { udev->info.version = "0.1"; udev->info.handler = igbuio_pci_irqhandler; udev->info.irqcontrol = igbuio_pci_irqcontrol; + udev->info.open = igbuio_pci_open; + udev->info.release = igbuio_pci_release; #ifdef CONFIG_XEN_DOM0 /* check if the driver run on Xen Dom0 */ if (xen_initial_domain()) -- 1.8.3.1