Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3234868rdg; Tue, 17 Oct 2023 08:23:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFFSmRZ1e1Lvy1TkFvFHmfxHgdqxeVgLqYP+8iDLRBv5F7t0OC5TYt1li20wUl5nvmL+HHK X-Received: by 2002:a92:c84e:0:b0:34b:aebd:a512 with SMTP id b14-20020a92c84e000000b0034baebda512mr2789052ilq.14.1697556199332; Tue, 17 Oct 2023 08:23:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697556199; cv=none; d=google.com; s=arc-20160816; b=dKLj2qjWlCVLUovXs9Wr0Ww11L2ZNNaeONKTsJx/0fq94Ro2ZTiBLhYjUzU6PTmFd7 /R5RzqxRlZL3awA3h814WfMfnNv1i5H9YoV6Gr0ljYCPUH8HoLB2qdb31Y2xF6mXFmuu ttiQEwYQ977jMKXH4+vAUH3nEo3vy7iFWmMWkOa2Gu8TDwnt+RgiIQ/89lKDELom86aC b87MlsQUFDF9G0KQ1oDnJCAKCh6IPe6t6HnptasBQdtcKMGHJtH4jUZzxPGYtnaVbgRL MvzKAWlpYydpYB+DByF/SDreSNpJcn7V70fBGL3GniojpQiTTFOVI7dyiqrefggFQBcW DaHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=bVpv3WCrcUghzXlwdsPDnGHWlQrs/lOsKY8Fyqs4GAM=; fh=+iTYBBPbU5rfKO+jQgpjCtLxS7zebTHe+SIw94OrlhA=; b=L47SWP2FholMKIM2N35GHj+LqNP6lElwDaWSJAku0249YceGfBRM8/03xwxLYIOr/6 a2zBrUGhVJJ04xRcmktYB3Njlx6UH/wV9EaaWGB1ey8gCinGkEbPJX2cs+P+OxzrMkG2 9s0S4a1iDB1rE6pGwqLwqa3/V5wvP0+cDH9/DGwIBnFWDmZ8Ft2d4yQ53vS0PaEO0ftk zaH/2BqNKdCae38WxLqbo3kX1Vaz0zrdxOkZfwumRxx9WDB0iqUFJKhdpc39Q7lq7re+ KaEVnsQ6LhnU6QqjsO0ZEW0L49xb/VBO524fXe5eoDCE2R1rTmZ10lTE31H0UtnL1Ykw +CFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=DIhz5rgP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id u20-20020a056a00125400b0068fcff1dc3asi1870680pfi.339.2023.10.17.08.23.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 08:23:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=DIhz5rgP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 83F72801B382; Tue, 17 Oct 2023 08:23:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344302AbjJQPXQ (ORCPT + 99 others); Tue, 17 Oct 2023 11:23:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344029AbjJQPXP (ORCPT ); Tue, 17 Oct 2023 11:23:15 -0400 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::228]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5E7F92 for ; Tue, 17 Oct 2023 08:23:12 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id A7F301BF208; Tue, 17 Oct 2023 15:23:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1697556191; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bVpv3WCrcUghzXlwdsPDnGHWlQrs/lOsKY8Fyqs4GAM=; b=DIhz5rgPZ36rK8mD+gdaQxrgw0fY9/A9YOcPdTjc33JOXHZBlVR7ziGYL/IkzSV2WD8qsu o1+OMbjIyKh+jUnWN2FsTxHXsjJ6GrdABSJjnpZAx85w1dOCOmdUm+Ffrza3nA/b1VzFUq /EAa/1gP+xXSmYOh8MpxexztnBM7aw5LyUGfVRuSji7LGLDmZeZG3YZndJhxXHTis5wQ5a TL3mIJQjVYQOOrJCV2PhoIXJ/r88LrVfprNviuTNsUtgNzl8aqwcXruVnzx9yCdHvkHvVt UxZDlDn/zDQPuPEUffcwqonekT4QHbxLUYfdaHyn735jx0AQOsd2Zr5+txiXFQ== Date: Tue, 17 Oct 2023 17:23:09 +0200 From: Miquel Raynal To: Frank Li Cc: conor.culhane@silvaco.com, alexandre.belloni@bootlin.com, joe@perches.com, linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev Subject: Re: [PATCH 1/6] i3c: master: svc: fix race condition in ibi work thread Message-ID: <20231017172309.2a251393@xps-13> In-Reply-To: References: <20231016153232.2851095-1-Frank.Li@nxp.com> <20231016153232.2851095-2-Frank.Li@nxp.com> <20231017161658.2de6d9f3@xps-13> <20231017164946.623abd0d@xps-13> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com 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 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]); Tue, 17 Oct 2023 08:23:18 -0700 (PDT) Hi Frank, Frank.li@nxp.com wrote on Tue, 17 Oct 2023 11:10:54 -0400: > On Tue, Oct 17, 2023 at 04:49:46PM +0200, Miquel Raynal wrote: > > Hi Frank, > >=20 > > Frank.li@nxp.com wrote on Tue, 17 Oct 2023 10:37:57 -0400: > > =20 > > > On Tue, Oct 17, 2023 at 04:16:58PM +0200, Miquel Raynal wrote: =20 > > > > Hi Frank, > > > >=20 > > > > Frank.Li@nxp.com wrote on Mon, 16 Oct 2023 11:32:27 -0400: > > > > =20 > > > > > The ibi work thread operates asynchronously with other transfers,= such as > > > > > svc_i3c_master_priv_xfers(). Introduces mutex protection to ensur= e the =20 > > > >=20 > > > > Introduce > > > > =20 > > > > > completion of the entire i3c/i2c transaction. =20 > > > >=20 > > > > Did you experience faulty conditions or was it reported thanks to > > > > static analysis? =20 > > >=20 > > > Yes, I met. But it needs my slave part patches, which will be ready s= ent > > > out review soon. =20 > >=20 > > I believe several of the "fixes" in this series are related to newer > > uses (typically your i3c slave support) which were not in the scope of > > the original submission. As these new features are not supposed to be > > backported in stable kernels and because these are new corner cases,you > > may drop the CC:/Fixes tags to avoid useless backports. =20 >=20 > I don't think so. The issue exists. Just difficult to find it. If there a= re > i3c device that use IBI frequently. The problem should be trigger. My case > just make it easy to trigger the problem. >=20 > In previous existed code, IBI is supported. >=20 > I think it is typical case, which need CC/Fixes. I am not talking about this patch in particular. >=20 > Frank >=20 > >=20 > > Some of them however are real fixes for situations we may happen with > > the current level of support, please keep the tags in these, and move > > them all to the beginning of your series. > >=20 > > Thanks, > > Miqu=C3=A8l =20 Thanks, Miqu=C3=A8l