Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3217383rdg; Tue, 17 Oct 2023 08:00:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEXASyhxE7VlTkdIPCS6Dd2hOR8aeJvfSlMJbMZyegip8qfTRU+SZL0/U/MtLK5lJyNXtGP X-Received: by 2002:a05:6a00:2283:b0:6be:2ace:deb8 with SMTP id f3-20020a056a00228300b006be2acedeb8mr2835594pfe.20.1697554840875; Tue, 17 Oct 2023 08:00:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697554840; cv=none; d=google.com; s=arc-20160816; b=mjczK2xnSIWWB2yhH2bSZ5PqAj9O54Y9WyUn1svzNcQXJc8G3QXmIDTACqF2a3bNaG gUWlvB8tFO/Fqd+2C3p6JohI7tq5HfCLicK9zZQXIs5Yp0tFxtMbS9VKWIme8xVZe5BG YmyvazLKOU9Dz91vXcMBW2czjNwOXVOyfP4M0bIdW8U2bBvBpf9YcALVZ1DiNTECW+JQ 0Ki7A9ybjzMRHXKzV1elyMdAGLYZHMhVWzF82NI3cx2eSc9kmo/RoA1XNNRZJPJnLes3 Z7DgruQQIyKKh8e2LQLPIYqaEIkhTBbNExG88c7BoJ+uslAcO/HV02OmJ81aJMycsJ3O 2iiQ== 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=EKj1C9R90LP8I9gAVutZrILL7DKw51ojM2nAHRNjCCs=; fh=+iTYBBPbU5rfKO+jQgpjCtLxS7zebTHe+SIw94OrlhA=; b=isY1NnJKMgvwHC7s/onLdgaE1X+6SdZ+alVYJ0HmDWTHj5HtpKouvaOA6CQ0fc+ES5 qkIXxYLjmkxJ24d0t9DnBetCXVlA/vn3mxTxEgMZShgpY702tZxKNk3sl2LTATbMxTce 844qqx11sV2bL7GuNCyAlBKd05lmfB+8Y7uzP1ahiqj7k7mqkGANa/df3//O4IFW7o/V sOMz6CLJyOCNn9t8aokzmLRTOqpTlQudTmkO7qUXh1JC+GlP24utN4u+Y87PWk8agQAy 0zPjKos/SbCp1MM+UgWbF4y1frbU9V7zywhCaAOC3DN+72VQLzCWvq1CG9IWFo2kJi7q N84w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=TxZk4ixl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id b14-20020a056a000cce00b006be0f482c0fsi1856263pfv.63.2023.10.17.08.00.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 08:00:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=TxZk4ixl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 5DD7F807C7C0; Tue, 17 Oct 2023 08:00:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343644AbjJQPAJ (ORCPT + 99 others); Tue, 17 Oct 2023 11:00:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235102AbjJQO7l (ORCPT ); Tue, 17 Oct 2023 10:59:41 -0400 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::224]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFA3B35BB for ; Tue, 17 Oct 2023 07:49:58 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id 9263EE0009; Tue, 17 Oct 2023 14:49:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1697554190; 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=EKj1C9R90LP8I9gAVutZrILL7DKw51ojM2nAHRNjCCs=; b=TxZk4ixlicRIp/4Ps3f+sezpa4q8mtLWj4oe7Byd36WixDBXRuVjTaFqlgCjCoTUnugI37 i6fruBhlMXWVotKpuFTJ6mlOOsG9tPqM2PPlxZ8mNcRHlxpyj34GGIrKhnRDyPt9TjePd9 szT/b4qoKkak9uqtlBk6eVM+e3nAF5b74j5JlxHME1Q8ZchY03hfxvgJ/i5czh+fdeIpMr bDGXpvLsZJDCVEUemPt6KYmww2exDJixY78LbNNFfQutfMUxw/cHbvO68bDhRWtKqBbJ39 75gEG/4SV5SKotlDLU0L47OwgAEoJi2sQAT6AS344MSYIrP7DYBvTT78EliF1g== Date: Tue, 17 Oct 2023 16:49:46 +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: <20231017164946.623abd0d@xps-13> In-Reply-To: References: <20231016153232.2851095-1-Frank.Li@nxp.com> <20231016153232.2851095-2-Frank.Li@nxp.com> <20231017161658.2de6d9f3@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=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Tue, 17 Oct 2023 08:00:16 -0700 (PDT) Hi Frank, Frank.li@nxp.com wrote on Tue, 17 Oct 2023 10:37:57 -0400: > On Tue, Oct 17, 2023 at 04:16:58PM +0200, Miquel Raynal wrote: > > 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, suc= h as > > > svc_i3c_master_priv_xfers(). Introduces mutex protection to ensure th= e =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 sent > out review soon. 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. 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. Thanks, Miqu=C3=A8l