Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5916784iob; Tue, 10 May 2022 06:40:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8UyRSfZ+7alqdT+gEFOLjZUQt8bHGxBkitIsEH78dPFKLpZlFqOknA0Zjc+lURVRYf0zR X-Received: by 2002:a17:90b:33cd:b0:1dc:c9b9:2a6e with SMTP id lk13-20020a17090b33cd00b001dcc9b92a6emr99751pjb.86.1652190040724; Tue, 10 May 2022 06:40:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652190040; cv=none; d=google.com; s=arc-20160816; b=r4Qs8dFwNS2Hd/hUIde42WChPp4akETOnkf+wF+PPAjpdn0vNtaL1eB/YMzzr06es+ V4TbW2bAnk05JVzDhB2VpKphtCBkZ5P1Ta511mHUsP2bTh+tMuXQzvfNq7vZW6tTZ+6U wsry5Z6LdGE1V/7/Dv+ruo/ehbxfiwHf5BECup49AFwuYyslNVIemUynFNmsuBWcEDnZ 0tiBcgveuFt4a+NZaJUmGEsHiFwokjExEuAYkyIWIAIWv7u0WC/l8ef3JXzRmnULmdf4 1CfidxmRfPz4A7KEHvQjXI4DB2sj6SG9S3+99RYOiwTFdpdjYCa6szsMi4WO7QGQbNZn Ykow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:to:from:date; bh=Aew1tS5K0XqzCFN2eIH5gZ0WKlSehGnCIIlH8vkX14w=; b=Re+Uag31kHKZF7+/e7psUnViN9Fy2Y12GxhVKAHEcGl38eLVWgq93yL2La3DJiip0j 5l+42tdN9Tu8Ui12pAfLOjJEc4rVRxjNbT4qTF5/fh8ExR6rqo1Vee1ziwJa/sn6xX9Z NJ4w4+ifxu7XgJqeykudJVFEqiubRIkUFqWQuAgMa8vO2mN5KJnQO+geLh+Vm3sndCJY yfiKovnvtp/jbe0QUmyDyIcr98VaGUdYjD5zRHJoxn238J5vUhKHMekao0XpL8Lepf8X Sjx9/1/icC08VgTESpj8ktz6CsBfp4xFMDtw+Q77L6jd4KK/aKG2B8EqrbQs25SJDVCv 5ZuA== 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 e4-20020a170902744400b00158bfb59d03si2995795plt.382.2022.05.10.06.40.26; Tue, 10 May 2022 06:40:40 -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 S236454AbiEJEdd (ORCPT + 99 others); Tue, 10 May 2022 00:33:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236677AbiEJEbg (ORCPT ); Tue, 10 May 2022 00:31:36 -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 8A9054CD5F for ; Mon, 9 May 2022 21:26:31 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1noHRr-00070V-Nc; Tue, 10 May 2022 06:26:11 +0200 Received: from ore by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1noHRp-0007KV-SV; Tue, 10 May 2022 06:26:09 +0200 Date: Tue, 10 May 2022 06:26:09 +0200 From: Oleksij Rempel To: Devid Antonio Filoni , Robin van der Gracht , kernel@pengutronix.de, linux-can@vger.kernel.org, Oleksij Rempel , Oliver Hartkopp , Marc Kleine-Budde , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Maxime Jayat , kbuild test robot , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RESEND] can: j1939: do not wait 250ms if the same addr was already claimed Message-ID: <20220510042609.GA10669@pengutronix.de> References: <20220509170303.29370-1-devid.filoni@egluetechnologies.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 06:19:23 up 40 days, 16:49, 62 users, load average: 0.01, 0.09, 0.08 User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ore@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 Hi, On Mon, May 09, 2022 at 09:04:06PM +0200, Kurt Van Dijck wrote: > On ma, 09 mei 2022 19:03:03 +0200, Devid Antonio Filoni wrote: > > This is not explicitly stated in SAE J1939-21 and some tools used for > > ISO-11783 certification do not expect this wait. It will be interesting to know which certification tool do not expect it and what explanation is used if it fails? > IMHO, the current behaviour is not explicitely stated, but nor is the opposite. > And if I'm not mistaken, this introduces a 250msec delay. > > 1. If you want to avoid the 250msec gap, you should avoid to contest the same address. > > 2. It's a balance between predictability and flexibility, but if you try to accomplish both, > as your patch suggests, there is slight time-window until the current owner responds, > in which it may be confusing which node has the address. It depends on how much history > you have collected on the bus. > > I'm sure that this problem decreases with increasing processing power on the nodes, > but bigger internal queues also increase this window. > > It would certainly help if you describe how the current implementation fails. > > Would decreasing the dead time to 50msec help in such case. > > Kind regards, > Kurt > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |