🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #19121

[PATCH v35 net-next 0/8] nbl driver for Nebulamatrix NICs

#19121
From: "illusion.wang"
Date: Thu, 19 Nov 2026 11:35
117 lines
13589 bytes
This series continues and refines the previous v28 NBL NIC driver patch
set for Nebula-matrix m18110/m18000 (SNIC s1000) Ethernet adapters.

The first two foundational patches of v28 have been merged into net-next
main branch:
- net/nebula-matrix: add minimum nbl build framework (cffde9e49e86)
- net/nebula-matrix: add core driver architecture and HW layer
  initialization (825e6d230163)

Following maintainer feedback to shorten the patch series, this
iteration drops the two merged commits, reorganizes and polishes the
remaining functionality into a standalone 8-patch sequence. No new
features are added; this series only completes the pending core
infrastructure.

The overall driver development plan remains consistent with the v28
two-phase roadmap:
1) Complete hardware initialization, mailbox/channel communication and
   control-plane infrastructure (this series)
2) Implement netdev registration and TX/RX data-path functionality
   (follow-up series)

This patch set supplements the merged foundational code, covering
channel layer abstraction, resource management, interrupt handling,
chip-level initialization, control dispatch routing, channel RPC
framework, and device lifecycle init/remove/start/stop logic.

changes v34->v35
Link to v34:https://lore.kernel.org/netdev/20261112094925.6098-1-illusion.wang@nebula-matrix.com/
1.AI review issues
2.Issue found by Leitao
changes v33->v34
Link to v33:https://lore.kernel.org/netdev/20261106045631.2224-1-illusion.wang@nebula-matrix.com/
AI review issues
changes v32->v33
Link to v32:https://lore.kernel.org/netdev/20261021062113.2158-1-illusion.wang@nebula-matrix.com/
AI review issues
changes v31->v32
Link to v31:https://lore.kernel.org/netdev/20261010095939.2230-1-illusion.wang@nebula-matrix.com/
AI review issues
changes v30->v31
Link to v30:https://lore.kernel.org/netdev/20260928123237.88994-1-illusion.wang@nebula-matrix.com/
1.AI review issues
changes v29->v30
Link to v29:https://lore.kernel.org/netdev/20260922120311.86593-1-illusion.wang@nebula-matrix.com/
1.AI review issues
changes v28->v29
Link to v28:https://lore.kernel.org/netdev/20260914123429.56596-1-illusion.wang@nebula-matrix.com/
1.AI review issues
2.remove the hash table implementation 

