From: Dimon Zhao <dimon.zhao@nebula-matrix.com>
To: dev@dpdk.org
Cc: Dimon Zhao <dimon.zhao@nebula-matrix.com>,
stable@dpdk.org, Kyo Liu <kyo.liu@nebula-matrix.com>,
Leon Yu <leon.yu@nebula-matrix.com>,
Sam Chen <sam.chen@nebula-matrix.com>
Subject: [PATCH v4 1/1] net/nbl: add probe checks for unsupported UIO drivers
Date: Thu, 26 Feb 2026 18:57:33 -0800 [thread overview]
Message-ID: <20260227025734.46870-2-dimon.zhao@nebula-matrix.com> (raw)
In-Reply-To: <20260227025734.46870-1-dimon.zhao@nebula-matrix.com>
The NBL PMD does not support igb_uio (deprecated) or uio_pci_generic
(lacks MSI-X support). Add explicit checks in probe to reject devices
bound to these drivers with clear error messages.
Update documentation to reflect these limitations.
Fixes: a12f1acc7bc4 ("net/nbl: check IOVA mode in Linux coexistence")
Cc: stable@dpdk.org
Signed-off-by: Dimon Zhao <dimon.zhao@nebula-matrix.com>
---
doc/guides/nics/nbl.rst | 14 ++++++++++++++
drivers/net/nbl/nbl_core.c | 2 ++
drivers/net/nbl/nbl_ethdev.c | 11 +++++++++++
3 files changed, 27 insertions(+)
diff --git a/doc/guides/nics/nbl.rst b/doc/guides/nics/nbl.rst
index ba0a119dfd..a9f439ae96 100644
--- a/doc/guides/nics/nbl.rst
+++ b/doc/guides/nics/nbl.rst
@@ -78,6 +78,8 @@ it is necessary to force I/O virtual address (IOVA)
to be mapped to physical address (PA)
with the EAL command line option ``--iova-mode=pa``.
+Only PF supports Coexistence Between DPDK And Kernel Driver, VF does not.
+
Prerequisites
-------------
@@ -101,3 +103,15 @@ Limitations or Known Issues
32-bit architectures are not supported.
Windows and BSD are not supported yet.
+
+**igb_uio Driver Support**
+
+The ``igb_uio`` driver is not supported.
+
+**uio_pci_generic Driver Support**
+
+The ``uio_pci_generic`` driver is not supported.
+
+**VFIO no-IOMMU mode**
+If there is no IOMMU available on the system, VF must use ``vfio`` driver in ``noiommu`` mode.
+
diff --git a/drivers/net/nbl/nbl_core.c b/drivers/net/nbl/nbl_core.c
index 313f8c5bd6..df8c0c76ed 100644
--- a/drivers/net/nbl/nbl_core.c
+++ b/drivers/net/nbl/nbl_core.c
@@ -41,6 +41,8 @@ int nbl_core_init(struct nbl_adapter *adapter, struct rte_eth_dev *eth_dev)
common->eth_dev = eth_dev;
nbl_init_func_caps(pci_dev, &adapter->caps);
+ common->is_vf = (pci_dev->id.device_id == NBL_DEVICE_ID_M18100_VF);
+
product_base_ops = nbl_core_get_product_ops(adapter->caps.product_type);
/* every product's hw/chan/res layer has a great difference, so call their own init ops */
diff --git a/drivers/net/nbl/nbl_ethdev.c b/drivers/net/nbl/nbl_ethdev.c
index d269ea8058..5a7d8266a4 100644
--- a/drivers/net/nbl/nbl_ethdev.c
+++ b/drivers/net/nbl/nbl_ethdev.c
@@ -88,6 +88,17 @@ static int nbl_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,
NBL_LOG(ERR, "Secondary process is not supported.");
return -ENOTSUP;
}
+
+ if (pci_dev->kdrv == RTE_PCI_KDRV_UIO_GENERIC) {
+ NBL_LOG(ERR, "uio_pci_generic is not supported.");
+ return -ENOTSUP;
+ }
+
+ if (pci_dev->kdrv == RTE_PCI_KDRV_IGB_UIO) {
+ NBL_LOG(ERR, "igb_uio is not supported.");
+ return -ENOTSUP;
+ }
+
return rte_eth_dev_pci_generic_probe(pci_dev, sizeof(struct nbl_adapter),
nbl_eth_dev_init);
}
--
2.34.1
prev parent reply other threads:[~2026-02-27 2:58 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-11 2:40 [PATCH v1 0/1] support igb uio driver for VF devices Dimon Zhao
2026-02-11 2:40 ` [PATCH v1 1/1] net/nbl: add igb_uio support for NBL " Dimon Zhao
2026-02-11 17:13 ` Stephen Hemminger
2026-02-13 14:54 ` 回复:[PATCH " Dimon
2026-02-13 11:21 ` [PATCH v2 0/1] support igb uio driver for " Dimon Zhao
2026-02-13 11:21 ` [PATCH v2 1/1] net/nbl: add igb uio support for NBL " Dimon Zhao
2026-02-13 19:59 ` Stephen Hemminger
2026-02-25 3:39 ` [PATCH v3 0/1] support igb uio driver for " Dimon Zhao
2026-02-25 3:39 ` [PATCH v3 1/1] net/nbl: add igb uio support for NBL " Dimon Zhao
2026-02-25 16:50 ` Stephen Hemminger
2026-02-27 1:45 ` 回复:[PATCH " Dimon
2026-02-26 20:14 ` [PATCH " Stephen Hemminger
2026-02-27 2:57 ` [PATCH v4 0/1] NBL add probe checks for unsupported UIO drivers Dimon Zhao
2026-02-27 2:57 ` Dimon Zhao [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260227025734.46870-2-dimon.zhao@nebula-matrix.com \
--to=dimon.zhao@nebula-matrix.com \
--cc=dev@dpdk.org \
--cc=kyo.liu@nebula-matrix.com \
--cc=leon.yu@nebula-matrix.com \
--cc=sam.chen@nebula-matrix.com \
--cc=stable@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox