🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #10931

Re: [PATCH 00/15] Yunsilicon ethernet and RDMA drivers

#10931
From: "Xin Tian"
Date: Wed, 04 Nov 2026 11:47
61 lines
11519 bytes
On 10/13/2026 10:34 PM, Leon Romanovsky wrote:
> On Mon, Oct 12, 2026 at 07:44:32PM +0800, Xin Tian wrote:
>> Hi all,
>>
>> This is a new submission from Yunsilicon to upstream our converged
>> network adapter driver.  The hardware is a dual-function PCIe device
>> (PCI vendor 0x1f67) that supports both ethernet and RDMA operations.
>>
>> The series adds three drivers, which share the xsc prefix.  A shared PCI
>> core driver binds to the physical function, brings up the command queue,
>> the event queues and the interrupt handling, and publishes one auxiliary
>> device per function.  The ethernet and RDMA drivers bind to that
>> auxiliary device instead of driving the PCI function themselves, so the
>> two personalities share a single probe and resource set.
>>
>>    1. xsc_pci - the PCI core driver (CONFIG_YUNSILICON_XSC_PCI).
>>       Owns the PCI function, the command queue, the event queues, the
>>       interrupt vectors, the register access layer and the CQ/QP/SRQ
>>       resource pools.  Patches 01-05.
>>
>>    2. xsc_eth - the ethernet driver (CONFIG_YUNSILICON_XSC_ETH).
>>       Registers the netdev, implements the TX/RX packet paths with NAPI
>>       and page_pool, RSS, checksum offloads and statistics.  Patches
>>       06-08, on top of the core.
>>
>>    3. xsc_ib - the RDMA driver (CONFIG_INFINIBAND_XSC).
>>       Registers the ib_device and provides the PD/MR, CQ/SRQ/AH and QP
>>       verbs including the send/receive data paths, plus RDMA counters and
>>       sysfs attributes.  Patches 09-14, on top of the core and the
>>       ethernet driver (the netdev supplies port state and GID).
>>
>> Patch 15 adds the MAINTAINERS entry.
>>
>> The series is split so that every commit builds: the core patches
>> introduce the register access, the command queue, the event queues and
>> the resource pools incrementally, and the ethernet and RDMA patches only
>> start creating queues once their dependencies are in place.  Patch 05
>> (core CQ/QP pools) is deliberately shared by both upper drivers; that is
>> why it precedes the ethernet patches.
>>
>> The RDMA device is registered at patch 09, before all verbs exist, so
>> kverbs_provider stays false until the mandatory verbs appear in patches
>> 10-13.  This keeps each intermediate tree compilable.
>>
>> Please review.
> Please run Sashiko locally first.
>
> Before we begin an active review of a new driver, we expect it to have
> only a small number of Sashiko findings.
>
> Thanks
Hi Leon,

Understood. Sashiko was run locally twice and the findings were addressed.
I'll post v1 shortly to see whether the Sashiko run on the list finds
anything we missed—happy to fix whatever remains.

