mbox series

[0/5] drivers/net: add NXP FEC-UIO driver

Message ID 20211110054838.27907-1-apeksha.gupta@nxp.com (mailing list archive)
Headers show
Series drivers/net: add NXP FEC-UIO driver | expand

Message

Apeksha Gupta Nov. 10, 2021, 5:48 a.m. UTC
This patch series introduce the fec-uio driver, supported for the inbuilt
NIC found in the NXP i.MX 8M Mini SoC. Basic hardware initialization is
performed in kernel via userspace input/output(UIO) to support FEC
ethernet device detection in user space.

Userspace PMD uses standard UIO interface to access kernel for PHY
initialisation and for mapping the allocated memory of register &
buffer descriptor with DPDK which gives access to non-cacheable memory
for buffer descriptor.

Module fec-uio.ko will get generated.
imx8mm-evk-dpdk.dtb is required to support fec-uio driver.

Apeksha Gupta (5):
  dt-bindings: add binding for fec-uio
  net: fec: fec-uio driver
  ARM64: defconfig: Add config for fec-uio
  MAINTAINERS: add new file
  arm64: dts: imx8mm-evk-dpdk: dts for fec-uio driver

 .../devicetree/bindings/net/fsl,fec-uio.yaml  |  32 ++
 MAINTAINERS                                   |   6 +
 arch/arm64/boot/dts/freescale/Makefile        |   1 +
 .../boot/dts/freescale/imx8mm-evk-dpdk.dts    |  10 +
 arch/arm64/configs/defconfig                  |   1 +
 drivers/net/ethernet/freescale/Kconfig        |  10 +
 drivers/net/ethernet/freescale/Makefile       |   7 +-
 drivers/net/ethernet/freescale/fec_uio.c      | 437 ++++++++++++++++++
 8 files changed, 501 insertions(+), 3 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/net/fsl,fec-uio.yaml
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-evk-dpdk.dts
 create mode 100644 drivers/net/ethernet/freescale/fec_uio.c

Comments

Michael Walle Nov. 11, 2021, 11:06 a.m. UTC | #1
[linux-devel@linux.nxdi.nxp.com doesn't exist in the public, which is quite
annoying when you reply to an email and the MTA doesn't accept it due to
invalid domains]

> This patch series introduce the fec-uio driver, supported for the inbuilt
> NIC found in the NXP i.MX 8M Mini SoC. Basic hardware initialization is
> performed in kernel via userspace input/output(UIO) to support FEC
> ethernet device detection in user space.

Could you elaborate for what this driver is needed? Doesn't the imx8mm
already have a network driver? What is the difference between them?

As a user, I couldn't find what this is all about, neither in this
commit message nor in the Kconfig help text.

> Userspace PMD uses standard UIO interface to access kernel for PHY
> initialisation and for mapping the allocated memory of register &
> buffer descriptor with DPDK which gives access to non-cacheable memory
> for buffer descriptor.
> 
> Module fec-uio.ko will get generated.
> imx8mm-evk-dpdk.dtb is required to support fec-uio driver.

-michael