From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C8B9C4332F for ; Wed, 14 Dec 2022 09:19:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237767AbiLNJTF (ORCPT ); Wed, 14 Dec 2022 04:19:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237848AbiLNJSg (ORCPT ); Wed, 14 Dec 2022 04:18:36 -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 00850DF74 for ; Wed, 14 Dec 2022 01:18:34 -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 1p5NuJ-0000kr-4V; Wed, 14 Dec 2022 10:18:31 +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 7F4E513E862; Wed, 14 Dec 2022 09:18:29 +0000 (UTC) Date: Wed, 14 Dec 2022 10:18:20 +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: <20221214091820.geugui5ws3f7a5ng@pengutronix.de> References: <20221116205308.2996556-1-msp@baylibre.com> <20221116205308.2996556-3-msp@baylibre.com> <20221130172100.ef4xn6j6kzrymdyn@pengutronix.de> <20221214091406.g6vim5hvlkm34naf@blmsp> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cmhdhkp6pjy3b5ee" Content-Disposition: inline In-Reply-To: <20221214091406.g6vim5hvlkm34naf@blmsp> 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-can@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-can@vger.kernel.org --cmhdhkp6pjy3b5ee Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 into > > > 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? AFAIK you need BQL support: see 0084e298acfe ("can: mcp251xfd: add BQL supp= ort"). The etas_es58x driver implements xmit_more(), I added the Author Vincent on Cc. 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 | --cmhdhkp6pjy3b5ee Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEBsvAIBsPu6mG7thcrX5LkNig010FAmOZlNgACgkQrX5LkNig 013EJwf/fUw4P4ApLkDodlL0ugrtogINg9KvZjtNjbtlVqam59pHJ3CAvrTLxRNg KFBKLhZhjjEC8APOurmGbaIYSWolFIuGHKYozu2zytKqV2kiPiLtYGMxSpK7uNUk rYJoy6obID+1aNLXKzu+5aLsByBBThFpz2+qf5UW4lIWBFLZeR2QyE8XPFLe4Mu1 iZ4s88rIfMb3rcqqMvVXVLQcC/U+RtWV3dNkVhUQYu99Jp37Vr99yEQP+LTHpP49 nRqjSD8iAqxQWMnP4EP0z1Yh9FtHZ6h8qQ2XmKa5O9iP1+hYedIrZgAJgPnUMHpr a/3M0YvLKgETGgynY4wSP8R0g8eocA== =VMKy -----END PGP SIGNATURE----- --cmhdhkp6pjy3b5ee--