Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115368638
D47809.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D47809.diff
View Options
diff --git a/sys/arm64/arm64/pmap.c b/sys/arm64/arm64/pmap.c
--- a/sys/arm64/arm64/pmap.c
+++ b/sys/arm64/arm64/pmap.c
@@ -1629,10 +1629,24 @@
pmap_cpu_init(void)
{
uint64_t id_aa64mmfr1, tcr;
+ bool enable_dbm;
+
+ enable_dbm = false;
/* Enable HAFDBS if supported */
id_aa64mmfr1 = READ_SPECIALREG(id_aa64mmfr1_el1);
- if (ID_AA64MMFR1_HAFDBS_VAL(id_aa64mmfr1) >=ID_AA64MMFR1_HAFDBS_AF_DBS){
+ if (ID_AA64MMFR1_HAFDBS_VAL(id_aa64mmfr1) >= ID_AA64MMFR1_HAFDBS_AF_DBS)
+ enable_dbm = true;
+ /* Disable on Cortex-A55 for erratum 1024718 - all revisions */
+ if (CPU_MATCH(CPU_IMPL_MASK | CPU_PART_MASK, CPU_IMPL_ARM,
+ CPU_PART_CORTEX_A55, 0, 0))
+ enable_dbm = false;
+ /* Disable on Cortex-A510 for erratum 2051678 - r0p0 to r0p2 */
+ else if (CPU_MATCH(CPU_IMPL_MASK | CPU_PART_MASK | CPU_VAR_MASK,
+ CPU_IMPL_ARM, CPU_PART_CORTEX_A510, 0, 0))
+ if (CPU_REV(PCPU_GET(midr)) < 3)
+ enable_dbm = false;
+ if (enable_dbm) {
tcr = READ_SPECIALREG(tcr_el1) | TCR_HD;
WRITE_SPECIALREG(tcr_el1, tcr);
isb();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 24, 2:03 AM (8 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17747366
Default Alt Text
D47809.diff (1 KB)
Attached To
Mode
D47809: arm64: Add a DBM errata workaround
Attached
Detach File
Event Timeline
Log In to Comment