Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2763369rdh; Sun, 26 Nov 2023 19:23:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IHHdop95Z7wlf1dMN0SkZxsvEjh1cdNIjdn2FKzXGLKYl8vQnfNM8itfikS3yF9cKMorTCT X-Received: by 2002:a05:6a00:1401:b0:68a:5cf8:dac5 with SMTP id l1-20020a056a00140100b0068a5cf8dac5mr12525863pfu.22.1701055397554; Sun, 26 Nov 2023 19:23:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701055397; cv=none; d=google.com; s=arc-20160816; b=zuDMTGo81LXNJMYAJ/QhyW6xz3LviE0y9WYW24H3Mokm/mgTS9vFpISZLit5Ud+RRv 5pRzZtHgHE4pYqalx3Rl44DQmq50/x32JkO6NqWmBaETOSTYuYz84CASMEnflmqzNG92 SmLQ57EUq/vyVL4CAtQsMzIrBjQOrcbzu5Jej26f2N/IZlfyuYSEv1w0k6b4UskGwOZY cSMQDAbiRn7kTBzA0gZC54Vmnnv7lWz+3L9wmM5y+8r0ZrRPykfgaBIS7x62AWGkPpoU dj1zKaHApGzuNjnaVtLix++KTUGa02cvzCspBysLiKnE9aUDdFltVfpV/b0z1+fXCXb4 NHbw== 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=9Y12ePRBana+i/gp2nHJOJIJGp9W0wzK4lhnfvk1osk=; fh=xarEna6md1+Dws37Wg7MpfASpTEZ9XRG3LuQ3Vguth4=; b=0YX9N+P/8Tnv7x60RYNNRB2x2KovMMt+hGwrAtFGtVXKD1F8hJUTVxoCP3H+v7iH0b oHvr/0OHNPIw8DB1ey7d1ZrZX12QuOogTKunCXfLwgzTO8kPZf0oDMdnQ86oXXMsHZ/I NL5410pJcRbHaEOBrXRBXEyF1R7FCjGIKOw3V/ySi63wQrc0P2XQwIHb4kwcx+KNOKVE Y9pD/tOBLkruXsnrW5I+pcFe7cmhCJHkJ9RXF4c2P6cAfq09iKhiJBiSrr1bRKUWsgVb MTVTHflZ3cj0/ywIz1fLXDVVOzCjxM8CRPDlmlcZ1o71kEcyf81zgAUvEjyYMDkanUcz gsZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeconstruct.com.au header.s=2022a header.b=QeUDGbRT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id l28-20020a63ba5c000000b005c1b2b1b555si9059763pgu.160.2023.11.26.19.23.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 19:23:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@codeconstruct.com.au header.s=2022a header.b=QeUDGbRT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 4B6FC809500B; Sun, 26 Nov 2023 19:23:16 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229514AbjK0DXG (ORCPT + 99 others); Sun, 26 Nov 2023 22:23:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbjK0DXE (ORCPT ); Sun, 26 Nov 2023 22:23:04 -0500 Received: from codeconstruct.com.au (pi.codeconstruct.com.au [203.29.241.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD8B58F; Sun, 26 Nov 2023 19:23:10 -0800 (PST) Received: from [192.168.68.112] (203-57-215-234.dyn.iinet.net.au [203.57.215.234]) by mail.codeconstruct.com.au (Postfix) with ESMTPSA id 3F42420034; Mon, 27 Nov 2023 11:23:03 +0800 (AWST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeconstruct.com.au; s=2022a; t=1701055389; bh=9Y12ePRBana+i/gp2nHJOJIJGp9W0wzK4lhnfvk1osk=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=QeUDGbRTji2Gnka1aFgPpDEsTHMgv+RMDklc/gnUyAB9B7iQSECEO8gXh86pHjY4J AfiJiL2NOQkhNadiNRGUDddM8KE4ZMHbL5T/UhCHVkvAh8+YDD2FgxqwTIQ754eC6u md8lNPOvD9ESdCnjghP2r1fbRSmqbVM+IiAkMIzdH1dsCXQ0mUO3orgANJn/J56mwY EnPI9fxcJjtdnZ9Z+PfCln+Pn1UKoliuUfc3H3rr/B+OPdbm4FWoeIAF5T+L0XkQE/ pIuv2PdAR/RhHi2T9BwY8veXjgnk0XdCnUYT5yDw6sOztKfah6j3Epl43+XlYIuP8b /inBS/5tzDIcQ== Message-ID: Subject: Re: [PATCH] i2c: aspeed: Acknowledge Tx ack late when in SLAVE_READ_PROCESSED From: Andrew Jeffery To: Cosmo Chou , brendan.higgins@linux.dev, benh@kernel.crashing.org, joel@jms.id.au, andi.shyti@kernel.org, linux@roeck-us.net, wsa@kernel.org, jae.hyun.yoo@linux.intel.com Cc: linux-i2c@vger.kernel.org, openbmc@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, cosmo.chou@quantatw.com Date: Mon, 27 Nov 2023 13:53:02 +1030 In-Reply-To: <20231120091746.2866232-1-chou.cosmo@gmail.com> References: <20231120091746.2866232-1-chou.cosmo@gmail.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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 (snail.vger.email [0.0.0.0]); Sun, 26 Nov 2023 19:23:16 -0800 (PST) On Mon, 2023-11-20 at 17:17 +0800, Cosmo Chou wrote: > commit 2be6b47211e1 ("i2c: aspeed: Acknowledge most interrupts early > in interrupt handler") moved most interrupt acknowledgments to the > start of the interrupt handler to avoid race conditions. However, > slave Tx ack status shouldn't be cleared before SLAVE_READ_PROCESSED > is handled. >=20 > Acknowledge Tx ack status after handling SLAVE_READ_PROCESSED to fix > the problem that the next byte is not sent correctly. What does this mean in practice? Can you provide more details? It sounds like you've seen concrete problems and it would be nice to capture what it was that occurred. Andrew