Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch Flag EOI on TLB shootdown IPIs after the shootdown ...



details:   https://anonhg.NetBSD.org/src/rev/4e246bef6b66
branches:  trunk
changeset: 972153:4e246bef6b66
user:      ad <ad%NetBSD.org@localhost>
date:      Sun May 17 14:15:55 2020 +0000

description:
Flag EOI on TLB shootdown IPIs after the shootdown has been processed.

diffstat:

 sys/arch/amd64/amd64/vector.S |  12 ++++++------
 sys/arch/i386/i386/vector.S   |   8 ++++----
 2 files changed, 10 insertions(+), 10 deletions(-)

diffs (78 lines):

diff -r cf62d1ea4c80 -r 4e246bef6b66 sys/arch/amd64/amd64/vector.S
--- a/sys/arch/amd64/amd64/vector.S     Sun May 17 14:11:30 2020 +0000
+++ b/sys/arch/amd64/amd64/vector.S     Sun May 17 14:15:55 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vector.S,v 1.76 2020/05/01 07:03:02 maxv Exp $ */
+/*     $NetBSD: vector.S,v 1.77 2020/05/17 14:15:55 ad Exp $   */
 
 /*
  * Copyright (c) 1998, 2007, 2008 The NetBSD Foundation, Inc.
@@ -314,21 +314,21 @@
  * TLB shootdown handler.
  */
 IDTVEC(handle_lapic_tlb)
-       movq    _C_LABEL(local_apic_va),%rax
-       movl    $0,LAPIC_EOI(%rax)
        KCOV_DISABLE
        callq   _C_LABEL(pmap_tlb_intr)
        KCOV_ENABLE
+       movq    _C_LABEL(local_apic_va),%rax
+       movl    $0,LAPIC_EOI(%rax)
        INTRFASTEXIT
 IDTVEC_END(handle_lapic_tlb)
 IDTVEC(handle_x2apic_tlb)
+       KCOV_DISABLE
+       callq   _C_LABEL(pmap_tlb_intr)
+       KCOV_ENABLE
        movl    $(MSR_X2APIC_BASE + MSR_X2APIC_EOI),%ecx
        xorl    %eax,%eax
        xorl    %edx,%edx
        wrmsr
-       KCOV_DISABLE
-       callq   _C_LABEL(pmap_tlb_intr)
-       KCOV_ENABLE
        INTRFASTEXIT
 IDTVEC_END(handle_x2apic_tlb)
 
diff -r cf62d1ea4c80 -r 4e246bef6b66 sys/arch/i386/i386/vector.S
--- a/sys/arch/i386/i386/vector.S       Sun May 17 14:11:30 2020 +0000
+++ b/sys/arch/i386/i386/vector.S       Sun May 17 14:15:55 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vector.S,v 1.86 2020/04/25 15:26:17 bouyer Exp $       */
+/*     $NetBSD: vector.S,v 1.87 2020/05/17 14:15:55 ad Exp $   */
 
 /*
  * Copyright 2002 (c) Wasabi Systems, Inc.
@@ -65,7 +65,7 @@
  */
 
 #include <machine/asm.h>
-__KERNEL_RCSID(0, "$NetBSD: vector.S,v 1.86 2020/04/25 15:26:17 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vector.S,v 1.87 2020/05/17 14:15:55 ad Exp $");
 
 #include "opt_ddb.h"
 #include "opt_multiprocessor.h"
@@ -201,9 +201,9 @@
        pushl   $0
        pushl   $T_ASTFLT
        INTRENTRY
+       call    _C_LABEL(pmap_tlb_intr)
        movl    _C_LABEL(local_apic_va),%eax
        movl    $0,LAPIC_EOI(%eax)
-       call    _C_LABEL(pmap_tlb_intr)
        INTRFASTEXIT
 IDTVEC_END(intr_lapic_tlb)
 
@@ -211,11 +211,11 @@
        pushl   $0
        pushl   $T_ASTFLT
        INTRENTRY
+       call    _C_LABEL(pmap_tlb_intr)
        movl    $(MSR_X2APIC_BASE + MSR_X2APIC_EOI),%ecx
        xorl    %eax,%eax
        xorl    %edx,%edx
        wrmsr
-       call    _C_LABEL(pmap_tlb_intr)
        INTRFASTEXIT
 IDTVEC_END(intr_x2apic_tlb)
 



Home | Main Index | Thread Index | Old Index