Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10944199rwp; Fri, 21 Jul 2023 07:11:16 -0700 (PDT) X-Google-Smtp-Source: APBJJlFKI6DT+4j75BBGGiogYMXxCfmF2nHPiujUSMHa2HnURuhFaFHHy8th8eKwKNH3kjBHFArf X-Received: by 2002:a05:6358:89d:b0:133:c62:59f4 with SMTP id m29-20020a056358089d00b001330c6259f4mr77556rwj.24.1689948676038; Fri, 21 Jul 2023 07:11:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689948675; cv=none; d=google.com; s=arc-20160816; b=gAzfTJkpeHhLc2VLsUokcAtb2EvArhyAO8cXSTcNJSZjhfQ8v4vOXLog/bMoNho/Yn 7xaT5rQLRNUwjubAp+0c306t+qqvGQbkdL2UtGry04rhEeYS10iQKUiOOJqZ6QCUTHJT vI4a4Bq5FdaNTLsx8N7k0r7kBtVP+ycxOXzYGmavrJL6jydu5y9SgvOTNszsCqBpo1PR sxyqYexhvByZS53obv/KqaUXQTrzvNIYqouAwPykVc0mcmTxGDXI9owUTNJOUiSfzkL/ QGWxkxx9ibYtNOZYXBHJ96OksLXPuK0Fsu/6KeDwxx4qyb4hJ7VV7Yi75WWHOGT2s9Dl xIiw== 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=cyJTSHbeo76bzi6vElx+C7cII9lsbnhay7widihGytw=; fh=JioV8LgvBiXc64OjSfjZHF3lL80ZXri0TC6DugHvCAI=; b=SCrcV+4zVtfM2HE+TXsAc03Wbvao1SSEBZJ4u/wgff6OY5yjp+uTYvq3GJeHrdlAzW xECj/PsyJjh3wATKqoddkObbxA4e9L1OWyNohsrNnr7Q/ABcbKQ2B6dyf5ZWDDTQnyBh KCmHJaMH8t5ea17+p1g2OPpSBtrZLsTreET2xoqIvzQRdd9KiVtJsdBbPHgtNRatFgZl 2+yme7qQOY9yasC7cvG366HzRjqwYCL6aNZVPqhBReKR5gOjN0z4oAu6qb1yEH7uoA/9 sBY8fdH/A6xKXP52j0hw6yUKFWyiVEQMpEDFUgwP4r8QBC3htmWx6BD9m9gI3l1smuoW GNNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=zk1Ag3uP; 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 be3-20020a656e43000000b0053ee9b21820si2970329pgb.72.2023.07.21.07.11.02; Fri, 21 Jul 2023 07:11:15 -0700 (PDT) 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.20221208.gappssmtp.com header.s=20221208 header.b=zk1Ag3uP; 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 S230001AbjGUNhH (ORCPT + 99 others); Fri, 21 Jul 2023 09:37:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbjGUNhG (ORCPT ); Fri, 21 Jul 2023 09:37:06 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E28710FE for ; Fri, 21 Jul 2023 06:37:04 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-3142a9ffa89so1678127f8f.0 for ; Fri, 21 Jul 2023 06:37:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1689946622; x=1690551422; 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=cyJTSHbeo76bzi6vElx+C7cII9lsbnhay7widihGytw=; b=zk1Ag3uPbpvIF+OjujPgm2Lry426dUcuFeJkaainc672cQ0u2V88zlLAKFj+30H1nv nCvnihrj0cNimAIROEjqxQRYg59jmE+e9f67u5bzXhAKqp9Wp2wsmqtEFbHhMW49vMiB lm73FUZFhW0c8HNVJQBZ836nxN+Ho1Ufh8x99SHaU5HKr0kxAIqKMLwv2K7Jr+0R2VDG BWrMOb5aR9dErBy0t20aCrE16oY8fugS/3x8L+2zzSvJduYbu6wRtMm38WWk8FjynLlw hrr2HdsJ33A/M8QCy7jaiETViUviVie+KrsFfb7T9HsyRctOQ+Jm0IarejMT5zNVBqjE Ue3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689946622; x=1690551422; 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=cyJTSHbeo76bzi6vElx+C7cII9lsbnhay7widihGytw=; b=l4+8Qd/FzRZzvL3L9uaQLo7E2ho0THbm2CQExdhL6ZpTllZYEdTX3aL4QXl1AvrDvt fIaZkudQ9RXClvtgm3T1NFx3bMmNH4Gn5QT+WkxIR3IgEuvUMULVtY3zq6M47WFDZkeu xXOq+mIjJQ8qRorw/3e/yduRtufcavjIvO+Hlk/q0eUe6PV8EvhDllC4iZ/Hw6necfNU zwhsHOwa+9Ti71eyUnrOE2jmbENtK0twHyYPgnfWhohaZaAprCqvZUbWCIi8br3KRY2C DF8KVKbaF1Kv05nujnyp/69MnRRYgrdET6TZuzrZD2izkqEo0Yub7IbjXtNVTuiWV9Lr bHHQ== X-Gm-Message-State: ABy/qLZWxUXhwj/+QmPeTCds4OybamWR9YtphOUQ7Z3OE0Un9OYs9cgL cbMC12g5Bsglgpq74b5M8dRvRw== X-Received: by 2002:adf:fed2:0:b0:315:8f4f:81b8 with SMTP id q18-20020adffed2000000b003158f4f81b8mr1501101wrs.50.1689946622331; Fri, 21 Jul 2023 06:37:02 -0700 (PDT) Received: from blmsp ([2001:4091:a247:82fa:b762:4f68:e1ed:5041]) by smtp.gmail.com with ESMTPSA id v11-20020a1cf70b000000b003fbacc853ccsm3412568wmh.18.2023.07.21.06.37.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jul 2023 06:37:01 -0700 (PDT) Date: Fri, 21 Jul 2023 15:37:00 +0200 From: Markus Schneider-Pargmann To: Simon Horman Cc: Marc Kleine-Budde , Chandrasekar Ramakrishnan , Wolfgang Grandegger , Vincent MAILHOL , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Julien Panis Subject: Re: [PATCH v5 12/12] can: m_can: Implement transmit submission coalescing Message-ID: <20230721133603.eahybmvzf4yalyn7@blmsp> References: <20230718075708.958094-1-msp@baylibre.com> <20230718075708.958094-13-msp@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Simon, On Thu, Jul 20, 2023 at 04:58:49PM +0100, Simon Horman wrote: > On Tue, Jul 18, 2023 at 09:57:08AM +0200, Markus Schneider-Pargmann wrote: > > m_can supports submitting multiple transmits with one register write. > > This is an interesting option to reduce the number of SPI transfers for > > peripheral chips. > > > > The m_can_tx_op is extended with a bool that signals if it is the last > > transmission and the submit should be executed immediately. > > > > The worker then writes the skb to the FIFO and submits it only if the > > submit bool is set. If it isn't set, the worker will write the next skb > > which is waiting in the workqueue to the FIFO, etc. > > > > Signed-off-by: Markus Schneider-Pargmann > > Reviewed-by: Simon Horman Thank you for your reviews! Best, Markus