From nobody Mon Sep 16 23:02:34 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 4X70mq0sfqz5WLT7; Mon, 16 Sep 2024 23:02:35 +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 4X70mp6s2Fz4Rgm; Mon, 16 Sep 2024 23:02:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726527755; 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=QMby74+B2nwO+RWXelnaOxl2WsG/wYhaMcsNOlJfcno=; b=ANKYPd50EpyQ9zmQ52WLlLCd0NgO5fxGsPGOIzeh0CrO+P57oj52hgtJKw6cBABbH+sJvM sL9ukl1+RcGFIrreRHABYIgL0JjDnNV2lHXYk34pPTrn91+mD+u0jTyb+ZBqUv73fNJMjO oq0sRWHAUPsWfr3YlITuDH8wZEug8sErgRxuRt5QPmHaNT+gnASUClTQdPm83qybLcNEaX yK2oGQZ3RJ3Ne3XhJ8fMiUAwwoC3fGzx8Xh2EFq1lSAZ3Y5KFPMtlaboSy6/FY4Lii6D2i GdEb+Wy2G7rtgJ2wroT+XJx0DO2M+jxcT7ydFq+kEFs+Ne3G2uMi+XMvWYQLoQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726527755; a=rsa-sha256; cv=none; b=fnZZtEOVT6n/98itX4GiGv/57XDSwV8lq9p2OynXaPTbakqQ6Mnr07D18OFGJ5hvH/S6PN rQrvEm/hRpHnT4TugFHYPQk7h8O/MurzJBwEXEJz2BIj1zITVHiTqs3shYvAVLjF5nNd52 5+sLh+wsIJiT78FjWYJ2geSBFonkceMR3nMNP9FGLVZGr9oRiJPdjpq/7xWggej2Ggdult HvwqI5BEspsOmh8bRiDNAlcg3qdOHA8Kt3bXZqRbG7HgDwfQB0cd3/C1o7xPHuMhiI5Nh4 WsX67BgsRdVcE7tjeXlkjO7CVxbb4+ZSV8wki3vlU9ZHzq6nK6RRQTLLZAceFw== 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=1726527755; 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=QMby74+B2nwO+RWXelnaOxl2WsG/wYhaMcsNOlJfcno=; b=bK2JELpKNlH+tEDVkJYun6UrFbut0ejoxLYsCXAQ6jCmJj/ILahS629DNZtS50BMg8cX4d tqVqxbHJjYz/aXfpBi8pxuUWMYEUwdnKEYk3Lj5cPEAFV/aOqosdqnMC9q7gQ54AM4XIS+ 2rVIJwj3LB0LGApjDm1rOsNkPTzDsVEwHlBhy9xC7YGPwXH2eWY+kqwcogY4TjlwI+4r6i FZqGCbpsXK/qLq3dGYPahpJ5Qy5VwhuVTMdJ2FjkkSn9t03nC+9UvJN9A1Jsik+1wT6vkS AEz8dUBGC/L2lbixfYuQrjPG/glKGAJVNaTdCNg8f3T4miW4F+i+CQ4vpMtI8g== 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 4X70mp6S5Fz1ClS; Mon, 16 Sep 2024 23:02:34 +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 48GN2YHQ043117; Mon, 16 Sep 2024 23:02:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48GN2YTM043114; Mon, 16 Sep 2024 23:02:34 GMT (envelope-from git) Date: Mon, 16 Sep 2024 23:02:34 GMT Message-Id: <202409162302.48GN2YTM043114@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: e134cd9580ad - main - amd64: pml5 entries do not support PAT bits 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: e134cd9580ad62e87c8e8678bdbc45936b11ee86 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=e134cd9580ad62e87c8e8678bdbc45936b11ee86 commit e134cd9580ad62e87c8e8678bdbc45936b11ee86 Author: Konstantin Belousov AuthorDate: 2024-09-16 18:34:47 +0000 Commit: Konstantin Belousov CommitDate: 2024-09-16 23:02:14 +0000 amd64: pml5 entries do not support PAT bits Sponsored by: Advanced Micro Devices (AMD) Sponsored by: The FreeBSD Foundation MFC after: 1 week --- sys/amd64/amd64/pmap.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index fd4697a266e3..4cb833757489 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -4375,15 +4375,13 @@ pmap_pinit_pml5(vm_page_t pml5pg) * entering all existing kernel mappings into level 5 table. */ pm_pml5[pmap_pml5e_index(UPT_MAX_ADDRESS)] = KPML4phys | X86_PG_V | - X86_PG_RW | X86_PG_A | X86_PG_M | - pmap_cache_bits(kernel_pmap, VM_MEMATTR_DEFAULT, false); + X86_PG_RW | X86_PG_A | X86_PG_M; /* * Install self-referential address mapping entry. */ pm_pml5[PML5PML5I] = VM_PAGE_TO_PHYS(pml5pg) | - X86_PG_RW | X86_PG_V | X86_PG_M | X86_PG_A | - pmap_cache_bits(kernel_pmap, VM_MEMATTR_DEFAULT, false); + X86_PG_RW | X86_PG_V | X86_PG_M | X86_PG_A; } static void @@ -4412,8 +4410,7 @@ pmap_pinit_pml5_pti(vm_page_t pml5pgu) */ pm_pml5u[pmap_pml5e_index(UPT_MAX_ADDRESS)] = pmap_kextract((vm_offset_t)pti_pml4) | - X86_PG_V | X86_PG_RW | X86_PG_A | X86_PG_M | - pmap_cache_bits(kernel_pmap, VM_MEMATTR_DEFAULT, false); + X86_PG_V | X86_PG_RW | X86_PG_A | X86_PG_M; } /* Allocate a page table page and do related bookkeeping */