illusion wang (8):
  net/nebula-matrix: add channel layer
  net/nebula-matrix: add common resource implementation
  net/nebula-matrix: add intr resource implementation
  net/nebula-matrix: add chip-wide hardware init/deinit implementation
  net/nebula-matrix: dispatch: add control-level routing core
    infrastructure
  net/nebula-matrix: dispatch: add mailbox RPCs for msix map, mailbox
    irq and vsi/eth id
  net/nebula-matrix: add common/ctrl dev init/remove operation
  net/nebula-matrix: add common dev start/stop operation

 .../net/ethernet/nebula-matrix/nbl/Makefile   |   10 +-
 .../nbl/nbl_channel/nbl_channel.c             | 1568 +++++++++++++++++
 .../nbl/nbl_channel/nbl_channel.h             |  196 +++
 .../nebula-matrix/nbl/nbl_common/nbl_common.c |   51 +
 .../nebula-matrix/nbl/nbl_common/nbl_common.h |   14 +
 .../net/ethernet/nebula-matrix/nbl/nbl_core.h |   22 +
 .../nebula-matrix/nbl/nbl_core/nbl_dev.c      |  757 ++++++++
 .../nebula-matrix/nbl/nbl_core/nbl_dev.h      |   55 +
 .../nebula-matrix/nbl/nbl_core/nbl_dispatch.c |  623 +++++++
 .../nebula-matrix/nbl/nbl_core/nbl_dispatch.h |   23 +
 .../nebula-matrix/nbl/nbl_hw/nbl_chip.c       |   32 +
 .../nebula-matrix/nbl/nbl_hw/nbl_chip.h       |   12 +
 .../nbl/nbl_hw/nbl_hw_leonis/nbl_hw_leonis.c  | 1314 +++++++++++++-
 .../nbl/nbl_hw/nbl_hw_leonis/nbl_hw_leonis.h  |  342 ++++
 .../nbl_hw_leonis/nbl_resource_leonis.c       |  346 ++++
 .../nbl_hw_leonis/nbl_resource_leonis.h       |   12 +
 .../nebula-matrix/nbl/nbl_hw/nbl_hw_reg.h     |   33 +
 .../nebula-matrix/nbl/nbl_hw/nbl_interrupt.c  |  859 +++++++++
 .../nebula-matrix/nbl/nbl_hw/nbl_interrupt.h  |   21 +
 .../nebula-matrix/nbl/nbl_hw/nbl_resource.c   |  157 ++
 .../nebula-matrix/nbl/nbl_hw/nbl_resource.h   |  158 ++
 .../nbl/nbl_include/nbl_def_channel.h         |  175 ++
 .../nbl/nbl_include/nbl_def_common.h          |   23 +
 .../nbl/nbl_include/nbl_def_dev.h             |   16 +
 .../nbl/nbl_include/nbl_def_dispatch.h        |   92 +
 .../nbl/nbl_include/nbl_def_hw.h              |   81 +
 .../nbl/nbl_include/nbl_def_resource.h        |   16 +
 .../nbl/nbl_include/nbl_include.h             |   28 +
 .../net/ethernet/nebula-matrix/nbl/nbl_main.c |  306 +++-
 29 files changed, 7318 insertions(+), 24 deletions(-)
 create mode 100644 drivers/net/ethernet/nebula-matrix/nbl/nbl_channel/nbl_channel.c
 create mode 100644 drivers/net/ethernet/nebula-matrix/nbl/nbl_channel/nbl_channel.h
 create mode 100644 drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c
 create mode 100644 drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.h
 create mode 100644 drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c
 create mode 100644 drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.h
 create mode 100644 drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dispatch.c
 create mode 100644 drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dispatch.h
 create mode 100644 drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_chip.c
 create mode 100644 drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_chip.h
 create mode 100644 drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_resource_leonis.c
 create mode 100644 drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_resource_leonis.h
 create mode 100644 drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_interrupt.c
 create mode 100644 drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_interrupt.h
 create mode 100644 drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_resource.c
 create mode 100644 drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_resource.h
 create mode 100644 drivers/net/ethernet/nebula-matrix/nbl/nbl_include/nbl_def_channel.h
 create mode 100644 drivers/net/ethernet/nebula-matrix/nbl/nbl_include/nbl_def_dev.h
 create mode 100644 drivers/net/ethernet/nebula-matrix/nbl/nbl_include/nbl_def_dispatch.h
 create mode 100644 drivers/net/ethernet/nebula-matrix/nbl/nbl_include/nbl_def_resource.h

-- 
2.51.0.windows.1
Technical Details
Message-ID: <20261119113530.32107-1-illusion.wang@nebula-matrix.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366968-linux-kernel-netdev=dewy.ru

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366968-linux-kernel-netdev=dewy.ru
From: illusion.wang@nebula-matrix.com ("illusion.wang")
Newsgroups: linux.kernel.netdev
Subject: [PATCH v35 net-next 0/8] nbl driver for Nebulamatrix NICs
Date: Thu, 19 Nov 2026 19:35:13 +0800
Organization: Usenet Network
Message-ID: <20261119113530.32107-1-illusion.wang@nebula-matrix.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2860628"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:aSOGdVRZOgySNOztHVHC/6lMHD0= sha256:XjrbfgbAwITg+xhkNz1wE1n0SVU/wkCdahD8dtTAfuo=
	sha1:TGMdb6KG7PSLo3OVKEaUzA/7Fsw= sha256:zZxFTs7ncu5Un5fBcGzX1NV4IeRGddhvqt7t538aqus=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id BC85E1155F1; Thu, 19 Nov 2026 14:36:59 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.949
