From patchwork Wed Oct 16 20:31:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13838983 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 D78FDD2F7CC for ; Wed, 16 Oct 2024 21:46:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To: Content-Transfer-Encoding:Content-Type: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=PxCH2VEEwY3y6wn13hgFeIJFM1trJLXEda2XAeWJsRo=; b=VUoCeI9MZQBtbEuUAxeHLPDSkz 85eUyompoKD3AQvjeHIu+PF28YXWIlJlLLj4Zd80+fR3HJCWN4EoF1KolBoV3IvYaLWjwfADcnkYU KAIkRf+cvQB/sTTCxHnui6aqeQgEUl0Ib5ojeMCnXBGsstEWMt7mNGjzmAKKp7OoDHjwPWD31Zl5t IwJH4kGl0nnffaqgs6ChpgfPdCVF7wTpvUHcnqbmH5SPfUHZLcMULQp4jRvAduVfuKlWODe7gG2UA q+ZMHdqZi6+jpWkZMkBsKOY2IEsGv6bg6PB0SQ8MNXzoJtLXnPiWJlbmOX64nDgaiIXbpEv3jtsle ud/opRjw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t1Bq5-0000000D5Di-3C5n; Wed, 16 Oct 2024 21:45:53 +0000 Received: from mail-vi1eur05on20605.outbound.protection.outlook.com ([2a01:111:f403:2613::605] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t1AgB-0000000Cxa0-0qON for linux-arm-kernel@lists.infradead.org; Wed, 16 Oct 2024 20:31:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=uz7VpuHYCgRirVePzaIMc/gS3jQLEO0pwR6OxhZ092lvSkCEB+hnVopmiDuCo0ELxL0Pkw++cqfoGbdBTTx4fE+jfpc0CbkiZ6b6IssCehnSzXYI6KpkmUk5nyQBVrzVHDEar8ycAqrw+xZPv89dZoAa1ou3Q/H5ZysBM6i0VeEkTlezAOPGMET5Opi0SxHNUbQuNIoSfi0PygTapMVHG8AZMEedWyk1BL5pTi9ttit66rlta00Z4xpV3rzYknIqXQ1gJUtPlzp8tISkyCKAGjWJ5sMUitwQZGXny4/I9BxXO2cs2e/PIzC1GsvAyEB9AhEHJYjsGT8OggLMq6yhTg== 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=PxCH2VEEwY3y6wn13hgFeIJFM1trJLXEda2XAeWJsRo=; b=Hid/YvlsPXike1kP4TlViYp0dSUXhzz9drFyeMp3Xav0L5vQVGPy+7YFVMpw/JtNUimUGNlwmU7dDz1uyvjDsF+RKM1OPMi3uQMEld/LRy0pYCX954/gvRf1DG7lEmfaUhp1uqyO9VgYDQMWZQXRpH8wsfP4UhqlKTdsePWaofWQEDgkOTQYLk84YKEs85oxp/idiP3as8R446cogPzOB52yQBjf7NPF6VnaS4U4L6iLw9kPmOhyJWTYKvm6tMQZpJKEekcrjroURBIFVsyThEjCXjYy4LZVog3q9amn+cwtodhu7ZEbOfW/N0VNhkq0RBk6LIA0SIDZgXvRHexriw== 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=PxCH2VEEwY3y6wn13hgFeIJFM1trJLXEda2XAeWJsRo=; b=P+YzUHRRFTi0GavGQzeAZ/DX5p0larzlDjjP/uTiGD7yzwz1MjccRSz1vLx94mSWDfxvLkZ766tDDLotNr/necaXUttxUw3z8VWAQPf0nCy7VqdfpdoNLGR21D2Nnd8MwtCGe2lHI3bPOCSwY8Oou7Ju411nY5Cyc94VLkTVdnZfLJ5QupSF2aUzQstXM5hTfk9kxqIj/4e8Uje8nQDkT7Q5FmIIQqDl7OgyGqXoo3/k4GEFeWuC0hz0OEuq1fHcDnqlaNK7UxRP1/sOkpbyW1Trdgya/iT5TImVeobKBemTOyUD0rwEqJse417OdMDecTNN3auYuyEx9KowyyHAgQ== 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 DUZPR04MB9845.eurprd04.prod.outlook.com (2603:10a6:10:4d8::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.18; Wed, 16 Oct 2024 20:31:30 +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.8069.016; Wed, 16 Oct 2024 20:31:29 +0000 From: Frank Li Subject: [PATCH v3 0/6] EDAC/fsl-ddr: Add imx9 support Date: Wed, 16 Oct 2024 16:31:08 -0400 Message-Id: <20241016-imx95_edac-v3-0-86ae6fc2756a@nxp.com> X-B4-Tracking: v=1; b=H4sIAIwiEGcC/1WMQQ6CMBAAv0J6tma3FKSe/IcxBsoqe4CS1jQYw t8tJBo8ziQzswjkmYI4Z7PwFDmwGxLkh0zYrh6eJLlNLBQoDSfQkvvJFHdqaysVGEtWQaV1KVI wenrwtM2ut8Qdh5fz7+0dcbXfjdlvIkqQORmLurTYAF6GaTxa14t1EtUvRED8C1UKk2vKShkwx S5cluUDEVh+ndsAAAA= 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=1729110683; l=1721; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=YCIIq8J+8TqEAT9OpjtLx2fIEzkseMz+YPQVWsl21XI=; b=IOkNcGUPncxz6IvTKRviYkknyF9AA8SbLMsjcLiqn8euXKoRpeY7zXUV3D7YiteBvQPESftjX NvSaNSadM7PD7GbX+R0rjIapRFSoaf9j8l8TeH4mFJbbMF20AjH6uE5 X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR07CA0042.namprd07.prod.outlook.com (2603:10b6:a03:60::19) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|DUZPR04MB9845:EE_ X-MS-Office365-Filtering-Correlation-Id: acf56a47-0434-427c-309a-08dcee21841e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|52116014|7416014|366016|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?LeSupyN/YtyJSdAsmbRjd6IIyhg3Siy?= =?utf-8?q?jVPQXLW1+J12hJqL71FNEEdD3u4ELPH5roHZM8bzlbJk3ZyRYz1r0A/Gfbk7nfiNp?= =?utf-8?q?sbjtOmWUNhEyib3E1omYztidUFF1Ko4hKtCiVwVjwo7HH7F+9CWbwaXlBbTfcQhUm?= =?utf-8?q?WEFmgradcn9WHLsd+bdFVVC2997Ws/9aTaowtl7E32DIzWzMzSivRTf6XJxfQw9nL?= =?utf-8?q?GtvO3VEb6yRIm9GkYMczmbnMs5CAmpP1z4TdD7pgjCCTt2+lFnJZnUUgdlNniHG0k?= =?utf-8?q?K1xJY1aGqkzU6Y9wOsBdw6LAQwnyFesI7GzaqONQ2c1A5uAAVSLYhaFNacKUtZL7R?= =?utf-8?q?jRAj+DIIb+7bWGTOx1/d/12koKyUJEUzM5ABpMwFXoWtfeQ4CKVpa6MZZWjjGTDGZ?= =?utf-8?q?5N/GPwDjDJV9ZRgNquv1YwFdduRcGN3AuspkmHhNU1qqe5OTtUM4DVVsONHbZjGbg?= =?utf-8?q?XkxzsqmJhaaoILveMxnNYxOoCVmGDYXX4sEAGZqM2Fm1YkvAzciEY1dnLfjw7uetM?= =?utf-8?q?BPxol3bQT6zzgoa60zPKGD+AJEOaADYENDHGMk6TGVSpx8IS2Bi5Q1hXrzAwW94WS?= =?utf-8?q?HpnXOnX9WjDwo+YHDdkJN9jQIhuUU3oqdkfXAIjw9iwxLrST4kCm3DFnklY2RJ/aZ?= =?utf-8?q?XvuQHY38jzowvbMsic1YgnAtpRowdhakP3noJORGGn/7LHN2vZnqx7IPM5nacDUhJ?= =?utf-8?q?pBA37Y0ToFrAkQ6zosHT4JDiOypEVPsclTbjuFp7M3gfSps7+lWRuGyci5/zxJ1K8?= =?utf-8?q?/L2VvljgON5qjW9g7Rbq4g9ojE5zSuA9whn/GFMimjQs1iIPZfNla7s5fXTpgDokf?= =?utf-8?q?Wl7Lu43qvYSygeNjXwrP/bF8V/vR+XjJRfkXF3G96aW0Wiyq0BDPv75TY4qFi4tf8?= =?utf-8?q?j4bjPJk16LoOnPaFphFhvhuOy+adk/IVJvsG2JlhZRuoAfoexC7ohHHi8eETXer6/?= =?utf-8?q?QpNNX+2deVdKZfO6mESizfxSek188XSd5UxjsC5evINHJ6UizGiDZVol/CQcRAADs?= =?utf-8?q?5q3gTFnAkNmFlkBq0bSMTrBG2Jn5MeMhf9QxkrpIE/zmLP77hhRB0KDl/N+tPWJOK?= =?utf-8?q?3EcIN4yY3SDUesLonIz4bsy8gTmPL8PjIaKeCRj/zNwugEtj4Z8gJNRoPPcCXRbOB?= =?utf-8?q?ZfLTKffFBaLdx/SrBtr+BfpnseeulmEHyYLL7Vv/VchyMSIXLwv2SDPpzBUKSqkb3?= =?utf-8?q?jnv0J+CKs6IcXX2J/3AF+5A5RPXtlfkEB6ppSNFjlEf1hhEwR9begvnCInPEnPfM4?= =?utf-8?q?1Aw57LT6xfccuVzdz3oEZLyj6tQuauOMgJi8Y2SpTsIp3zjzLkKTKfDJDsRgVhaf7?= =?utf-8?q?/AJZfGY1Xyox?= 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)(52116014)(7416014)(366016)(1800799024)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0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eOG/y36eAGeyM4tUbti+CEEfD/jDvv?= =?utf-8?q?D8gC6Y7yYPs2KMM1+ij+nX7OvBymWYhMKAvgzVXGqiIO89tGDBm9L0A7EVHS2XHb2?= =?utf-8?q?CNSKyELZLvKpPEG+c3jH1XRsnYlVsXTwoN306D732yvoS52ypZ3JwN8aPzVQHXNG/?= =?utf-8?q?PGZZyDc34u6TtF5nsljqnyrpIVN4wrs0n4gh+svU5FavCGFzcMELD7Y3WQBt6VtZk?= =?utf-8?q?EFIyUTFbt8bMDiN7N4z3U7K4CVdY9vNoc/K+VKhHJtSCSqbDVsosQ5An6lKzaWT4w?= =?utf-8?q?pq6dP029Qu4a6eUA2Hp3OyjigaM90/npeUiBnlPhM9K1FgdOui4jjbL/mC3UASEEU?= =?utf-8?q?nAIda4gXQLPxUIS0llIwj0nEChJUoen8Zapu7eSS8qBaxKHjYan4pP93a795JoWOB?= =?utf-8?q?GIJLZK0FLPmC1PWFhmAe/NpVtd551PQ20BEaGMMBJS37mnI5LeE4tgBJc+9+c7Yew?= =?utf-8?q?e6zc3acHhv/aCk2Ppidjuc5U+wz305rkaDNmjHhuNZ0No5G39mfs/A26YakFv7nth?= =?utf-8?q?Tk34GnvQphvtDBiiLfh49Zm8aUvyUdU9HtbX/Pfc5cc0khm3bPjv0P5VlBq3sK7XN?= =?utf-8?q?NvYe01/vXvzCzggUJNLaND1PkbOWCUsUnqyoQRR9oFYCCBNHM7mbBGW4AOZTLAmCX?= =?utf-8?q?Eau4pkB9i18p?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: acf56a47-0434-427c-309a-08dcee21841e X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Oct 2024 20:31:29.8715 (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: GwuRHOoltfs2baGMM2vYUC1R60moP7DvjeJHGQjJ3rn9ntjTke4/R9iQcGwcHjAlN2vy0hnS3qbzBJCNc0NbSw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DUZPR04MB9845 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241016_133135_294712_BA99BE2C X-CRM114-Status: GOOD ( 10.49 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 v3: - Rebase to edac-for-next https://git.kernel.org/pub/scm/linux/kernel/git/ras/ras.git/ - Use u64 to simplify fix for bad bit shift operations - Link to v2: https://lore.kernel.org/r/20241011-imx95_edac-v2-0-011b68290951@nxp.com 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 | 132 ++++++++++++++------- drivers/edac/fsl_ddr_edac.h | 13 ++ drivers/edac/layerscape_edac.c | 1 + 5 files changed, 140 insertions(+), 45 deletions(-) --- base-commit: 0be9f1af39022beac76771eeac08256076f6b221 change-id: 20240704-imx95_edac-209cec208446 Best regards, --- Frank Li