From nobody Mon Sep 16 08:15:02 2024 X-Original-To: dev-commits-src-main@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 4X6d4l09X5z5WkFY; 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 4X6d4k2KB0z4RWj; Mon, 16 Sep 2024 08:15:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726474502; 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=xatI4nzOhQ1Kb4QT7bRSZpIqvZQUgHixd9SE499FLwA=; b=NV4i8YTprB33SccJ4rN953/yodhv/kBCvmWCf65BWs63YNACVNW+QAD+Jgivu+ApsFhb0L s2xsoFlomQIp+l2ZTME6uE5+vMIxrm4HXlluckuP9pKxd/+CbWSHizTR3U303vTyaRv7jT yVVTj12sfaHjOvfdjw6nctPuGh/KSPNYAZxcMlGOG2Z8AmZH2ciwv2VzgQrqmo9fIJlBhH NxmGJnnIMrdy7v6pk9qPtqb2bvXB/GPAbZvtC1xFpIhSw0Rj9ZS8s13R770YSiGcjxkCls z6CtEbioNeW1k37bbqsCtL3NdbeFBI4X9BffrbV66sNCb/Ytp9AOwTkYXvdd1A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726474502; a=rsa-sha256; cv=none; b=euNYhlGbDYMe+z7myBLPZ+NzQvR2Lh7aKOEkXuGqrH/qKWdP2vpGs8Ac5bRcQReR6nLHfB 34R0mbK0jg96DaK13R+5KzVAAE86HgunUQ4xkLrinv8GMB+HaQtuUN70bClAhIbh/tPod5 6HV3U4dl+XYEks1eCU7DbeNxbV4LUp1DPhHYHEqv8Tot+OLYMSph5iTvK9usgO+6a5sQj4 y+wr6kVTt70g/P/1FM5EMW+rEkl0DtQcZzWrOzdnYEKVfVlxCsOaEFxbQ/tuN6VsrWZMbB spg4jGmmioqPWbTMiC9xoFAD2l4nFJLF3kuKqnn6I8MusbM21tAelbtddW87pg== 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=1726474502; 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=xatI4nzOhQ1Kb4QT7bRSZpIqvZQUgHixd9SE499FLwA=; b=E2QGslbx4UkdtYHO6clOneLvMXprLBQNYGYQ8mzHBt8KH+zxlzzyDyCJ5jjg4iyCzvOHL/ WyaR2zdgHvjCkDn+yJU9OXUUGKGvIo74OoZz4ClwX0Mbkfv9px5JsdVR7SlBcQh/HPQzVQ KMftrrF6HOv0dYAvTzvQDE6gLjzg43mXocLa3JSlmDbXBYK+AUUYTv6TPMzQEiLYsWbaKM aac78s7kt6sHvyolQwUgwLxAzAU5I5Uwl5xYSgLT8RgX/tdmVzFNhbjl6XjZD6NEdDe53X DGWMyIoseOUHaoTcd6llXGokPy8JJSf+IEIbUbQukYdNQpDiGbRN3KYlZojWsQ== 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 4X6d4k1wyQznTD; Mon, 16 Sep 2024 08:15:02 +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 48G8F2rc026925; Mon, 16 Sep 2024 08:15:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48G8F2FU026922; Mon, 16 Sep 2024 08:15:02 GMT (envelope-from git) Date: Mon, 16 Sep 2024 08:15:02 GMT Message-Id: <202409160815.48G8F2FU026922@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: 2912c2fbd440 - main - amd64 pmap: be more verbose around entering and leaving LA57 trampoline List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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: 2912c2fbd44072b7372c24dd34392c01f5104497 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=2912c2fbd44072b7372c24dd34392c01f5104497 commit 2912c2fbd44072b7372c24dd34392c01f5104497 Author: Konstantin Belousov AuthorDate: 2021-11-06 06:10:16 +0000 Commit: Konstantin Belousov CommitDate: 2024-09-16 08:08:53 +0000 amd64 pmap: be more verbose around entering and leaving LA57 trampoline Sponsored by: Advanced Micro Devices (AMD) Sponsored by: The FreeBSD Foundation MFC after: 1 week --- 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 48aef39e9663..568301344e86 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -2246,6 +2246,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); /* @@ -2260,6 +2264,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.