From nobody Mon Dec 02 01:46:17 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 4Y1mpd6Hjbz5fLFp; Mon, 02 Dec 2024 01:46:17 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y1mpd5fq8z4jWR; Mon, 2 Dec 2024 01:46:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733103977; 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=RbtrxK+QC72CVW9Dn43vmPCCCQ4VmkhI+T4gcjsFAzo=; b=p4fuvZ/uo6emWDsf7c1upRk01JhvZr+W7/JX1eTj9hom9+oIAe7KPlRZSBnCfKNLhg1Prt DnsVwuFP3TDDN/NZMj2iV6X2sPfSyBCmwlrpWSRJITyjXaXf7vOiuCefnPnkgC+m+/Kaq1 L1Dkm9CdPCEWUjfU4oyYdp9tArZpQhVlHD6wbR5kjYa/UTdyRN4CWY02fkQoSofaPCSVaS s+WmsZY8tCPWBp5GrWw2U2RmzskRSdVKziqe93KRtbtea5r+yV6gm9RtfYtLlSF4DyRyBE t5FJbbQ4WsowYn1g5bOhRzboqZo8KUzQ4vEWbGAgY8hxhzvM2gsjthHAtBj87A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733103977; 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=RbtrxK+QC72CVW9Dn43vmPCCCQ4VmkhI+T4gcjsFAzo=; b=UIeqF/P8zZi+xT9zYQCZ3KFsGiGwCT6xEe9EOxl+CUK9K46+FmvMl0uh0pqLRwPum9Frp6 CwXy1H3W+QqShLngIUjTnLDB30wm84r/ECeP4DFxbDbR9t7ZXjUPJ9E53wQ4A8Lx/JOG10 yTINLvV7ovrLzvYbPEpqy/fh03selVMbGkA/XdTWb1qudR68se7ebTIn8zXkXEN3nitbnA apd6AzgpKyF2iJx+yxoFkSilACDXK/9AROsRv11/iS1ArpwJlE3Otyr93G1u9jolysVwKX rPJIghX6tMWdwaET0KLIym704Sntb52h+BOAde8iMMHi40aclf7LBd1U6OUvrA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733103977; a=rsa-sha256; cv=none; b=VSLzna6I/XHcBw5XAYbncGpMhT7+iIqI0ggX8jcFoHHrIb1elvUKcutA4B0e7OU6ZaqpJ3 r2F/xlrPLZCdAgzHi2U96Bpwfy21D7E2RmcwhSfcx4IQ8VkZeUXUZ5LJPSCCE9Lh3VCD3a j+G3vUyxO8g38pfUZ5vBPxMmd6CG8vEMo/e6eS1OQj9Zl3DDXsGjbupkmLeFhqce46+CyT jbhW9PMf1RPLzK9Q2pxTKXWmQO+E3L91U0JKtx0lfR93U3rB9s4LvxQ745/vb4yNG3jLuh /8oLGg2QSWWCwxTwMEyKJEdn9uxR9oRMsKuXZ5BtpiOOswi6ebMsY/0lw3VOOg== 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 4Y1mpd59gSzHt6; Mon, 2 Dec 2024 01:46:17 +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 4B21kHXn026528; Mon, 2 Dec 2024 01:46:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4B21kH1k026525; Mon, 2 Dec 2024 01:46:17 GMT (envelope-from git) Date: Mon, 2 Dec 2024 01:46:17 GMT Message-Id: <202412020146.4B21kH1k026525@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: 7302cdd34994 - stable/14 - amd64: switch pmap_map_io_transient() to use pmap_kenter_attr() 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: 7302cdd34994fe3db06111f5c73e63a85bb9ef34 Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=7302cdd34994fe3db06111f5c73e63a85bb9ef34 commit 7302cdd34994fe3db06111f5c73e63a85bb9ef34 Author: Konstantin Belousov AuthorDate: 2024-11-23 21:03:40 +0000 Commit: Konstantin Belousov CommitDate: 2024-12-02 01:44:55 +0000 amd64: switch pmap_map_io_transient() to use pmap_kenter_attr() (cherry picked from commit 6ec4ff70885d8048be8de9b9d690dd371e3d4a3e) --- sys/amd64/amd64/pmap.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 5a6c2b479937..406ff7744e5b 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -10504,8 +10504,7 @@ pmap_map_io_transient(vm_page_t page[], vm_offset_t vaddr[], int count, { vm_paddr_t paddr; bool needs_mapping; - pt_entry_t *pte; - int cache_bits, error __unused, i; + int error __unused, i; /* * Allocate any KVA space that we need, this is done in a separate @@ -10550,11 +10549,8 @@ pmap_map_io_transient(vm_page_t page[], vm_offset_t vaddr[], int count, */ pmap_qenter(vaddr[i], &page[i], 1); } else { - pte = vtopte(vaddr[i]); - cache_bits = pmap_cache_bits(kernel_pmap, - page[i]->md.pat_mode, false); - pte_store(pte, paddr | X86_PG_RW | X86_PG_V | - cache_bits); + pmap_kenter_attr(vaddr[i], paddr, + page[i]->md.pat_mode); pmap_invlpg(kernel_pmap, vaddr[i]); } }