From nobody Mon Sep 16 08:15:03 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4X6d4l4p2fz5Wk7J; Mon, 16 Sep 2024 08:15:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X6d4l3bs3z4Rt7; Mon, 16 Sep 2024 08:15:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726474503; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qjlwW001Phvu+aRlKlAhxq6jHbsZuh8kIbjJtu727i8=; b=kroy5cGk2TGz6lSftrNt/AGZXeKXb4gcWcjRpS/VypZlgmftNcmLE3yj7us5M7apu71XH3 FowZd3CobKZluc4GQ9CJAO+OrRXlqVXfumQPlwLkMZcGdITvP/njCpyI7gB5Q2BA90SLEo N1k0EYrvZO24MViWioqldUfkVP6bxle4DMDN1qmegg1V4BEYdn4P4LalRr0kET+hQ7RyCn ubebtQppBUQNstih7axlSH+gntM8/BpATed6RcDrztJhNbtx/zbT+TV8rqOOOskFV8kG7n rqB9CiBLOcpqQrZdMA19QKVO17helACOCAYmRWpwd/CAaS2aAEEFEyoLrGU25w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726474503; a=rsa-sha256; cv=none; b=jPO3i7jcJlVwrWPRXjMvCdvrBHTrp5iBmCftMoH9C9mv66WyjWNXV71/44pTYrBuW7STk6 lO2SBkTkN2Ry4qeJ2DAqgSttLa3x5RVyXVoZY2aOGYKqLPvXUsO9Notx7PpJOLNtW6RWZj rRU1CeZ1pP/pTGogI5hfguv8GNpeB86wL0HJzEWyuB8XsoDKcYhGloEr+/a+E62WQLvw6N fxYoeIVcu9C2FAZBzoZfVCXOHWV4KV1mMu950RksYIwnxzY5AVEeHwKl0yUiT6XCvnsE07 SvRzNXXX9Wl58rBwbEibZ7OoJu199otB7H4+2VEko6Vy9jK2NPiio9CBYYsxlQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726474503; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qjlwW001Phvu+aRlKlAhxq6jHbsZuh8kIbjJtu727i8=; b=a3V6G7EdLqJVXRU2d9cyPprU1kJqaY7s+HfVKmDOdEnH2DWDCWHlAz084/9BVLiWE2wdIV QS4Pya9JFAMu82m8hXQi2XGN9letJJaflj7I/wK7ppJXt0wkqxK5ZcT1O0ERsgB9D6D6EV 4+5dYsMerl3P783rZo5uWZWEWTMWzmV65wbTGrp6eBVWvk+g/NghHXRPgQEr48FYdMZ+Qe YXcXUIVEvQVYDduTO34cfobaX3od5YgosmCwV6bjS5T+dpUOHVV5H0XlSrEvuhWtNnX0Jn JPaC/bzdHu1IPtgICJTg95mEFSLtjJuAP64htE03gRzaMaTDpVCW9U/w4P0qHA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4X6d4l3ChMzn5g; Mon, 16 Sep 2024 08:15:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48G8F3K7026982; Mon, 16 Sep 2024 08:15:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48G8F303026979; Mon, 16 Sep 2024 08:15:03 GMT (envelope-from git) Date: Mon, 16 Sep 2024 08:15:03 GMT Message-Id: <202409160815.48G8F303026979@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 787259bfe564 - main - amd64 pmap: flush whole TLB after LA57 trampoline is installed List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 787259bfe56478b9aa0699f2516d00722b9cc309 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=787259bfe56478b9aa0699f2516d00722b9cc309 commit 787259bfe56478b9aa0699f2516d00722b9cc309 Author: Konstantin Belousov AuthorDate: 2021-11-06 06:11:57 +0000 Commit: Konstantin Belousov CommitDate: 2024-09-16 08:08:53 +0000 amd64 pmap: flush whole TLB after LA57 trampoline is installed Sponsored by: Advanced Micro Devices (AMD) Sponsored by: The FreeBSD Foundation MFC after: 1 week --- sys/amd64/amd64/pmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 568301344e86..b513c0c9c957 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -2245,7 +2245,7 @@ pmap_bootstrap_la57(void *arg __unused) *(u_long *)(v_code + 2 + (la57_trampoline_gdt_desc - la57_trampoline)) = la57_trampoline_gdt - la57_trampoline + VM_PAGE_TO_PHYS(m_code); la57_tramp = (void (*)(uint64_t))VM_PAGE_TO_PHYS(m_code); - invlpg((vm_offset_t)la57_tramp); + pmap_invalidate_all(kernel_pmap); if (bootverbose) { printf("entering LA57 trampoline at %#lx\n", (vm_offset_t)la57_tramp);