From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) (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 E92AB227BB5; Thu, 12 Jun 2025 09:28:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.191 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749720531; cv=none; b=GnwUQzXIpSnpbYmb4hqO/grK9hNlkKftP/ICJ/jgvedno/nszobq8hDt5myicRDisHzCn0VdsaRlyVAlqO23CXW9au1BNi6CLx8Go8RFmd8VlBB0xRSZEm2zYGpFtjRumUTiLTGvoxNZM7QpcZBlcmhMRYigHlN3et7L1ql2JHs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749720531; c=relaxed/simple; bh=mSA1gSp7FojXJGw3ua9ZF3FCF4Jlu0VDP0x9YxvwgVw=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=hxoq3DoyhzVMQgdiTJnZZ2RGrSnLvBWZG66C7sOPdY6Al6hZQpbpc1y6EcDmiWQVmgy7Z9/sZH+DRnYMRaxXe6bWj7YgVi5NhvDJcZxYMJkyAsPyd2jEG0Uop7cs863a9vez31OwOo3EcKc23QS1MvqwUJUO8Ng1ukBtfUUXuY0= 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.191 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.88.214]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4bHxy05FZ3z2ZP4W; Thu, 12 Jun 2025 17:27:20 +0800 (CST) Received: from kwepemf100013.china.huawei.com (unknown [7.202.181.12]) by mail.maildlp.com (Postfix) with ESMTPS id D17C41A016C; Thu, 12 Jun 2025 17:28:40 +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; Thu, 12 Jun 2025 17:28:39 +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 v02 0/1] net: hinic3: Add a driver for Huawei 3rd gen NIC Date: Thu, 12 Jun 2025 17:28:28 +0800 Message-ID: X-Mailer: git-send-email 2.21.0.windows.1 Precedence: bulk X-Mailing-List: linux-kernel@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 1/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: * Fix build allmodconfig warning (patchwork) * Update cover-letter changes information. Fan Gong (1): hinic3: management interfaces drivers/net/ethernet/huawei/hinic3/Makefile | 4 +- .../net/ethernet/huawei/hinic3/hinic3_cmdq.c | 907 ++++++++++++++++++ .../net/ethernet/huawei/hinic3/hinic3_cmdq.h | 156 +++ .../ethernet/huawei/hinic3/hinic3_common.c | 30 + .../ethernet/huawei/hinic3/hinic3_common.h | 27 + .../net/ethernet/huawei/hinic3/hinic3_csr.h | 79 ++ .../net/ethernet/huawei/hinic3/hinic3_eqs.c | 795 +++++++++++++++ .../net/ethernet/huawei/hinic3/hinic3_eqs.h | 130 +++ .../ethernet/huawei/hinic3/hinic3_hw_cfg.c | 42 + .../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 | 152 ++- .../net/ethernet/huawei/hinic3/hinic3_hwif.h | 16 + .../net/ethernet/huawei/hinic3/hinic3_irq.c | 137 ++- .../net/ethernet/huawei/hinic3/hinic3_main.c | 54 ++ .../net/ethernet/huawei/hinic3/hinic3_mbox.c | 834 +++++++++++++++- .../net/ethernet/huawei/hinic3/hinic3_mbox.h | 127 +++ .../ethernet/huawei/hinic3/hinic3_nic_dev.h | 14 +- .../net/ethernet/huawei/hinic3/hinic3_wq.c | 108 +++ .../net/ethernet/huawei/hinic3/hinic3_wq.h | 10 + 21 files changed, 3692 insertions(+), 10 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: 5d6d67c4cb10a4b4d3ae35758d5eeed6239afdc8 -- 2.43.0