From: Peng Fan <peng.fan@oss.nxp.com>
To: Franz Schnyder <fra.schnyder@gmail.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>,
Will Deacon <will@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Jonathan Corbet <corbet@lwn.net>,
Shuah Khan <skhan@linuxfoundation.org>,
Randy Dunlap <rdunlap@infradead.org>,
Marc Zyngier <maz@kernel.org>, Oliver Upton <oupton@kernel.org>,
Fuad Tabba <fuad.tabba@linux.dev>,
Joey Gouly <joey.gouly@arm.com>,
Steffen Eiden <seiden@linux.ibm.com>,
Suzuki K Poulose <suzuki.poulose@arm.com>,
Zenghui Yu <yuzenghui@huawei.com>,
"Ivan T. Ivanov" <iivanov@suse.de>,
Francesco Dolcini <francesco@dolcini.it>,
Frank Li <frank.li@nxp.com>,
linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org, kvmarm@lists.linux.dev,
imx@lists.linux.dev, Peng Fan <peng.fan@nxp.com>
Subject: Re: [PATCH v4] arm64: errata: Add NXP iMX8QM workaround for A53 cache coherency issue
Date: Tue, 15 Sep 2026 23:04:18 +0800 [thread overview]
Message-ID: <aqlecgN0A53h6LGb@shlinux89> (raw)
In-Reply-To: <f5nfbi2lmc73wtxxmzs4damrjtd67p4eb4p2zy5ssqrc3wohne@cjcxqua5dps6>
On Tue, Aug 25, 2026 at 09:06:31AM +0200, Franz Schnyder wrote:
>On Mon, Aug 24, 2026 at 12:02:04PM +0800, Peng Fan (OSS) wrote:
>> From: Peng Fan <peng.fan@nxp.com>
>>
>> According to NXP errata document IMX8_1N94W[1], the i.MX8QuadMax SoC
>> suffers from a cache coherency issue (ERR050104). The upper bits, above
>> bit 35, of the ARADDR and ACADDR buses within the Arm A53 subsystem
>> have been incorrectly connected. This causes some TLBI and IC
>> maintenance operations exchanged between the A53 and A72 core clusters
>> to be corrupted.
>>
>> The workaround requires:
>>
>> - Downgrading targeted TLBI operations to broadcast-all variants.
>> Instead of patching the low-level __TLBI_1 macro (which interferes
>> with the REPEAT_TLBI workaround and causes excessive over-
>> invalidation), redirect high-level TLB flush functions
>> (flush_tlb_mm, __do_flush_tlb_range, flush_tlb_kernel_range,
>> __flush_tlb_kernel_pgtable) to use VMALLE1IS via static key checks.
>>
>> - Upgrading IC IVAU to IC IALLUIS for both kernel (via ALTERNATIVE in
>> invalidate_icache_by_line) and EL0 userspace (via trap-and-upgrade
>> in user_cache_maint_handler with SCTLR_EL1.UCI=0).
>>
>> - Disabling KVM since correct TLB maintenance cannot be guaranteed
>> for guests.
>>
>> - No need to touch SMMU Broadcast TLB Maintenance (BTM) since i.MX8QM
>> does not support broadcast TLB.
>>
>> SoC detection uses devicetree compatible string "fsl,imx8qm" or
>> "fsl,imx8qp" since the boot CPU MIDR_EL1 (0x410fd034) and AIDR_EL1 (0)
>> are not unique to this SoC.
>>
>> [1] https://www.nxp.com/docs/en/errata/IMX8_1N94W.pdf
>
>Hi Peng,
>
>I tested this on our HW and the random crashes that occured when both
>the A72 and A53 clusters were enabled no longer happen.
>
>Tested-by: Franz Schnyder <franz.schnyder@toradex.com> # Toradex Apalis iMX8QM
Hi Franz,
Thanks a lot for testing this patch.
Thanks,
Peng
>
>Thanks
>
>Franz
>
>
next prev parent reply other threads:[~2026-09-15 15:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-24 4:02 Peng Fan (OSS)
2026-08-25 7:06 ` Franz Schnyder
2026-09-15 15:04 ` Peng Fan [this message]
2026-09-15 15:02 ` Peng Fan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aqlecgN0A53h6LGb@shlinux89 \
--to=peng.fan@oss.nxp.com \
--cc=catalin.marinas@arm.com \
--cc=corbet@lwn.net \
--cc=fra.schnyder@gmail.com \
--cc=francesco@dolcini.it \
--cc=frank.li@nxp.com \
--cc=fuad.tabba@linux.dev \
--cc=iivanov@suse.de \
--cc=imx@lists.linux.dev \
--cc=joey.gouly@arm.com \
--cc=kvmarm@lists.linux.dev \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=maz@kernel.org \
--cc=oupton@kernel.org \
--cc=peng.fan@nxp.com \
--cc=rdunlap@infradead.org \
--cc=seiden@linux.ibm.com \
--cc=skhan@linuxfoundation.org \
--cc=suzuki.poulose@arm.com \
--cc=will@kernel.org \
--cc=yuzenghui@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®