Thanks,
Xin Tian
Technical Details
Message-ID: <8f242876-3411-4d50-9e4e-548fa8e026f6@yunsilicon.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-356389-linux-kernel-netdev=dewy.ru
References: <20261012114352.2471317-1-tianx@yunsilicon.com> <20261013143417.GQ219304@unreal>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-356389-linux-kernel-netdev=dewy.ru
From: tianx@yunsilicon.com ("Xin Tian")
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH 00/15] Yunsilicon ethernet and RDMA drivers
Date: Wed, 4 Nov 2026 19:47:00 +0800
Organization: Usenet Network
Message-ID: <8f242876-3411-4d50-9e4e-548fa8e026f6@yunsilicon.com>
References: <20261012114352.2471317-1-tianx@yunsilicon.com> <20261013143417.GQ219304@unreal>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="3382395"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:hLLEyNnqwKZBb3rAylFK5rPeNFw= sha256:QT1QzyUfVunyPExrjKzgQAGnD08SdhfgMwap9zOrbog=
	sha1:oq9LzV0Bt5B3aDKJN4OaUum+7xM= sha256:YCfNSPL9To0Qk0rJbwghJnAxVkB4Jn5f3z416BT0/BM=
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 1A016112B9B; Wed,  4 Nov 2026 14:47:30 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.149
X-Spam-Status: No, score=-3.149 tagged_above=-9999 required=6.31
	tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
	MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_MED=-2.3,
	SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=yunsilicon.com
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 EXERELfknezh;
	Wed,  4 Nov 2026 14:47:24 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-356389-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=yunsilicon.com
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 81284112B2B; Wed,  4 Nov 2026 14:47:16 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id D89C96062B3; Wed,  4 Nov 2026 11:47:12 +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=1793792829;
	b=SQeLeNI9YU2NmHtFw4wCwhcgHaVgYjOIFaiUrBkTZ1bdxi4VY694nxP5tme9FoLMxPhQ
	 CpPAikw4S96eg/ktUGwoqrQgr8Pf1VjXJ+LB0HPmjocecmheUNiDpizYHTEe7hZrVD3Sm
	 HrCCeQAwx0SD5GiHcHb2aHjQ2rJrUwvU2XRsTHjckibwytJo9V+TlsZVXm+emaUYbpKNE
	 WyZ+GF2FS7ufdOQ/apSg5Km+KxAaAqKp1pIgIj9C0Dc/HScL60JBwgqWCGrhqqDsHL1E0
	 wz2M8AU3IJTYH6U/hMG4JeEo/FA8xVEkRfaCOnntjx1jec9YuiAMWrFao5a2OhIf9Rg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793792829;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Message-Id:
	 X-Lms-Return-Path:Content-Type:Date:Content-Transfer-Encoding:
	 User-Agent:X-Original-From:References:In-Reply-To:Received:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:Mime-Version:To:Cc:From:
	 Subject;
	bh=Ff5JZSPNEuNIye63t7X6NTIFmNJCPxejiNHNKQKzrAM=;
	b=nmR3fHnyBUco3FhzINMroRMNOt9rh/1UM30auyduLkd1trYKP/p+oWeENxaynt5NkKs+
	 kezCu3B+04Nsc5Ql934pV1MZNKyLLw2/e/viGYVN4Qp3IbGZieY8s7fyCqEv/osrIxRE/
	 CYDsOHBWVXZErMZ7O31UZhMVPyGy19lK1lYnrr+ES/a6HZPQMcR11wjLEqGwHfFaQHKOH
	 97un272Al8F2hauVhr0MEVVeKDDxiQAoGzCBDRoCKghK4yljl3Sm3vQ+ZhgUmKsgf4ht6
	 vbaQgUni0tp5apDytEiLSOY0F1gr6XyrnQsE0W2HgrKM8Z2rDBNHN9uVxAoMES8F7dQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=yunsilicon.com header.i=@yunsilicon.com header.a=rsa-sha256 header.s=feishu2403070942 header.b=j2sFxhnt;
	dmarc=none header.from=yunsilicon.com;
	spf=pass smtp.mailfrom=yunsilicon.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 AB8A1606A332;
	Wed,  4 Nov 2026 11:47:09 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=yunsilicon.com header.i=@yunsilicon.com header.a=rsa-sha256 header.s=feishu2403070942 header.b=j2sFxhnt
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.127.231.35
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793792828;
	b=z0t+n+aj5rTfTSA1qmOQIVmw1VIktjq7yHiBIOMmyPDRSLpMtPxC1cJavRC5jGZi/6De
	 uV9pAtd/M0h+dLo9FrnRf+6+dQDP/rmT2IvRX6KB/Xs45yBDDws86wMyXx/nuP7q50yG/
	 HY/SxHyM+Awpxe2W69gsjdTIXQxZKS9qtgR4+d2yEaQiV8H3vehdm6ejMxt7tU/X1lHAu
	 plgegkR6qqhn98F7Oys9B7ZLEw5W9CbT7OloXXbs6mT44VO1I+SJQ8SIwl904NY0Ige7S
	 e1tiv2lok7FYM4f5onKgEKV0jlVPS2SzBUL5RqX+32FmMb6RNTC1iXKqcxu6nTCBPWQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793792828;
	h=DMARC-Filter:DKIM-Signature:Message-Id:X-Lms-Return-Path:
	 Content-Type:Date:Content-Transfer-Encoding:User-Agent:
	 X-Original-From:References:In-Reply-To:Received:Mime-Version:To:Cc:
	 From:Subject;
	bh=Ff5JZSPNEuNIye63t7X6NTIFmNJCPxejiNHNKQKzrAM=;
	b=RtLh4F7MwQ3vTV9p7PZnkdKmMFjrWXB+I1p63wRisGmtWsqGucW+vPzCYsPW+qkKbwzC
	 36QaC1I3+PBqPhQdAaPqoe9p4HSwPhhUZ8Wmlu4t8aSUvY2Bn1XWyVeORjmE21C5kmfjj
	 w5QqcgqYzrFzBqPLWuRb3Cq0othjiCgNPko83hIUkbIPuno608qwZohORl1FKoTGjliQa
	 j2R/LQOxR5MOgDQcY+IPQIWn3w4bjH+06X5jNxxQmJ2S6lyWPiKReBSgVfx4bs7uR9KbO
	 r/6fLutKlJ7R/NLnoAaG8ENF9VTmbn8aeyi/OgmplqQyPgQIWPo7OYu/U+vYwJPXWnQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=none header.from=yunsilicon.com;
	spf=pass smtp.mailfrom=yunsilicon.com;
	dkim=pass header.d=yunsilicon.com header.i=@yunsilicon.com header.a=rsa-sha256 header.s=feishu2403070942 header.b=j2sFxhnt;
	arc=none smtp.remote-ip=209.127.231.35
