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 8511541D30; Tue, 21 Feb 2023 17:07:35 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 65F3242D48; Tue, 21 Feb 2023 17:07:35 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id EE48140E0F for ; Tue, 21 Feb 2023 17:07:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676995653; x=1708531653; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=rzlHAF4zHznbgI2zHTwR7DjLkKsM8PtAjAHkkDn/Bw4=; b=eTQ5ULUlTETTuDNrm7Wtl0kZW3UVuFH2OnGvZAMM8EC5BBzpZnL5kyiX 2KAX571FYNh7ckianeAocrbTVGcgTHYg78Et61ZVoSnVUQMtrcfANUrxx YXu/lRRSoh/kxKMucKy1ArKU6hBiCGSiJr1dG4EdDrd4oVCskplSgroAe HNjHfQ6QN2ZV13NOAOS14bmK07y+TkJm0ddjPt5Qvdf2nyo6Qf/b+J07+ qZWI/sWuVavTRvRA8iOeBrnZ1Yv1x4tHQctPAN5R8bNFqpjpkKUwDDMht 7rCDtohTTqy4zp3ZPF8unSPjIiBrfMzpYgRJtC0ri3K7atoO1uq45FF/p w==; X-IronPort-AV: E=McAfee;i="6500,9779,10628"; a="312301212" X-IronPort-AV: E=Sophos;i="5.97,315,1669104000"; d="scan'208";a="312301212" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Feb 2023 08:06:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10628"; a="845726106" X-IronPort-AV: E=Sophos;i="5.97,315,1669104000"; d="scan'208";a="845726106" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga005.jf.intel.com with ESMTP; 21 Feb 2023 08:06:32 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Tue, 21 Feb 2023 08:06:32 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Tue, 21 Feb 2023 08:06:31 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16 via Frontend Transport; Tue, 21 Feb 2023 08:06:31 -0800 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (104.47.74.49) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.16; Tue, 21 Feb 2023 08:06:27 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Sm3q06KtsMmT00LzGbRaV6xFGObVunpy1lTi7MYbmQAplcTqCn1GGqlLZLsGq9CkFxPWjSk0HMgfjeCWeZZoLDhQCYP8F33kGxeSHZcPAvdcD8A4lBJvNBxv9KGIjKAa/VFJyGX29/sH0A5LYIJFImqsT9ab75GGHU+Ro+9k9+rbSfZyji8X1SsJ6Tcst+Cnwbf+pKXh+ahCrP+Ij+FnT7bc7OqADNaaEU0V3kdNRWzFfiNswUBwa5iBlKfkMmOvugvE+boh8AVV99JyHinNOwZR0gW51ki6ZMRYBbay2TMa6NUVGDpbqPwxbQrt2jElMiBpEwyHuDcnIar6a5yXHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ug52qstJ8MRfXryeRorPdmQtKL9HKFNZcy6RnBinuYk=; b=cIxQ8Z9dWL6fwAoqoABku4/f1rnbO2uctw3eI7l7izWc3Uchvp6+pAAnRodKyFTlCxScJwPleU0EdWrH58fU47ZNqAN/nj51jvfO9df2uGI5eNFLb9YkppQWrJYPQYyctYX1nwygfmGci9kap6DpkHq2JalON0vqWrQVluQrPOz8oz1HfS3EXcgCQGjoUcyhsIPHa0yDYG1hr9adzBQDChgvy2yX8BoRnp+CTbDUzvOYpj8zCbmwjGCbCSGul3XuPfWuc08SscJpcljuykrhkw4IbscOWZtO4SHWxIiZMHTrhQ42jQ6MV3yP0YfkNo7CR8B7/DlSdI5eyhtaKJ8YTQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) by SJ0PR11MB5813.namprd11.prod.outlook.com (2603:10b6:a03:422::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.21; Tue, 21 Feb 2023 16:06:25 +0000 Received: from DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::aaba:abb7:8794:def]) by DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::aaba:abb7:8794:def%7]) with mapi id 15.20.6111.021; Tue, 21 Feb 2023 16:06:25 +0000 Date: Tue, 21 Feb 2023 16:06:19 +0000 From: Bruce Richardson To: Nagendra Prabhu A T CC: , Subject: Re: unable to bind to vfio-pci Message-ID: References: Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: LO4P302CA0015.GBRP302.PROD.OUTLOOK.COM (2603:10a6:600:2c2::11) To DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB7309:EE_|SJ0PR11MB5813:EE_ X-MS-Office365-Filtering-Correlation-Id: 6e457255-9ea1-4894-9c7f-08db1425954b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fK4gpjKo3iIH2A0CW++5J2z5N9rI/orbd4RztvHvLAusga+KG2aI2FroPwHU0qxZ9mNs2hYzfZRrP7FF4bY+E+0s0GJLrPn1XvKmDb4sb/5Z8OZPeV/S+v0L9ZJXdnXs08Zh5KP8OPjnKQQwP9/Y4x8QpQW+GeqAEqg3dU7OK1dObRVwEoiiMDl7SnCkrV7oNeolS3s7XPK2ROfN8CeTM8N3XJfhQXK1m0qZKvnFKc/veURI6UonbBs1XiBqSFlihX66Lrt/1RetYl5yezgG8NO0GdUhztPcUUKkkzpE+LNquKDIxwRc7bf+MaIkOZRRKh+ThawLWWFLYgQyx2/Ij25zyQ7jM9nEFIM2FnUr7sXTjUCZ00feDdI8BiMSqgd4Mh31yftpNlUZpjpMllfnMLOOAnXRmW3eF+Hg8DxU5CsJtv8GdnEphbcbJjc1FjJ9isiLwZzmldL+QDUoYMQThbWoFPBGVEfm9ACubwl4/Vuu/JgfiihkeAlr6xdCVjfvAMBvvIUKqQx0ynvz9rhkntpIxCl/mz5No5QwZdfJ62GvDB/2Gs7z8Pr2ponC5oOG2Ltmx4ZUKO2qS7pIMiT+RyFWdCE+0Gh/w3GEG6SUSCmHxRTfzySlmVIlt7H7ThSMgcZmzjZFTcEfIvLj8t8rvQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR11MB7309.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(376002)(39860400002)(396003)(366004)(346002)(136003)(451199018)(8936002)(2906002)(44832011)(41300700001)(5660300002)(82960400001)(38100700002)(83380400001)(8676002)(4326008)(6916009)(86362001)(66556008)(66946007)(66476007)(478600001)(316002)(6666004)(6506007)(6486002)(6512007)(26005)(186003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?F25Oj5DhtMFhUaTi6YXlRBnvHoOKFFYNNRRiI0QRK4hB35OPJFT/JFyn+uNR?= =?us-ascii?Q?H1jxaPgp1/tO/3/FQNngiL3OdNQ0iU2fy9ER+NS41S0J9D6he+zJ1J3f9cA5?= =?us-ascii?Q?Q5D/iwKX7YOO45uObShQZAQ0B89rc4u/IGjA3ZYBC1FWz+K4NW7YvKPLh9zP?= =?us-ascii?Q?APkZtPqMW1n0grW5VDvpyWgObArRVaF4DO6ycQ2NZLrZ/urdjKk1+bafjZzU?= =?us-ascii?Q?NG3agnmmz0+H8esTWq2X937Sb0rgc81cW9oK/YpyP4sm5gHutcB7zxpycrz1?= =?us-ascii?Q?hYJW/DgXeKvUFZ5QZkM2dPrsCr3YY5haXOdHeDLLrtOQRsRhjq+Fl+C28202?= =?us-ascii?Q?cQAWNZ71j6mOurqAN2uOGBspfhBEbVmtiI2eWTmXsys8ReLTisMdnDr1RsJu?= =?us-ascii?Q?M71y0p6Zu6g+q8FQ5/v73VVd/e3s2cZ2quTiSUI/OP3OFZGrd03/1P/sJDBd?= =?us-ascii?Q?0yqmRr0KiNyQRKyXzElXrDHd8m3a53gKrDVzkTVx9UeBMWd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m2O9UXY3MveaHVApkOgfvE6zFw+JXdGl25379bbnsP00Yabl3yHwLr?= =?us-ascii?Q?NvKxIQQIZhKV7OIUu5Bgp/CqmUR/eK/INSo6Jh33aL5yp30yI+QArmJRUnQI?= =?us-ascii?Q?2zRJrZrklwidJsowNxC3igCbP/GmJ8uhHyXGiHkdr8c7GJ48C/1p8+KjWMlS?= =?us-ascii?Q?f9o/V90CM5CZEgrtdCEfdy2daSAotdPAyb/YDA2uDJTYfZopqVz8XJVVk7cd?= =?us-ascii?Q?IEjzlQOwjEKDX0v0es9ldmY=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 6e457255-9ea1-4894-9c7f-08db1425954b X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7309.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Feb 2023 16:06:25.6989 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 11PEIuan5TSbvX6Sj4lk7L1CtwXiTUb8syrZ01hfFhF2xZItTiIOvH1yiKQcZ3eX1hqEpdnH3S+PUUjwQ+Zgll+aLwOdqMR337fBnhVCNys= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR11MB5813 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Tue, Feb 21, 2023 at 09:30:15PM +0530, Nagendra Prabhu A T wrote: > HI Bruce, > Thanks for your reply. > I have removed the binding of all other ports. So , i can confirm that > #2 is taken care of. > I tried using a different driver "uio_pci_generic". I still see the > same issue for that driver as well. > The problem seems to be because the write operation is not happening in > "bind" file. > Infact tried doing the following step manually. That also failed > echo sh -c 0000:51:00.0 > /sys/bus/pci/drivers/uio_pci_generic/bind > bash: echo: write error: No such device The "sh -c" doesn't look right in that command. It should just echo the device id to the bind file. However, it's generally recommended just to use the devbind script, as more writes to sysfs may be necessary first, e.g. to register the device ids first. > I have required permission for the file. > I tried doing with "sudo" > I dont have selinux running > So not sure whats blocking me. Infact , even > "cat /sys/bus/pci/drivers/uio_pci_generic/bind" is failing > Can you please help. To track down issues other than the obvious, I think we need more information. For example, what NIC card is this? Are there any useful error messages in dmesg? /Bruce