Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 83E95606A321 for ; Sat, 28 Nov 2026 17:06:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=lists.u-boot-project.org header.i=@lists.u-boot-project.org header.a=rsa-sha256 header.s=default header.b=Diwebt0I; dkim=pass (2048-bit key, unprotected) header.d=acm.org header.i=@acm.org header.a=rsa-sha256 header.s=mr01 header.b=yPZItA5+ Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 4DB8C80E36; Sat, 28 Nov 2026 17:06:49 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id U_1PpMNOIWzP; Sat, 28 Nov 2026 17:06:48 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp1.osuosl.org 8A69680E32 Authentication-Results: smtp1.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1795885608; b=mf5KcSyBsNw0V8JMPpSs7SaZgzIqTjPhe8TzdCAqC70GnvL3I2sCyzpn11fT9nAvpAQS gbzUZXRH4+wr5iR5+kPGWEvo1LN1duwEtVoh2r5R/eaKaucuk7DYo7OpRuqZO0LeLMHxa LAW+ngMZZFQlMNM2g/GQdnTBdDdjKDAdaQwi0n7kuJQWPUdNjOxgy9XdF1/2JtuISpgjK /BIqiAZBHGY688LyQf/CnAbFHZ2ZJBKOREn7Tm4FfrZF2A0z0LehNh5oUOQFSWV1CblwO 9wHuJDdA4wtvwrthMIChZmstQ2PIwgznbtdqhqph5zE4neOVmU6ajnA2je6wRQxPXZA== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1795885608; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:X-Greylist:Received-SPF:Received: Received:DKIM-Signature:X-Virus-Scanned:Received:Received:From:To:Cc: Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding:X-Mailman-Approved-At:X-BeenThere: X-Mailman-Version:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:Errors-To; bh=wU7zZg3WfREiKxTsq1N+xdr1CrsM4YjTeyFD6haR3FI=; b=SGu0TgImPYthTG7dd6ckhffTbg/4H1/k2VtAo+z1I3w+Wc3iwZplCY4WJVj3TM/F/kAO 1dFLOPydYbyjpSLPyPppC4r1eS6P0zFoIhDhjVo0su26JyTavRYB5NanSOrP27c/KT+Zi h8OCqb4rImUUhjRwybJ3qW2NTKr0XQTLe4SL0kZ5ryJ/4hfB9EjPC6pjOQM/sNie5tswO pm78PD3KajCE7PlYbP+izwG9vgvZNfNSkA2M3L5nM3H83i5jgzAoYdni/OJopsTKwDj0S wJKBNCFaHy+p/QxJ6Fcm3tG0+p3zfW2aBtJ+8sH5x/itw+SfvZ9CI3ceU31iLNxchww== ARC-Authentication-Results: i=1; smtp1.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=u-boot-bounces@lists.u-boot-project.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.u-boot-project.org; s=default; t=1795885608; bh=wU7zZg3WfREiKxTsq1N+xdr1CrsM4YjTeyFD6haR3FI=; h=From:To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=Diwebt0IkX4VMRKhVJFka0zGtTE1pp1rpvxoM/8e8alMYgLpiVHpd1lUenMxReGzN bcNxWbwLEnuQK4xKld4ygNrv2lA+PXu4+NC+sZrQWEfJV2Zd1ZYyI/VFWjGce6wJrD /kbGAZjKYijvB/Q/qJ5vbVJJKUEZczoWrGw5p2fZqlMtqSR8lmLyblXIu+gHARAZJn fn9YBE7+ZiI0jOcneoIBGXWM7Suj4qr98E1/opyVkrOjXxc6/3f+2SrtoPZlsE0NAC MYJNMk5EtJMcb82aYHwRH6W8u2o3AkuoxctotFG6QAe2+I496bqtBTiSLX7heJ0/nC DI6wdPpsuqrEA== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id 8A69680E32; Sat, 28 Nov 2026 17:06:48 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) by lists1.osuosl.org (Postfix) with ESMTP id B2D43BF4 for ; Sat, 28 Nov 2026 17:05:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id A460540098 for ; Sat, 28 Nov 2026 17:05:05 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id Kz80DGoO4iYS for ; Sat, 28 Nov 2026 17:05:05 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp2.osuosl.org D144A4005D Authentication-Results: smtp2.osuosl.org; arc=none smtp.remote-ip=199.89.1.16 X-Greylist: delayed 155 seconds by postgrey-1.37 at util1.osuosl.org; Sat, 28 Nov 2026 17:05:04 UTC Authentication-Results: smtp2.osuosl.org; dmarc=pass (p=reject dis=none) header.from=acm.org Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=acm.org header.i=@acm.org header.a=rsa-sha256 header.s=mr01 header.b=yPZItA5+ Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=199.89.1.16; helo=013.lax.mailroute.net; envelope-from=bvanassche@acm.org; receiver= Received: from 013.lax.mailroute.net (013.lax.mailroute.net [199.89.1.16]) by smtp2.osuosl.org (Postfix) with ESMTPS id D144A4005D for ; Sat, 28 Nov 2026 17:05:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by 013.lax.mailroute.net (Postfix) with ESMTP id 4jcGmh2K4hzlfvq6; Sat, 28 Nov 2026 17:02:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=acm.org; h= content-transfer-encoding:mime-version:x-mailer:message-id:date :date:subject:subject:from:from:received:received; s=mr01; t= 1795885345; x=1798477346; bh=wU7zZg3WfREiKxTsq1N+xdr1CrsM4YjTeyF D6haR3FI=; b=yPZItA5+uOthyli04wutyOO8W4ZzJeiRJKqcd6GKPDT4lMlXCpT MAS1ZwvXLC214BhinYxmxLfIaY2wXEoonWWdcV5G1GcJdo2unNy86TR48g7UOQgG LWOjnu0XvMi4AifQrTiwiVR8WME73LwodW/kRdHnlfvxVeL1JTld+69lrCT+KHko p4LTdVk7LYimPTiNQhsLEF+VXrDC2cwWS0pmg+p6tS4NG8SVOjZtiT8uEYa9yLKB d/BniXN9k/kOEKcLiN0SouCpHtkbHK7pBLDKmr9JJ6LDcH4kvDxu5pNX4AQq8JAI V92L08D2TwqjxlZBAD7UqYIz8Z1fXk07Oew== X-Virus-Scanned: by MailRoute Received: from 013.lax.mailroute.net ([127.0.0.1]) by localhost (013.lax [127.0.0.1]) (mroute_mailscanner, port 10029) with LMTP id B8LjorKLKS91; Sat, 28 Nov 2026 17:02:25 +0000 (UTC) Received: from bvanassche.c.googlers.com.com (57.237.82.34.bc.googleusercontent.com [34.82.237.57]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: bvanassche@acm.org) by 013.lax.mailroute.net (Postfix) with ESMTPSA id 4jcGmd3sJjzlfvps; Sat, 28 Nov 2026 17:02:25 +0000 (UTC) From: Bart Van Assche To: u-boot@lists.u-boot-project.org Cc: Tom Rini , Ilias Apalodimas , Stanley Chu , Jim Liu , Jim Liu , Bart Van Assche Subject: [PATCH] arm: npcm7xx: Enable Cortex-A9 errata 845369 and 794072 Date: Sat, 28 Nov 2026 09:02:17 -0800 Message-ID: <20261128170217.3127962-1-bvanassche@acm.org> X-Mailer: git-send-email 2.56.1.839.g22a8290db9-goog X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mailman-Approved-At: Sat, 28 Nov 2026 17:06:46 +0000 X-BeenThere: u-boot@lists.u-boot-project.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: U-Boot discussion List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-18.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Analysis of NPCM730 kernel crashes shows that ARM Cortex-A9 Erratum 845369 applies to the NPCM730 SoC and the rest of the Cortex-A9 r4p1 NPCM7xx family, as does Erratum 794072. Select CONFIG_ARM_ERRATA_845369 and CONFIG_ARM_ERRATA_794072 for ARCH_NPCM7xx so cpu_init_cp15 sets bits 22 and 4 in the Cortex-A9 CP15 diagnostic control register (c15, c0, 1) on CPU 0 before enabling the D-cache and the MMU: - Erratum 845369 (bit 22, all Cortex-A9 revisions): disable transitions into streaming (read-allocate) mode that can corrupt or lose writes under SMP cache-line migration. - Erratum 794072 (bit 4, all Cortex-A9 revisions): prevent a tight DMB loop from starving broadcast CP15 maintenance operations on another core. Match MX6_SMP (which also uses Cortex-A9 and selects both options) so NPCM7xx CPUs boot with both workarounds enabled on CPU 0. Note that CPU 1 boots directly from Mask ROM without executing U-Boot, so Linux must replicate the diagnostic register to CPU 1 separately. Fixes: 84335544ead8 ("arm: nuvoton: Add support for Nuvoton NPCM750 BMC") Change-Id: I59d4a90ad01c2deca9a924c1d9e6fcfbe39d8ddd Signed-off-by: Bart Van Assche --- arch/arm/mach-npcm/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-npcm/Kconfig b/arch/arm/mach-npcm/Kconfig index 24bd2ad423f0..66da4a2659c6 100644 --- a/arch/arm/mach-npcm/Kconfig +++ b/arch/arm/mach-npcm/Kconfig @@ -15,6 +15,8 @@ config ARCH_NPCM7xx select CPU_V7A select OF_CONTROL select DM + select ARM_ERRATA_794072 + select ARM_ERRATA_845369 help General support for NPCM7xx BMC (Poleg). Nuvoton NPCM7xx BMC is based on the Cortex A9.