Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp701791rwb; Wed, 14 Dec 2022 01:29:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf7NLCYkTEY7doAr5OT5QSqpeZH3P32kdFWmd1ze8eUfPyrJBPCUH8x50OPF04RabBBtO0TK X-Received: by 2002:a50:8d1c:0:b0:46c:97c2:8d75 with SMTP id s28-20020a508d1c000000b0046c97c28d75mr21512082eds.21.1671010148577; Wed, 14 Dec 2022 01:29:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671010148; cv=none; d=google.com; s=arc-20160816; b=C2Wpxz14/wDs7sZD7PgaFMLhRqcMqzR6sfp4/CBZj2p1CGyNIwpKJn/xtcbcVu+mgl YiQtupJf3WzVCu1FB9soFoQ6NihKSofRTzWcYmRqCyOXkAUxkZKqcza2ZbNLAIsLDR4j c+GnUxAU6kHD6RGKchsjNmiLjibPv2YmR71lCHsKekuOWJAuivK9quGlbohfpM5g05Yv FplQA+Z2khz9UG7I2hogKXhRHfguN2/xOp0N1xnqUYDEumSfda3Kmt26ZGY4K6b2we1/ rAuUbfwv5LwnoBZKhiEWbPjlRyqpZHMaccU1EKG7jEBKqaP+FygoGkBKzWmHc+p9ynEL Rt8g== 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=uWkMxa5MLgkbzdYiOGyURygCOSuCzD/0jnB9r1qxWTs=; b=nGT4hqWI3ZUJp5Zf/1/YUcMu/N/4Qt8okaM41f6QyXd3taj+7KcTRRdeOeALWflBUQ crIn9msLv7KGzp9+6RF0kIC//MilCy9TiUsnyYRQJgyBV7o6QDmy0fjh5ChR5oB5JIsH uWEOJl3hy7wENpxUwdRnej5gD10Qs+X6uQCwa7amZqmutQP8dXSwfRVaT4TP0VJ9Cboy 7ktFOmtgkWOhYdO6yqAhh2SLqd3B+XGw1ZP1UkXn+2TAcDVheLX4PxG1cONBQgX62Yd3 umkA6X3HFLjoT+N4SAQbNwB9+wP4VxRS3JVauo3xOQnVEyAtp9JTy4Ajg5+uzMFt47bf pj1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=TcGAPjxR; 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 i14-20020a50fd0e000000b0046289aad428si10719908eds.496.2022.12.14.01.28.52; Wed, 14 Dec 2022 01:29:08 -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=TcGAPjxR; 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 S237645AbiLNJOW (ORCPT + 70 others); Wed, 14 Dec 2022 04:14:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237868AbiLNJOM (ORCPT ); Wed, 14 Dec 2022 04:14:12 -0500 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F21E71E716 for ; Wed, 14 Dec 2022 01:14:09 -0800 (PST) Received: by mail-ej1-x632.google.com with SMTP id ud5so42974332ejc.4 for ; Wed, 14 Dec 2022 01:14:09 -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=uWkMxa5MLgkbzdYiOGyURygCOSuCzD/0jnB9r1qxWTs=; b=TcGAPjxR9F6gw8xpoGK2DjJ+OF1X1Kwmirxn+f1vVC6ZrCogbLdvYMSA45jSe5obuT auY5It6QRqAisUJ0D0lKegv8tJKrxhiEU3UMMnsXw9navQBet5mrgf3zrBj4O6s/szRB F0ONb8u0wLbZa7QxTpsQ6bNk8X14u0Xf8B7hS/scpjMsPG13JkyGmjXvElukHQix7+zn wEo5+GIceH543hYpmLLOa7lmNoqvhEI6dNY/xg8dlxDX5tRduSUZOjSAPR3YUPu0dzP9 1SW2Gh1WF3jwREjOXZ2b3/OpBcsl2O+7uJVbhyAIwpX+Ap+37eEAXlu9d0tR/R3siZGl hZtA== 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=uWkMxa5MLgkbzdYiOGyURygCOSuCzD/0jnB9r1qxWTs=; b=RN4i8f9GHHvzi5uMzcs+Zya8iwrSyYOy8lJCApJetGnhBEykMs3KlxGzH68MhzcN5y Z7MFF9yfD8t7joJ45JEgVZ4l80JDHHLD6wn8iuXjtYJRP2Adn5dR27ZvotLYPYw4SCbL W9EJ6Emh+kfy9gJ8Q+bSIBHbpQ/3JmOILZwnmV8ktGLh8E5Hi8ilu1wq7h0p0JPsOjKv xPLNKlwxJrsaH2OxqrE4siIL16BTuskhRJT9UX2eTYJERFC7FWDPX/bi+sLVXykNWx6y BuI5Y4cIcqDTOTsH9P0fcKawmWzQKTmD7GgtYOeP4ehsoTbS4J9JT222/Wt0ff6U5Hn1 Rl/g== X-Gm-Message-State: ANoB5pkl/HQAWrCtXV1d4DAUYMK8W78PFBmBsF794d4R+e4OHcYe2SJw brZCfo106hvyhdyuWeJGSP9MXA== X-Received: by 2002:a17:906:1f53:b0:7bc:bf97:169c with SMTP id d19-20020a1709061f5300b007bcbf97169cmr19058269ejk.77.1671009248480; Wed, 14 Dec 2022 01:14:08 -0800 (PST) Received: from blmsp ([185.238.219.9]) by smtp.gmail.com with ESMTPSA id k24-20020a17090632d800b007ad94fd48dfsm5529083ejk.139.2022.12.14.01.14.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Dec 2022 01:14:08 -0800 (PST) Date: Wed, 14 Dec 2022 10:14:06 +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: <20221214091406.g6vim5hvlkm34naf@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=ham 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(). > > Extra bonus if you implement xmit_more() and transfer more than 1 skb > per SPI transfer. 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? Thanks, Markus