From patchwork Wed Oct 2 14:50:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13819879 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2077.outbound.protection.outlook.com [40.107.21.77]) (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 5E7A63D994 for ; Wed, 2 Oct 2024 14:50:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.77 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727880658; cv=fail; b=FBgnbACILLw1fq1SXcRsJu9djreV/jfa9CvI4tlPwYjKPXBJcfROQ407DNXwRhsvuaPJPIz61lY2SgwH1+q5rn5fj0jOek1Z78OOufGkku6iXKECwJt+VKtgqICEuHOKIkRGioylZr1j3kq2JUDDTvKZZawddcSz8/ZTJMBpvFc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727880658; c=relaxed/simple; bh=0sQUkJwg764McOVMXQNewE9+U+ZyddcK0WVIVXKgVWE=; h=From:Subject:Date:Message-Id:Content-Type:To:Cc:MIME-Version; b=RRRnNBIGB1TDGNtZ9MnB74Js6vd2Ka3eSXcSR2Nybq8hjHnNsgO+/ScQSNwZlgroC/AOTIWst16+FoM0v4fXjQ+28jC35dnwha045qnMxJMAx03aCG1z9pDxjIOw3vaLWQJ/eO8uBHQDNtOlS6CmI1EiOqP26FRM0Tn3CYPNLZw= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=Bg5X0APm; arc=fail smtp.client-ip=40.107.21.77 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="Bg5X0APm" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=V5OQsz/FVVyEOF/Lm9Djyrmp+tAMGb7qz1lWJZecBOHv8udTDei0I5/TN3tmzFsWbFioxK7opO/fvxmbj2O2HM4FmX5cUjHiG1MWFfm4InPs/qv2+FlUcU/9ap4ZLU8YTYG7gQPGujd+rym3eG8OpJ1Y4u7mCuKQA4z65Wrt7Y7i9VqhRUNw9UszFhMUX/83ndbvKO2GWE60M1IvEXHMJIaMWPI/WkY7TvfnhemxoKQSD1GkRD/aUEBc1MPF0ldih7iagQ+/sfzl2yBijrotl0lJ5TyaaCcIwIJ2htCv4Q/A9L36W/P7W9KeaeSU+rF91uxfdxRhnfEqXyvgV/2zsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=dDayDYfBFv5pbE9La5X79bAB7BYcyqlCImMG0eM57Cs=; b=rp/U8NarIlDh8aO8vsQ7stosOB85B8bj+LU92mJ/tAaQBVkb5cs/oBEVyuAYJLClqo2J3/a04xGoJ/C8b2HXeYJPH2Lj0qqVDpQlHYWpORJTUUF+GuEkHF2CjDff0F4wd4tfubq55EVDxqj2Qzp1bWeyCfQm6DaVlUr2+zmq1IiME13Ci2r5xMgxT7B6egBGYFHSzEajYvNJr0RZ+zva/CHg31fevE5basQwzHxvVBOvBc22hTDKtg+qKkYQ3sfACYyRiQFN+xz6EjQG6bLkoIh6PPevMIkSh2OMRRKdy5dWyVMwHLQPhaDYdmX9xoqxO46sgGI8c+vJ8SECr+FUzw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dDayDYfBFv5pbE9La5X79bAB7BYcyqlCImMG0eM57Cs=; b=Bg5X0APmXDppd3wHGZlIL9X3uhr7utG8yDAtoYUaIjNOB/kvMOhuZ9YVHZtasA8pnaCtNVUFy0GskGNXePSxbBEDW9resljE+KQAiZIDa3+n6xbvf4EPRvPjJkoe3jcft1uvI+/pEQb6j30JoOrjEKBeKWbpz9DXXRl5hsHvXKdLKqSglRT5JltiAOODs+3u60Wc8mC/25ODpgpu5Q+qijYRx1ORzxd7yj0defX9MkgAlqYINUBLt3gpnZYaDJUy4mMefmmUKhrZtIKdlbNkpBnES2IuVJgkHqlsaaSJDpepavY0nc6KI38nXQ2O1MG8bXOYeFkawQer4d2FNDcmCA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by AS1PR04MB9699.eurprd04.prod.outlook.com (2603:10a6:20b:482::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.27; Wed, 2 Oct 2024 14:50:51 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%4]) with mapi id 15.20.8005.024; Wed, 2 Oct 2024 14:50:51 +0000 From: Frank Li Subject: [PATCH v6 0/6] I3C: master: svc: collect all patches to improve hotjoin stability Date: Wed, 02 Oct 2024 10:50:32 -0400 Message-Id: <20241002-svc-i3c-hj-v6-0-7e6e1d3569ae@nxp.com> X-B4-Tracking: v=1; b=H4sIALhd/WYC/23MQQ7CIBCF4as0s3YMrbRBV72H6QLoVMZEaMCQm oa7i127/F/yvh0SRaYEt2aHSJkTB19jODVgnfYPQp5rQyc62QrRYsoW+WLRPdEYbfSg7NKShnp YIy28Hdh9qu04vUP8HHbuf+tfJvcoUCqhjdI0K3kd/baebXjBVEr5AixI2qqiAAAA To: Miquel Raynal , Conor Culhane , Alexandre Belloni Cc: linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, Frank Li , stable@kernel.org X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1727880649; l=1398; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=0sQUkJwg764McOVMXQNewE9+U+ZyddcK0WVIVXKgVWE=; b=0QftKsixa7pP52UNP2L7FxvDomMIULKt2UCdWJrmMEkqo7+ywFKKp5AGl35iKdTc526HkZtgN NxqFPZTWn6HC8LEbKM2h6Gsu+Ty0dKJP0q3yaXTyQDJ2hRe02UdLcHz X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR13CA0177.namprd13.prod.outlook.com (2603:10b6:a03:2c7::32) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|AS1PR04MB9699:EE_ X-MS-Office365-Filtering-Correlation-Id: ed365095-3be3-4b0e-a455-08dce2f19c30 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|52116014|366016|38350700014; X-Microsoft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A/LOZr9onyci+HAj2XUmc4VEimra4CcxtvDm0shTcNEhyhU8zpGbPw?= =?utf-8?q?WR0OIqnVjIDwH3XbXFJUFe94gADzCV+2VQq3JjV+8GlXAb0F+Z9GX0kbbcgxBJ1cG?= =?utf-8?q?0MKI2v23/k8k/jNZb1CM8EfY4P6LCTs53C9v/I4UepRaFFXaSot0tJYsz56u5mqMF?= =?utf-8?q?asBPz0HNtscDyGtPVo6RpiswIQQDszYytxOx92qoTlGXf/Lo/90+s4pRyMjDG5BIF?= =?utf-8?q?vaymJJYGDhCh2aHgCH4EjJsW9BUQmSwDu9DbkWM6YYkfK2Fk6KeLXlU4Ho86jD1Jb?= =?utf-8?q?I4wrS1zI3d7QkRrJbjIV0ZxgWR+rK2IvzsTnZijcOs7DEdB8kG/cud1xIAJtOYBIe?= =?utf-8?q?/dElU9WBd3FznbxIg6yyhoiGkwGRhPjkc7DEjRBLGgFOSctafSlt5UYnAPU7XwwJ6?= =?utf-8?q?WMJ+B5Y1pnYMXaPvpxhMVUkRkH/eL79dENQ=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(1800799024)(52116014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?aNrwnKGid3tId4hyChHfQltYGI+w?= =?utf-8?q?QBnCw24fjlA0qnFuAo3TCjKsNsXXJ8Oij9IJKCGIwyZITF+OVr3ONm88uzRlFUEoJ?= =?utf-8?q?ctS0bDMQC+U/Gayt/EgKTSj9DHtR3FW07/7SGL7BbLqVfXZ32Q2E+guSc+RZburA7?= =?utf-8?q?wiTIJHCpza+1Y/RAF/J4ADbvJLBaw8QyDr1+A8wN1VRK1Nw5uQ+zGUqZSzxfQGBNE?= =?utf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?q?pVuR6ZW5Krp7qUmUsJrnyexq5lP6oywpHfcUnWkLD8qpxdLARoc9IkESk32LXlRZv?= =?utf-8?q?bfX0EzNE4wiVwEqlO+EdvJz1L0lUiE8RFmc+J+pfyODkAQuL1N3BOzgjmCITQpelT?= =?utf-8?q?0XrZe/om8W8CHmwaxD9Z4nmI6FQp8Qw1B/U2SN4nX3pcNGK5QETO9dMIvP40467K6?= =?utf-8?q?l6nsTS12bnsIMl55Mt2Mi4jvp4uPXxdHTyUey3sbaqPbRJrj5q06YqHkjRF0h1aVf?= =?utf-8?q?1Gb40sLFIg/xy44A5SfdC4FNDHkhoKcJ8r3LRi6Nguxx4csHJCSwsYQXwBYPXVydx?= =?utf-8?q?6JyJLkjNoyYZZMs7mPqLRx6kKQ+euY/62QIXEhQItKodR+cEFsCVD5KpZeibG5vgz?= =?utf-8?q?c5eroyFuZDTznmkM+UbvPS6zKkJ77JIEBL5l9BnaVVN5SeRjDAwy5FZKvySzdrk7U?= =?utf-8?q?M1+k7IkaRmKw?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ed365095-3be3-4b0e-a455-08dce2f19c30 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Oct 2024 14:50:51.5998 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: p3zets5H5g0rw5eDKYHY2yM+JV2QFVEpBqMJeEih7AnZH/sv77I1dPs7lKCviQAKvLz/wJzTWIhYjOadd0S2SA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR04MB9699 This patches is splited from https://lore.kernel.org/linux-i3c/ZvrAuOBLgi+HtrPD@lizhi-Precision-Tower-5810/T/#t It needs more discussion about dt assign address issue about i3c framework. This series is svc driver improvement and bug fixes for hotjoin. It fixes all kinds hotjoin problem when 2 devices random hotjoin and A normal data transfer is on going. This patch version start from v5, which exact the same as old series's v4. See each patches for detail issue. Signed-off-by: Frank Li --- Changes in v6: - see each patch - Link to v5: https://lore.kernel.org/r/20241001-svc-i3c-hj-v5-0-480ab8aed849@nxp.com --- Frank Li (6): i3c: master: svc: use repeat start when IBI WIN happens i3c: master: svc: manually emit NACK/ACK for hotjoin i3c: master: svc: need check IBIWON for dynamic address assignment i3c: master: svc: use spin_lock_irqsave at svc_i3c_master_ibi_work() i3c: master: svc: wait for Manual ACK/NACK Done before next step i3c: master: svc: fix possible assignment of the same address to two devices drivers/i3c/master/svc-i3c-master.c | 124 +++++++++++++++++++++++++++--------- 1 file changed, 94 insertions(+), 30 deletions(-) --- base-commit: 77df9e4bb2224d8ffbddec04c333a9d7965dad6c change-id: 20241001-svc-i3c-hj-bbaba68cf1ea Best regards, --- Frank Li