The branch main has been updated by pkubaj (ports committer):

URL: 
https://cgit.FreeBSD.org/src/commit/?id=ac19bf854b8c0bedc793af0cb501f08c6612ccd5

commit ac19bf854b8c0bedc793af0cb501f08c6612ccd5
Author:     Justin Hibbits <[email protected]>
AuthorDate: 2020-05-29 02:02:41 +0000
Commit:     Piotr Kubaj <[email protected]>
CommitDate: 2020-12-30 22:45:10 +0000

    powerpc/aim: Add machine check handler for TLB multihit
    
    Handle TLB multi-hit the same as ERAT multi-hit, by flushing the full
    TLB.
---
 sys/powerpc/aim/aim_machdep.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/powerpc/aim/aim_machdep.c b/sys/powerpc/aim/aim_machdep.c
index 8824e7447ea6..0ce7cf03403f 100644
--- a/sys/powerpc/aim/aim_machdep.c
+++ b/sys/powerpc/aim/aim_machdep.c
@@ -563,7 +563,8 @@ cpu_machine_check(struct thread *td, struct trapframe 
*frame, int *ucode)
                /* SLB multi-hit is recoverable. */
                if ((frame->cpu.aim.dsisr & DSISR_MC_SLB_MULTIHIT) != 0)
                        return (0);
-               if ((frame->cpu.aim.dsisr & DSISR_MC_DERAT_MULTIHIT) != 0) {
+               if ((frame->cpu.aim.dsisr &
+                   (DSISR_MC_DERAT_MULTIHIT | DSISR_MC_TLB_MULTIHIT)) != 0) {
                        pmap_tlbie_all();
                        return (0);
                }
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to