Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1BB8EC61DA4 for ; Mon, 6 Feb 2023 13:19:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229961AbjBFNTC (ORCPT ); Mon, 6 Feb 2023 08:19:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230370AbjBFNSS (ORCPT ); Mon, 6 Feb 2023 08:18:18 -0500 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 93E8D241FB for ; Mon, 6 Feb 2023 05:17:35 -0800 (PST) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] 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 1pP1NC-0007s2-JX; Mon, 06 Feb 2023 14:17:30 +0100 Received: from pengutronix.de (unknown [IPv6:2a03:f580:87bc:d400:ed53:8ea4:3645:4bd2]) (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 9C5FA171270; Mon, 6 Feb 2023 13:01:51 +0000 (UTC) Date: Mon, 6 Feb 2023 14:01:46 +0100 From: Marc Kleine-Budde To: Vincent Mailhol Cc: linux-can@vger.kernel.org, Thomas Kopp , kernel@pengutronix.de, Mark Bath Subject: Re: [PATCH v2 14/17] can: bittiming: can_sjw_set_default(): use Phase Seg2 / 2 as default for SJW Message-ID: <20230206130146.pkrlmcimeph5urpd@pengutronix.de> References: <20230202110854.2318594-1-mkl@pengutronix.de> <20230202110854.2318594-15-mkl@pengutronix.de> <20230202120738.3f3amaj5bdntjmhc@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="odybovf2cpbdamtm" Content-Disposition: inline In-Reply-To: <20230202120738.3f3amaj5bdntjmhc@pengutronix.de> X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb 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-can@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-can@vger.kernel.org --odybovf2cpbdamtm Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 02.02.2023 13:07:38, Marc Kleine-Budde wrote: > On 02.02.2023 20:57:42, Vincent Mailhol wrote: > > On Thu. 2 Feb 2023 at 20:09, Marc Kleine-Budde wro= te: > > > "The (Re-)Synchronization Jump Width (SJW) defines how far a > > > resynchronization may move the Sample Point inside the limits defined > > > by the Phase Buffer Segments to compensate for edge phase errors." [= 1] > > > > > > In other words, this means that the SJW parameter controls the CAN > > > controller's tolerance to frequency errors compared to other CAN > > > controllers. > > > > > > If the user space doesn't provide a SJW parameter, the > > > kernel chooses a default value of 1. This has proven to be a good > > > default value for CAN controllers, but no longer for modern > > ^^^^^^^^^^^^^^^ > > > controllers. > >=20 > > Are you missing a word here? You oppose CAN controllers to modern > > ones. > >=20 > > I think the point is Classical CAN only controllers vs. CAN-FD > > controllers. A CAN-FD controller is able to sample at bitrates up to 5 > > or 8 Mbits and have maximum bitimming values five or eight times the > > ones of a Classical CAN only controller (which is only capable of > > sampling 1 Mbits). > >=20 > > I propose this instead: > >=20 > > This has proven to be a good default value for Classical CAN > > controllers, but no longer for modern CAN-FD ones. >=20 > The difference that matters here is not that the controllers support > CAN-FD, but that they have a much greater max tseg{1,2} compared to the > sja1000. But that's only the case on CAN-FD controller. >=20 > Will change the description as you proposed! There are no other changes on this series, I've fixed the patch description as suggested. I'll take this series without resending it. Thanks again for the review! regards, Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | --odybovf2cpbdamtm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEDs2BvajyNKlf9TJQvlAcSiqKBOgFAmPg+jcACgkQvlAcSiqK BOigrAf/Rd6/uxUcAu67UgLnhnhKSG5i1pYVe+oW++oBJtPaGtQ/zUgw03RqmQPr CE1HYkv2Sp1ObmScKwKf3X+CoAt5B+2q6Kvks2kn/Xzit84ZeE6cVQ/m51ZC1QQ1 6udhKjv1oG+RxcaFPk1YIWcZQWfwxIFJatU+ZDZbZOG0h4hev4RnYjwsCWQTgpMB lJ3dUJvbbJJ1+4TRUVnB9V+/k2aW7ubyc3BnkXz52COukDaQBuk9NWWstNc0fL+n uwGNGW36SRKM5+7dQATUhLKlDYYgnQNqbm6owa5/rf4wgMFjhDuuoOfK9NVAhDll khKs31iGuuWzoJGUrVqJbJQlQ3bDPg== =8vLs -----END PGP SIGNATURE----- --odybovf2cpbdamtm--