From patchwork Tue Jul 9 20:23:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13728463 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2046.outbound.protection.outlook.com [40.107.104.46]) (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 44E57149C65 for ; Tue, 9 Jul 2024 20:23:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.104.46 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720556612; cv=fail; b=dgR9pPzSX65lkHqurofvbHy2Xp5VCTbb+rPhyDgMSi9Oi7DSDnT7UyeABNkvPqBxd99E1caLq9NF5eHctLIwwpGQ+GcVkVE8cWbQfApY3YDARzUf/yGETVxMCJfXjdJ+leljIK/18FYE7QdM8N4dwEQTazJvEMPY2USxttg0lkE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720556612; c=relaxed/simple; bh=e2QBEvhSuy8S5AGa8xaacRHOS/++DQsu2K3V+/eMwnQ=; h=From:Subject:Date:Message-Id:Content-Type:To:Cc:MIME-Version; b=dCzoDCxVwpQTMbL7t9pNB0VKhHWon1lwV9DNSg9KqEnUbLEy3/CwTfMhSrNdZmwrjrkgv6t1ObOeeYaAUZ4HxkpahfkvIW2Y0cy1Cs0S71ejIiPyrEOfwr8EPptGG86jlLhyhXK5Fey3KA7ac6lghTIf4RA5ND5InQ4WMY1OaGo= 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 (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=Zze1lEcX; arc=fail smtp.client-ip=40.107.104.46 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 (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="Zze1lEcX" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SwGr7xVdf8xGOJenrRwEd1/x0kEopjIaIEhg1FnUncAVxwEi/nqSDayTnycs1DIsFeQBnNiBPv1km1h5B0TJSv31aORJ1NHfTuCea1tcQ2nMQssor0NnYSwHEbBUiOkUxTVc0GmGd6aTckboY/lCZL8rbnxnqvkLqNNI47b2vueyIhYe8IGUc62fje1OqUcUL1VjDyh3oB/yOTekLDB7uIRFCs50YlW/U45nwZ3mLlKEtuHVHChEnUgK1WEoJHsEzEw0fNM67eU/si5ubRlu3CNGj9dSHZNEhCSSKq9WFPun2zB2Q6x/n3A7KCkvCAaEqF8zb0flVHetnngxDXmixg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=3XPPZoGJdqhZGkTgeE6aCOG8BzGsj31v6OVCHdCqQ8E=; b=JbmAmB1nRFBb9BzzlUVSEYVCedo0oNIKlSpLEYOy3+rYjZrGf2B6GnvNu6WShMbrB+vN9DS0V9hNh2tb/Uf+DWtClqoNNoT27xEiX+ZTic1hR7z3K2fdyT0G07eIpamD4C4qgMEHvvOxUbI48bVRiSSnIF7xcdvAbQH+CkhTKyaM5BBL1KpgaCRuvfWewVAe57A4IOZ0MuIerpixf+86Qt9fOSIAdjLFCU7+gqmrUbDlW5qht/wFyLiWTiUBPy4PivaPjE0UqkHTFIMdvAvU9boaCExjPG2CgJ5gi1J7EfXdU3Xib7tK9pAvfH3wrMXxldQz6UlyhEvpqRUWylKiiw== 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=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3XPPZoGJdqhZGkTgeE6aCOG8BzGsj31v6OVCHdCqQ8E=; b=Zze1lEcXBwqcJ1jlBjtWJti9XkfCFQvyQH3W6BzPNbE5GE2ZuYiEAm7iFb316dj8IlzGy7Yh+crEYstgQ6EyWfxwyQdh8jG1WPySXVOTGi6V1SUKymMY+Felm6M2iS24DQbjgatxBL3bx/Hb560C2gWnRubndNUNkUwuRtZwhnU= 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 DB9PR04MB8267.eurprd04.prod.outlook.com (2603:10a6:10:24b::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.35; Tue, 9 Jul 2024 20:23:27 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%2]) with mapi id 15.20.7741.033; Tue, 9 Jul 2024 20:23:27 +0000 From: Frank Li Subject: [PATCH 0/6] EDAC: fsl-ddr, add imx9 support Date: Tue, 09 Jul 2024 16:23:01 -0400 Message-Id: <20240709-imx95_edac-v1-0-3e9c146c1b01@nxp.com> X-B4-Tracking: v=1; b=H4sIACWcjWYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDcwMT3czcCkvT+NSUxGRdIwPL5NRkIwMLExMzJaCGgqLUtMwKsGHRsbW 1AC3NNodcAAAA 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 , Ye Li , Peng Fan X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1720556601; l=1242; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=e2QBEvhSuy8S5AGa8xaacRHOS/++DQsu2K3V+/eMwnQ=; b=UuT25VB444U33AlZQXfimJKUkmesR2wWPkJ3RQ9oUugrxbDByZ+MVthhlvPNfPrx9CQPEv4+P NC7SKta7Br3CEgkDK5dQknryZ34NF6Wh0WMNuHFphFpKPx6z0WpXb98 X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR03CA0033.namprd03.prod.outlook.com (2603:10b6:a02:a8::46) 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_|DB9PR04MB8267:EE_ X-MS-Office365-Filtering-Correlation-Id: 3a4c2fbe-3c56-4f6c-99f0-08dca054fdb5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|1800799024|7416014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?U99Ar27H+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YRq5ZY4g3?= =?utf-8?q?uDPCB8FdQ3xyazpneOFriNMS3qQqtXzUuAl4baENFIaX+6IHlJfLJcMVi58T1Ystl?= =?utf-8?q?m2dQ5hIvhag+99/xdzfVmFkhgM/0cCzxwylnsTiXVJp97Wh6QEqqepmFtbotM+sls?= =?utf-8?q?O49uxC+YWDKPrHZqVwi/71NVvlQNwU/bTIuOFV8Qlf73KF1/0fIwIO0lvr4RKdiKO?= =?utf-8?q?QgqyWYv2Q5aqk+Ty22JP7t57/ur9DZpNw+zFD/FRsTLeroFo5iA633YvzVhwkypX9?= =?utf-8?q?FCL7yLmr8xe/Awj3HlPswZKiXcT1VE8x3jue+/UY6fymTlGICxxaGFdVLpJII0MNe?= =?utf-8?q?YkmFyvu4rJ3tr0rQNnKZALFZrSzXiSp08lf0Ekq1bK/e7+pib074FVQXKC3wfcjAc?= =?utf-8?q?tlecW5i5H2jR/St4W02P9V0dCfLg2SCn1g1TbUPdB2gHquoI5tzi41mvTCMhBcIBp?= =?utf-8?q?DfS/y+S2RXOJKgNKkpYZg7e37KnnjnGOXqvANEOZfLA2+rB3tVlrQJY=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)(376014)(1800799024)(7416014)(366016)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?FFCPdPpyPVfeW4bADLRGJtwGrNbk?= =?utf-8?q?cCW6OVYPQTLZ3Ktu0rZoJtYnsgS1rHjNhNpfYuV6pC679UeyP8vqcaFP7XErRh837?= =?utf-8?q?eTyFXxWmjHW5bu6/tzPoII7+8lS5LuSPXOKMQzXMBtsKYWOmmIRVVQQbvKDvmSxZW?= =?utf-8?q?/xEt6fCaCR632aypUBqOp7LztQYXh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R+vjmC3iS78YXtpjKPtcpM6fQRU4EYFCX6sj?= =?utf-8?q?G9/6x4HcjxUpVfw7Z4t+Dg377mwhUsJqBIQyCr3Mgj+XXZjBKY9n5UXCOEvLCxyRO?= =?utf-8?q?rUs8hkchGaSB9YdCfHMM2XZpnQLlKtACMdGl2kw/IF0+TtkfGaa7B8Vz4ztQmQM4l?= =?utf-8?q?+y6LxH3EY1+3vQ8jyrtSZ+OP7gMBUb63QO1rQuIyk50ir/1nEhePQCu5VvU7wdBpO?= =?utf-8?q?RZccxUieYJMv4Pt6VLaakdxHFq+Jy6Vg9bD/ifTpcGTHvL1gSLJ/+ptIOpnZ8Hcgb?= =?utf-8?q?ZRX0cGaD7Nj4yyVk+6Ux5G9tzgkvXw3YDDnPjv8Le8w9y+ESlY5l1h8JrKxlfwZov?= =?utf-8?q?iH8M7pLS3o0ud3tVWUBsGfc9Ov2zY1LllcVWx+YPWx2NF246fm6N5rY0uf7m+/7Ks?= =?utf-8?q?iP1uqsal0SfLAkCUfDVGj15kanuWYeUz9s8iuKKU6lUC5Ld3zlwZoxuW4ebtATDGj?= =?utf-8?q?TmZ9uhCipwpj?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3a4c2fbe-3c56-4f6c-99f0-08dca054fdb5 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jul 2024 20:23:27.4810 (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: tBw/ezcJRu9/XQk2iS+DMDKRQhtwbN62LIWG8eBhM3RyAVZ+TSKodqs2nOkpK2qhOXcpJSGPb4O6RpS55qtRfw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8267 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 --- Frank Li (4): EDAC: fsl_ddr: Pass down fsl_mc_pdata in ddr_in32() and ddr_out32() EDAC, fsl_ddr: Move global variable 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: 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 | 134 ++++++++++++++------- drivers/edac/fsl_ddr_edac.h | 13 ++ drivers/edac/layerscape_edac.c | 1 + 5 files changed, 141 insertions(+), 46 deletions(-) --- base-commit: 82d01fe6ee52086035b201cfa1410a3b04384257 change-id: 20240704-imx95_edac-209cec208446 Best regards, --- Frank Li