From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 1BB163572 for ; Fri, 1 Mar 2019 18:23:43 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Mar 2019 09:23:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,428,1544515200"; d="scan'208";a="324556090" Received: from eleanorr-mobl1.ger.corp.intel.com (HELO localhost.localdomain) ([10.252.42.246]) by fmsmga005.fm.intel.com with ESMTP; 01 Mar 2019 09:23:41 -0800 From: "Smith, Eleanor" To: dev@dpdk.org Cc: ferruh.yigit@intel.com, pablo.de.lara.guarch@intel.com, akhil.goyal@nxp.com Date: Fri, 1 Mar 2019 17:23:28 +0000 Message-Id: <1551461010-881-3-git-send-email-eleanor.smith@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1551461010-881-1-git-send-email-eleanor.smith@intel.com> References: <1551461010-881-1-git-send-email-eleanor.smith@intel.com> Subject: [dpdk-dev] [PATCH v1 2/4] usertools: update to usertool to allow binding of 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: , X-List-Received-Date: Fri, 01 Mar 2019 17:23:44 -0000 This patch allows dpdk-setup.py and dpdp-devbind.py to be used to bind baseband devices. Signed-off-by: Smith, Eleanor --- 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 a9cd66a..0aa3121 100755 --- a/usertools/dpdk-devbind.py +++ b/usertools/dpdk-devbind.py @@ -16,6 +16,8 @@ 'SVendor': None, 'SDevice': None} intel_processor_class = {'Class': '0b', 'Vendor': '8086', 'Device': None, 'SVendor': None, 'SDevice': None} +acceleration_class = {'Class': '12', 'Vendor': None, 'Device': None, + 'SVendor': None, 'SDevice': None} cavium_sso = {'Class': '08', 'Vendor': '177d', 'Device': 'a04b,a04d', 'SVendor': None, 'SDevice': None} cavium_fpa = {'Class': '08', 'Vendor': '177d', 'Device': 'a053', @@ -33,6 +35,7 @@ crypto_devices = [encryption_class, intel_processor_class] eventdev_devices = [cavium_sso, cavium_tim] mempool_devices = [cavium_fpa] +baseband_devices = [acceleration_class] compress_devices = [cavium_zip] # global dict ethernet devices present. Dictionary indexed by PCI address. @@ -82,7 +85,7 @@ def usage(): --status-dev: Print the status of given device group. Supported device groups are: - "net", "crypto", "event", "mempool" and "compress" + "net", "crypto", "bbdev", "event", "mempool" and "compress" -b driver, --bind=driver: Select the driver to use or \"none\" to unbind the device @@ -579,6 +582,9 @@ def show_status(): if status_dev == "crypto" or status_dev == "all": show_device_status(crypto_devices, "Crypto") + if status_dev == "bbdev" or status_dev == "all": + show_device_status(baseband_devices, "Baseband") + if status_dev == "event" or status_dev == "all": show_device_status(eventdev_devices, "Eventdev") @@ -660,6 +666,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) @@ -680,6 +687,7 @@ def main(): clear_data() 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) diff --git a/usertools/dpdk-setup.sh b/usertools/dpdk-setup.sh index 5eebbce..9819a77 100755 --- a/usertools/dpdk-setup.sh +++ b/usertools/dpdk-setup.sh @@ -496,13 +496,13 @@ step2_func() TEXT[5]="Setup hugepage mappings for NUMA systems" FUNC[5]="set_numa_pages" - TEXT[6]="Display current Ethernet/Crypto device settings" + TEXT[6]="Display current Ethernet/Crypto/Baseband device settings" FUNC[6]="show_devices" - TEXT[7]="Bind Ethernet/Crypto device to IGB UIO module" + TEXT[7]="Bind Ethernet/Crypto/Baseband device to IGB UIO module" FUNC[7]="bind_devices_to_igb_uio" - TEXT[8]="Bind Ethernet/Crypto device to VFIO module" + TEXT[8]="Bind Ethernet/Crypto/Baseband device to VFIO module" FUNC[8]="bind_devices_to_vfio" TEXT[9]="Setup VFIO permissions" -- 2.7.4 --------------------------------------------------------------------- Intel Corporation (UK) Limited Registered No. 1134945 (England) Registered Office: Pipers Way, Swindon SN3 1RJ VAT No: 860 2173 47 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.