Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178276336
D62359.1796402521.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D62359.1796402521.diff
View Options
diff --git a/sys/powerpc/aim/aim_machdep.c b/sys/powerpc/aim/aim_machdep.c
--- a/sys/powerpc/aim/aim_machdep.c
+++ b/sys/powerpc/aim/aim_machdep.c
@@ -598,8 +598,19 @@
}
/* TODO: Add other machine check recovery procedures. */
} else {
- if ((frame->srr1 & SRR1_MCHK_IFETCH_M) == SRR1_MCHK_IFETCH_SLBMH)
+ switch (frame->srr1 & SRR1_MCHK_IFETCH_M) {
+ case SRR1_MCHK_IFETCH_SLBMH:
return (0);
+ case SRR1_MCHK_IFETCH_ERATMH:
+ case SRR1_MCHK_IFETCH_TLBMH:
+ /*
+ * Recoverable like their data side counterparts
+ * above: drop the stale translations and retry
+ * the fetch.
+ */
+ pmap_tlbie_all();
+ return (0);
+ }
}
#endif
*ucode = BUS_OBJERR;
diff --git a/sys/powerpc/include/spr.h b/sys/powerpc/include/spr.h
--- a/sys/powerpc/include/spr.h
+++ b/sys/powerpc/include/spr.h
@@ -128,6 +128,8 @@
#define SRR1_MCHK_DATA 0x00200000 /* Machine check data in DSISR */
#define SRR1_MCHK_IFETCH_M 0x081c0000 /* Machine check instr fetch mask */
#define SRR1_MCHK_IFETCH_SLBMH 0x000c0000 /* SLB multihit */
+#define SRR1_MCHK_IFETCH_ERATMH 0x00100000 /* ERAT multihit */
+#define SRR1_MCHK_IFETCH_TLBMH 0x00140000 /* TLB multihit */
#define SPR_CFAR 0x01c /* Come From Address Register */
#define SPR_AMR 0x01d /* Authority Mask Register */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 4, 4:42 PM (22 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42207882
Default Alt Text
D62359.1796402521.diff (1 KB)
Attached To
Mode
D62359: powerpc64: recover from instruction side ERAT and TLB multi-hit machine checks
Attached
Detach File
Event Timeline