Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 Feb 2018 10:40:33 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 225584] Various compile process hang on Ryzen, but not on Intel
Message-ID:  <bug-225584-8-abWtpya2ri@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-225584-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-225584-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225584

--- Comment #63 from Konstantin Belousov <kib@FreeBSD.org> ---
(In reply to Konstantin Belousov from comment #62)
Try this.

diff --git a/sys/amd64/amd64/cpu_switch.S b/sys/amd64/amd64/cpu_switch.S
index 25e3a592171..ef70eefdf37 100644
--- a/sys/amd64/amd64/cpu_switch.S
+++ b/sys/amd64/amd64/cpu_switch.S
@@ -155,6 +155,7 @@ ctx_switch_xsave:
        movq    %rdx,%r15
        movq    %rsi,%rdi
        callq   pmap_activate_sw
+       mfence
        SETLK   %r15,TD_LOCK(%r13)              /* Release the old thread */
 sw1:
        movq    TD_PCB(%r12),%r8

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-225584-8-abWtpya2ri>