X-Received: from va-2-35.ptr.blmpb.com (va-2-35.ptr.blmpb.com [209.127.231.35])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2CB8F606A328
	for <netdev@vger.kernel.org>; Wed,  4 Nov 2026 11:47:07 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2CB8F606A328
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=yunsilicon.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=yunsilicon.com
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 s=feishu2403070942; d=yunsilicon.com; t=1793792823; h=from:subject:
 mime-version:from:date:message-id:subject:to:cc:reply-to:content-type:
 mime-version:in-reply-to:message-id;
 bh=Ff5JZSPNEuNIye63t7X6NTIFmNJCPxejiNHNKQKzrAM=;
 b=j2sFxhntiruHhEgiDipIVdldJpUhis2cqWL/JXORDUy7UQcbLtmRcX06D0I7Jm4r6CSSmJ
 miLkgdGoqP31Dxf4YxF+yBgCyenTCgOr4rJ50teuYMLgKGu3czoO2AAJmNNdAruLmy/Lv1
 u5RTLDoVmf2BpdNhju1U6I8zHSZNmnzYOCc3vkuYuI48t6Hqqkt04zTKbcHJK4gZel4ra5
 00687ZzRe0ixDkOXnufc7I1b0pmurPLGB2ZQN9HoE63hNX8ETWSlVh7GIG/d3o846T212W
 sivwnVCZd2rZsPDBLsqLjajK4E64z508eCSVe1jevIvH6GfbutZX3fZBrW1Z3A==
X-Lms-Return-Path: <lba+26aeb1b36+52f227+vger.kernel.org+tianx@yunsilicon.com>
X-User-Agent: Mozilla Thunderbird
X-Original-From: Xin Tian <tianx@yunsilicon.com>
X-In-Reply-To: <20261013143417.GQ219304@unreal>
X-Received: from [127.0.0.1] ([180.152.18.210]) by smtp.feishu.cn with ESMTPS; Wed, 04 Nov 2026 19:47:01 +0800
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
X-Cc: "Andrew Lunn" <andrew+netdev@lunn.ch>, 
	"David S. Miller" <davem@davemloft.net>, 
	"Eric Dumazet" <edumazet@google.com>, "Jakub Kicinski" <kuba@kernel.org>, 
	"Paolo Abeni" <pabeni@redhat.com>, "Jason Gunthorpe" <jgg@ziepe.ca>, 
	<weihg@yunsilicon.com>, <linux-kernel@vger.kernel.org>, 
	<netdev@vger.kernel.org>, <linux-rdma@vger.kernel.org>