Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp216362rwb; Thu, 1 Dec 2022 01:03:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf5locuzZICg+qNwaM+tOXuAjOtQslWvgxHeqcZJIpB3VmkTI19OAvv2xfBRz8SlKJcJBLnV X-Received: by 2002:a17:906:fc5:b0:7c0:8b4c:e30f with SMTP id c5-20020a1709060fc500b007c08b4ce30fmr9472333ejk.502.1669885404332; Thu, 01 Dec 2022 01:03:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669885404; cv=none; d=google.com; s=arc-20160816; b=AQE6XN6w9Kx7s+Sh0eOwy18bAwvRhc1yJkBE6L94j87vDH5NwTHotIF1Mqqv2TAuWG tBjB08yPOUcGZuYUXwleQvtnztxm+WnH7TH522z5qD1UWuYmHAbZUYJ+TrwN2cKwl+NA IFnbB7oq+1uxCwtaaHrGBOO5Qndo6mefVihb/rx/UzI5L55LSaD8Iiir0wOBMTZmjAtB 60rF6d+iEuI0V7Dv0yUnT8je2copR6xARBFz5aJx7UdIr46l/LcABh4rO5RTTOkB7NwJ ovWrV3/VdAD3c7khzQ30jJRf5U4VPpyDnvs0dGGF6Ut62u8ETjik4Qefk2qm1T80BjTT 1FOg== 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:dkim-signature; bh=HQr1oGy5DEX3lJPtiK6R7BWnZFhYcZk8exhLp6Q2aeg=; b=M7a1GjcFtJuBU6jGKNdBiqWOjQy+CfPH2s7piogbcUWdiy+0DEbWbbNE3kJiqby1Sk 3lbeX55r6Hl+vJ+8wk5EBffoaKzxlMhLNAqdT4QD7DwArc34i7mGo9jbnzouaqc/j8tD Tq5OEikZYY4aBNcljUrOoAuyTThqyFAy4iaBiCvo6N+BsPyKiGL4qNjiSgxNgw6aqZfs R7l+U0HM/6VW3z/ggj0XAG3y8/AakEvO0uuMqw+XFqyCcWklC0zxVia/z7VSXDPBXc1k 0O3k6AYZlMW/wIEc5umv/J64TBqgl73BR0Ss4rSQ6nKOnhYKl6oLIv0dtaJrnBPH/fOf S09g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=5mzqMo7u; 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 y7-20020aa7ccc7000000b0046b999e8855si3212141edt.15.2022.12.01.01.03.04; Thu, 01 Dec 2022 01:03:24 -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; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=5mzqMo7u; 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 S229799AbiLAInj (ORCPT + 82 others); Thu, 1 Dec 2022 03:43:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbiLAInQ (ORCPT ); Thu, 1 Dec 2022 03:43:16 -0500 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE6FC1E3F7 for ; Thu, 1 Dec 2022 00:43:05 -0800 (PST) Received: by mail-wr1-x430.google.com with SMTP id o5so1539458wrm.1 for ; Thu, 01 Dec 2022 00:43:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=HQr1oGy5DEX3lJPtiK6R7BWnZFhYcZk8exhLp6Q2aeg=; b=5mzqMo7ukyygGX8OISLeYMNYuA34leGRYjCMcXqfPPGOlGdgdZQKtAqTF45lMN7ihv CHnZ472nBq5kBNnVYB8rU+zZyJmr+Bs/U/l3MS0fbr07++HbU6AARnkZb/E/1vTb6YBY Wk/obn2X2pIwR+eF49qrqsJAdePjAkbS/Nq9yk22poLvEVKHv2QRjbw93U0/hJ5Zu3q/ tYnRIZ2FZWtzY1ODNJtR+18vXVWiXy4Vq3zcld7S1S3zVLVnfzVyfyiknt4ZOZf5clbB LksCgTmcSvllUifUGeK0ESEW5fLg+47SodBHBekeiQ1R9sBthnIoU5Vd/oErIXpojUuY Igyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=HQr1oGy5DEX3lJPtiK6R7BWnZFhYcZk8exhLp6Q2aeg=; b=tIj0FK8q1P1T6dmwl8ATAu47qGZuLYT1s26CvE9W+Qu7mr5fQFbJz8hnN3iNYYFaKA V00BP3XtEbkRm23GGbEF1S53lTjiSHjIsk+VPnwSsrxt9Ft5GlBrCutOwzlljs7GusXh F2mnArhbPH535VVaC26CdA3WvzDb75UcOY9gx2SuYMsazvPftkthA1/jCmRNOxTYfTtD tAW6QIssoBV6GiSA/Dyg/uFQtuHcc9fPlS+ZnGkHoDPGyFRk83Jlu5vgxjuFYVtx7+7Z 4Url03u0VVF5s68PhOq3vAWtMpnbKnspxnSFSfyWWfQ3jdenO4ePRqY7S1891OV4fZuc +caw== X-Gm-Message-State: ANoB5plMHXSSlhsXbzDGqhmzFd/l+8DArm6mPFOfYoJJ+ESpPI5a9Llr XtPpcZVKd07O2K0gPXrIbYHeVw== X-Received: by 2002:a05:6000:510:b0:22e:3ca6:d4ab with SMTP id a16-20020a056000051000b0022e3ca6d4abmr41983182wrf.658.1669884184194; Thu, 01 Dec 2022 00:43:04 -0800 (PST) Received: from blmsp ([185.238.219.115]) by smtp.gmail.com with ESMTPSA id h16-20020a05600c2cb000b003c6bbe910fdsm9892758wmc.9.2022.12.01.00.43.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 00:43:03 -0800 (PST) Date: Thu, 1 Dec 2022 09:43:02 +0100 From: Markus Schneider-Pargmann To: Marc Kleine-Budde Cc: Chandrasekar Ramakrishnan , Wolfgang Grandegger , linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 02/15] can: m_can: Wakeup net queue once tx was issued Message-ID: <20221201084302.oodh22xgvwsjmoc3@blmsp> References: <20221116205308.2996556-1-msp@baylibre.com> <20221116205308.2996556-3-msp@baylibre.com> <20221130172100.ef4xn6j6kzrymdyn@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221130172100.ef4xn6j6kzrymdyn@pengutronix.de> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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 Hi Marc, 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. > > > > 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. > > 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(). Good idea. I will check how regmap's async_write works and if it is suitable to do the job. I don't want to drop the regmap usage for this right now. > > Extra bonus if you implement xmit_more() and transfer more than 1 skb > per SPI transfer. That's on my todo list, but I am not sure I will get to it soonish. Thank you Marc!. Best, Markus