From nobody Thu Mar 16 16:46:11 2023 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 4PctSN1zmNz3yKDR; Thu, 16 Mar 2023 16:46:12 +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 4PctSM6CQNz3nH3; Thu, 16 Mar 2023 16:46:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678985171; 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=IWkdJGd7f3WSAs9tTFGQOykuIDa1E0bMtz9QSnzuJbM=; b=WRCShI92G15DAFKtWrjO8rA+iuFKSmb+lhn86kF/lNgKqp6kfnIeMCLvEgcJYE2M7z3p7u /nBwDVwdHb2eddkp5hNW3o3Q9qbSQofg7EI8iPU+y2x8qyg/kck6WLJ1QcFt7Cwch2/tbK JIhgwZKDncnJjFliMT8iqrpGjB8JsTkBiVv5pyP5Eyq7P1GoPA+1XTrq/y6n0zv0p1Ka0c 3KJrb7z31rtkL1kf+CqXqNUD0RWXS/zkFiREb9cFfJIQ4M1h0F0qg6d7LlGDNdsJHcimfS RrLZifcsGcrtfieUrNBtqK3SyYbMXWOtyk6n7Lt6+yrKB5N/hA8NxiCqgY9lZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678985171; 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=IWkdJGd7f3WSAs9tTFGQOykuIDa1E0bMtz9QSnzuJbM=; b=ozzMUK/v/b730/uZBUg3VmhF4O8zDhpUsMPsNepkQG6b9dQeWWo1VKQ0Dbz1EvTgaajX0E 3j1UajZBsPhvB5dJGwcl6tJRiEMoBNpoKL2CNh79GB8qovY4h1NzHq4tmC3kQyc7GgDJtB rNhaM2podVyASUyKTz+BsMvQkqxiP1GCpDGDIoRhTph8r7NDjf2MOzmKIZzmY3Xuy5Mwmu BiXVp1jKlSn3eUY/kq1+BivyK2TOBQc7SMO/nejRAMli0VO1huWdbC8Atn8CzM5wE0LaB1 7cmPWUD4c8Kk38ST3m77TLNxFiy+fHG7aCmRQYTjWlgwCrNiHlpwSS2IKAKI7Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678985171; a=rsa-sha256; cv=none; b=ZEnXjQAkcgZVYTZH3pjKg6KYZBLv601bm0RrOPdJWkgbuz3zXn3Wb/72vUjNqif2XzPnHd rUtRga4nhyPwowo6Wnp3kshYkfDKWiCcUssdQASnR6Y1d0XPnTBm+WfKxuEcqpfv2ANvl0 v1ckOP+tCTRCNNLt+lc/IrBGMLcrEq9GHxe3ZkhRSE3BK7d8L1DwzPNeWqpkNi0HjJ45c0 1uswUNT47i2PPM3vPqHv29um8cT/K8MhgBYBZcxaTAmZZmW4OTErHEkZKc14ffdTXAZX9S zBHIa0m3TxFJ6rpM4yVJgrCNSFaNAGE16HflJtWTMYoHmXKiyGWSPnpMmelEFQ== 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 4PctSM58DtzqmX; Thu, 16 Mar 2023 16:46:11 +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 32GGkBYu022274; Thu, 16 Mar 2023 16:46:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32GGkB3A022273; Thu, 16 Mar 2023 16:46:11 GMT (envelope-from git) Date: Thu, 16 Mar 2023 16:46:11 GMT Message-Id: <202303161646.32GGkB3A022273@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: 3473f2832284 - main - Switch the arm64 VM_MEMATTR_DEVICE to nGnRE 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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: 3473f283228401ba585044ac6dea8c8eb27237a5 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=3473f283228401ba585044ac6dea8c8eb27237a5 commit 3473f283228401ba585044ac6dea8c8eb27237a5 Author: Andrew Turner AuthorDate: 2023-03-16 15:36:06 +0000 Commit: Andrew Turner CommitDate: 2023-03-16 16:45:42 +0000 Switch the arm64 VM_MEMATTR_DEVICE to nGnRE Move device memory to a weaker type. The new device memory type allows the system to acknowledge a write to a device before the write has completed. This is inline with VM_MEMATTR_DEVICE on armv6/armv7. Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D38945 --- sys/arm64/include/vm.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sys/arm64/include/vm.h b/sys/arm64/include/vm.h index e479aab52e26..a8c1ea97b513 100644 --- a/sys/arm64/include/vm.h +++ b/sys/arm64/include/vm.h @@ -36,11 +36,7 @@ #define VM_MEMATTR_WRITE_THROUGH 3 #define VM_MEMATTR_DEVICE_nGnRE 4 -/* - * VM_MEMATTR_DEVICE can be changed to VM_MEMATTR_DEVICE_nGnRE when - * the PCI drivers use VM_MEMATTR_DEVICE_NP for their config space. - */ -#define VM_MEMATTR_DEVICE VM_MEMATTR_DEVICE_nGnRnE +#define VM_MEMATTR_DEVICE VM_MEMATTR_DEVICE_nGnRE #define VM_MEMATTR_DEVICE_NP VM_MEMATTR_DEVICE_nGnRnE #ifdef _KERNEL