Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp2959255rwe; Sun, 16 Apr 2023 08:44:42 -0700 (PDT) X-Google-Smtp-Source: AKy350a6VX0JGQA6Tx78LahWX0mbVnIxfL982SoQY1a3bgC5qxvPtQouQxntlxNH1wXR2QFv7+K/ X-Received: by 2002:a17:902:f805:b0:19e:6760:305b with SMTP id ix5-20020a170902f80500b0019e6760305bmr9582760plb.47.1681659881616; Sun, 16 Apr 2023 08:44:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681659881; cv=none; d=google.com; s=arc-20160816; b=S4wM8LwUmqe+Ws1U1O7TRluoDa/7PRL15tlzOg0hb5IvC1jNqbvOgsL60K0mi7KoiH EspWubZ7YxUfcM6KsCRHXMZH+FGcQI4aEHN6PmB5nKz9J717i61rW/FOV5uOEsNHXft9 XL51mibgkbqowctthJIZ5coiGh3zPyzx2SjpZndfW0hrrvldeWJb2Nfo9oIjSsnWY4Dv 9SfcPnHQYKnmEzCKP/P/1rvKtGgWivXgdkBRFdpjozHtTeAcEW60btUklOWmrTcFmNYU wXR69tY9QNTrhf0UJ3ELNs8d3huzj+g3I/uc0idtEXGaNeC8V2n+Wk3YCmhE9ZF6+Z3S l3YQ== 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; bh=xfKwoL7EV+zjYddU6SUA4tAluoV1dixJDT5j9N0//cM=; b=dIE/KTZt/pjbMQ1st+ZKguZyEViw3qucBqpek1glrQlrdUb3p+i8c0l/5wkZ5Iyj17 7VnEWphz/RfgLtek2FTRroZ47EVs9pM9+vnLKTnBzqk1+CixgGvDAcnTmyUQrS7xLaDs LZMVgAPW3gipMlOqfL7Er1DJT/+nyZbttTPC0EM6phrKThIaxkJLX3Mn6tHiqnM9PIsq gOGrd7ZAq4zWh51hCIfuFM2GsAASHJ0GYFSYXLnPFtXiypKrTZ1qfklNvrCVmJPnj7A7 gKBXfNsF/VqPzHtnUM9wIZ6mTW2DsNFjoTUwe9a6iVxeWYLaVwMsulH+QrC9ND359xn0 IsCA== ARC-Authentication-Results: i=1; mx.google.com; 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 jl4-20020a170903134400b001a67798316dsi9365654plb.261.2023.04.16.08.44.29; Sun, 16 Apr 2023 08:44:41 -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; 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 S230411AbjDPPgB (ORCPT + 99 others); Sun, 16 Apr 2023 11:36:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229836AbjDPPf7 (ORCPT ); Sun, 16 Apr 2023 11:35:59 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D46552712 for ; Sun, 16 Apr 2023 08:35:58 -0700 (PDT) Received: from moin.white.stw.pengutronix.de ([2a0a:edc0:0:b01:1d::7b] helo=bjornoya.blackshift.org) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1po4Pk-00089D-DO; Sun, 16 Apr 2023 17:35:40 +0200 Received: from pengutronix.de (unknown [172.20.34.65]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mkl-all@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id 67CEB1AFF88; Sun, 16 Apr 2023 15:35:36 +0000 (UTC) Date: Sun, 16 Apr 2023 17:35:33 +0200 From: Marc Kleine-Budde To: Oliver Hartkopp Cc: Judith Mendez , Chandrasekar Ramakrishnan , Nishanth Menon , Vignesh Raghavendra , Andrew Davis , Wolfgang Grandegger , Rob Herring , Krzysztof Kozlowski , linux-can@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org, Schuyler Patton Subject: Re: [RFC PATCH 5/5] can: m_can: Add hrtimer to generate software interrupt Message-ID: <20230416-failing-washbasin-e4fa5caea267-mkl@pengutronix.de> References: <20230413223051.24455-1-jm@ti.com> <20230413223051.24455-6-jm@ti.com> <20230414-bounding-guidance-262dffacd05c-mkl@pengutronix.de> <4a6c66eb-2ccf-fc42-a6fc-9f411861fcef@hartkopp.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="howza2ulvftzwff5" Content-Disposition: inline In-Reply-To: <4a6c66eb-2ccf-fc42-a6fc-9f411861fcef@hartkopp.net> X-SA-Exim-Connect-IP: 2a0a:edc0:0:b01:1d::7b X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 --howza2ulvftzwff5 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 16.04.2023 14:33:11, Oliver Hartkopp wrote: >=20 >=20 > On 4/14/23 20:20, Marc Kleine-Budde wrote: > > On 13.04.2023 17:30:51, Judith Mendez wrote: > > > Add a hrtimer to MCAN struct. Each MCAN will have its own > > > hrtimer instantiated if there is no hardware interrupt found. > > >=20 > > > The hrtimer will generate a software interrupt every 1 ms. In > >=20 > > Are you sure about the 1ms? I had the 5ms that are actually used in the code in mind. But this is a good calculation. > The "shortest" 11 bit CAN ID CAN frame is a Classical CAN frame with DLC = =3D 0 > and 1 Mbit/s (arbitration) bitrate. This should be 48 bits @1Mbit =3D> ~50 > usecs >=20 > So it should be something about >=20 > 50 usecs * (FIFO queue len - 2) Where does the "2" come from? > if there is some FIFO involved, right? Yes, the mcan core has a FIFO. In the current driver the FIFO configuration is done via device tree and fixed after that. And I don't know the size of the available RAM in the mcan IP core on that TI SoC. Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung N=C3=BCrnberg | Phone: +49-5121-206917-129 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 | --howza2ulvftzwff5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEDs2BvajyNKlf9TJQvlAcSiqKBOgFAmQ8FcAACgkQvlAcSiqK BOiz7Qf9GVU38YyuModIpIhfmJ2wG+iWBhXzfO/pbD4ifYxknz+DcL1zgpTBGCrX wWjHojZuQQPU9AE9UT7vjKfQOcJs90kMFOmI87bEHQLUl8fO40PekZradALAVEII GEIFnU8ArKzXjaaUJxCmahRP/7cHPjctxRdn10RWkeFW5lITOiiO3rwOrLVogeVe 9KX17fQQ2GbRiIT2e6GNWjngkAgsWo77hqtrSdJr8wvJQZ82Xkct9BCr14dJeoz1 bgMiqIiELi+8hG0Sx2G+hdY+/30pXllBV4LFYluPY4JUjS9GeEWC6r7wGF0HqGe9 FW2ZiemY+PGYXCB67pbf+f8SPAiQvg== =QN1Y -----END PGP SIGNATURE----- --howza2ulvftzwff5--