[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <cover.1752126177.git.zhuyikai1@h-partners.com>
Date: Thu, 10 Jul 2025 14:08:16 +0800
From: Fan Gong <gongfan1@...wei.com>
To: Fan Gong <gongfan1@...wei.com>, Zhu Yikai <zhuyikai1@...artners.com>
CC: <netdev@...r.kernel.org>, <linux-kernel@...r.kernel.org>, "David S.
Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>, Jakub
Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>, Simon Horman
<horms@...nel.org>, Andrew Lunn <andrew+netdev@...n.ch>,
<linux-doc@...r.kernel.org>, Jonathan Corbet <corbet@....net>, Bjorn Helgaas
<helgaas@...nel.org>, luosifu <luosifu@...wei.com>, Xin Guo
<guoxin09@...wei.com>, Shen Chenyang <shenchenyang1@...ilicon.com>, Zhou
Shuai <zhoushuai28@...wei.com>, Wu Like <wulike1@...wei.com>, Shi Jing
<shijing34@...wei.com>, Fu Guiming <fuguiming@...artners.com>, Meny Yossefi
<meny.yossefi@...wei.com>, Gur Stavi <gur.stavi@...wei.com>, Lee Trager
<lee@...ger.us>, Michael Ellerman <mpe@...erman.id.au>, Vadim Fedorenko
<vadim.fedorenko@...ux.dev>, Suman Ghosh <sumang@...vell.com>, Przemek
Kitszel <przemyslaw.kitszel@...el.com>, Joe Damato <jdamato@...tly.com>,
Christophe JAILLET <christophe.jaillet@...adoo.fr>
Subject: [PATCH net-next v08 0/8] net: hinic3: Add a driver for Huawei 3rd gen NIC - management interfaces
This is the 2/3 patch of the patch-set described below.
The patch-set contains driver for Huawei's 3rd generation HiNIC
Ethernet device that will be available in the future.
This is an SRIOV device, designed for data centers.
Initially, the driver only supports VFs.
Following the discussion over RFC01, the code will be submitted in
separate smaller patches where until the last patch the driver is
non-functional. The RFC02 submission contains overall view of the entire
driver but every patch will be posted as a standalone submission.
Changes:
PATCH 02 V01: https://lore.kernel.org/netdev/cover.1749561390.git.root@localhost.localdomain
PATCH 02 V02: https://lore.kernel.org/netdev/cover.1749718348.git.zhuyikai1@h-partners.com
* Fix build allmodconfig warning (patchwork)
* Update cover-letter changes information.
PATCH 02 V03: https://lore.kernel.org/netdev/cover.1750054732.git.zhuyikai1@h-partners.com
* Use refcount_*() instead of atomic_*() (Jakub Kicinski)
* Consistency fixes : HIG->HIGH, BAR45->BAR4/5 , etc (ALOK TIWARI)
* Code format fixes : use \n before return, remove extra spaces (ALOK TIWARI)
* Remove hinic3_request_irq redundant error print (ALOK TIWARI)
* Modify hinic3_wq_create error print (ALOK TIWARI)
PATCH 02 V04: https://lore.kernel.org/netdev/cover.1750665915.git.zhuyikai1@h-partners.com
* Break it up into smaller patches (Jakub Kicinski)
PATCH 02 V05: https://lore.kernel.org/netdev/cover.1750821322.git.zhuyikai1@h-partners.com
* Fix build clang warning (Jakub Kicinski)
PATCH 02 V06: https://lore.kernel.org/netdev/cover.1750937080.git.zhuyikai1@h-partners.com
* Use kmalloc instead of kzalloc for cmd_buf allocation (Vadim Fedorenko)
* Use usleep_range() for avoid CPU busy waiting (Vadim Fedorenko)
* Use kcalloc for intr_coalesce initialization (Vadim Fedorenko)
* Code format fixes: use reverse x-mas tree (Vadim Fedorenko)
* Simplify hinic3_mbox_pre_init logic (Vadim Fedorenko)
PATCH 02 V07: https://lore.kernel.org/netdev/cover.1751597094.git.zhuyikai1@h-partners.com
* Use threaded IRQ instead of tasklet (Paolo Abeni)
* Use wmb instead of rmb in cmdq_sync_cmd_handler (Paolo Abeni)
PATCH 02 V08:
* Remove msg_send_lock to avoid a double-locking schema (Vadim Fedorenko)
* Use send_msg_id when assigning the value to msg_id (Vadim Fedorenko)
Fan Gong (8):
hinic3: Async Event Queue interfaces
hinic3: Complete Event Queue interfaces
hinic3: Command Queue framework
hinic3: Command Queue interfaces
hinic3: TX & RX Queue coalesce interfaces
hinic3: Mailbox framework
hinic3: Mailbox management interfaces
hinic3: Interrupt request configuration
drivers/net/ethernet/huawei/hinic3/Makefile | 4 +-
.../net/ethernet/huawei/hinic3/hinic3_cmdq.c | 914 ++++++++++++++++++
.../net/ethernet/huawei/hinic3/hinic3_cmdq.h | 156 +++
.../ethernet/huawei/hinic3/hinic3_common.c | 31 +
.../ethernet/huawei/hinic3/hinic3_common.h | 27 +
.../net/ethernet/huawei/hinic3/hinic3_csr.h | 79 ++
.../net/ethernet/huawei/hinic3/hinic3_eqs.c | 793 +++++++++++++++
.../net/ethernet/huawei/hinic3/hinic3_eqs.h | 129 +++
.../ethernet/huawei/hinic3/hinic3_hw_cfg.c | 43 +
.../ethernet/huawei/hinic3/hinic3_hw_comm.c | 31 +
.../ethernet/huawei/hinic3/hinic3_hw_comm.h | 13 +
.../ethernet/huawei/hinic3/hinic3_hw_intf.h | 36 +
.../net/ethernet/huawei/hinic3/hinic3_hwif.c | 153 ++-
.../net/ethernet/huawei/hinic3/hinic3_hwif.h | 16 +
.../net/ethernet/huawei/hinic3/hinic3_irq.c | 137 ++-
.../net/ethernet/huawei/hinic3/hinic3_main.c | 61 +-
.../net/ethernet/huawei/hinic3/hinic3_mbox.c | 838 +++++++++++++++-
.../net/ethernet/huawei/hinic3/hinic3_mbox.h | 125 +++
.../ethernet/huawei/hinic3/hinic3_nic_dev.h | 14 +-
.../huawei/hinic3/hinic3_queue_common.h | 1 +
.../net/ethernet/huawei/hinic3/hinic3_wq.c | 109 +++
.../net/ethernet/huawei/hinic3/hinic3_wq.h | 11 +
22 files changed, 3706 insertions(+), 15 deletions(-)
create mode 100644 drivers/net/ethernet/huawei/hinic3/hinic3_cmdq.c
create mode 100644 drivers/net/ethernet/huawei/hinic3/hinic3_cmdq.h
create mode 100644 drivers/net/ethernet/huawei/hinic3/hinic3_csr.h
create mode 100644 drivers/net/ethernet/huawei/hinic3/hinic3_eqs.c
create mode 100644 drivers/net/ethernet/huawei/hinic3/hinic3_eqs.h
base-commit: 5e95c0a3a55aea490420bd6994805edb050cc86b
--
2.43.0
Powered by blists - more mailing lists