From nobody Thu Jul 16 15:33:14 2026 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 4h1HB30l47z6lWTC for ; Thu, 16 Jul 2026 15:33:15 +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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4h1HB305Bvz3GHF for ; Thu, 16 Jul 2026 15:33:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1784215995; 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=dYhmc6NRNPw+yJdCBaBYFEnnYnAntfnLL4RPnDkt1hI=; b=YgIkn9oFOnlkX0PctBR+H5/s9n9lyihp3mE7DXs34Bp7sd+hKpOv2B0pwIMIdAWiQEwlUM qm9BlJQvECQDyYVEV1/6VFwaItxWll1W11pP4kBPjbK5peFnuqfmuO19DhyYgHtXyH02gK NpfQ1JOhEZQECW63ME1lpSyc1L8oqkUQbCK6+t4aO03PmIuzAnZdBoM3bFxoJrFLW5JUR8 YmuCBZXdcMZSNq6Wha+4jmx4GSRrAWJMzIVpwMc0Qwe1sGJOcfIw3eKZUvnQ70Q/yMZ9pq nFovd8KlVUAVPxXdrh2w0WGgH7czlNB7vzWb4WE8XSkb6fyEOWC8PcMxgjAGng== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1784215995; a=rsa-sha256; cv=none; b=LKB+/9gO9fgxCxArqth4EDkWfPjsIegkOqFXMmMwiOPsJ7olryLmJjMoO+u/7OJr++tpma tunqvgUyPhnDhXRsBiixQOtwHxFHRQ7rr8M3zkVoNL/2li0/W1/7B2MvRXX+M8usglk7+W Ep+/zc8yKxvV02WBtmLDqO4VxaCsumRreNMEX8v7Tgb31ZXEpYYr1Uspg8hv1ZW1LYow0P jt+fP9I9LMpAWO5mgGvs+ucJ0LeE62Y5Hj3w0c2SMcqaFHoNYwZHH31M8VP0MSsvvELL/M naXsXAB4ZOpyBRs0/8Sbt6qpwEHvK6f3jRnY3B82RwWx6ENgq3+aLuks+ScMsw== 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=1784215995; 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=dYhmc6NRNPw+yJdCBaBYFEnnYnAntfnLL4RPnDkt1hI=; b=BPjt+aOzwZXRcU1NbBrb7GMm1UF4B6jVkKRRgPRmA1Mu6GFABws/LXecRSIM3cBSzWNQL8 MrAk382O+qSo1wIG78bsd/AVt1SqpgXT7Jzg8mXwRMpUC32VSXvgSrjDccDisEEKi6ON34 JyztM7NaZVY3NoI7pULW5bH7+Z3XU5ClqFMBYEi6n5kA9yOQ/fOWztT0puBPgJj5m1o6n1 72ZSv/3P9822XhdHb79sN321BfqhcpPqtNT040MXn4nPk47l4YRhjoaHMkRvb2fnYQ9rtu 79LVyvLKNjNK/FkA/A+qunQzf/9m9tcNdYFIyxj/wXW0zM04pbefFjYXd0dq3A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4h1HB267HTz1Mf5 for ; Thu, 16 Jul 2026 15:33:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1def4 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 16 Jul 2026 15:33:14 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: a2f50c4b32d1 - main - amd64 efirt: register all runtime regions as fictitious 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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: a2f50c4b32d1c126cf2309dab61d27d6329908f8 Auto-Submitted: auto-generated Date: Thu, 16 Jul 2026 15:33:14 +0000 Message-Id: <6a58f9ba.1def4.2967a3d7@gitrepo.freebsd.org> The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=a2f50c4b32d1c126cf2309dab61d27d6329908f8 commit a2f50c4b32d1c126cf2309dab61d27d6329908f8 Author: Konstantin Belousov AuthorDate: 2026-07-16 06:49:21 +0000 Commit: Konstantin Belousov CommitDate: 2026-07-16 15:32:50 +0000 amd64 efirt: register all runtime regions as fictitious This is needed for VM_PHYS_TO_PAGE() to work, which is needed for pmap_map_io_transient() to work, which is needed for uiomove_fromphys() to work. PR: 296348 Reported and tested by: Anton Saietskii Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D58274 --- sys/amd64/amd64/efirt_machdep.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/amd64/amd64/efirt_machdep.c b/sys/amd64/amd64/efirt_machdep.c index f3e3db9cba9c..f5be20e99b40 100644 --- a/sys/amd64/amd64/efirt_machdep.c +++ b/sys/amd64/amd64/efirt_machdep.c @@ -54,6 +54,7 @@ #include #include #include +#include #include /* The EFI regions we're allowed to map. */ @@ -253,6 +254,8 @@ efi_create_1t1_map(struct efi_md *map, int ndesc, int descsz) "attributes unsupported\n", i); mode = VM_MEMATTR_UNCACHEABLE; } + (void)vm_phys_fictitious_reg_range(p->md_phys, p->md_phys + + p->md_pages * EFI_PAGE_SIZE, mode); bits = pmap_cache_bits(kernel_pmap, mode, false) | X86_PG_RW | X86_PG_V; VM_OBJECT_WLOCK(obj_1t1_pt);