From nobody Sun Dec 08 13:38:06 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 4Y5mKB5mSCz5ghJt; Sun, 08 Dec 2024 13:38:06 +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 4Y5mKB26Ctz4qrH; Sun, 8 Dec 2024 13:38:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733665086; 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=OU2DPKVxkt1XrmMByPUqjhIFkW2u9kXfzdVR3sKaHNA=; b=aQm2/yTLJfzYiAAUU+miEMv4KhRNXTYbL05I+XCpjhyYjkuFLVVKITn1XaR/me7DRTa27f H0MKlk8Bga/H9ntX6/PmZPZZnyTAnis75SU75NMOTqeArNYAF/c6WFysSDh+Ek+4mq4G2r lvBCX8iALapaXEjpuUPcgb+wjwUjc0ScfNXMJlCwD/Sv2WhOmJ9JBxChR9JJ+dIwosYw2b 1ymYSkSTxAFDfICWVAHgJqIi3pyxro23wHDffp4fI7uTIRY7MxtJoDlhDW16zJoT14Wv/O 5Gw28vVXgIYKF+w0JYwvrgfbgrZoLt2X5ifCSEnXxMbXlHVJgT8K1ng7/DkDyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733665086; 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=OU2DPKVxkt1XrmMByPUqjhIFkW2u9kXfzdVR3sKaHNA=; b=vPZ4WqFchCyxooxYjOMTS6n+UrV6zG7yn6kawFLBLIlDJeksxguCPqrzNZuymRDGIS6Gac RHo/TQ0AmmawTuUlGzyW8AbOiQDiXoe+NiKX1qkJHJBULDNNkH5AnGD0zQVI1G6HTfVEjv j3Rs4soZVTNPnkRxTmM9IbIlrGgmbqQ2/Vuk7JYVCb7gJJbjmaoySW3mX7IyFRZExHnXfA dpCYvCDyza0IZxZKWHHXZBCL9WYDnZjTkT5BvHDlsFAk6zqgbGA016ZcFqNzcDwsgW7D4Y AEDPv/Ce4ZG8czXJ0kl/WJDU2eSe24m5wiZ6rIxaF9g8YZwPlXJHFwc11IsIRg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733665086; a=rsa-sha256; cv=none; b=G96Efn251G3hmxlO1Jki4dX9BTdiyV/YcrEc2wgZZ9qU1Ma2FihXH40ceOfxIGpG8ufOIg nn48T/H5p2bzTEZfJ7R6XK50gOEuTlPKxgxIHQkQe9hYsP0f50jvAHdNVTzU4uAMA15qqz N4Ta8WI44ZcqSs+tYRdt2MYOdesweL2C5OigPALABvI7CnU9lPIaFGMH3HJyobZbOU7i+U 9IjRzZpOclLUzrIlHNvgWPQeM5HnHuhE/EHZc4xdkU7xv4COZjOxYPytNLZzi/sW87t1Qa PfwsUhnwz2siRNLd/pWCIXa/XOEYJXcn+8HVb+jN2jCXcMplJP7y/rYY47i8MQ== 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 4Y5mKB1Z5WzvR9; Sun, 8 Dec 2024 13:38:06 +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 4B8Dc6HW039464; Sun, 8 Dec 2024 13:38:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4B8Dc6eR039461; Sun, 8 Dec 2024 13:38:06 GMT (envelope-from git) Date: Sun, 8 Dec 2024 13:38:06 GMT Message-Id: <202412081338.4B8Dc6eR039461@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: 52c00b65a76e - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: 52c00b65a76e0bc670c5d2b9d7c85542e3b536b9 Auto-Submitted: auto-generated The branch stable/13 has been updated by mmel: URL: https://cgit.FreeBSD.org/src/commit/?id=52c00b65a76e0bc670c5d2b9d7c85542e3b536b9 commit 52c00b65a76e0bc670c5d2b9d7c85542e3b536b9 Author: Michal Meloun AuthorDate: 2024-11-08 12:00:57 +0000 Commit: Michal Meloun CommitDate: 2024-12-08 13:19:41 +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 */