Article View: linux.kernel.netdev
Article #2789Re: [PATCH 03/15] yunsilicon: add the command queue
From: Leon Romanovsky
Date: Tue, 13 Oct 2026 14:31
Date: Tue, 13 Oct 2026 14:31
49 lines
7765 bytes
7765 bytes
On Tue, Oct 13, 2026 at 11:11:17AM +0800, Junxian Huang wrote: > > > On 2026/10/12 19:43, Xin Tian wrote: > > Add the command queue that is shared by the ethernet and RDMA functions: > > the request/response rings, the command work handling and the device > > initialisation sequence that queries the HCA capabilities, the GUID and > > the message opcode table. > > > > Signed-off-by: Xin Tian <tianx@yunsilicon.com> > > --- > > .../net/ethernet/yunsilicon/xsc/pci/Makefile | 2 +- > > .../net/ethernet/yunsilicon/xsc/pci/cmdq.c | 1247 +++++++++++++++++ > > drivers/net/ethernet/yunsilicon/xsc/pci/hw.c | 310 ++++ > > drivers/net/ethernet/yunsilicon/xsc/pci/hw.h | 18 + > > .../net/ethernet/yunsilicon/xsc/pci/main.c | 55 + > > 5 files changed, 1631 insertions(+), 1 deletion(-) > > create mode 100644 drivers/net/ethernet/yunsilicon/xsc/pci/cmdq.c > > create mode 100644 drivers/net/ethernet/yunsilicon/xsc/pci/hw.c > > create mode 100644 drivers/net/ethernet/yunsilicon/xsc/pci/hw.h > > > > diff --git a/drivers/net/ethernet/yunsilicon/xsc/pci/Makefile b/drivers/net/ethernet/yunsilicon/xsc/pci/Makefile > > index 81b65232e..656cdffa1 100644 > > --- a/drivers/net/ethernet/yunsilicon/xsc/pci/Makefile > > +++ b/drivers/net/ethernet/yunsilicon/xsc/pci/Makefile > > @@ -6,4 +6,4 @@ ccflags-y += -I$(srctree)/drivers/net/ethernet/yunsilicon/xsc > > > > obj-$(CONFIG_YUNSILICON_XSC_PCI) += xsc_pci.o > > > > -xsc_pci-y := main.o hal/andes_impl.o > > +xsc_pci-y := main.o cmdq.o hw.o hal/andes_impl.o > > diff --git a/drivers/net/ethernet/yunsilicon/xsc/pci/cmdq.c b/drivers/net/ethernet/yunsilicon/xsc/pci/cmdq.c > > new file mode 100644 > > index 000000000..48832b26d > > --- /dev/null > > +++ b/drivers/net/ethernet/yunsilicon/xsc/pci/cmdq.c > > @@ -0,0 +1,1247 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +/* > > + * Copyright (c) 2021-2026, Shanghai Yunsilicon Technology Co., Ltd. > > + * All rights reserved. > > + * Copyright (c) 2013-2016, Mellanox Technologies. All rights reserved. > > Why Mellanox? This is how new RDMA drivers are born :) Thanks
Technical Details
Message-ID:
<20261013143156.GP219304@unreal>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-345686-linux-kernel-netdev=dewy.ruReferences:
<20261012114352.2471317-1-tianx@yunsilicon.com> <20261012114356.2471317-4-tianx@yunsilicon.com> <47c82da8-99cd-ec81-f264-d270fef057ee@hisilicon.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-345686-linux-kernel-netdev=dewy.ru From: leon@kernel.org (Leon Romanovsky) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH 03/15] yunsilicon: add the command queue Date: Tue, 13 Oct 2026 17:31:56 +0300 Organization: Usenet Network Message-ID: <20261013143156.GP219304@unreal> References: <20261012114352.2471317-1-tianx@yunsilicon.com> <20261012114356.2471317-4-tianx@yunsilicon.com> <47c82da8-99cd-ec81-f264-d270fef057ee@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="2083344"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:djiQv6hi3Ef93n5Twt0erEqS0IU= sha256:AiyFDhqP10fZ0tIBugt4ErrkS17CqLlcbTtGt0hZevk= sha1:WLmBNQaggItdBCtPsD5gxdIgdnA= sha256:Pus9woowLawhmjTTEyAXa69uo4nOV3f3YocjXOdJv80= Content-Disposition: inline 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 6E72810FE5B; Tue, 13 Oct 2026 18:06:53 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -1.34 X-Spam-Status: No, score=-1.34 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.24, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org 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 TOKxE6ILw5mK; Tue, 13 Oct 2026 18:06:49 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-345686-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 2359B10FE0B; Tue, 13 Oct 2026 18:06:40 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by tor.lore.kernel.org (Postfix) with ESMTP id 5517CA4036; Tue, 13 Oct 2026 14:39:52 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A8FEF5158BF; Tue, 13 Oct 2026 14:32:01 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Z6Y1TfSa" X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 81D4C5158A6; Tue, 13 Oct 2026 14:32:00 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791901921; cv=none; b=QxM6gIu/KNlo3mkHqjpoQ4YpGkouFcwJfp9kV/JiZUjZhJFECOuyLtbrjhRZK7TPk/kdrBpbNatQitnVu8GZmvUjzEqFGxZcjOeUBjLy3yXVqt13NOB7cTSAVCH0rBUByUIG2NJNS52IEhfeHs1KsxiUg0iOz7YZwgCb1ap27xI= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791901921; c=relaxed/simple; bh=Z+w80xNZmLweUE1mCKOW9ceXGEl+T8ZxQgR0CNAhYno=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OHriPKP/WGqUU3mQXGn+dHxyicJP3CPAPi9uu/vkKwpLn1SCvgiOBMP7U1thAeTKM9V1gzfNXnod1Sbm/qfI45JFtVr7fJpGdlPN3w2F2xY/WsPIsQxf2KOummLhyD+GM6pd/qnKOqpm25VtWKf5VcJpnPpwS71sR8AXJJdCbSQ= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Z6Y1TfSa; arc=none smtp.client-ip=100.103.45.18 X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81E421F000FF; Tue, 13 Oct 2026 14:31:59 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1791901920; bh=Q+c70EsBHf4vh7mah6Nr6xoajlepf/t2t1Z8zj11JV0=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=Z6Y1TfSap66smzPeQxND2tW6CRg5pLO93rZ/lYtb6HVstiwN+dSOJsQ4ynMaNd7w7 crP5zgzaacyCaEoyClDNPvmvO0aS3Ylz8PU6Z7fd0ElpYyf782WH/xLUBlccNjz6Vi S7+yFYqxlQd9mE5MrHlLurzjf82Dt5VSQl3je5hnKRtjvQht56DKf2li9FgWS23+Jl wZ28Eb+witz6c5UnPwC4fUxanPn3Q7JmWSkcibOeqLveZwa3T5lLzt5pa2MNsKIoRj Dt699gPJa8aW5qBfmlgQS2LogFtlHnV+cZF9/pkLWIroUvwE6lQEvkQZ/xZyk+L9be mB3SyFfecqyXw== X-Cc: Xin Tian <tianx@yunsilicon.com>, 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 X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-In-Reply-To: <47c82da8-99cd-ec81-f264-d270fef057ee@hisilicon.com>