From nobody Mon Sep 23 13:03:39 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 4XC38X1kTxz52Fxj; Mon, 23 Sep 2024 13:03:40 +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 4XC38W6QVQz40QN; Mon, 23 Sep 2024 13:03:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727096619; 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=JXlCOQaTLEklqGUAGAyFaXWdCuLh3uM737eFzzzdi0U=; b=btyO06dfRvYvMQ2I/XsCalg3nXLoC1rAgb0PkepB04KDaTKLKwb7A+63tG4qdkA03cEjfW p/RVI/0D1sHLQHEoEt61F2fcJHp9CnvSE75ZFfyLSEXeCGSsP/VDjUT0whZTV1UhJ3N6tC c80c+76+w07sFjPpiQuyLhY9kAlrPT+Qz8pox8Hkrlv1Jyc2V2Df+E8PYqVRICV2w1eJV4 KHsiS+rg/Bz81A04eo4Rxef268TiBeld4dsx0L/IyRVDj7HJuLajY3ztswk5HaQPNp8sey LSNoreEtnrhDCzi1jGveEOphlhFCRzpe0mH11wbz5p1u8ITfLOYL0NVb3bDpSw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727096619; a=rsa-sha256; cv=none; b=cxMtrObMfUi+7Nih/Pb8NYnJizkOa8Cy3rdLp6FQy0Hb0cfSrhbUHNmSxfX96YrzUV8Y7U z6NeEsLgcfFsZzkGZMI2Sy/MveawHbSzz8MDQ3NNQC+AKqMbBNOkn45qkFh9IY/r2e+5fp w9EdB6CRXFFS+AsldewVyH1m8R23rbiD8zd1i7pgFoEe6wxzBop56EPznz+3DTIN8gUAuf RlEv7MqqQNKh5yw+ur4u7wRp/b5/vub3IIbokR8rDrV5iuq0/UH9xhY1moRRGiLNWVN6cs QNOjTpI3Lta2qyVJheF7fd2wDxJcMkM9eGNc9KdVLTsKRr9CUP+ZmFvpJDIDuA== 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=1727096619; 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=JXlCOQaTLEklqGUAGAyFaXWdCuLh3uM737eFzzzdi0U=; b=NxHy4Q3bmeeztz9mkyQ/VbJxED1F0R8LFrrTXCQ94ouS5LvcgKHZxIjeqN/IzgXmFCtROt vSl3BuOEzNk9TkULKjK2kpDKJbD8a1iQYjLBrkHKn4q7oF8g/77Z2hWLsBjWdD4Y0e7U2k 4pBEvCGpdDeek4hMGVhmigh0e0u6F1LoZjfULltrS3MWM+yWHoQTh/+xdsrNLVWXRkGydK NYHjQJwP3S2Qu3KsX9gg1O98Sp6I3uXYteshzt0gFhNyv1omUAWjOG0rXjwPCPV2u/nx/k Z8ZURZLF8qlY0Qov4PeRcXCN/xLTgqxcH7na4KBcGGwZMBq8xulQEwA+/eWiYQ== 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 4XC38W61v0zmgs; Mon, 23 Sep 2024 13:03:39 +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 48ND3dMO006838; Mon, 23 Sep 2024 13:03:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48ND3dta006835; Mon, 23 Sep 2024 13:03:39 GMT (envelope-from git) Date: Mon, 23 Sep 2024 13:03:39 GMT Message-Id: <202409231303.48ND3dta006835@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: 0eec03f113a4 - stable/14 - amd64 pmap: be more verbose around entering and leaving LA57 trampoline 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: 0eec03f113a4de0f9bd2aca2d4620e9d1b4c8d1f Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=0eec03f113a4de0f9bd2aca2d4620e9d1b4c8d1f commit 0eec03f113a4de0f9bd2aca2d4620e9d1b4c8d1f Author: Konstantin Belousov AuthorDate: 2021-11-06 06:10:16 +0000 Commit: Konstantin Belousov CommitDate: 2024-09-23 13:03:06 +0000 amd64 pmap: be more verbose around entering and leaving LA57 trampoline (cherry picked from commit 2912c2fbd44072b7372c24dd34392c01f5104497) --- sys/amd64/amd64/pmap.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index f23488a2174d..bd8be74d3022 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -2247,6 +2247,10 @@ pmap_bootstrap_la57(void *arg __unused) 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); + if (bootverbose) { + printf("entering LA57 trampoline at %#lx\n", + (vm_offset_t)la57_tramp); + } la57_tramp(KPML5phys); /* @@ -2261,6 +2265,9 @@ pmap_bootstrap_la57(void *arg __unused) (struct system_segment_descriptor *)&__pcpu[0].pc_gdt[GPROC0_SEL]); ltr(GSEL(GPROC0_SEL, SEL_KPL)); + if (bootverbose) + printf("LA57 trampoline returned, CR4 %#lx\n", rcr4()); + /* * Now unmap the trampoline, and free the pages. * Clear pml5 entry used for 1:1 trampoline mapping.