From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 18BDB5920 for ; Wed, 26 Apr 2017 08:20:01 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Apr 2017 23:20:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,253,1488873600"; d="scan'208,217";a="1161059979" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga002.fm.intel.com with ESMTP; 25 Apr 2017 23:20:00 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 25 Apr 2017 23:20:00 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.117]) by shsmsx102.ccr.corp.intel.com ([169.254.2.246]) with mapi id 14.03.0319.002; Wed, 26 Apr 2017 14:19:56 +0800 From: "Tu, LijuanX A" To: "gprathyusha@caviumnetworks.com" CC: "dev@dpdk.org" , "Chen, WeichunX" , "Liu, Yu Y" , "Xu, Qian Q" , "Liu, Yong" , "Lu, PeipeiX" Thread-Topic: dpdk-devbind can't be used misc with kernel tools Thread-Index: AdK+VR5nRmMI8Le0RKq3YEicQoOMyQ== Date: Wed, 26 Apr 2017 06:19:55 +0000 Message-ID: <38D041F150D4184C8114E499040E62343DBC1438@SHSMSX103.ccr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] dpdk-devbind can't be used misc with kernel tools 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: Wed, 26 Apr 2017 06:20:03 -0000 Hi Guduri, I am a tester from intel dpdk team. I get a issues on usertools/dpdk-devbin= d.py With the usertools/dpdk-devbind.py , I can't bind driver as expect. I use the "dpdk-devbind.py" bind pci to igb_uio, then I using kernel tools = bind pci to ixgbe, I can bind pci to igb_uio successfully ,but it bind back to ixgbe failed.. Bind pci to igb_uio and then bind to ixgbe ,both use "dpdk-devbind.py", it= works well. Could you . have a look at this as soon as possible ,it block the daily reg= ression test. Thank you very much. There are my test env and steps: dpdk commit eba33e87ad37626604be7186e746751f99691084 Components: usertools/dpdk-devbind.py kernel: 4.8.6-300.fc25.x86_64 driver: ixgbe version: 5.0.4 firmware-version: 0x61bf0001 Expect: we can use dpdk-devbind.py to bind or unbind PCI-device, we also ca= n use kernel tools to bind or unbind PCI-device, such as : steps: # ./dpdk-devbind.py --bind=3Digb_uio 0000:05:00.0 status: 0000:05:00.0 '82599ES 10-Gigabit SFI/SFP+ Network Connection 10fb' drv=3Dig= b_uio unused=3D # echo "8086 10fd" >/sys/bus/pci/drivers/ixgbe/new_id # echo "0000:05:00.0" >/sys/bus/pci/devices/0000\:05\:00.0/driver/unbind # echo "0000:05:00.0" >/sys/bus/pci/drivers/ixgbe/ # echo "0000:05:00.0" >/sys/bus/pci/drivers/ixgbe/bind -bash: echo: write error: No such device status 0000:05:00.0 '82599ES 10-Gigabit SFI/SFP+ Network Connection' unused=3Dixgb= e,igb_uio Result: It can't bind to ixgbe, expect it can bind to ixgbe. I think the related commit are :: commit 2fc3502935700243d9a6d903166e6fd11e429843 Author: Guduri Prathyusha Date: Wed Mar 22 19:41:29 2017 +0530 usertools: use optimized driver override scheme to bind commit c3ce205d5729867bd1c4c4429a80e01a528d5905 Author: Guduri Prathyusha Date: Wed Mar 22 19:41:28 2017 +0530 usertools: optimize lspci invocation