From nobody Sun Dec 08 13:37:41 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 4Y5mJk26D4z5ghCd; Sun, 08 Dec 2024 13:37:42 +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 4Y5mJk1XFBz4q0G; Sun, 8 Dec 2024 13:37:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733665062; 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=1WoWqsWGTXj/2zvCS2zrR3qoM588G3vSDvGVic+du7I=; b=qyLsMHndx8DSj9mQRl/uJzw70md95VKD0goEJHzK2tAZzb/mMJs9tNdd30X1lKj69U75gX WFfd/jG7BdTXHdiY+fV1UzwI//nt7Mk4cylNnjwrTmrRti4vSaP5vd8iJOyeJnlulnP60X 7nXL3fqw8Be5m/rZmr0N6aTBN/WhVxmrF4BTVk/fNedGD8/MN8oSlr2sDWod1bk2E+EPOe H+wb3v+ZYMpKHMQLPunqitiwCa+aeg9W8F4UK3dbpvENlrzzCodYspQhCAX2FfA9ZtZyxj K54XXTp+h1fASMT39RVkB8LKEgbd10tK1qvUdANkWbLCZ54oTex1eldzDT4+1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733665062; 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=1WoWqsWGTXj/2zvCS2zrR3qoM588G3vSDvGVic+du7I=; b=BN8+HgcEIBe6iXpN1aKcRpc3/BsMs647JwTLxfr3m7CFq/Pqmqn9j4NhZHlE9Yf7hrXIyC DehZrkbLsen52zk3OVaM/E6yU5t9SVKNydg+L7NWr2vW6gIFRgSbx76twcBJ/zstjBWxus xes9/F/yOYRdjrsbve2XFzckVdmMxdt77PRWIgcV68ngXIn1mQitHoHpK1spuN5m7/xsHZ HNSrLxH4XV52QSeF6RtRiFNF4sPcYmlNZr9fQyYjhzY0AzULhyO89sRcDdqdn5C0dEMhGU dqmc/nmdsr6FkzBfeKOL2hmyRfRJ26yif1M5v4ibjlmOy/P1yM35tas4p67R/w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733665062; a=rsa-sha256; cv=none; b=f3+mL4i37wVYqSYlShzlUhvCISJ87Dky7oQ0vHMjHglIf0wm0qUNp0r5C28Nk2c9/GJSck jLhqshAsx8ku4wYW2pIs30tl0hbt3EufBWNLOTxN4alpYJnrlOXXTC2y7VfgXPR9gb0MDa ymFDEsjAfj+qYDMdEyDycUq5z8wTyrWT5CpJ3pXHCE6xmcgvj0v3Km3JCF5S/FxPt1cK+K zAsGpOVtL3ncq7OY8oYNJkg4cE6EKQOBqy8MHioU0wbrZhrL88CCM6jD6ZtejHTLu6xHTa 2LavvjCJLZ4ug0YwwFP12z0BuZjr7keMxNM6tobgeSWjbGzZEyuwGilcDntRow== 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 4Y5mJk0fW2ztpm; Sun, 8 Dec 2024 13:37:42 +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 4B8DbfCA038935; Sun, 8 Dec 2024 13:37:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4B8DbfB3038932; Sun, 8 Dec 2024 13:37:41 GMT (envelope-from git) Date: Sun, 8 Dec 2024 13:37:41 GMT Message-Id: <202412081337.4B8DbfB3038932@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michal Meloun Subject: git: 60799897ea89 - stable/14 - arm: switch the BUSDMA buffers to normal uncached memory 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: mmel X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 60799897ea89606ce5d46a520a9588ead2433750 Auto-Submitted: auto-generated The branch stable/14 has been updated by mmel: URL: https://cgit.FreeBSD.org/src/commit/?id=60799897ea89606ce5d46a520a9588ead2433750 commit 60799897ea89606ce5d46a520a9588ead2433750 Author: Michal Meloun AuthorDate: 2024-11-08 12:00:57 +0000 Commit: Michal Meloun CommitDate: 2024-12-08 10:36:37 +0000 arm: switch the BUSDMA buffers to normal uncached memory The BUSDMA buffer is treated as normal memory during compilation and compiler is free to inline/optimize basic functions (i.e. memset, memcpy) accessing buffers, including when an instruction is generated that performs a word access to unaligned data. We support this, but only if the buffer in question is mapped as normal memory (cached or not), but not to memory mapped as strongly ordered or device type. MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D47485 (cherry picked from commit 248109448f6afb3d093a522677aab2975a3e7a15) --- sys/arm/include/vm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/arm/include/vm.h b/sys/arm/include/vm.h index 439dbdf440a6..697b48689bd8 100644 --- a/sys/arm/include/vm.h +++ b/sys/arm/include/vm.h @@ -36,7 +36,7 @@ #define VM_MEMATTR_WRITE_THROUGH ((vm_memattr_t)4) #define VM_MEMATTR_DEFAULT VM_MEMATTR_WB_WA -#define VM_MEMATTR_UNCACHEABLE VM_MEMATTR_SO /* misused by DMA */ +#define VM_MEMATTR_UNCACHEABLE VM_MEMATTR_NOCACHE /* used by BUSDMA */ #ifdef _KERNEL /* Don't export aliased VM_MEMATTR to userland */ #define VM_MEMATTR_WRITE_COMBINING VM_MEMATTR_WRITE_THROUGH /* for DRM */