From nobody Mon Apr 03 12:20:27 2023 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 4PqqjR2zlbz447Ps; Mon, 3 Apr 2023 12:20:27 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PqqjR2HdHz3t5T; Mon, 3 Apr 2023 12:20:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1680524427; 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=jPQwZV0p2Nt7J85WUiJEL2XmiIfZQPMjmfTGWFIGs6M=; b=ELmj1sABPN1xstPEgrJchgRKtFBkT8FcPMEg3uuRCtdfHWuef4tkNvL5ON34R2OQJFksnU x7PWjxht/ww8mk+vpSGOfo/L2GbOEaEt35EncVPF7Bur9ZhV2R1ezDJtuhk/rrf5E1gfMY XV9411YhbGYf2tccTgOnoXFWN5Bmba592dPHeN/Qdss4YBesdgk3vflQYOv1VWo5gto+0t NQyUeKM5a07cmofMNArfNybMPWJxraV/MACqiqPxGcW1vya9uBeQyujkssgmdY9vJSIW49 tMO0yPJGsXeRh/KqEP7iMd3hnVcGUBGDK7x4L22vxr/hD73THTppbBW+Or0IEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1680524427; 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=jPQwZV0p2Nt7J85WUiJEL2XmiIfZQPMjmfTGWFIGs6M=; b=dPADRP6zPkCxmJjy34axFt+620ym2BIvhQ0dspmjtGb8U3l4HdVZ6k0bt+F98PdhVwvwYY gJBZpXwv4URj+9XTr5GBzQWizhIB93A4EYQsBaYaixhYt17xtsqfwp0l87AAzMJa4TFBgY 0vkTVtGzyef8fLvO2v0TgmfwxcqrUUyMEQtrDFF4oZFa17dblJxApHHErvPByou7g9AsFT EtNX56xuuZLXk673NSnCNf2E7GuZw1MThpM51Od8JWI7WygJsTAENyrSw9J8yAD2QN4Ydn Z7z9aphr13HFLxm1i3YSDv35soqD7vYXabdcGIwNsfhOga8YZEfFNEHgtO3GXw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1680524427; a=rsa-sha256; cv=none; b=LTE/QvLXVanYmgV/J6NdZwZZ0ZjC706yAx9/JhUcqRZA7KhKd1PQLY0+cADoX3gT+aHPku 9N1t7lzsJOGnUJO/d/mxAGbuN6u+oeeQVNaleb7KKNE+cnq2DBQq8ghbJL6XA7Jy6vPpiE frn8oFNzizeq94caYLk76BoMaVSzNjzgXP0gdkLdxLyJcUx5iUgGzoaZ3CTPQvqJsi6NW1 VEW6/i1UFr2m9JX3MjKvJvk8QRJlIsJS3kvplrBKb1FDww7V/WWAX1pUTtXGRphORysEtK ABcQECN/bdj/92KQawf/KP7PL0gwxXv6Dj8NPBkU4bHMA396aYZYGt6EE3a+2g== 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 4PqqjR1Fnhzy6P; Mon, 3 Apr 2023 12:20:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 333CKRff029395; Mon, 3 Apr 2023 12:20:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 333CKRCd029394; Mon, 3 Apr 2023 12:20:27 GMT (envelope-from git) Date: Mon, 3 Apr 2023 12:20:27 GMT Message-Id: <202304031220.333CKRCd029394@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: 41236539d8dd - main - Add non-posted device memory to the arm64 mem map 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 41236539d8ddd9244bd8d7c0a20f239ac7d952d2 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=41236539d8ddd9244bd8d7c0a20f239ac7d952d2 commit 41236539d8ddd9244bd8d7c0a20f239ac7d952d2 Author: Andrew Turner AuthorDate: 2023-03-31 15:58:57 +0000 Commit: Andrew Turner CommitDate: 2023-04-03 11:59:11 +0000 Add non-posted device memory to the arm64 mem map Add VM_MEMATTR_DEVICE_NP to the arm64 vm.pmap.kernel_maps sysctl. Reviewed by: markj Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D39371 --- sys/arm64/arm64/pmap.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/arm64/arm64/pmap.c b/sys/arm64/arm64/pmap.c index b62673f999e6..2e5b2c23efd7 100644 --- a/sys/arm64/arm64/pmap.c +++ b/sys/arm64/arm64/pmap.c @@ -7843,6 +7843,9 @@ sysctl_kmaps_dump(struct sbuf *sb, struct pmap_kernel_map_range *range, index = range->attrs & ATTR_S1_IDX_MASK; switch (index) { + case ATTR_S1_IDX(VM_MEMATTR_DEVICE_NP): + mode = "DEV-NP"; + break; case ATTR_S1_IDX(VM_MEMATTR_DEVICE): mode = "DEV"; break; @@ -7863,7 +7866,7 @@ sysctl_kmaps_dump(struct sbuf *sb, struct pmap_kernel_map_range *range, break; } - sbuf_printf(sb, "0x%016lx-0x%016lx r%c%c%c%c %3s %d %d %d %d\n", + sbuf_printf(sb, "0x%016lx-0x%016lx r%c%c%c%c %6s %d %d %d %d\n", range->sva, eva, (range->attrs & ATTR_S1_AP_RW_BIT) == ATTR_S1_AP_RW ? 'w' : '-', (range->attrs & ATTR_S1_PXN) != 0 ? '-' : 'x',