Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp779533rdb; Sun, 1 Oct 2023 05:23:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEPU+JpH3eHDt4O4n1K7KJjM7JlWDhKItKz/wz6VBB1VuxX2F9N//H+0LCwsTs+sxufG8vT X-Received: by 2002:a17:902:dad2:b0:1c7:2e8f:c3b5 with SMTP id q18-20020a170902dad200b001c72e8fc3b5mr13861184plx.20.1696163025252; Sun, 01 Oct 2023 05:23:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696163025; cv=none; d=google.com; s=arc-20160816; b=nXoJr7XZ3EGzFtQfCJ80O5m8Gdpiy1+pSBIclR+YmfFlLp3NnjHAM+GmjfB/D7DYPg qnVIQGyagfSihTcUCLpVCwdNKEReXtAxtQ7wGGQdizAaPX8RibrEVKpIFAHpuHof3qNV cw1Uj0pxwakx06BOaEEGcahTRH50OF8/BNT6JLpmB14Ir4DQW5vASyAC7O7NiB108d2Q zoeDQBIxjXM3pQXHCjbIxse+x/HtMA49OWEzf/jJFmU9pmpKZpDn0NprfbgFY39xppVn NX/HA3/iUmsXpTd14902S3pNEWgM/YwuhHBxRBciPQ4eTgrv+6xuPkC63b68hZ0BrCdj JhPg== 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=py5nUsumlCzHi4KDcX+PqgiLc5IBo/ZimOvoKb6qMKo=; fh=9X4NRy2Om8pBMDZwTDDMWWOq9JUj1HYOE9bwpsR/7YI=; b=zY9FIEjyawO/1Fjg5ioAYSnRwGLnHqxlxOP57Gn2DMoo6CoLg4Yao5Yr3fWzsH8tgf WQJHIAPXiOOp9iCY5jjNwx0qCJY+/hByiPt3khMupRAzeO3bKQY84tgd92NJ/ANilO7b i32332/uz6o3TnzAMEfcy+Uan6yF2ifvtmyaaRqi2zhXX2kJrZ9XD3DnL+ynyMCxYZRh 8F4x97V9Z2IY5ldsnQxaHM9bvzYLuhRzP2ETIpY5MeSXLs7JRgNXnlg+EwxlMVK58deC yoYmamH+8WuWU0qOJPTbyf+G4MzIsv94KD9joSpwN0ftEtS8Egn3g3HVp2HrHYgqf9AK T42g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=caoR0sLj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id t16-20020a170902e85000b001c33cde7b3asi27474711plg.410.2023.10.01.05.23.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Oct 2023 05:23:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=caoR0sLj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 823EA80EBC92; Sun, 1 Oct 2023 05:23:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234942AbjJAMXm (ORCPT + 99 others); Sun, 1 Oct 2023 08:23:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234911AbjJAMXm (ORCPT ); Sun, 1 Oct 2023 08:23:42 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4ED899; Sun, 1 Oct 2023 05:23:39 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D07EFC433C8; Sun, 1 Oct 2023 12:23:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696163019; bh=bGLLx3W/04YDixrwTRJ2+yQqyEYUWpZQHtkoZLDsy3I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=caoR0sLj5VpWHHsGJ1M4cEFL/G+xaKIL0fGS7ecUE24Tb0AQbuHTYmPt6fWfYI4kE TK13OC9lhMsw2OW16ainYYFdxcogJHS+ARuInHIEWuyjI9jHE6Q+X14xZOJeqLBBC0 6aMr8i0vUsfeE2LX5ueOwWGWxQmEJkox6EiSZcpREpvgNJnbJK9JK2SW88GNZm0ERR A6F/MYDc/1BP5eP8cBXGYjfbGzhOch4YcnT/nE21yXD4dA/+oGBHXQ7bbATZ5J1Djb LjnANZrLCxfiCTxiIGqs+xVi76QJWjtivfn4LJLzk705GgEdVULago4+TBeZIJXwYx f9Up9PwAIu++Q== Date: Sun, 1 Oct 2023 14:23:34 +0200 From: Simon Horman To: Markus Schneider-Pargmann 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 , Judith Mendez Subject: Re: [PATCH v6 05/14] can: m_can: Implement transmit coalescing Message-ID: <20231001122334.GM92317@kernel.org> References: <20230929141304.3934380-1-msp@baylibre.com> <20230929141304.3934380-6-msp@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230929141304.3934380-6-msp@baylibre.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sun, 01 Oct 2023 05:23:43 -0700 (PDT) On Fri, Sep 29, 2023 at 04:12:55PM +0200, Markus Schneider-Pargmann wrote: > Extend the coalescing implementation for transmits. > > In normal mode the chip raises an interrupt for every finished transmit. > This implementation switches to coalescing mode as soon as an interrupt > handled a transmit. For coalescing the watermark level interrupt is used > to interrupt exactly after x frames were sent. It switches back into > normal mode once there was an interrupt with no finished transmit and > the timer being inactive. > > The timer is shared with receive coalescing. The time for receive and > transmit coalescing timers have to be the same for that to work. The > benefit is to have only a single running timer. > > Signed-off-by: Markus Schneider-Pargmann Reviewed-by: Simon Horman