From nobody Mon Sep 23 13:03:40 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 4XC38Y1Bfyz52Ftx; Mon, 23 Sep 2024 13:03:41 +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 4XC38Y05jlz40BY; Mon, 23 Sep 2024 13:03:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727096621; 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=XzZUBwhyWgMZouywcPAcf1Vo8WvOBmngtEH4bvaMnqI=; b=wDGtWdax1fGM0QLgeHzPyKoVXhcG0PbkRxytK6uKdo2hy7Gurrrq5lpvGZkSzn7BOhYsPb ZULqek8a9GV8xONVmU8dZh+5YK2tYaCtF9S+3ion8Tz76ex6t2dRxFczoDwtK+1/8x/R9A rn5f82AKdWWJfoMqUzy8jCo8hH8e1BZ+ytv9Ur0F5/YnkdX+OwVPszlcjkX9vvFz4topWE zADRbJIR1MAq+70h1Wi8xUuC5N0GCPeEvYA3CYSpwx3yUKfyM0hzkikzGeEdkzRGTHHCpP Iv2kmiCntrjCKrq8+HR6YxErYW9NsctMyMNJcKwu0xWHsN/HkXaT/m9OlBvu4g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727096621; a=rsa-sha256; cv=none; b=kcfHjkJJzAynUrfqgKTtSuAXiy5zB/NAOIm6Veb19KN9HQAVubFTmQRPQEl0RN8ZgkRNt1 NEIQ8QuAtmhvTd7YqXU11LimLLcbtKH2zaISSdTwnSG7XwMSc9O4lcat3YuNcZKhgW4nsx TeLPuvylDqqNJe6M8vjPLww68Sor+IltKgsk/HN15fFExhRKjam1yJvsxETbk2DwexQGmr KDEgXXDbM/94eaDCrWEoQd+CFeRQ63X3nnALW1gTTC8oJhdrRrnQcJUkJRgr7TPFoo31A1 nUjWDorxDnT06qzHPk+OzZmHc+qDlG2P1uh4wyC9Xde+ZQv0qWk4TD340wW7aw== 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=1727096621; 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=XzZUBwhyWgMZouywcPAcf1Vo8WvOBmngtEH4bvaMnqI=; b=Npc+UMLBfqSFIlIXU9vEW92GEhRw8ZdaHLuQyI3P++kHhmEHXfxcLYpTk539B9/gHqCqIV LJ8SOgBfTHWZpCbb2fhHE0ZTe1/hHSPStnE1Q5nL+IoXzueLAISciZGA+J1aGvh4tjmBeW ZEvI+z2NgOBUhIm/MWlv9Zh16BTKlyJIG7L+5AEYskPcK2iXEDxdwDWPLuNP+du2tV0LBW NWm3iEq7/Ewmt8gMRlYAQZl8uc5hHfntKlbkDpytVhZ/t/Fr8aoV0tMmbwCItCZ6l2vh5J osC64BL8xksbx3pGpyE5H1VDnXC0/BWek1rsM56bwA0bwkeYYeQCPMF50bi8dQ== 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 4XC38X6qV4zmgt; Mon, 23 Sep 2024 13:03:40 +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 48ND3epu006895; Mon, 23 Sep 2024 13:03:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48ND3eU3006892; Mon, 23 Sep 2024 13:03:40 GMT (envelope-from git) Date: Mon, 23 Sep 2024 13:03:40 GMT Message-Id: <202409231303.48ND3eU3006892@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 1c341830359f - stable/14 - 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 1c341830359fa25f49bfaadd55328a43e86cb476 Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=1c341830359fa25f49bfaadd55328a43e86cb476 commit 1c341830359fa25f49bfaadd55328a43e86cb476 Author: Konstantin Belousov AuthorDate: 2021-11-06 06:11:57 +0000 Commit: Konstantin Belousov CommitDate: 2024-09-23 13:03:06 +0000 amd64 pmap: flush whole TLB after LA57 trampoline is installed (cherry picked from commit 787259bfe56478b9aa0699f2516d00722b9cc309) --- 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 bd8be74d3022..9058fa405771 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -2246,7 +2246,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);