From patchwork Wed Jan 29 20:05:51 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13954102 Received: from DB3PR0202CU003.outbound.protection.outlook.com (mail-northeuropeazon11011038.outbound.protection.outlook.com [52.101.65.38]) (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 8AFFC1DEFDD for ; Wed, 29 Jan 2025 20:06:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.65.38 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738181170; cv=fail; b=aSWUxEflnd0YL0oQlt3EBwwhxyRECIu33FL7O+g3DLf+NcTBKtJC/4K3qr9c+6KnE3ZHOjfX2B0ex/aLQWVIqN83qeBKcIp7dwDaQiBk+W+XeB8fIdE8L/X23Z9iXbCahgAwxGFw/IQM3T0fmYvarOOCnxM//WvptonDYcCQk80= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738181170; c=relaxed/simple; bh=yReafC9YdUhEJkjmv1++ghMWRJCcjW4OipPuRgfMnTk=; h=From:Subject:Date:Message-Id:Content-Type:To:Cc:MIME-Version; b=I4uoPMxQ00vCLmYeVLwDur7QY/EJcWFyY8o5djxCbDO+OYIjDHnTZFc+UIINfroWG/1nNk8xPZHZ+5gE/zMVySj1Vk5/0/PD4NpfL+8WW2bCMHCdyU7jhZE5JNp4cCa+NVJ+3FcsS9nzbWwb7f2iGzVieWKcDSiB+6eek1WmFP0= 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=YKnUfz8U; arc=fail smtp.client-ip=52.101.65.38 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="YKnUfz8U" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=iIZ472GqFwyFHx/0InrhfhEO1L6gO9RrdlKGX7uJNqHdaGPF1EoPNwQG6rGFIYCZWTXR3eb8DJuVznAub5YpQK11fEeda5el7LILYGilShxMCzKCEjs0EZFaOY5FRwh5GR0h4PembcuVjRpeFeHkKeZ1DHz9FpnqfpKQNt3Kao/jC9Fi8fK+mtRP5kD0IoSV/SFYlIMeBvq4hOnMyfJPqunCqzMylL6vz2As/LSF/47GB6mmDRbAgTJ1hc8MqEZ028wUoznwwwsiAP+xTh87LWTkDv2/T/zzarFeNGgsF1mlMyHjWo0LcvVfVBJxcJOXXhSlsJHPgZdl2jpmFKeqZg== 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=K/6eDHuJ9m0Bv7xHBPjt6VoPLEeqtNDBre/rnDFA1Ks=; b=iw78uW+OlQDiJbDvqiEmhC3/aCVf5UPBOuP1WHwKHdUXxXFh1jRjpzFxME16Uqyc2ucfPt63BShXd3UB7eZye2vo/Yqn5+AUsarpsJutWrwTG5nbwcTJnFo2ydK//UeuPStG37oDR+17y1tICUkNw2yTQRRsriIHbfddh5oHJyb+Dn606VVe84sl6R3J89wCv8hiyWJriHbh0MZuoQdp8lJJnl1tQkVob8QwvKr7F0Lrh9CLEIEaL3X2gCTguADmZwrKtegsTp2tAcp9+xDpaUL/ibq94vrt4ffHvT5DmZN4YSiKJzAXs810dJxG9XD20w6UTnD0ZDifwAR6qKz/wg== 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=K/6eDHuJ9m0Bv7xHBPjt6VoPLEeqtNDBre/rnDFA1Ks=; b=YKnUfz8Ub2KCXRZh7cH2m3HtjsP3S1IFDTCx3GoYdgRTfcgRcQCfV9uyk96Jbd1NnNbaVeeKF7X4VkDai5V/u2Cm0kqa4Vu2pDUstUPrWMBq6ZEflVAdi2mz06/+YEtgUGQSPz1ym6ivkL+4CANkfXF72l4AD8i2N3MVkgyISYDa2nhlxUw+f0CquQQ9EOWmmvIkuF0/1307b6GLuWWyYX1an59nsPvcf7P+ejXxoTLjNEHixtq9Aso8H0u0ZCzLs2xdUFkURUXniJ8ddIybQXa7SDsT4kPiHqBeRjP4DWvEmArMHdkpcLVS73nIqaonriKb8xgODCq1Zzmv0OulNQ== 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 AS8PR04MB8995.eurprd04.prod.outlook.com (2603:10a6:20b:42e::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8398.18; Wed, 29 Jan 2025 20:06:05 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%5]) with mapi id 15.20.8377.021; Wed, 29 Jan 2025 20:06:05 +0000 From: Frank Li Subject: [PATCH 0/2] i3c: Add basic HDR mode support Date: Wed, 29 Jan 2025 15:05:51 -0500 Message-Id: <20250129-i3c_ddr-v1-0-028a7a5d4324@nxp.com> X-B4-Tracking: v=1; b=H4sIAB+KmmcC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDI1MDQyNL3Uzj5PiUlCLdJENTEwsLSwPD1CQLJaDqgqLUtMwKsEnRsbW1APD 63odZAAAA To: Alexandre Belloni , Miquel Raynal , Conor Culhane Cc: linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, Frank Li X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1738181163; l=1574; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=yReafC9YdUhEJkjmv1++ghMWRJCcjW4OipPuRgfMnTk=; b=pLf71peuWYlaKdNiM+mNC4WgECQ1KC41lq2gas4oZwowTMxtPUPSSJEBSzq/EPPfKohTJFFs2 hwfc7+AZDdVCb5lpfwLrv8siCWW3XNUgHDrkXahEnd+oCp4B/W0T0/q X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BY5PR03CA0012.namprd03.prod.outlook.com (2603:10b6:a03:1e0::22) 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_|AS8PR04MB8995:EE_ X-MS-Office365-Filtering-Correlation-Id: 1a2c0a5f-9f36-43a1-8822-08dd40a05cd0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|52116014|376014|366016|7053199007|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?H+IKG0vzZ0l4X1iJUTEkyGM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brYatGKwZX?= =?utf-8?q?mPvRppsMz7DSjmcY/wWPFhA1J3sI7/9cOFh9fLoNpvuYP3khV9SPS+phw8s5JMf+Z?= =?utf-8?q?sGE9j9e+Sgl5P1PQsTL68mpYP4RFKOMQhhthL5CEo/bfbilILd/Sf5hMIXNMfllif?= =?utf-8?q?V/HB1MdPDZlcVIvcvrJ2Jz9TeiZHKRhRyLCXeshTLmSYGAb1LGkczNYq8St5P4IGN?= =?utf-8?q?YLUg8la08dQDpNrgaTN52qqyljg2zt36tLbA7r//oR4a6sY6qPbdazMnyzxroECy4?= =?utf-8?q?mKwFYETJFyLrHAoowW2dYpNtDjUdXJYCfm4Z+02mdJV4CBegnp/Bh7fURYErQOyQM?= =?utf-8?q?XOjYd69DD1VeoJ39s6CAPd7DJZXB+kefvD6nm4uZi0z0P6UycCTqRyWugTKJs2bUS?= =?utf-8?q?RMAFgRzgW7SFoiJzpXCdg59BOM+BSMHJsGRsHm+6w7qjq/xDRqpsILEeSaEWUmjHR?= =?utf-8?q?3zhJkp/IVCwHSxjFPSaRKIT8QkrFncJZXej6KzqiGniuui3O1FYxm2Ol6NO3ChuYC?= =?utf-8?q?Ryp3Ebx8onm?= 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)(1800799024)(52116014)(376014)(366016)(7053199007)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?lBD5/9FOtgcN4OmfhZYZo0bXkRlP?= =?utf-8?q?SxYcatKZqXFVSSksvHfsDgLy0g8VhVvefKfMeUPb6FUiLeOOE0C0w5A86m+kjbNDk?= =?utf-8?q?jCUkTHUaYuMCsmVH5Mo/NXU8Ht5ccVbXy65Ue7B1rH/rk8RF3kZor2dWgZIMyPN60?= =?utf-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utf-8?q?NFRtvSrjuyc/L7ucuVn5sLc+AW6xDdtL0dVSA7ZsHJM/9ZBp4Y0l+TQaMuaEKpzyw?= =?utf-8?q?xDJHxIYyPtF89ckQcE0iQhIs7wL1g4dCp4BujJWkXZ6SjRYdptwXfuqP9INuenFXf?= =?utf-8?q?XD0DwG3CAoEcb37xJIysh2G0n6QthYuPaCi4sxzD2/6h2kEYwct5tkJYtBhYw9Y22?= =?utf-8?q?th2Vr3bLOx1+6HK+AHUWBOGUv1aBFsLJLodyxhtaeD8LC5zcgeKY7YppbYvfftEah?= =?utf-8?q?DAnXhU2xTtboazikRDCq6VUh+BoKm+jDF+ESciywqetjVKTDdSm1Xsi59Zmzc3XjX?= =?utf-8?q?GAkNUMsXg+UjEpBql6zsFj85zOY1QDZZrWk8NoiGnY0qADcGqaxhTwP0xy5ahZsJX?= =?utf-8?q?ZadZZGlCSqYlWuK+CnE5E+SSQdZ/AVPTLgs+ZV5fNZ9gde28Pw++yerDtUHr6Or6F?= =?utf-8?q?cgHobsQXb7O2q2WW1v9OWSVezJoLSE/umBXURakgMLsh6e5zElIy8MEhkhL+B7jQw?= =?utf-8?q?42Wpbjir1eex?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1a2c0a5f-9f36-43a1-8822-08dd40a05cd0 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jan 2025 20:06:05.3784 (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: +5wmHgUoRS4VnWPxu23f2Yu+ETYO45qITh/e4RsOM9qaDWeoT1gEh4292s9m+cenBc8zV4CR4UtoPnoy8qrEUw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8995 Add basic HDR mode support, only support private transfer, not support CCC command. Update i3c framework API to allow pass down mode and extend driver callback function. Implement HDR transfer in svc i3c master driver. Simplifed HDR flow is (ref i3c spec line 5514) Figure 129 <-- SDR ---> | <--- HDR START 0x7E RnW(0) ACK CCC(ENTHDR0) T HDR-CMD(00-7f write, 80--ff read) ----> | HDR-DATA HDR-CRC HDR-RESTART .... HDR-EXIT Note: HDR-CMD is 16bit data, which included 7bit slave address and 8bit read/write command. svc hardware can auto issue SDR part. To: Alexandre Belloni To: Miquel Raynal To: Conor Culhane Cc: linux-i3c@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: imx@lists.linux.dev Signed-off-by: Frank Li --- Frank Li (2): i3c: Add basic HDR support i3c: master: svc: Add basic HDR mode support drivers/i3c/device.c | 19 ++++++---- drivers/i3c/internals.h | 2 +- drivers/i3c/master.c | 8 ++++- drivers/i3c/master/svc-i3c-master.c | 69 +++++++++++++++++++++++++++---------- include/linux/i3c/device.h | 12 ++++++- include/linux/i3c/master.h | 3 ++ 6 files changed, 86 insertions(+), 27 deletions(-) --- base-commit: 66408a65f3db566c45fd7658fa7bc0b17aaa4807 change-id: 20250129-i3c_ddr-b15488901eb8 Best regards, --- Frank Li