Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6281051rwl; Mon, 9 Jan 2023 06:32:15 -0800 (PST) X-Google-Smtp-Source: AMrXdXtLcKXFcU6TG113LvKcvBtGgv2plHupaInBCm/cewGl3tQuZlcYXSmpPFy9O3G7PkUlAtWM X-Received: by 2002:a17:907:8dcb:b0:840:c37d:b5e4 with SMTP id tg11-20020a1709078dcb00b00840c37db5e4mr78769737ejc.16.1673274735316; Mon, 09 Jan 2023 06:32:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673274735; cv=none; d=google.com; s=arc-20160816; b=R2vjbmEPx8SaiKfr+VRHr80qoIp2ATadHQuZPpo9N5xVvMyFQy4aS8iwS+xtQM0J3V J++nMePp8XT+ugqp15nJNJRrAq748PPDMd9AObU/kN3UVIPuLL1340VRbdN1bQCiRDh7 +kdsIWMMbe8jFbwBVUjMehLRBzNF3gxL2R9VR0aU2Owg32FpBThvC61x2C7INcHHt/Fo vSr2Z802BSs6xZ9BvnTarKsLRmjK280ZTq2Pr8JhgQFpbBq9fkRl+mosWOjBLtp8e3h6 IBYcbXAPrm0avZ/e5mQqBx71Yp843epwnkUVewY1RlpqUp+5XMBUkqaQrRYB3y526m7f CuvA== 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=va66QghiVwE6QiiPu9+UqCbbyrDyyXt5x9KLmndYxL8=; b=OGJQP21AuSGJOus10M6DXoFriDJzogN2F9vmjakrk9RJuH6L1BZecnAX/6xX7DKVGt pGTD+XwybfSwT9gA+CpookKM643iRn5peiiXV4TbaLRDb06opM/3hTVXG7ONHhm2wch7 TI7Mrb+qor9VJY2sO4YnojRVHsH1MphRJrk37cXAdwKGt0RmyLKoPmvcsxfmxyK9YJSY 3S5PfPvFV5Uor8SKJaUFAK3b/pCEss1ipkuPT7faecmjE4pFSTIBQCsHolquuVQid+hg Ul18lY31tVatZoviz3bAgXa+WcFmJtGmk8ISmZWeEL/D4wnud65zdhWdvWPNx4jz0j/w E8UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=GCbpLCPt; 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 e8-20020a056402190800b00461dca37cd0si11023630edz.126.2023.01.09.06.32.02; Mon, 09 Jan 2023 06:32:15 -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=GCbpLCPt; 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 S233321AbjAINzd (ORCPT + 53 others); Mon, 9 Jan 2023 08:55:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233686AbjAINzb (ORCPT ); Mon, 9 Jan 2023 08:55:31 -0500 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37736F7D for ; Mon, 9 Jan 2023 05:55:28 -0800 (PST) Received: by mail-wm1-x32f.google.com with SMTP id m8-20020a05600c3b0800b003d96f801c48so9072914wms.0 for ; Mon, 09 Jan 2023 05:55:28 -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=va66QghiVwE6QiiPu9+UqCbbyrDyyXt5x9KLmndYxL8=; b=GCbpLCPt03bLfCX0hIfUstelzWW82socA5TVed6Mkkf687r2qcXjySW9kXEgKlOGPh Yd84hbnwYZ0varuAkWdq5mkmPYo1LeTM1WOPEdCabTFA5OzEoHgwvobs6yETn5oR6ssa 4sXLgkDJwyG5Udg/ASYQLx2fCJNwjYVEC+xJMxsZssLoAsOxK/u5g30vas2PR7TQ9mZZ hUv+qR+nKFQORVbXoOov4LDvFkWBxrHxrbDNum90W4WjwcAI/SkuYXTut8RxoldH1Xtn VHtL+/c+xw3BjMGKcelvN1WMF7unrtQUZlcVEskL0HUO14pQT8S8ZljO0k3hViyhcSQX hfHw== 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=va66QghiVwE6QiiPu9+UqCbbyrDyyXt5x9KLmndYxL8=; b=S4uesb/ZaA6vPRA/1YVh+nk+0vtzCVnJcih3MgvpoBj4z7vytLFjWkTkW5D1zBC68h 9/LVtXbVapk7sv4JbxM8UCHacjlyepDaH4R9ouBnBu897wUXkd4cW/IGW8N1UA01A2rX CD1PHqWzmK7v4p+uN32Md2JhQmqO+ZqniL/mxe2IFMrM/8pSPIG96nsJenX6jp7ptDuE yK2VNpYcAb2N2PWeRSK/iCw5wvt3onVntjfOp31enmhchj1NkjXgwqnMDx3elq9pkDxa HgT7X9mmQkZFskUHaNcQD+ASgmMKGcfXuJvUjRY7s3Sh5KhR5QD4BD24jyAh6jonMWzo 3AxQ== X-Gm-Message-State: AFqh2koKzocvo9b8KYhCCPjL0PTISEmHR0CJWuBaqBlpin98g3FtSMDv VMQw7zWZlah7NwtU75C/xWjPPw== X-Received: by 2002:a7b:c3c9:0:b0:3d2:e28:647f with SMTP id t9-20020a7bc3c9000000b003d20e28647fmr55927989wmj.15.1673272526694; Mon, 09 Jan 2023 05:55:26 -0800 (PST) Received: from blmsp ([2001:4091:a245:805c:8713:84e4:2a9e:cbe8]) by smtp.gmail.com with ESMTPSA id o21-20020a1c7515000000b003d995a704fdsm11487570wmc.33.2023.01.09.05.55.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Jan 2023 05:55:26 -0800 (PST) Date: Mon, 9 Jan 2023 14:55:20 +0100 From: Markus Schneider-Pargmann To: Marc Kleine-Budde , Chandrasekar Ramakrishnan , Wolfgang Grandegger Cc: Vincent MAILHOL , linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 00/18] can: m_can: Optimizations for m_can/tcan part 2 Message-ID: <20230109135520.6dt3p7wvo3zoygmi@blmsp> References: <20221221152537.751564-1-msp@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221221152537.751564-1-msp@baylibre.com> 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 everyone, On Wed, Dec 21, 2022 at 04:25:19PM +0100, Markus Schneider-Pargmann wrote: > Hi Marc and everyone, > > this is the second part now. I know it is the merge window right now but > I am quite sure this won't be merged immediately anyways, so if you have > some time for some comments I would appreciate it. So it is still based > on v6.1-rc8 + the patches that got applied. > > I tried to do as small patches as possible so it is easier to > understand. The series changed a lot compared to v1 I sent so I didn't > call it v2. There are a lot of new patches as well. > > The series contains a few small fixes and optimizations at the > beginning, then adding coalescing support and at the end removing the > restrictions on the number of parallel transmits in flight. > > Note that the last patch 'Implement transmit submission coalescing' does > not perform well for me in a loopback testing setup. However I think it > may work well in normal testcases. I attached this mechanism to the > tx-frames coalescing option, let me know if this is the correct option. I introduced a bug in this series in the internal m_can driver (not peripheral) and maybe for older m_can versions as well. No need to review at the moment, I will send a new version once they are fixed. Best, Markus > > Best, > Markus > > part 1: > v1 - https://lore.kernel.org/lkml/20221116205308.2996556-1-msp@baylibre.com > v2 - https://lore.kernel.org/lkml/20221206115728.1056014-1-msp@baylibre.com > > Markus Schneider-Pargmann (18): > can: tcan4x5x: Remove reserved register 0x814 from writable table > can: tcan4x5x: Check size of mram configuration > can: m_can: Remove repeated check for is_peripheral > can: m_can: Always acknowledge all interrupts > can: m_can: Remove double interrupt enable > can: m_can: Disable unused interrupts > can: m_can: Keep interrupts enabled during peripheral read > can: m_can: Write transmit header and data in one transaction > can: m_can: Implement receive coalescing > can: m_can: Implement transmit coalescing > can: m_can: Add rx coalescing ethtool support > can: m_can: Add tx coalescing ethtool support > can: m_can: Cache tx putidx > can: m_can: Use the workqueue as queue > can: m_can: Introduce a tx_fifo_in_flight counter > can: m_can: Use tx_fifo_in_flight for netif_queue control > can: m_can: Implement BQL > can: m_can: Implement transmit submission coalescing > > drivers/net/can/m_can/m_can.c | 498 ++++++++++++++++++------ > drivers/net/can/m_can/m_can.h | 36 +- > drivers/net/can/m_can/tcan4x5x-core.c | 5 + > drivers/net/can/m_can/tcan4x5x-regmap.c | 1 - > 4 files changed, 418 insertions(+), 122 deletions(-) > > -- > 2.38.1 >