From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by dpdk.org (Postfix) with ESMTP id 7494C370 for ; Fri, 16 Dec 2016 10:22:11 +0100 (CET) Received: by mail-wm0-f48.google.com with SMTP id a197so24010119wmd.0 for ; Fri, 16 Dec 2016 01:22:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hXMvp7JS1I+1iXyFLns77jnvYYrg0YsqPeGhJSXGcOA=; b=XWRTQzqe30KjI3UtLGGnbs5d1vqXZ0FcLINqXUTP0cK1jKHtFawhYvuodGJRHBMAik h+uMO1KQ7dONc2BhiTuuA/52mdUcCdDavrsDQI8hmH1NG1AMFr+ygcNFKt9ZL63IcuRQ 0yla4Tv5j4BeMdLJs5GwiSMqZe9jmMjKc8sjuQV61T4nmStc4kaaZSMoQFnu2juFFHWz FKY1So+34AUxwXm1FmNrrzGcegs0Wsg3uS16hJtjRzlvKOrDP9L6Sk4YixjFSqLhJoGv ejDtewghmVwSgOKwLZAiNOdPkPuhaKRfL5XPR2klGI/Iiwc9CxZteS8u+E3zq89EHTRo bGaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hXMvp7JS1I+1iXyFLns77jnvYYrg0YsqPeGhJSXGcOA=; b=QXL5d/nN/e5kRoigR69sssURQVJOSMZ0W+T6diXkjOe3kVtj/1e2sENwc9korI16Ku s7N4aNZ+qHfAUCtFsRwxWhT0BIftqfzA07Wxxu+rWUihbioN+gLu1dKwcUGi3dirMRFS yqU97rAs/EN0fzMEseG8snIscOT+iO/d1mUw5Yf0XRRWScubapMMc8v9yySpWnkYGPLx GLugDdIxqN49/3AkVtLAKhnLEX/+564pz7idfyGzFm7zwulIZ+PERFWe7Mu7OZOdo3jO pYO9cfKGB5dHsIJAmhWxLWoG+zJBiZMZZMbebDgD/1FiM0KpNAheR14BFklVGJlljM1D AkOg== X-Gm-Message-State: AIkVDXJFrcHdy1s7MhBsNvOB2scHx9Ik7mUcLMvmvJsBj6SzF++YdoOXFo2ZoTvewewJgCgO X-Received: by 10.28.214.84 with SMTP id n81mr1673376wmg.120.1481880131078; Fri, 16 Dec 2016 01:22:11 -0800 (PST) Received: from platinum (2a01cb0c03c651000226b0fffeed02fc.ipv6.abo.wanadoo.fr. [2a01:cb0c:3c6:5100:226:b0ff:feed:2fc]) by smtp.gmail.com with ESMTPSA id ke6sm5901747wjb.21.2016.12.16.01.22.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Dec 2016 01:22:10 -0800 (PST) Date: Fri, 16 Dec 2016 10:22:08 +0100 From: Olivier Matz To: Stephen Hemminger Cc: Neil Horman , dev@dpdk.org, thomas.monjalon@6wind.com, vido@cesnet.cz, fiona.trahe@intel.com, adrien.mazarguil@6wind.com Message-ID: <20161216102208.08955321@platinum> In-Reply-To: <20161215092207.168ba141@xeon-e3> References: <1479808257-8725-1-git-send-email-olivier.matz@6wind.com> <1481809599-27896-1-git-send-email-olivier.matz@6wind.com> <20161215160912.GA4450@neilslaptop.think-freely.org> <20161215092207.168ba141@xeon-e3> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v3] drivers: advertise kmod dependencies in pmdinfo 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, 16 Dec 2016 09:22:11 -0000 Hi, On Thu, 15 Dec 2016 09:22:07 -0800, Stephen Hemminger wrote: > On Thu, 15 Dec 2016 11:09:12 -0500 > Neil Horman wrote: > > > On Thu, Dec 15, 2016 at 02:46:39PM +0100, Olivier Matz wrote: > > > Add a new macro RTE_PMD_REGISTER_KMOD_DEP() that allows a driver > > > to declare the list of kernel modules required to run properly. > > > > > > Today, most PCI drivers require uio/vfio. > > > > > > Signed-off-by: Olivier Matz > > > Acked-by: Fiona Trahe > > > --- > > > > > > v2 -> v3: > > > - fix kmods deps advertised by mellanox drivers as pointed out > > > by Adrien > > > > > > v1 -> > > > v2: > > > - do not advertise uio_pci_generic for vf drivers > > > - rebase on top of head: use new driver names and prefix > > > macro with > > > RTE_ > > > > > > rfc -> v1: > > > - the kmod information can be per-device using a modalias-like > > > pattern > > > - change syntax to use '&' and '|' instead of ',' and ':' > > > - remove useless prerequisites in kmod lis: no need to > > > specify both uio and uio_pci_generic, only the latter is > > > required > > > - update kmod list in szedata2 driver > > > - remove kmod list in qat driver: it requires more than just > > > loading a kmod, which is described in documentation > > > > > > buildtools/pmdinfogen/pmdinfogen.c | 1 + > > > buildtools/pmdinfogen/pmdinfogen.h | 1 + > > > drivers/net/bnx2x/bnx2x_ethdev.c | 2 ++ > > > drivers/net/bnxt/bnxt_ethdev.c | 1 + > > > drivers/net/cxgbe/cxgbe_ethdev.c | 1 + > > > drivers/net/e1000/em_ethdev.c | 1 + > > > drivers/net/e1000/igb_ethdev.c | 2 ++ > > > drivers/net/ena/ena_ethdev.c | 1 + > > > drivers/net/enic/enic_ethdev.c | 1 + > > > drivers/net/fm10k/fm10k_ethdev.c | 1 + > > > drivers/net/i40e/i40e_ethdev.c | 1 + > > > drivers/net/i40e/i40e_ethdev_vf.c | 1 + > > > drivers/net/ixgbe/ixgbe_ethdev.c | 2 ++ > > > drivers/net/mlx4/mlx4.c | 2 ++ > > > drivers/net/mlx5/mlx5.c | 1 + > > > drivers/net/nfp/nfp_net.c | 1 + > > > drivers/net/qede/qede_ethdev.c | 2 ++ > > > drivers/net/szedata2/rte_eth_szedata2.c | 2 ++ > > > drivers/net/thunderx/nicvf_ethdev.c | 1 + > > > drivers/net/virtio/virtio_ethdev.c | 1 + > > > drivers/net/vmxnet3/vmxnet3_ethdev.c | 1 + > > > lib/librte_eal/common/include/rte_dev.h | 25 > > > +++++++++++++++++++++++++ tools/dpdk-pmdinfo.py > > > | 5 ++++- 23 files changed, 56 insertions(+), 1 deletion(-) > > > > > Its odd that all devices, regardless of vendor should depend on the > > igb_uio module. It seems to me that depending on uio_pci_generic > > or vfio is sufficient. igb_uio is the historical uio module of dpdk. Although it is called igb_uio, it is not specific to Intel drivers. Most drivers declare "igb_uio | uio_pci_generic | vfio", which means that any of the 3 kernel modules can be used. I think there are some cases where people will prefer using igb_uio, for instance to use a vf pmd in a vm where there is no iommu, and where the kernel vfio module does not support the no-iommu mode. > > Yes it seems just a special case extension for Mellanox drivers. Kmod deps are different whether it's a vf driver or not. Mellanox drivers are not the only drivers that do not require uio, there is also szedata2. Is it an argument for not including this patch? Regards, Olivier