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: 13819871 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 54923CF6D2D for ; Wed, 2 Oct 2024 14:51:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:Message-Id:Date: Subject:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=eEgBF358mQ2EG0tDWAG7mTG4bramLW8bNopqv/NbS6s=; b=N6cz8ZQPNrS8d5 idhNWkeok5pYdi9tnGLfEIHM2ZfnuZ2S3QMk/bNqyw8dDZ1el5d0jxsKVR4aPHDufVrOYqdQNty4o +FzQKw9QXwF1Cw/6r4YW+lQtbdHmZEnRt0Vg5WLHnNrifd1BT79uBarEEMQ4ZpwNNqDmoSu5y28Ct ykZMwXyyFJUOgYfq1gOasDI3hy468bNXrLoABJpzpAWeGKDtRWs1ktgEpof8MX2QEnHnuSohsD00o j98vJ2nbQHqyFqvZ+Wfz/NQPsdRj/hfE6q99n2wiRicInC6Rb/Daev5SenYkVIn1Rna8lYkW/H4+x dz4YPCJ7Z705ztSbVUow==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sw0hp-00000006Svy-225p; Wed, 02 Oct 2024 14:51:57 +0000 Received: from mail-am6eur05on20610.outbound.protection.outlook.com ([2a01:111:f403:2612::610] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sw0gs-00000006Sin-1zgP for linux-i3c@lists.infradead.org; Wed, 02 Oct 2024 14:51:00 +0000 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) 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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?7Fr5IIE1wH/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+zGUqZSz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3/Iq?= =?utf-8?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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241002_075058_823755_7107C9F2 X-CRM114-Status: UNSURE ( 7.01 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-i3c@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-i3c" Errors-To: linux-i3c-bounces+linux-i3c=archiver.kernel.org@lists.infradead.org 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