From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=dFzbDuUunLavqwy5yhR4sKhavfR3d3y5yZXFSjcpW10=; b=J98rYcJ7UY3R6SIekPJniODF7aIuLuu3gFBA8nuCmfjXcv0Q+VS8PluOSKr33EO7gW a7mSQLfiA8FuVBQxEuCf6V0t/h4ZjKxaS1tq8oQye2vViWgw01UN98k/S90Ntrp+t3xV E6JKraqymdD0QIv9Xe/JMbhwupUCAJKCcOQ2SQxW7yx4+Pv6iGDk58yCZ9BxffG75rhY VA1t4OBsCAhaytOiObGuIQs7xZ3wBU8vXhmU6/vhIIg+V+Drj6gA0q95aFMH01zS7nKc GMQ7c1DsUyXnCg2GNXES2n7JHaeY9SvK9F1fJ0TZzstK338rdn4dgTni2rwnvgrX172k 2zUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=dFzbDuUunLavqwy5yhR4sKhavfR3d3y5yZXFSjcpW10=; b=l4jin/09mZH8332kr9R6jXpYvNUM8hEsx48Us7FTDUTWRgYuBbxC5ovijfCFFZLqj+ 4stv+3jJwM5a/li6rrlRt0VsDFCc4E9Nv7Zfeqe99SjPIAW5awuP8eUGlGtiqPAIdwFg iakmY3aQ3RNLljN4CzcY2tDQocjwXb4QMUkdGFpjzoXK0WYOu6gtIhLoJNgaw9xYoYon XPvDIg6O6mnDYARK3Q0TJ1YNJL9AF/imMUZJCDJhJFr8OAuUIh7ay4/t+59WW6I2CTPs kAwo2pr623fjuouB+xVLOFzMscrbEkuLd9ZkKQ4VAZAc8VnJHkQUSNjTD3wWvh1+ungZ 3fOg== X-Gm-Message-State: AG10YOQ3SJHfWKOmNjteB2j8sxFfqzWSoyKe0D8IHi+fwienALlfffJ6NRdxuwHK3Q6YauFJ X-Received: by 10.28.88.210 with SMTP id m201mr18138049wmb.76.1453188703573; Mon, 18 Jan 2016 23:31:43 -0800 (PST) Received: from xps13.localnet (105.202.154.77.rev.sfr.net. [77.154.202.105]) by smtp.gmail.com with ESMTPSA id v191sm19030296wme.1.2016.01.18.23.31.41 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 18 Jan 2016 23:31:42 -0800 (PST) From: Thomas Monjalon To: David Marchand Date: Tue, 19 Jan 2016 08:30:40 +0100 Message-ID: <3759018.lgeOm8Q2D2@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1453120248-28274-11-git-send-email-david.marchand@6wind.com> 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-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Cc: dev@dpdk.org, Neil Horman 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 07:31:44 -0000 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.