From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id EF1CDA0487 for ; Tue, 2 Jul 2019 00:22:47 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 43D4B1B997; Tue, 2 Jul 2019 00:22:47 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 9EB5E1B996 for ; Tue, 2 Jul 2019 00:22:45 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Jul 2019 15:22:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,441,1557212400"; d="scan'208";a="165463678" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga007.fm.intel.com with ESMTP; 01 Jul 2019 15:22:44 -0700 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 1 Jul 2019 15:22:43 -0700 Received: from FMSMSX109.amr.corp.intel.com ([169.254.15.43]) by fmsmsx116.amr.corp.intel.com ([169.254.2.126]) with mapi id 14.03.0439.000; Mon, 1 Jul 2019 15:22:42 -0700 From: "Chautru, Nicolas" To: "thomas@monjalon.net" , "akhil.goyal@nxp.com" , "dev@dpdk.org" CC: "Yigit, Ferruh" , "Mokhtar, Amr" Thread-Topic: [PATCH v2] usertools: update to usertool for baseband device Thread-Index: AQHVH+1HVeMNSQ4mbE2lJqx0rm4A3aaWD/OAgCBmW/A= Date: Mon, 1 Jul 2019 22:22:42 +0000 Message-ID: <1183128033837D43A851F70F33ED5C575C1CA89E@FMSMSX109.amr.corp.intel.com> References: <1560213183-292063-1-git-send-email-nicolas.chautru@intel.com> <1560213183-292063-2-git-send-email-nicolas.chautru@intel.com> In-Reply-To: <1560213183-292063-2-git-send-email-nicolas.chautru@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNzNkYzg1YzUtODIyZC00NTI0LWIzMGMtZjI2NTU5NzE2NDYyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiblwvZWFSbmtxeWJodXFyNmhZS0trbEVSdSt3R1JwcklsdjczbWlmcXByWmxLM0gzRzJ0bDhhc0UyaUpnaDZUN1oifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-originating-ip: [10.1.200.107] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2] usertools: update to usertool for baseband device 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Thomas,=20 Reminder on this one, I don't believe this was applied yet. https://patches= .dpdk.org/patch/54632/ Thanks,=20 Nic -----Original Message----- From: Chautru, Nicolas=20 Sent: Monday, June 10, 2019 5:33 PM To: thomas@monjalon.net; akhil.goyal@nxp.com; dev@dpdk.org Cc: Yigit, Ferruh ; Mokhtar, Amr ; Chautru, Nicolas Subject: [PATCH v2] usertools: update to usertool for baseband device Allows binding of baseband devices Signed-off-by: Nicolas Chautru --- usertools/dpdk-devbind.py | 10 +++++++++- usertools/dpdk-setup.sh | 6 +++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py index 9e= 79f0d..a6ee8f9 100755 --- a/usertools/dpdk-devbind.py +++ b/usertools/dpdk-devbind.py @@ -18,6 +18,8 @@ 'SVendor': None, 'SDevice': None} intel_processor_clas= s =3D {'Class': '0b', 'Vendor': '8086', 'Device': None, 'SVendor': None, 'SDevice': None} +acceleration_class =3D {'Class': '12', 'Vendor': None, 'Device': None, + 'SVendor': None, 'SDevice': None} cavium_sso =3D {'Class': '08', 'Vendor': '177d', 'Device': 'a04b,a04d', 'SVendor': None, 'SDevice': None} cavium_fpa =3D {'Class': = '08', 'Vendor': '177d', 'Device': 'a053', @@ -40,6 +42,7 @@ crypto_devices= =3D [encryption_class, intel_processor_class] eventdev_devices =3D [caviu= m_sso, cavium_tim, octeontx2_sso] mempool_devices =3D [cavium_fpa, octeont= x2_npa] +baseband_devices =3D [acceleration_class] compress_devices =3D [cavium_zip] =20 # global dict ethernet devices present. Dictionary indexed by PCI address. @@ -89,7 +92,7 @@ def usage(): =20 --status-dev: Print the status of given device group. Supported device groups ar= e: - "net", "crypto", "event", "mempool" and "compress" + "net", "crypto", "baseband", "event", "mempool" and "compress" =20 -b driver, --bind=3Ddriver: Select the driver to use or \"none\" to unbind the device @@ -586,= 6 +589,9 @@ def show_status(): if status_dev =3D=3D "crypto" or status_dev =3D=3D "all": show_device_status(crypto_devices, "Crypto") =20 + if status_dev =3D=3D "baseband" or status_dev =3D=3D "all": + show_device_status(baseband_devices, "Baseband") + if status_dev =3D=3D "event" or status_dev =3D=3D "all": show_device_status(eventdev_devices, "Eventdev") =20 @@ -667,6 +673,7 @@ def do_arg_actions(): # refresh if we have changed anything get_device_details(network_devices) get_device_details(crypto_devices) + get_device_details(baseband_devices) get_device_details(eventdev_devices) get_device_details(mempool_devices) get_device_details(compress_devices) @@ -688,6 +695,7 @@ def main(): get_device_details(network_devices) get_device_details(crypto_devices) get_device_details(eventdev_devices) + get_device_details(baseband_devices) get_device_details(mempool_devices) get_device_details(compress_devices) do_arg_actions() diff --git a/usertools/dpdk-setup.sh b/usertools/dpdk-setup.sh index d00807= 4..15f91b8 100755 --- a/usertools/dpdk-setup.sh +++ b/usertools/dpdk-setup.sh @@ -496,13 +496,13 @@ step2_func() TEXT[5]=3D"Setup hugepage mappings for NUMA systems" FUNC[5]=3D"set_numa_pages" =20 - TEXT[6]=3D"Display current Ethernet/Crypto device settings" + TEXT[6]=3D"Display current Ethernet/Crypto/Baseband device settings" FUNC[6]=3D"show_devices" =20 - TEXT[7]=3D"Bind Ethernet/Crypto device to IGB UIO module" + TEXT[7]=3D"Bind Ethernet/Crypto/Baseband device to IGB UIO module" FUNC[7]=3D"bind_devices_to_igb_uio" =20 - TEXT[8]=3D"Bind Ethernet/Crypto device to VFIO module" + TEXT[8]=3D"Bind Ethernet/Crypto/Baseband device to VFIO module" FUNC[8]=3D"bind_devices_to_vfio" =20 TEXT[9]=3D"Setup VFIO permissions" -- 1.8.3.1