From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from szxga06-in.huawei.com (szxga06-in.huawei.com [45.249.212.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8A1F1DDC5; Tue, 24 Jun 2025 00:14:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.32 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750724089; cv=none; b=mGEPgu8smx++/SBvOpBonLuw3HWymuPqbRpAMOaYt+ozcj9ZS3ORVouumeWm+fcZ/flIkvsLLVdX53yBXusjuE+2IKFvg0OcPVu8cooecQCSPrLhIhSf+y12j5i8ZJs9HgL1s/JR/s+WTivDewDejyJiiXc0gOCrjDd+tVpB11Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750724089; c=relaxed/simple; bh=mvd7HYgY3y0Jlw/lagENjsSyorxq5oI63ILlkLx617U=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=O232mtQwzL+49zaWKNxI+lxV1i+akDJeIErXtuRb7E9J5dKNx4p4IW4EhxmyFUd+oNJaJLv1jKjOu/K308kgPF6pHr0LTyXxR1gYI0Dj+waEnNXQySIaf/X87LkaUjtd7BaK0cVoCignDkiLAOGJtqHWp/Vv3knsKc6rVseRdZo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.162.112]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4bR57s2dyKz2QVJT; Tue, 24 Jun 2025 08:15:37 +0800 (CST) Received: from kwepemf100013.china.huawei.com (unknown [7.202.181.12]) by mail.maildlp.com (Postfix) with ESMTPS id 7435D140294; Tue, 24 Jun 2025 08:14:42 +0800 (CST) Received: from DESKTOP-F6Q6J7K.china.huawei.com (10.174.175.220) by kwepemf100013.china.huawei.com (7.202.181.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Tue, 24 Jun 2025 08:14:40 +0800 From: Fan Gong To: Fan Gong , Zhu Yikai CC: , , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Andrew Lunn , , Jonathan Corbet , Bjorn Helgaas , luosifu , Xin Guo , Shen Chenyang , Zhou Shuai , Wu Like , Shi Jing , Meny Yossefi , Gur Stavi , Lee Trager , Michael Ellerman , Suman Ghosh , Przemek Kitszel , Joe Damato , Christophe JAILLET Subject: [PATCH net-next v04 0/8] net: hinic3: Add a driver for Huawei 3rd gen NIC - management interfaces Date: Tue, 24 Jun 2025 08:14:21 +0800 Message-ID: X-Mailer: git-send-email 2.21.0.windows.1 Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: kwepems500001.china.huawei.com (7.221.188.70) To kwepemf100013.china.huawei.com (7.202.181.12) 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: * Break it up into smaller patches (Jakub Kicinski) 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 | 912 ++++++++++++++++++ .../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 | 803 +++++++++++++++ .../net/ethernet/huawei/hinic3/hinic3_eqs.h | 130 +++ .../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 | 65 +- .../net/ethernet/huawei/hinic3/hinic3_mbox.c | 843 +++++++++++++++- .../net/ethernet/huawei/hinic3/hinic3_mbox.h | 127 +++ .../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, 3726 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