Article View: linux.kernel.netdev
Article #15115Re: [PATCH v34 net-next 1/8] net/nebula-matrix: add channel layer
From: Breno Leitao
Date: Thu, 12 Nov 2026 12:01
Date: Thu, 12 Nov 2026 12:01
35 lines
9604 bytes
9604 bytes
> @@ -75,27 +215,32 @@ static int nbl_probe(struct pci_dev *pdev,
> struct nbl_adapter *adapter;
> int err;
>
> + nbl_get_func_param(pdev, id->driver_data, ¶m);
> err = pcim_enable_device(pdev);
> if (err) {
> dev_err(&pdev->dev, "Failed to enable PCI dev, err=%d\n", err);
> return err;
> }
>
> - nbl_get_func_param(pdev, id->driver_data, ¶m);
> /* never return fail when DMA_BIT_MASK(64) */
> dma_set_mask_and_coherent(dev, DMA_BIT_MASK(64));
>
> pci_set_master(pdev);
>
> + err = nbl_probe_chip_deps(pdev, param.caps.has_ctrl);
> + if (err)
> + goto out_clear_master;
> +
> adapter = nbl_core_init(pdev, ¶m);
> if (IS_ERR(adapter)) {
> dev_err(dev, "Nbl adapter init fail: %pe\n", adapter);
> err = PTR_ERR(adapter);
> - goto adapter_init_err;
> + goto out_clear_master;
> }
nbl_get_func_param() now runs before pcim_enable_device(), but
nbl_probe_chip_deps() still runs after pcim_enable_device() and
pci_set_master().
Shouldn't nbl_probe_chip_deps() be on called earlier?
Technical Details
Message-ID:
<avWqOzt1ImFuvyXL@gmail.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361782-linux-kernel-netdev=dewy.ruReferences:
<20261112094925.6098-1-illusion.wang@nebula-matrix.com> <20261112094925.6098-2-illusion.wang@nebula-matrix.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361782-linux-kernel-netdev=dewy.ru From: leitao@debian.org (Breno Leitao) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH v34 net-next 1/8] net/nebula-matrix: add channel layer Date: Thu, 12 Nov 2026 04:01:16 -0800 Organization: Usenet Network Message-ID: <avWqOzt1ImFuvyXL@gmail.com> References: <20261112094925.6098-1-illusion.wang@nebula-matrix.com> <20261112094925.6098-2-illusion.wang@nebula-matrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="1081706"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:F7/4BTiPFH82xLZ5g7eUKd4F2Uc= sha256:KTCKsVYDMOjcF5+1ofpOBZBo7xbaJ1G7hoY9PKUnrzM= sha1:Qrtsb4jvZuSiN+Xs+nb3V0/lYLU= sha256:yAHi+P7UwNvdJm9on9WOI8gmz1u+mxONS/wHSLvrC28= 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 74DB8114210; Thu, 12 Nov 2026 15:16:31 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.052 X-Spam-Status: No, score=-3.052 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, 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=debian.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 ZWct878H3zrW; Thu, 12 Nov 2026 15:16:28 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-361782-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=debian.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id E4C6A1141C0; Thu, 12 Nov 2026 15:16:19 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id ACC621C7C22; Thu, 12 Nov 2026 12:02:10 +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=1794484901; b=dOvwU6kpUhC6Z0UB3BwGQ8Xy4kGcrnZ+Zh+q5SOu72Pzght/ChH6tBGisETIS1Stk1fT BiwEWX9Sism4vqiNVeq37v5IWDDmBvNaCNczP+WVjkSuJ77vJS8SwXkOsVGtMeVUUdbTu E4V3bUdSTDeqOlvYZ8F+Sv7wRooz/sUQsIbrq1FPDKhgYig+AFKS/ODGKIQTbyES2khaA Wwv0E5rRQHB5xfYuBumPXrgeu+bB4NMlnaPKj8w/Ri+FxKj6/411HMIUWuuaw1LVT1als 0cUFsTDL1DRoHjhl2CZIrATge7aVEmR7Joy5e2qXqC5h3kHGlhGtm4Po1fMEtwVVh7A== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794484901; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date: From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To: X-Debian-User; bh=SrQYdejZ3O32TNHlFeTRApwB45XDzPQrsRBZYxShr1E=; b=m2h1raEYEqgjvM+dlCdJPyp91i0TZIpwDYlCXTWFnwft0nMEPArdDR2XfYFvqisXTIFu OwBlXq8ws7jrwP9w0QdpENTi+giOfD9/SiCduALMSh3SBBD0gRfjyJzpEeiOuf1dKEyjg vBfPZRsVZvctxxkqZZqTk45NacFrQNVNN03LkrmAv3oICrgZDKI5dKnhmuOR09ZR84odT aGuEp106TO5DNatOQQ8EVcKo7+mQZwbovwpuyy4hTcUUn8QA8tj+nHEKXavnY5Aj6m6qF R/MLmvO/pxNkd97VzNUp2Ub2KiKIFC3RkopD2QUThvEeLjC45Vljk21J7vCj3n4YleA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=debian.org header.i=@debian.org header.a=rsa-sha256 header.s=smtpauto.stravinsky header.b=MfVfH7ls; dmarc=pass header.from=debian.org; spf=pass smtp.mailfrom=debian.org; 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 C9796606A8A8; Thu, 12 Nov 2026 12:01:41 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=debian.org header.i=@debian.org header.a=rsa-sha256 header.s=smtpauto.stravinsky header.b=MfVfH7ls X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=82.195.75.108 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794484896; b=RXbAmc+Xwz2EJhOvFJQ3uDbVg78PR88ymTQs4kQF5vpcn5og2T8lJyyZXroyXEAPi2bZ ROCPfCT0f0z+/m7JWxFhIAOIt2axmKcu3btV1pA4iu5XPhBiYQ1MFqxmzpOEL7BlobZ8o Tjri4JpK5UwrMdFKHoQid7Y6ZpMIC1hG2p9HWMM5O5TyhtuI1VRtyYWIW3ZwFLisKS2+C 15QKdp8MJeEOCSr2hkro9sM+9urtUAEzUKPxddeYOVpwwz1JloLBwBVGFqSaocSlWQzOU Wb/uX2Jdx+emaw2POoPNCBqZj4J3h2kISS5aHU0+2s2Mw6t7uWx+t1+GQzCBF3ofNbQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794484896; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To:X-Debian-User; bh=SrQYdejZ3O32TNHlFeTRApwB45XDzPQrsRBZYxShr1E=; b=DCLv0rupfAs/Qo7NOzB/E75upfV526aszDEHR9ZaLF6q68xBDJmXR4FDsIBcRb9wdnf0 +Tgq5Cxo9e+6jkqgEYsbmq5oVfGGQZtvcBdfdAbd0jzI6i7keGrItUOwto/Rr99gzwOFF QTB2Jau1HtNZPCZHjviDL+NzedcLvdYWj/dLjt7X+/DjS4xCgc0RkAGnOWrL32MKBRZvg +MHQa4Xq6GakFExNZylzVZuossGuPpe5OgSkKbE6AKT9JCgBFn6SY4lyMPVCSTCW+wGtv oh4j7TQvt+Am0A50yxbPoiodkGiktu6mh0EiXihv8ALZwEpN593S4RnyrDNbr3kOE0Q== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=debian.org; spf=pass smtp.mailfrom=debian.org; dkim=pass header.d=debian.org header.i=@debian.org header.a=rsa-sha256 header.s=smtpauto.stravinsky header.b=MfVfH7ls; arc=none smtp.remote-ip=82.195.75.108 X-Received: from stravinsky.debian.org (stravinsky.debian.org [82.195.75.108]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 56370606A327; Thu, 12 Nov 2026 12:01:35 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 56370606A327 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=debian.org X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=debian.org X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; s=smtpauto.stravinsky; h=X-Debian-User:In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=SrQYdejZ3O32TNHlFeTRApwB45XDzPQrsRBZYxShr1E=; b=MfVfH7lsakVXAX+0coNBN4yhPH EsrW2GZiCjPev0CM14rkH0CQmMa6H7QIVqrI/LukmYS/ErOz9tmjYbcMOfZnfpqD/CMydA+lR8TB0 qwqkmzIS2sL3KSglt6HTdWN4tx29p9Yj9DCMtQs8sC6Zw8ZeB4J6W6P+BhoQYeZ3l+U1bhEhLWHWD EIPa08ooR4oy47gWnsl7BE0GjqGrFiuwn8Q3GAlnTXrN4KLilDbydWho33rDYX/PjbRynVpugI+ro 009vKGyI38ZRwArx0zO1pGgFL4YqzLiZoqM6GsGFer3zDfNDQZSE64OXzHak5IoZMcqXAPIyWvlqD D+hIiHwg==; X-Received: from authenticated-user by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from <leitao@debian.org>) id 1xRTUX-00DxF6-1L; Thu, 12 Nov 2026 12:01:21 +0000 X-Cc: dimon.zhao@nebula-matrix.com, alvin.wang@nebula-matrix.com, sam.chen@nebula-matrix.com, netdev@vger.kernel.org, kuba@kernel.org, andrew+netdev@lunn.ch, pabeni@redhat.com, edumazet@google.com, horms@kernel.org, open list <linux-kernel@vger.kernel.org> 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-In-Reply-To: <20261112094925.6098-2-illusion.wang@nebula-matrix.com> X-Debian-User: leitao