Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp181725rdb; Thu, 30 Nov 2023 01:41:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IG2fvF5Qf/ixPEHNN3IVNZJzwYouPzgk2CAlPJVh662Evm++WRGXOHNoLSKSER8jBl+c6Pl X-Received: by 2002:a05:6a21:1a9:b0:18c:6c2:5369 with SMTP id le41-20020a056a2101a900b0018c06c25369mr22226305pzb.30.1701337276375; Thu, 30 Nov 2023 01:41:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701337276; cv=none; d=google.com; s=arc-20160816; b=XsHAb+6kv/KYYSA3289m3ExaG6PxX5RNzI8FOWu4zHTTABeZcUWHEJF3AEqs5t211H aMDoSMf65SUctjNwi+WThG/U+i1EzKoeOALhAqPganNuuyp3f9QN5mAlw236uTk+I9wf Qif/VkzaBotSpYhXi+qA62cH8w7eks++Ziq/8U/8ZZLkM9N+9cU03a4GT2mLaVHrz+qH gLUMri6WbyQR91Ls5csoJDaWbRxohzNp2Hhs3klcjqhINniI0LA92EQBEOckZH3ZKvlg K4xOukmR6Byjzf9ZZIrewuhhwLjcVTobC3smGjNg3CrzW9JSekALlZu07457k6x4G5U0 3kVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=DYVEjPmENldAVn0veRVABWTZgAuQcmimV8LUyiPCHM8=; fh=EbO2hJ2UUn7Jotqz2Y9iatsWFTNDhNazUjEqXzSD3vs=; b=oeWczHtLw6U4x2LPl99bmtl2t1g0zh2+fVjRqSXO87icQG56BQa/PUuW9rX/ZeiTJN aNHBD38vFWfkL6ajzYlq/taLI2NPdiAx+dbnHUe+VJp4sUstyRY8U+4IhWBwlIG0Dwey xHGxRcZh2e7quL2oul2/ewm0baIajC8fNMvR8JohOE+AOptH3wOj0Vdoo4Fp2sPKaVH2 XSgVW/SZvVD3R50kbSmZxk2oVPpNwNqB4//jWfsnbztgASBryjZjdUSa2nJ6ToLvuysm F8ou1WnRDwb+ooAzkzC+ZvUIyrWBo80shfitY0Uy9gpc7jXn8hK+LPzijVTz3DLzlARs gVUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeconstruct.com.au header.s=2022a header.b="hM/Z6N99"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codeconstruct.com.au Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id y2-20020a170902864200b001cfb7ef2badsi837960plt.155.2023.11.30.01.41.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 01:41:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@codeconstruct.com.au header.s=2022a header.b="hM/Z6N99"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codeconstruct.com.au Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id B3BD680A0561; Thu, 30 Nov 2023 01:41:13 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231906AbjK3Jkv (ORCPT + 99 others); Thu, 30 Nov 2023 04:40:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231865AbjK3Jku (ORCPT ); Thu, 30 Nov 2023 04:40:50 -0500 Received: from codeconstruct.com.au (pi.codeconstruct.com.au [203.29.241.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8550FD50; Thu, 30 Nov 2023 01:40:55 -0800 (PST) Received: from [192.168.2.60] (210-10-213-150.per.static-ipl.aapt.com.au [210.10.213.150]) by mail.codeconstruct.com.au (Postfix) with ESMTPSA id 49C622012A; Thu, 30 Nov 2023 17:40:52 +0800 (AWST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeconstruct.com.au; s=2022a; t=1701337253; bh=DYVEjPmENldAVn0veRVABWTZgAuQcmimV8LUyiPCHM8=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=hM/Z6N99MvavxIsvBoks6ZDBxgNEdEzG3kKR0Cg9XBzj/aExsAtiJnxH0zrn8B/pZ YCR1YQkJy63HAkaz8MEewL9dVh6DGVsmmMt7VBEKG3A7tcj4B2xRP7MEy5T9yKwUJ7 VICpkg7El0MH2kaSRVyHJzI/P7g5ApM111hXdwud2sM3RRMT5aEvtsBST5JnX2Cqj1 OcEVyB5xIK3Ls1abvIm0IoF41gL7WAKSTMdVGAmvEtAQRoSMPWUzdyLTcqIVF5nzdI 8RR9Se6yVvhym0WUMeVlDoi137oysraZ0pwFK9JZJNksWVZQdM35v/uawp+0l0hnZz Ty11P6XYAnz+g== Message-ID: <852eaa7b5040124049e51ceba2d13a5799cb6748.camel@codeconstruct.com.au> Subject: Re: [PATCH] mctp i2c: Requeue the packet when arbitration is lost From: Jeremy Kerr To: Quan Nguyen , Matt Johnston , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, Open Source Submission Cc: Phong Vo , Thang Nguyen , Dung Cao Date: Thu, 30 Nov 2023 17:40:51 +0800 In-Reply-To: <706506b7-a89c-4dfc-b233-be7822eb056e@os.amperecomputing.com> References: <20231130075247.3078931-1-quan@os.amperecomputing.com> <473048522551f1cae5273eb4cd31b732d6e33e53.camel@codeconstruct.com.au> <706506b7-a89c-4dfc-b233-be7822eb056e@os.amperecomputing.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-2 MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email 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 (fry.vger.email [0.0.0.0]); Thu, 30 Nov 2023 01:41:13 -0800 (PST) Hi Quan, > With this commit, we all see the packets go through peacefully just > by requeueing the packets at MCTP layer and eliminated the need to > retry in PLDM layer which would need more time. It's certainly possible that this tries harder to send MCTP packets, but it's just duplicating the retry mechanism already present in the i2c core. Why do we need another retry mechanism here? How is the i2c core retry mechanism not sufficient? It would seem that you can get the same behaviour by adjusting the retries/timeout limits in the core code, which has the advantage of applying to all arbitration loss events on the i2c bus, not just for MCTP tx. Cheers, Jeremy