X-Spam-Status: No, score=-2.949 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001, URIBL_BLOCKED=0.001]
	autolearn=ham autolearn_force=no
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id BAlxaQEPL2dD;
	Thu, 19 Nov 2026 14:36:55 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-366968-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=nebula-matrix.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 513CA1155E7; Thu, 19 Nov 2026 14:36:52 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 84FB72AA8C8; Thu, 19 Nov 2026 11:36:34 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795088161;
	b=e91Mq7MiVLmOWc9Sp/Ln313vy9iDyKKzNAbiT11HWrwMAT6AEt2lkCoHEKVhhm8hYliJ
	 9CbH3SgcWCQ3unY9HEvJX57XwRIKNFMAxqWfaLGAvvk/nGve8zib2h9+jOtebgzMam65F
	 oE4adG6DVZbvvrR0DbGDov+CPorbCqJPU5r511VfL443MBCQPgldxB+pKCQ9D562GgQV+
	 fZV5Qbn+d0Q9fN855Wk0K4lkq0KlZCzIgrJ3pWdRQOT3m8y1Y86rMNSISc8YYU2zyFexS
	 JDcazD4eaqVi+urqfAj9qaxrO6OtkTv0lVgBt0Ti1kXKolIlDdcu1awpljlXtpN4w2A==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795088161;
	h=X-Original-To:Received:DMARC-Filter:X-Alimail-AntiSpam:Received:From:
	 To:Cc:Subject:Date:Message-ID:X-Mailer:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Transfer-Encoding;
	bh=+vb3uK2aH9MFU84SJsUfqLOhvSj0Ora2TfmfjomNwZg=;
	b=B6g/NRGEDXZAwPLXJNqNFYD8zz8nHhdpuAt2acG+FUvEaaOuS58GhJqho00dqn1wexgT
	 Vg4MMBcgQ/mSPCdI+oghHPoTxocWS5+Tu2V1rBxinYdbiezUl+NK77RJrVE57L4ks9jNV
	 Lh2LJRTHdCbr4GvovlaM0+8164BfOjCOxzovek3Kntzz2rTgtg3+PrM3WuLNnzX4i03pK
	 P3oqCTOi37u/FVHRWJoWGadz6CKhrIl5OJwBReVb5kQnTz6v75iN+KWNUQdv2hJ6SxGuY
	 NtmDbMRst30bQ5c7sOq1vZTdixFmzt3JsIKiZS0Nca48mvKwNntqMOvanhsJD7+rCoA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dmarc=none header.from=nebula-matrix.com;
	spf=pass smtp.mailfrom=nebula-matrix.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id BEBB360A6F4A;
	Thu, 19 Nov 2026 11:36:01 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=115.124.28.218
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795088156;
	b=rVY4vtj7rxX735Q2SY4R7tcSKg7Csp1Q30EKlwd/3bKmU9n03SEXf7ujETQQtm+XwJlu
	 v06nEqK/rrgQgx0yLRDlKqj0e3Fdi2wCNOE7l3lYnKoBjDpivh/jY1FtJHMiQLzKAL8LS
	 CiqKcjyoa+c7mWuGw7OcMedcnbAMkq4GeKP1SHpFQIdqDvQWcZqh8/h2YYTCxoFhfbxGy
	 gKXgKryKC7xUV8pG8eumj/iU6g7wjR3DZ4ULX7ezaIeesjd0tYjGeGOGbRGcP7kNwN/YN
	 /vpKvPMRzUZwaB+2SiXsBvlHlXlgh7F/wgW6nLjFHOEQQnMfBWSsNGXOAXyaUUk6OZg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795088156;
	h=DMARC-Filter:X-Alimail-AntiSpam:Received:From:To:Cc:Subject:Date:
	 Message-ID:X-Mailer:MIME-Version:Content-Transfer-Encoding;
	bh=+vb3uK2aH9MFU84SJsUfqLOhvSj0Ora2TfmfjomNwZg=;
	b=3CdeeUofbrrnAUKAkMo7JYH5SVh219pvSO6KNLsD8Pbd12PSTm1zDp0VBIbp6E1eVn1E
	 cdZ76GdcNYdYIkyiU54qW2cAqpr17Fe9W81ZW0CqOkD9aNmRGmCDjojsYsuKtgoY8ty9E
	 oHgQpiqMJou7jJ/TzYyS3OjErK65WNOqmFQEcNytl/xKh4rx+el8uvfSNjrKmMxEbLADZ
	 ybvZoCcNU+2AkjCJw+XL/aT53mAB/xjmdq9uHJSD8edwUG2BaPiGbFFhLCcbUpETFDoMb
	 smapuTX/sjAjjpLHQOkvtwkvsuMTJpOYXF10RR+nwWYumd8HvjaImQJ1mZC+1c2H5Bg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=none header.from=nebula-matrix.com;
	spf=pass smtp.mailfrom=nebula-matrix.com;
	arc=none smtp.remote-ip=115.124.28.218
X-Received: from out28-218.mail.aliyun.com (out28-218.mail.aliyun.com [115.124.28.218])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 969F3606A320;
	Thu, 19 Nov 2026 11:35:53 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 969F3606A320
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nebula-matrix.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nebula-matrix.com
X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1235047|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_alarm|0.0827903-0.0106438-0.906566;FP=16596273005033193360|0|0|0|0|-1|-1|-1;HT=maildocker-contentspam033040092104;MF=illusion.wang@nebula-matrix.com;NM=1;PH=DS;RN=11;RT=11;SR=0;TI=SMTPD_---.k5kCy8i_1795088142;
X-Received: from localhost.localdomain(mailfrom:illusion.wang@nebula-matrix.com fp:SMTPD_---.k5kCy8i_1795088142 cluster:ay29)
          by smtp.aliyun-inc.com;
          Thu, 19 Nov 2026 19:35:43 +0800
X-Cc: kuba@kernel.org,
	andrew+netdev@lunn.ch,
	pabeni@redhat.com,
	edumazet@google.com,
	horms@kernel.org,
	linux-kernel@vger.kernel.org (open list)
X-Mailer: git-send-email 2.43.0
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list