{"id":2223554,"url":"http://patchwork.ozlabs.org/api/patches/2223554/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/20260415152152.3048491-3-u-kumar1@ti.com/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260415152152.3048491-3-u-kumar1@ti.com>","list_archive_url":null,"date":"2026-04-15T15:21:51","name":"[v2,2/3] arch: mach-k3: j721s2_init: Add workaround for errata i2437","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"17228d14d92da497a276184be0b4b381176fed2e","submitter":{"id":86225,"url":"http://patchwork.ozlabs.org/api/people/86225/?format=json","name":"Udit Kumar","email":"u-kumar1@ti.com"},"delegate":{"id":3651,"url":"http://patchwork.ozlabs.org/api/users/3651/?format=json","username":"trini","first_name":"Tom","last_name":"Rini","email":"trini@ti.com"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/20260415152152.3048491-3-u-kumar1@ti.com/mbox/","series":[{"id":500003,"url":"http://patchwork.ozlabs.org/api/series/500003/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=500003","date":"2026-04-15T15:21:49","name":"j721s2: j784s4: Add workaround for errata i2437","version":2,"mbox":"http://patchwork.ozlabs.org/series/500003/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2223554/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2223554/checks/","tags":{},"related":[],"headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=ti.com header.i=@ti.com header.a=rsa-sha256\n header.s=selector1 header.b=ffhAay8U;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)","phobos.denx.de;\n dmarc=pass (p=quarantine dis=none) header.from=ti.com","phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de","phobos.denx.de;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=ti.com header.i=@ti.com header.b=\"ffhAay8U\";\n\tdkim-atps=neutral","phobos.denx.de;\n dmarc=pass (p=quarantine dis=none) header.from=ti.com","phobos.denx.de; spf=pass smtp.mailfrom=u-kumar1@ti.com"],"Received":["from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fwlJL1hH2z1yHc\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 16 Apr 2026 01:22:42 +1000 (AEST)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 62D7D841D6;\n\tWed, 15 Apr 2026 17:22:32 +0200 (CEST)","by phobos.denx.de (Postfix, from userid 109)\n id BCBCA83936; Wed, 15 Apr 2026 17:22:30 +0200 (CEST)","from SN4PR2101CU001.outbound.protection.outlook.com\n (mail-southcentralusazlp170120001.outbound.protection.outlook.com\n [IPv6:2a01:111:f403:c10d::1])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 66F4A84201\n for <u-boot@lists.denx.de>; Wed, 15 Apr 2026 17:22:28 +0200 (CEST)","from SJ0PR05CA0116.namprd05.prod.outlook.com (2603:10b6:a03:334::31)\n by SA2PR10MB4569.namprd10.prod.outlook.com (2603:10b6:806:111::11)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9769.48; Wed, 15 Apr\n 2026 15:22:24 +0000","from SJ5PEPF000001F7.namprd05.prod.outlook.com\n (2603:10b6:a03:334:cafe::31) by SJ0PR05CA0116.outlook.office365.com\n (2603:10b6:a03:334::31) with Microsoft SMTP Server (version=TLS1_3,\n cipher=TLS_AES_256_GCM_SHA384) id 15.20.9769.46 via Frontend Transport; Wed,\n 15 Apr 2026 15:22:24 +0000","from flwvzet200.ext.ti.com (198.47.21.194) by\n SJ5PEPF000001F7.mail.protection.outlook.com (10.167.242.75) with Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.9769.17 via Frontend Transport; Wed, 15 Apr 2026 15:22:23 +0000","from DFLE210.ent.ti.com (10.64.6.68) by flwvzet200.ext.ti.com\n (10.248.192.31) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Wed, 15 Apr\n 2026 10:22:09 -0500","from DFLE207.ent.ti.com (10.64.6.65) by DFLE210.ent.ti.com\n (10.64.6.68) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Wed, 15 Apr\n 2026 10:22:09 -0500","from lelvem-mr06.itg.ti.com (10.180.75.8) by DFLE207.ent.ti.com\n (10.64.6.65) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20 via Frontend\n Transport; Wed, 15 Apr 2026 10:22:09 -0500","from udit-HP-Z2-Tower-G9-Workstation-Desktop-PC.dhcp.ti.com\n (udit-hp-z2-tower-g9-workstation-desktop-pc.dhcp.ti.com [10.24.53.178])\n by lelvem-mr06.itg.ti.com (8.18.1/8.18.1) with ESMTP id 63FFM0uk2222771;\n Wed, 15 Apr 2026 10:22:06 -0500"],"X-Spam-Checker-Version":"SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-1.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,\n DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO,\n RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,T_SPF_PERMERROR autolearn=no\n autolearn_force=no version=3.4.2","ARC-Seal":"i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;\n b=yLXFsxFcWmcUZKi3k6z5Tjiv6gfLg8rym2KNRbC8yf6AE+wq0d0TJF6BGVjjde0E67Qusf6eApo673bZ0p1UK9XDU0nyEfeL1c8YR9GJCb8GvPeXVcXd0H2RwThjcqedgHJqjc+BRZAmvjNtuj/hiIOQ8kxqpHpc+15EnnYoTMZk9pPkkMI7O3s6BWFPZiq3Z5NE1A0PYI8JNvt4mo3/UDc0kX41w8YnOm1hb9MfZ3w3JwVoTyBLIQK5NNtYGMHkqXLgE0hHmJxF04P371bQaVCQJjTVNeztTD+d/vhqLpRBPaHVwL+h6fcqmPRFPgclOeJybflKaW9tvIlbnyH8GQ==","ARC-Message-Signature":"i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector10001;\n 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;\n bh=aBa3pbYxyH6OGWOJH1zxZkWx4uuBMFUAaf4A+kKjrJQ=;\n b=CQ//HuQruw0vQOtJXo5+uV69utasLc4i+vug4xJddT1dimp5XYWutHAHpEiVjy57glNh0fOlohcU1OCQUAGkBwEh0sAfRl1fICtmEeeRuoFgsrHSdsiZP02GHthQdDm+aXvERx8+Dz+CuWtbsoMKmyfZ4spY+/s7ykSD+6gM+RZ8pLvxHqfVyVMWSv2DQK216jT4Vq447yJafWbWLX1f7h4kY4qnCWee+P09eoVKZno5OYnvaD7h9x9hZOqXbTjZ7/JDfyU/mtLfyxwzLytHq8edk8C7fmRIep124BUIaZDCmFVxfd4g+rqSXJFl7wPq9FaVMORhni3vHDOV/8mNgg==","ARC-Authentication-Results":"i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 198.47.21.194) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=ti.com;\n dmarc=pass (p=quarantine sp=none pct=100) action=none header.from=ti.com;\n dkim=none (message not signed); arc=none (0)","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=selector1;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=aBa3pbYxyH6OGWOJH1zxZkWx4uuBMFUAaf4A+kKjrJQ=;\n b=ffhAay8Um81wExEALBXiXm0aEYWrzyaGwk/Lxwd4NpQwVunDnIyip8K2C+uE1+pn8v2DuJhTbUrBes7ZMXch3RditeoY9sYmNa7tmmWcMRybgtuDBTBxogbdWGRujD5JUuhJvAr9JJztgBBz1K2uKf0eje1XG9nmbAdU4ur0RJw=","X-MS-Exchange-Authentication-Results":"spf=pass (sender IP is 198.47.21.194)\n smtp.mailfrom=ti.com; dkim=none (message not signed) header.d=none;\n dmarc=pass\n action=none header.from=ti.com;","Received-SPF":"Pass (protection.outlook.com: domain of ti.com designates\n 198.47.21.194 as permitted sender) receiver=protection.outlook.com;\n client-ip=198.47.21.194; helo=flwvzet200.ext.ti.com; pr=C","From":"Udit Kumar <u-kumar1@ti.com>","To":"<vigneshr@ti.com>, <trini@konsulko.com>, <m-chawdhry@ti.com>","CC":"<bb@ti.com>, <n-francis@ti.com>, <nm@ti.com>, <gehariprasath@ti.com>,\n <u-boot@lists.denx.de>, Udit Kumar <u-kumar1@ti.com>","Subject":"[PATCH v2 2/3] arch: mach-k3: j721s2_init: Add workaround for errata\n i2437","Date":"Wed, 15 Apr 2026 20:51:51 +0530","Message-ID":"<20260415152152.3048491-3-u-kumar1@ti.com>","X-Mailer":"git-send-email 2.34.1","In-Reply-To":"<20260415152152.3048491-1-u-kumar1@ti.com>","References":"<20260415152152.3048491-1-u-kumar1@ti.com>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Content-Type":"text/plain","X-C2ProcessedOrg":"333ef613-75bf-4e12-a4b1-8e3623f5dcea","X-EOPAttributedMessage":"0","X-MS-PublicTrafficType":"Email","X-MS-TrafficTypeDiagnostic":"SJ5PEPF000001F7:EE_|SA2PR10MB4569:EE_","X-MS-Office365-Filtering-Correlation-Id":"2b80a0fd-b1de-4b4e-cda7-08de9b02cb69","X-MS-Exchange-SenderADCheck":"1","X-MS-Exchange-AntiSpam-Relay":"0","X-Microsoft-Antispam":"BCL:0;\n ARA:13230040|1800799024|36860700016|82310400026|376014|18002099003|22082099003|56012099003;","X-Microsoft-Antispam-Message-Info":"\n DntW+N6o7u45qcwHWP6b8A1Z62veccN2ZAgJ/vZMDATjL/vzz9US7LJd4lnQYe1zqqcSfM5uWShfVYM5MF8WAV5Ykg7/Y0AcsXytiZPwzerVngijxPhLuw2KqgElzgoaJOuLpukcB1OliUpYdiTN+uu2cphASVh2M6mzQRJ2NGMj1gMAc/F9kCB3QHQJfd8NLCpuN8lVxogPt/xBD5w4VPKLspOEyPOIWQH9aDCpvkhvskRAoRUkFbxJKmah7GM8qaD9Lg1iBDRNdsWO7Un6rLYUDQktjpjOvL+mv0HqQolWjlGXkTqRvX5p2riwB+z0dHZ8t1yviRC74WqZaYreB+vVLMt+v53wcytbdJC2yxN2RMPGbj2HOWBcI1qVgtvVArvjniAa4ZKeHoVowDmngTA55YhNmJ9B70qY32JphBJT9O98GLmUaphAvFqMWNcVey3T2fqc0dDiVXMc7d2KPcMrAprDn9mnAn+imKl++YzrPpyvxnEZz26uOb7pxHL2JSy/l5zB4tV2agVdjAIy8iYW27ljkjxF640Dd2EBFd5wNngvO3Ix3jFwjJJA2A8L2q9rqint7CpRafkvyNkWC9in0qPzI1n5nhH0gvEau2r4oMd/+jLgIliWbQgTH1YpjbYpscenaDz1KraepYTKi+6198VjjHsac6tx/7RqcGCgKWmmcjfvsq2KE39v2fcJaCOqPc98HA62e6aHX/Hkris0UoE6EOHIVXXIWqvefpM4kJFUk93eIdlh5yXRvA52UU84rKSj3f2SY6bjB6fcsg==","X-Forefront-Antispam-Report":"CIP:198.47.21.194; CTRY:US; LANG:en; SCL:1; SRV:;\n IPV:NLI; SFV:NSPM; H:flwvzet200.ext.ti.com; PTR:ErrorRetry; CAT:NONE;\n SFS:(13230040)(1800799024)(36860700016)(82310400026)(376014)(18002099003)(22082099003)(56012099003);\n DIR:OUT; SFP:1101;","X-MS-Exchange-AntiSpam-MessageData-ChunkCount":"1","X-MS-Exchange-AntiSpam-MessageData-0":"\n ndh0SDCRhfxR3bR9lyrih9INJiYkRrokVtoaLVmclt2SOq8KN/W3KZo3hcDEYbh+R9jEsY1XqObo1djbqwOmmdQv/gmTrEvQ2fsSqaWwH9jBgem+9xWqqjVxXV5xZ6vZVnrbTzDhifxPh2ZwRhb1bFihUY5PWc66qumA6Bklp8s9zXPp9tAq0JdiEsX31vAAtBFhiQ0uF9HQlXapvf6i5xhOOymIA+CpuP2vQe3215XOhSaV2fxfRjE/gXfeL+MJQWRYu+LE4NpGmQ+/NsEFFOMf3cot6PdQqB7VG/eO31MQ68bbAeRadhaQpTwoiRGwf/EE8dIxdLcZYDaA3FwR0NJMRlQl142xUHgbtlJwkRvaxDKjLPasG4sAEHZS7bpIwQxPaBkjVVkxIObwhASVmguydheGSdBxl3Z+BwjRZp/Py+mCNZbHGPW411XjLA+R","X-OriginatorOrg":"ti.com","X-MS-Exchange-CrossTenant-OriginalArrivalTime":"15 Apr 2026 15:22:23.6837 (UTC)","X-MS-Exchange-CrossTenant-Network-Message-Id":"\n 2b80a0fd-b1de-4b4e-cda7-08de9b02cb69","X-MS-Exchange-CrossTenant-Id":"e5b49634-450b-4709-8abb-1e2b19b982b7","X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp":"\n TenantId=e5b49634-450b-4709-8abb-1e2b19b982b7; Ip=[198.47.21.194];\n Helo=[flwvzet200.ext.ti.com]","X-MS-Exchange-CrossTenant-AuthSource":"\n SJ5PEPF000001F7.namprd05.prod.outlook.com","X-MS-Exchange-CrossTenant-AuthAs":"Anonymous","X-MS-Exchange-CrossTenant-FromEntityHeader":"HybridOnPrem","X-MS-Exchange-Transport-CrossTenantHeadersStamped":"SA2PR10MB4569","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.39","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<https://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>","X-Virus-Scanned":"clamav-milter 0.103.8 at phobos.denx.de","X-Virus-Status":"Clean"},"content":"From: Neha Malcom Francis <n-francis@ti.com>\n\nAdd the workaround proposed for J721S2 errata i2437 (link) for SE\nclock-gating turning off too early. Without this, a hardware bug present\nin C7120 leads to C7120 CPU hanging.\n\nLink: https://www.ti.com/lit/pdf/sprz530\nSigned-off-by: Neha Malcom Francis <n-francis@ti.com>\nSigned-off-by: Udit Kumar <u-kumar1@ti.com>\n---\n arch/arm/mach-k3/j721s2/j721s2_init.c | 39 +++++++++++++++++++++++++++\n 1 file changed, 39 insertions(+)","diff":"diff --git a/arch/arm/mach-k3/j721s2/j721s2_init.c b/arch/arm/mach-k3/j721s2/j721s2_init.c\nindex b5453d8895d..780d853423f 100644\n--- a/arch/arm/mach-k3/j721s2/j721s2_init.c\n+++ b/arch/arm/mach-k3/j721s2/j721s2_init.c\n@@ -40,6 +40,15 @@\n #define NB_THREADMAP_BIT1\t\t\t\tBIT(1)\n #define NB_THREADMAP_BIT2\t\t\t\tBIT(2)\n \n+/*\n+ * RAT mapping for errata ID: i2437\n+ */\n+#define RAT_ERRATA_2437_BASE_REGION0\t\t0x40f90000\n+#define RAT_ERRATA_2437_IN_ADDR\t\t\t0xc0000000\n+#define RAT_ERRATA_2437_OUT_ADDR_U\t\t0x0000004d\n+#define RAT_ERRATA_2437_OUT_ADDR_L\t\t0x21000000\n+#define RAT_ERRATA_2437_CTRL\t\t\t0x80000010\n+\n struct fwl_data cbass_hc_cfg0_fwls[] = {\n \t{ \"PCIE0_CFG\", 2577, 7 },\n \t{ \"EMMC8SS0_CFG\", 2579, 4 },\n@@ -346,6 +355,36 @@ void board_init_f(ulong dummy)\n \t\tif (ret)\n \t\t\tprintf(\"AVS init failed: %d\\n\", ret);\n \t}\n+\n+\tif (IS_ENABLED(CONFIG_CPU_V7R)) {\n+\t\t/*\n+\t\t * Errata ID i2437: SE Clock-Gating Turning Off Too Early\n+\t\t *\n+\t\t * A hardware bug is present in the C7120 Streaming Engine top level\n+\t\t * clock gating logic that can lead to the C7120 CPU hanging.\n+\n+\t\t * Workaround: The DSP_<COREID>_DEBUG_CLKEN_OVERRIDE fields of the\n+\t\t * COMPUTE_CLUSTER_CFG_WRAP_0_CC_CNTRL register (where COREID is the\n+\t\t * name of the specific C7120 core) must be enabled before power-up\n+\t\t * of the C7120 core to override all clock-gating.\n+\t\t */\n+\n+\t\t/* Setup RAT mapping */\n+\t\tdebug(\"Errata i2437: Use RAT for COMPUTE_CLUSTER_CFG_WRAP_0_CC_CNTRL register\\n\");\n+\t\twritel_verify(RAT_ERRATA_2437_IN_ADDR, RAT_ERRATA_2437_BASE_REGION0 + 0x24);\n+\t\twritel_verify(RAT_ERRATA_2437_OUT_ADDR_L, RAT_ERRATA_2437_BASE_REGION0 + 0x28);\n+\t\twritel_verify(RAT_ERRATA_2437_OUT_ADDR_U, RAT_ERRATA_2437_BASE_REGION0 + 0x2c);\n+\t\twritel_verify(RAT_ERRATA_2437_CTRL, RAT_ERRATA_2437_BASE_REGION0 + 0x20);\n+\n+\t\t/* Enable DSP_X_DEBUG_CLKEN_OVERRIDE for C71x cores */\n+\t\twritel_verify(0x300, RAT_ERRATA_2437_IN_ADDR + 0x200);\n+\n+\t\t/* Clear RAT mapping */\n+\t\twritel_verify(0, RAT_ERRATA_2437_BASE_REGION0 + 0x20);\n+\t\twritel_verify(0, RAT_ERRATA_2437_BASE_REGION0 + 0x24);\n+\t\twritel_verify(0, RAT_ERRATA_2437_BASE_REGION0 + 0x28);\n+\t\twritel_verify(0, RAT_ERRATA_2437_BASE_REGION0 + 0x2c);\n+\t}\n }\n #endif\n \n","prefixes":["v2","2/3"]}