From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f180.google.com (mail-pf0-f180.google.com [209.85.192.180]) by dpdk.org (Postfix) with ESMTP id DDE528D8F for ; Tue, 19 Jan 2016 17:10:13 +0100 (CET) Received: by mail-pf0-f180.google.com with SMTP id e65so178077002pfe.0 for ; Tue, 19 Jan 2016 08:10:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=lJtcYtIvrN/S0+jKmueCXTObjxwt0/Gde6HbE22JCmQ=; b=Skn1VzRTdAC6xTcKPpfD+g7DLFA0s1LeaAzT9xhQg4f6p1HueNtWGrzlCLReE0HUU7 LDnUkRnJ/E44lSPKhQGKzqfBEGA+9aNjlJCl0ntRb+hZR4olLuYGPXFntwkhJS3bRA4o Ww84s2X3hzQDNdHUNql487lYr3qZzBModn+7PpJHGDUyHYsRpWpE2QL8ltlldTIMuMba tDEN3duGt+W3frTZ8O5KwfIXcxwyw9XGat8j+FFcUUrVeH10PYVL6oqOfyE0DRhElEby cTwa5f8izEX4KIwkwl016r7CIY3taVG1Caj/RC1CJX7q5MGSyERc1hBDRUgkoB+m0oMu ohBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=lJtcYtIvrN/S0+jKmueCXTObjxwt0/Gde6HbE22JCmQ=; b=bsuLLDGpR2NaCnb2a9fC1sb8r6qm0x24GIDYFXHcWDNlgOH0n7Q0NgCDi3gtglnNEq RTjxQ948lqtcTf4oeOEZ3uMA4AT7bImOd+KHLC7IA6ITzLvKEV6vAcLk//rtfjrg2lHe T1rDVyEQIWce9/oMOxlXlSHjvRGp/VGW2w0KZrTAEPCCcc8GevAWGMZlhvr60/gsMHHi eVnsEeX8YStVyF/kxdS0ViM4h/MXHdW1X+T9aMsTNuxJZqLBohegBWPEcFkSWKU7WO38 6jbBo2leDSzuOzzw+Zfx53bNUFemYh2S7b8A3Y4rAF7DschYJLrEckYEHvsY6HGJbwvA kSQA== X-Gm-Message-State: AG10YOQNgP09Fy3oe+UphRdnpKG6agqkdZpZ/N4o/nd0pS+RSPJ21T48hWWCAB3MLwNttA== X-Received: by 10.98.10.73 with SMTP id s70mr39567752pfi.85.1453219812774; Tue, 19 Jan 2016 08:10:12 -0800 (PST) Received: from xeon-e3 (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by smtp.gmail.com with ESMTPSA id r15sm36758143pfr.59.2016.01.19.08.10.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jan 2016 08:10:12 -0800 (PST) Date: Tue, 19 Jan 2016 08:10:19 -0800 From: Stephen Hemminger To: Neil Horman Message-ID: <20160119081019.607a9b48@xeon-e3> In-Reply-To: <20160119142930.GA25388@hmsreliant.think-freely.org> 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> <3759018.lgeOm8Q2D2@xps13> <20160119142930.GA25388@hmsreliant.think-freely.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v2 10/10] pci: place all uio pci device ids in a dedicated section X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jan 2016 16:10:14 -0000 On Tue, 19 Jan 2016 09:29:31 -0500 Neil Horman wrote: > On Tue, Jan 19, 2016 at 08:30:40AM +0100, Thomas Monjalon wrote: > > 2016-01-18 13:30, David Marchand: > > > We could do something =C3=A0 la modinfo, but let's keep it simple for= now. > > >=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 ................ > >=20 > > 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 be > > properly defined, documented and extensible. > >=20 > > 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: > > http://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. >=20 > Yes, I would be interested in seeing this. Is the ask here that someone = do it? > As I recall from the last thread that you reference, I thought David M was > interested in writing it and soliciting for ideas. If thats no longer th= e case, > I can take a stab at writing it. >=20 > Neil >=20 If these are libraries is there a way to have a real entry point to dump PCI id's.=20