From patchwork Fri Oct 11 15:31:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13832669 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2052.outbound.protection.outlook.com [40.107.22.52]) (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 0D9B519414E; Fri, 11 Oct 2024 15:31:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.52 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728660715; cv=fail; b=lz1ccsaDLSz2lsQO8ZaT8gHHjVunxn501N6WMf+8R97LE08ZJIpV7SKsCb8tj8ix0aQ6cn7QFyfy4QAHOUE2CF9F7zIHHXS9Swm+22LHTMPTcxxB3xlkyRP4vWMAImZia00DB446JMHFIVowD1UaQKD5U6/rslc45yJoNzIDsEU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728660715; c=relaxed/simple; bh=j9MZ4TNVoeLO9BixZfmAagJeHikAPehVHiMV1OgVW5k=; h=From:Subject:Date:Message-Id:Content-Type:To:Cc:MIME-Version; b=WQ0VOrcqhOukZ/zbhPGBbpIu3erBJ9QaYNqXYGbLhf+1WO6C1H/sOeLQSU7IK2FDybHxLz5DI5hH5m+Ibhe1v50EWclB/Kd63g89SJ7DnW3GZUtCnpnghMix1cUfZeZPuiByDOHGzBFOhpC8d8m9Setm8+xwJ+LMbqGt0AETm4k= 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=fQhrccy5; arc=fail smtp.client-ip=40.107.22.52 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="fQhrccy5" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=FTIJVZf7mMnfcfp819SQMw+ChcOarLuJbHIjkvKgGdBFXOxZTHMChtDgjT5pPYzoKFyGTp4h6nrGHYg1lz9SBRa3EqOW1JphE909joE9gklwbQn3kaqaRK7C2Wevu0YFiRfXkDQn6Dfmh8wDxUdlMje6/FVyxF4amFeOcUjHz7w4yk15q+6oTOQPNRL6IjzMDkHqvxA3FTWYKyKX38rMF7HCPxU541mMDMFz3IGqEKVAMzf0Su0BZ0YSxltbpucj9cIxHUqKeutbSb3aWpfO2Mnsx9Br12rqQNxiMtpi3a12n1RQ54usCWxisyhvWn7d/7A+HxzyPuxjLhBAj79nJA== 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=M3T3e34lLgn5+XQqRIUQPGVlhuNfAaLlSsuTKPZQIIw=; b=R++Kn8Xvd0Q5OikJU5geuu1rxfYPEGth6VrTWAjhDZl55BHY22N0nj8cNP7ujEkVO7bv4pYwiQ19ybctJgXDj7ul5POucy3y8msrU6nmLSLda6EUY8OTwGGad97rPqzD3wEYH7ywLwJyjT3dzgn4gce2F4X8DgvHdqAYLujHw3NoBq3NhkeFi/x/lsznGGyQcJtieY0frgm5xeIoWIihIsddQr88ebjqrBLKWikjv2t7b56ETtHIBI8j1IaOTb3C8aKYYsDq89s7Lk/07nJli6RbSQ+xQ/ti/Ako+9RJLC4bhLM6VGjxX3EAywZ1qEx2hn+FTdYMgKy0YnziSpAuKA== 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=M3T3e34lLgn5+XQqRIUQPGVlhuNfAaLlSsuTKPZQIIw=; b=fQhrccy5uZ6Y56LAoJTnK5eO4BqbOjkLxYgiFj2vqIM7JugrTFSd33+KnlPr58dQ/b5/5EBjPDr1d7FjC0+O79inxK4u76rtApj1k5GIaG83iXNGqS6IcSoo4ACjJ3Bj5jqM7KDL7trDrd1WHRuHvi9tp9vu77tONeDTwiHJb26HlYUxsUAHN8SQ0uh2G8Op9T71TkOh0LvBsWrM0aSoXNFbjZO0JdYXIlk7R1z5WSBtr31GJwSYrIVRL3Qx7EHB/Nr7njvTJL9/wEPTyGfykXrkiH9fXZzLKpsuWDn6KxGfV1L57vg8vXHFKEmU+/7ur3rquJ/qG5dHzt6j3r0Gcg== 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 AM7PR04MB7064.eurprd04.prod.outlook.com (2603:10a6:20b:118::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.20; Fri, 11 Oct 2024 15:31:50 +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.8048.013; Fri, 11 Oct 2024 15:31:49 +0000 From: Frank Li Subject: [PATCH v2 0/6] EDAC/fsl-ddr: Add imx9 support Date: Fri, 11 Oct 2024 11:31:28 -0400 Message-Id: <20241011-imx95_edac-v2-0-011b68290951@nxp.com> X-B4-Tracking: v=1; b=H4sIANBECWcC/03MQQrCMBCF4auUWRuZxFhNV95DitTpaGfRpiQSI qV3NxYEl/+D9y0QOQhHaKoFAieJ4qcSZlcBDd30ZCV9aTBoLJ7QKhmzO96470gZdMRk8GxtDeU wB35I3rBrW3qQ+PLhvdlJf9cf4/6ZpBWqAzvStiZ9R32Z8rwnP0K7rusHahp1n6IAAAA= To: York Sun , Borislav Petkov , Tony Luck , James Morse , Mauro Carvalho Chehab , Robert Richter , Krzysztof Kozlowski , Rob Herring , Conor Dooley , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, Borislav Petkov , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Frank Li , Priyanka Singh , Sherry Sun , Li Yang , Krzysztof Kozlowski , Ye Li , Peng Fan X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1728660703; l=1472; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=j9MZ4TNVoeLO9BixZfmAagJeHikAPehVHiMV1OgVW5k=; b=Tmqci9VYLeCfWzwEaQ7T+UuJEb+Laz/5x49EvjNAUZ3ww8R/Jup3euEtgd+jrk8utm4kUm8rA +bXxp47557HDubDedg/eQu3ilfxp/3jfdZqCzi4iIkGr57+VZ9dHpI6 X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BY3PR04CA0014.namprd04.prod.outlook.com (2603:10b6:a03:217::19) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-edac@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|AM7PR04MB7064:EE_ X-MS-Office365-Filtering-Correlation-Id: 628d19f6-063c-485e-3496-08dcea09d31f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|7416014|376014|366016|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?hTDmojeDtXaY5hOl8Ihu6YWq+744PKM?= =?utf-8?q?zwuOzVlFrNNMKc8VAbKKf/j0tyjNju3UuVafBE26WyAun7AZI6iQHTYU4an8KPMNo?= =?utf-8?q?VomFAE4I2BMDC1RnWmGAUAyqkA39WBi7crto5EpDODjQTut6XFv/sj0ffA3iSEI+l?= =?utf-8?q?/ksTwVnHprj7DQpLwQ/x3UwCUyDEYOUnvgdEvys6EqKzefySqv7IcIkdaGQZXMlCk?= =?utf-8?q?XxklASYOKc0RpNXbLuk6nssJPtwwqFsK/wP636N8vzU8FYOwTek6nf/Q1DS/TiF5p?= =?utf-8?q?QC/ro1aJ1ZDXoAiYXO1aoe7Bpa+wSYGVaYil+UG+Lfu1rRp6oX2eUthwVnVzWmMNQ?= =?utf-8?q?yimUBO9bzaWCY5JQSHE7dgy4/xdHDHO5if0GtfHPAeASqjVgCg7zU2A7s3bJP6UeR?= =?utf-8?q?lWUb0j4nGBNFgpN8Al5QRJOz61lw8HPx3eSqr2uYvyzTCPaTPmU7EsIdmtdYIW6tO?= =?utf-8?q?EJpl8Ten5JFZ0NkgHSraK0uvC2pWn3mHQf3kiS1e3fzbUrpuKeA9ft+KQB/lj/V9L?= =?utf-8?q?6IKvj8b3BKPsDHKP4OPqHeJp5PvIdoBrTGkmKLuYMVy0rwFX0crJSy9Qmh6ykBuoS?= =?utf-8?q?JL+0glB/BRLO5N3TlQyVVr0o6RropMDx0r/e7FJx3V1em2Rtcfbh3K49ZGiSS3+LT?= =?utf-8?q?3bRvD2SGK1Epl23X9pLMEvt8U8CSK/uTVjFikPPDEtzvy8q+l8YabwYOU+35SPQR6?= =?utf-8?q?K771/LWQHZHLcvmdDvdxUOlzTfo9giwasQ6BvJQxX0ldLi3NutsiGkLMyBnSukDwQ?= =?utf-8?q?AFoyTVbI/4CBp6ZnYUorxTZw+pjht8xfT+yCXxx0qn+BvdzehfaI8k5CJuAfKAAbI?= =?utf-8?q?8NiNP5OQF2bM0Qy1kHdnoEwJKYsM26EUDmnO7trczAHwgj8IXHyIRGyx276/3l2RI?= =?utf-8?q?HUf2P5QU9ZcsOhe6CbfI8pOeZ9tZTrmBZ0BxlKFnZT/ccq3uIKthCPhZoP0OHWIcb?= =?utf-8?q?fU5tV1kmamEFCvI2j8gf/AvhW97Tgq06qA25376swJ88YYVJxzopKaEvzthHBXWW9?= =?utf-8?q?CJDGHKlcpl2HOnD+nbD3qLFadFxk1lDA92lG7usTOhog4cMUQ9zrpKobUiQu6gBxg?= =?utf-8?q?zB3lqZ6cGiJKqxO4NAdA//pGFJRwJwy0yEJwX4s56iApSR1V+dfqV91EbfIjZV0VF?= =?utf-8?q?sSrNwDqJuZGFxJjTIdv6jvOwnrdRPy2C4VCMlMJGFqVJdqyxlXv8Epymi7ri2oKIV?= =?utf-8?q?gbtG1qf0fUe2j11yrIj1iqrBgPTtE/cxOIjrxh1p8KsOXIGduMhZGtOlw6ySeTfRs?= =?utf-8?q?ypjkmwyAlYT/5AyF9brCQyLeSgOcv6RcJ5/KvLzl0acJ4/KHmwSqxATU=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)(52116014)(7416014)(376014)(366016)(1800799024)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?xf22nwHS2EEzwgdFan83FvfqZfwS?= =?utf-8?q?b+70RRS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6MwkeDTGTnF1Ir6ttz3e9g8SuRspBjzmmCb5E4exxNjJmLf3gn/j2?= =?utf-8?q?aG4OAqUxXQ71JiRiOHg8mojGr+1JCUr1wqhtb8oji8CMAdFzFkmrSQUeDuHVGSIEQ?= =?utf-8?q?xh8X4S/OvoNtRyrLmNTy3NvBkXjChkZziq9sNFZrOCI4oJQmy3mx9sSyJHhE6pWis?= =?utf-8?q?6P62BrN+isEWM1D8pGzwftFRaYbffl70k0F5us2ve+v2ADEFPcnHMel2UZOV1LgFp?= =?utf-8?q?Omv4a45jcPoxEbSEhI10AihFfhLVUH5VfkENyiBdNmjVWfd8TB47//GSrT3iddrlL?= =?utf-8?q?JqXouvxZxfB73ynCfqeT4kWk82wzNGb3hfHddyvdhgPNrKts0IFflJ4wcTyvZnswE?= =?utf-8?q?tmqrqY8gLwU9d/PBYUqM8qorNyiQT2B8Tp2iFtzFFTh0uNY5MBQTnLPwwWn5yOGoU?= =?utf-8?q?vI9x7kqU1uciVMtxw4TKfRmfc6Q8NRhcp+Al6zBLZxldHgDszNC7Y4hCmWnJSDVFj?= =?utf-8?q?WJvdSp0lBLzTO9lK1bEGglKt97GSy4kRQiAkLMnpUL478hzmleXWLP/aACB4zZpLo?= =?utf-8?q?KtoncTf8iOlSabnI5QFcdak5Ga7OCdaoxtBPj5HyYXn1qpRr04++cTJijqI3jD+72?= =?utf-8?q?DSWUWrh33GbF?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 628d19f6-063c-485e-3496-08dcea09d31f X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Oct 2024 15:31:49.8485 (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: MhQtIPcqyeqHRHzqsTsmf8CbbQklbJbG/2gCMpbK2IJs53LBZar5PPeo+v+B0adb29HER/cr68aNClWCH2smhw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR04MB7064 Add imx9 support for fsl-ddr. Patch 1-2 is prepare patch, no function chagne Patch 3 is small fix for bit shift Patch 4 is dt binding patch. Patch 5 is driver change to support imx9 Patch 6 is imx93 dts change Signed-off-by: Frank Li --- Changes in v2: - Fix first patch build error. - Rewrite commit message with AI help. - Add Krzysztof'r review tag for binding doc. - Link to v1: https://lore.kernel.org/r/20240709-imx95_edac-v1-0-3e9c146c1b01@nxp.com --- Frank Li (4): EDAC/fsl_ddr: Pass down fsl_mc_pdata in ddr_in32() and ddr_out32() EDAC/fsl_ddr: Move global variables into struct fsl_mc_pdata dt-bindings: memory: fsl: Add compatible string nxp,imx9-memory-controller arm64: dts: imx93: add ddr edac support Priyanka Singh (1): EDAC/fsl_ddr: Fix bad bit shift operations Ye Li (1): EDAC/fsl_ddr: Add support for i.MX9 DDR controller .../bindings/memory-controllers/fsl/fsl,ddr.yaml | 31 ++++- arch/arm64/boot/dts/freescale/imx93.dtsi | 8 ++ drivers/edac/fsl_ddr_edac.c | 136 ++++++++++++++------- drivers/edac/fsl_ddr_edac.h | 13 ++ drivers/edac/layerscape_edac.c | 1 + 5 files changed, 142 insertions(+), 47 deletions(-) --- base-commit: 0cca97bf23640ff68a6e8a74e9b6659fdc27f48c change-id: 20240704-imx95_edac-209cec208446 Best regards, --- Frank Li