From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2 10/10] pci: place all uio pci device ids in a dedicated section Date: Tue, 19 Jan 2016 08:30:40 +0100 Message-ID: <3759018.lgeOm8Q2D2@xps13> References: <1452430254-30390-1-git-send-email-david.marchand@6wind.com> <1453120248-28274-1-git-send-email-david.marchand@6wind.com> <1453120248-28274-11-git-send-email-david.marchand@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: dev@dpdk.org, Neil Horman To: David Marchand Return-path: Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id C882A8DA1 for ; Tue, 19 Jan 2016 08:31:43 +0100 (CET) Received: by mail-wm0-f51.google.com with SMTP id l65so126236225wmf.1 for ; Mon, 18 Jan 2016 23:31:43 -0800 (PST) In-Reply-To: <1453120248-28274-11-git-send-email-david.marchand@6wind.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-01-18 13:30, David Marchand: > We could do something =E0 la modinfo, but let's keep it simple for no= w. >=20 > With this, you can extract the devices that need to be bound to uio /= vfio > with tools like objdump : >=20 > $ objdump -j rte_pci_id_uio -s build/lib/librte_pmd_fm10k.so >=20 > Contents of section rte_pci_id_uio: > 15760 8680a415 ffffffff 8680d015 ffffffff ................ > 15770 8680a515 ffffffff 00000000 00000000 ................ Yes we need a modinfo-like tool. Currently, the UIO/VFIO binding can be done after parsing the PCI devic= e list. It is better to define the device ids locally to their drivers but it m= ust be integrated with an appropriate parsing tool at the same time. And more importantly than any tool, the format of these ELF data must b= e properly defined, documented and extensible. Is there someone experimented with such format definition? Stephen, you were asking for this change, what is your opinion? I remember that Neil was also interested in this change: =09http://dpdk.org/ml/archives/dev/2015-January/012115.html Panu, Christian, this change could be related to distribution packaging= . Thanks for helping to move this change forward.