Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp719483rwb; Wed, 14 Dec 2022 01:45:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf56mYaE4KiWykFL8ycbHS5Ax4SJskx3ptPzxeOhDPY4M333h0KTiTmOFGl0A6MdiqADGb2D X-Received: by 2002:a05:6402:655:b0:46a:8e28:5541 with SMTP id u21-20020a056402065500b0046a8e285541mr18745258edx.42.1671011125267; Wed, 14 Dec 2022 01:45:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671011125; cv=none; d=google.com; s=arc-20160816; b=mTBbPJz+t59eYpyLRpFA1NGSagbEYXehzVsoQMLvQnDAK3dMS2SJQKsqZKKJ/bQdAw rqAmIS0Q63IF9Ow8sxlyvTV2AI/G3CZzE9OGcypzoAZZmsMBXJojcbBjo03JDNz9YYJa vMM48pFpesbL/F3k0TeJC09M6Ek/ZAKnoj1fT23BXrc42ulPKIPskpAdvMUob0Ipkj79 zIGuehCQPLAHhgFZCyjK1p22ZC7KKWZ5nuTkL4T/LRrLCr+na9i7r+GkpDeSLUVhxL13 gIFMmDxnQ2u1GCJWTL6VGUeWO+yeZCUussdjK8OlE4//F3MXM2wjDRplROSbA5n5s8Qi Mp3w== 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=ko5o4coNMMCZI7oArhLwoSb6P6NoiARIYOa6JvgTXWk=; b=Cp6O7QhqKMY2CHo9uz51q80Unkf5Y4jOfLFaal08QF0oG5lc+tLLRVpescsNYUy9Xi VUdROdYznepmv/mQ2sy82gTIS+Tv/sndiXmgsEn/uCrn755HwUDqsadiZADHVKAlZJcd G0TRVgO2sg41j7bH4pJp3efhrkaVRiVt4Cdynfj4cLZRqQV5iPdwDeOP5OVXNfdzp2gq VY497yhZE0k/aUPTorogeYNm9L41AuaPZMuqyafyAHOHUrSvJkiTARx30IxZacF5eB+v nkZ/d8fJm6rjhqKInbyqjPvPYd0oTkbWc64YLV/kzCEphUyr5k9xM37VmYrofq6frWsU 5CIw== 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 f6-20020a056402354600b004634dd8b6edsi14051181edd.296.2022.12.14.01.45.08; Wed, 14 Dec 2022 01:45:25 -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 S237883AbiLNJTG (ORCPT + 70 others); Wed, 14 Dec 2022 04:19:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237867AbiLNJSh (ORCPT ); Wed, 14 Dec 2022 04:18:37 -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 78A8F2036B for ; Wed, 14 Dec 2022 01:18:36 -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-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 --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--