Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp990757lqj; Mon, 3 Jun 2024 07:12:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW4PbttYGSHdIb/0Tgh0qw/lu9GcjNVUBXrY5jRAmHmSDFafqBJqzARR49GxiemEvn6dm9oLZ42DgjolWJ4WknqLu+hecRAGhf8yiD2DQ== X-Google-Smtp-Source: AGHT+IGjIZ2mLSo2E/LZXbpJnUTFZMippJbyjfwxBoao41+hadL60H/gWZhf1OOFEjBjvQL3/Zi8 X-Received: by 2002:a05:6a20:324a:b0:1a7:a6f3:1827 with SMTP id adf61e73a8af0-1b26f245be2mr9147008637.46.1717423945221; Mon, 03 Jun 2024 07:12:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717423945; cv=pass; d=google.com; s=arc-20160816; b=Pde2TFnI9EHb4xd6Vu4WCSpfK7RGl9sYOjuK+k1fbYIOJoBmGLYYE+e+fH9zyYnIEr 31jyZEFPXVaKcSLDL63WPZmLgim2hsPA8kSPHGJpCzYOAZTwQT5k0gfHqLG5tILcBW3L bCWJrhl5LgREfPvQQT5btC03xy8JLWxcwVXkN0/UtuB8XVXoDkYBDjpqGkQtD/yMq1Mo qcBjz8fMLJLuz9wJr/DoL7mJAo1Hhr5gfypiVMw0tCqA/l4ucjMuzzimfLy+ALfJ2emi keCO/zv8GJ18lHenwaK/f/pT/GeqbzvJ1wpsTaM3+Q4g5pepdUheqQINDQ7qNhUPF6Ur ZD9w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=eUiKeSDAw5PSWaHAWumiSmz2tV9iwBOhkTk5YbNtRJw=; fh=f3l8WvnxvQ6LavwK0qXcigy5nFgnPaY1Je4dIKntvlA=; b=dHNhcCXFRbScVuLZejN21rqV82AU9x6lhXWMFXmai3Snl5fcxV5MPgEVeTNUSVezNS vcFMhiJXbA2dsipjfLMQBPiL2+4nf3pHlH/wv0SDWZE2v8diOkE8enifz7eBoZCSIIGj iiSMSJdze+5GXVv6xbDWqVi7VrUy79b0J2PEAnP2bdbOhDrF/wdzVU3sprTjCr3gDi06 iI5KXsw4oOOypvvATomyXMRRi7egQw+Cdq46PRiqBVjycPvdpdZLwr6zI7JwI0JJPbJq uj00rDP/WsKRtymtMDuMUW27iIGCuMw1RxKaXXj6hDEs6lajIFwfGynpbKwX97mKSwhY rYtw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Vnk9rxj2; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-199259-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199259-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c35af459dcsi6829913a12.468.2024.06.03.07.12.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 07:12:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199259-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Vnk9rxj2; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-199259-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199259-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 6D029B21D08 for ; Mon, 3 Jun 2024 14:00:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DDB3712BF30; Mon, 3 Jun 2024 14:00:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="Vnk9rxj2" Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4F5BF1E504 for ; Mon, 3 Jun 2024 14:00:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717423234; cv=none; b=agU8pfOq/ffI8AkdXW6l7j6kZJ9j9Bv7rxO86zDsWUrQ7HV+PbQzAxInE0+ne6+9UKmGljXDI08jGdpD0/nR7FTQfBcN1mjQzu1a7ITR8iv2aElacAsn19WdAaLQ0ux42m71+Qo+ujsF+CdJCg564RZyeUbL0J+W/J4zciY2PQQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717423234; c=relaxed/simple; bh=Tq+fTOP9a85zGx81hI5MmId6I7YXI6owwkdLPoka3YQ=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=VnhWhKOI+0AIjKcjajt+b8V6t5703NN6m2DKfQ+lG1OmI1sEoceAaSuLC9Pe7CrHS+dAW5DJGHJVHxhFTpf0HT1RXetB07HgPBcpGr566NqdoWTUCoxJnAMpK1YAKPnJqOXd+IGITSckCPLIGJTSwlpqq8Ck0DLX3cUYXbwIyTE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=Vnk9rxj2; arc=none smtp.client-ip=217.70.183.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 5293F40019; Mon, 3 Jun 2024 14:00:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1717423223; 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=eUiKeSDAw5PSWaHAWumiSmz2tV9iwBOhkTk5YbNtRJw=; b=Vnk9rxj2LrJ31ASbDAuodEeVDzQEiuJI6BXER38I5f8OLktmjqg4+Ot1G7uXJrLWYDCMPj r4c1Ejhl02HzHSrCCx+M31d9nMPrNl6Ewk55kp1kGd1EowRllfKsbSxfY8PiOVyq6xH6YD m/8WOmH+Ojb/qlevO6BD5LPiCUpo0HG5MHXTF+fRt4pjI0aJ7vdJBFRg8appj96hZhvHQf KtEY+gP+5Ao7sQMYTeQqKbNEi9AsPbIK+yKoVP4sbrORpGDW2PLjnyj+P7OUfwMkUAasAX +39x0pHa2zrVb3Rwxi931X2VeKDeY7yNKIX0zirc72/gyF1cUoQEeq40ch5sxA== Date: Mon, 3 Jun 2024 16:00:18 +0200 From: Miquel Raynal To: Frank Li Cc: Conor Culhane , Alexandre Belloni , linux-i3c@lists.infradead.org (moderated list:SILVACO I3C DUAL-ROLE MASTER), linux-kernel@vger.kernel.org (open list), imx@lists.linux.dev Subject: Re: [PATCH 1/1] i3c: master: svc: resend target address when get NACK Message-ID: <20240603160018.29498c2f@xps-13> In-Reply-To: <20240531163301.1401281-1-Frank.Li@nxp.com> References: <20240531163301.1401281-1-Frank.Li@nxp.com> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com Hi Frank, Frank.Li@nxp.com wrote on Fri, 31 May 2024 12:33:00 -0400: > According to I3C Spec 1.1.1, 11-Jun-2021, section: 5.1.2.2.3: >=20 > If the Controller chooses to start an I3C Message with an I3C Dynamic > Address, then special provisions shall be made because that same I3C Targ= et > may be initiating an IBI or a Controller Role Request. So, one of three > things may happen: (skip 1, 2) >=20 > 3. The Addresses match and the RnW bits also match, and so neither > Controller nor Target will ACK since both are expecting the other side to > provide ACK. As a result, each side might think it had "won" arbitration, > but neither side would continue, as each would subsequently see that the > other did not provide ACK. > ... > For either value of RnW: Due to the NACK, the Controller shall defer the > Private Write or Private Read, and should typically transmit the Target > ^^^^^^^^^^^^^^^^^^^ > Address again after a Repeated START (i.e., the next one or any one prior > ^^^^^^^^^^^^^ > to a STOP in the Frame). Since the Address Header following a Repeated > START is not arbitrated, the Controller will always win (see Section > 5.1.2.2.4). >=20 > Resend target address again if address is not 7E and controller get NACK. >=20 > Signed-off-by: Frank Li I'm not getting 100% of it, but looks okay, so: Reviewed-by: Miquel Raynal Thanks, Miqu=C3=A8l