Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp702767rwb; Wed, 14 Dec 2022 01:29:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf4QepogzGv0J383PPXdM94YNOEirrhIe4F2fPSN7AFy5XUTpAciDJwgILhE8DRJ/C8niFID X-Received: by 2002:a17:906:73d7:b0:7c0:a1f9:c778 with SMTP id n23-20020a17090673d700b007c0a1f9c778mr19201407ejl.13.1671010193210; Wed, 14 Dec 2022 01:29:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671010193; cv=none; d=google.com; s=arc-20160816; b=nv99gdisiE5i63mQ5RovpRBtXJOkX14XqXINISXTcwxx84ziB/Fuf1peddhAK+XShP cjFNQHF0Qq4xnQhVL2XIPN5ZA+w2zvMSywg1SXs00j1J7/T6Y8JvNTgXJZuTncM22R5h 4+8djYoaM9X5eAS1DFS8HGvrGsLhVY7ctah9oJyyHCTVyUGEapqRRSUPomUicA7bTI83 /Mf69rQJTow9ga32Hzobruf2FeLwmWTuUmtIL4WSeBb2AftrgghZDnQYf2iNQcijMfxz kBXwiC3lr1xck01UX7z99MuTx2Z6dwbfik6FRqiyR9f0eJvayo570IaGfqHA7ZnebsXj OeTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=crCRqvWw2QDBwJQ0lQQn2yZ/Ah57bsiqza4/WNurCOI=; b=cjXlzvAFlM1adm+U4tW2T7TfILpRyAEO0z4Jf9+FzF8CuWBsXh0/85TOt7cdhKLjcg 0UR/4nWJqdPW2WRf/1orr7iQNbvz0lS+0KdT0Yw0sSPllWGn2VZetJB5dBlHCBvY5noa TvUqccqmf52Dd8VPv+riPkZIIyAQ0BYPHmCCtzMB+0J7eVKpUD8VyhOTm7jA2BjAad6y 6txnNjLiKeMLfa6BtB/96vF5v9PoW/bn/In45kMJnRKCciEzdHBQ5qWftSPfnv01QcJU TRiQ8w67QR2dbiUsvC6zSGWMFB19Q7G0D50+YMXGVrLGdK0+pcrZKKBnK1LV0XSuHNa3 Vhow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id vg2-20020a170907d30200b007af0ca23299si8091438ejc.841.2022.12.14.01.29.36; Wed, 14 Dec 2022 01:29:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237674AbiLNJWU (ORCPT + 70 others); Wed, 14 Dec 2022 04:22:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237721AbiLNJWQ (ORCPT ); Wed, 14 Dec 2022 04:22:16 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F19660C1 for ; Wed, 14 Dec 2022 01:22:15 -0800 (PST) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=bjornoya.blackshift.org) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p5Nxq-0001Ou-PI; Wed, 14 Dec 2022 10:22:10 +0100 Received: from pengutronix.de (unknown [IPv6:2a03:f580:87bc:d400:631f:86da:f36:1a4c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mkl-all@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id 3C8A013E868; Wed, 14 Dec 2022 09:22:10 +0000 (UTC) Date: Wed, 14 Dec 2022 10:22:01 +0100 From: Marc Kleine-Budde To: Markus Schneider-Pargmann Cc: Chandrasekar Ramakrishnan , Wolfgang Grandegger , linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Vincent Mailhol Subject: Re: [PATCH 02/15] can: m_can: Wakeup net queue once tx was issued Message-ID: <20221214092201.xpb3rnwp5rtvrpkr@pengutronix.de> References: <20221116205308.2996556-1-msp@baylibre.com> <20221116205308.2996556-3-msp@baylibre.com> <20221130172100.ef4xn6j6kzrymdyn@pengutronix.de> <20221214091406.g6vim5hvlkm34naf@blmsp> <20221214091820.geugui5ws3f7a5ng@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mb3cumlh6u4t4dqq" Content-Disposition: inline In-Reply-To: <20221214091820.geugui5ws3f7a5ng@pengutronix.de> X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --mb3cumlh6u4t4dqq Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 14.12.2022 10:18:20, Marc Kleine-Budde wrote: > On 14.12.2022 10:14:06, Markus Schneider-Pargmann wrote: > > Hi Marc, > >=20 > > On Wed, Nov 30, 2022 at 06:21:00PM +0100, Marc Kleine-Budde wrote: > > > On 16.11.2022 21:52:55, Markus Schneider-Pargmann wrote: > > > > Currently the driver waits to wakeup the queue until the interrupt = for > > > > the transmit event is received and acknowledged. If we want to use = the > > > > hardware FIFO, this is too late. > > > >=20 > > > > Instead release the queue as soon as the transmit was transferred i= nto > > > > the hardware FIFO. We are then ready for the next transmit to be > > > > transferred. > > >=20 > > > If you want to really speed up the TX path, remove the worker and use > > > the spi_async() API from the xmit callback, see mcp251xfd_start_xmit(= ). > > >=20 > > > Extra bonus if you implement xmit_more() and transfer more than 1 skb > > > per SPI transfer. > >=20 > > Just a quick question here, I mplemented a xmit_more() call and I am > > testing it right now, but it always returns false even under high > > pressure. The device has a txqueuelen set to 1000. Do I need to turn > > some other knob for this to work? >=20 > AFAIK you need BQL support: see 0084e298acfe ("can: mcp251xfd: add BQL su= pport"). >=20 > The etas_es58x driver implements xmit_more(), I added the Author Vincent > on Cc. Have a look at netdev_queue_set_dql_min_limit() in the etas driver. Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | --mb3cumlh6u4t4dqq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEBsvAIBsPu6mG7thcrX5LkNig010FAmOZlbUACgkQrX5LkNig 010hogf8Dtw6F/XMcPdIU3znxnOJT90kJifuvcxd4vt4SWiciELuvqiD8pdiUvjD X3mAUSF3wZkbV6dKPo3IDJFrkjx93TmDCTLfeaSIpTIg5R2z2aAgYqWQ1nkFZRAO 8wKUlI7cQ8S4Y5siIffgVrfZCLJ77e1eG1j9sHHFmRnQ5P6NdU9sGxIfk3hRjRtM Y+sCG/qVhT/4kISamLJulj11DdgBE33N6WILn/jvB8IDBilYmXK2mIeQVznBPx2h 9Q7S4soFbuia0sDDFkCmI4dyORiE0/yynonlLAOQlq2PbAKRsFWle2D7jd0qG5ps +qsmf+R9oOmY35eTSLeFHsDz4zHMuA== =32O4 -----END PGP SIGNATURE----- --mb3cumlh6u4t4dqq--