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 B0CA3A0A0A for ; Thu, 21 Jan 2021 17:49:26 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A12DA140D21; Thu, 21 Jan 2021 17:49:26 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 13118140D06; Thu, 21 Jan 2021 17:49:22 +0100 (CET) IronPort-SDR: xKve4mdVNQbJAN9XHxS/Rx65+5JagqmE17FEwfRkJwiFmtmKy2iWCFOAc6uX42SXvZ8uqqZuHR 8GVBWF8mPYxQ== X-IronPort-AV: E=McAfee;i="6000,8403,9871"; a="179451073" X-IronPort-AV: E=Sophos;i="5.79,364,1602572400"; d="scan'208";a="179451073" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jan 2021 08:49:18 -0800 IronPort-SDR: oRXWNswctxzzJHASw/sgXWN79SILXpYdi0xVTFjK9ZhU4cMgUwdI6mYXBjbcw5bwTtVXJWY2Ue FKCsJRuHTteA== X-IronPort-AV: E=Sophos;i="5.79,364,1602572400"; d="scan'208";a="385374525" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.213.196.87]) ([10.213.196.87]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jan 2021 08:49:15 -0800 To: Wei Huang , dev@dpdk.org, rosen.xu@intel.com, qi.z.zhang@intel.com Cc: stable@dpdk.org, tianfei.zhang@intel.com References: <1611209014-4031-1-git-send-email-wei.huang@intel.com> <1611209014-4031-5-git-send-email-wei.huang@intel.com> From: Ferruh Yigit Message-ID: Date: Thu, 21 Jan 2021 16:49:11 +0000 MIME-Version: 1.0 In-Reply-To: <1611209014-4031-5-git-send-email-wei.huang@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-stable] [PATCH v11 4/4] examples/ifpga: add example for opae ifpga API X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" On 1/21/2021 6:03 AM, Wei Huang wrote: > +get_property command > +~~~~~~~~~~~~~~~~~~~~ > + > +Display property information of specified FPGA. Property type is defined as below. > +0 - All properties > +1 - PCI property > +2 - FME property > +4 - port property > +8 - BMC property > +PCI property is always available, other properties can only be displayed after > +ifpga driver is probed to the FPGA. > + > +.. code-block:: console > + > + opae> get_property 24:00.0 0 > + PCI: > + PCIe s:b:d.f : 0000:24:00.0 > + kernel driver : vfio-pci > + FME: > + platform : Vista Creek > + DCP version : DCP 1.2 > + phase : Beta > + interface : 2x2x25G > + build version : 0.0.2 > + ports num : 1 > + boot page : user > + pr interface id : a5d72a3c-c8b0-4939-912c-f715e5dc10ca > + PORT0: > + access type : PF > + accelerator id : 8892c23e-2eed-4b44-8bb6-5c88606e07df > + BMC: > + MAX10 version : D.2.0.5 > + NIOS FW version : D.2.0.12 Are all commands interacting device need to provide the PCI BDF as parameter to select the device? Like '24:00.0' in above sample. Why not get the unique rawdev identifier, like port_id equivalent of the ethdev, and use it in the command line, won't it be easier?