From nobody Mon Nov 11 08:23:24 2024 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 4Xn2cY0xZnz5d0Ww; Mon, 11 Nov 2024 08:23:25 +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 4Xn2cY0HKGz4VX0; Mon, 11 Nov 2024 08:23:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731313405; 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=Dc964JSywBitbQjDHVfmFIMoJ++feZWsye9Qyhqoo80=; b=ZAfUohKyMCByoTJRY+QZMhvoSXvsiHJjsNAe0OGlbrO4k0KoSfQc7hUeR6Me7WJHDEIoRL kR2HNp0+zA2wmopzkKfh78nx/Uk9ndsAPxDOeixJ4HjqZGT8kSylDbGNQHdy32v/9dgiI3 rPc1b4F2WOyfVc0fx1fQEXz09tFK4Y9Dq0cYQLtV/VxCjEoNuhiH7FZZJi2X4BZbds6RfZ R8QFHoEPQwjRcgtEwF9M588hsDmivm2dvAv9gXgIM7IO5NPMZa/Dhcjy3txe6XQK8qI2IH PXISncJMaep2eyKZ2OyBH6GQny2ZaWDLKuTmTYYc9waLq+5fPo5lC1BA4C5k/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731313405; 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=Dc964JSywBitbQjDHVfmFIMoJ++feZWsye9Qyhqoo80=; b=lij0EV7b5ahFa7QVugk15HkqmFv4FyEnoq+Bj/v1MJxElP54CdA8mmwCm/zj8poVHB9H0R dI9cWpMzx/MTigSvXTbDG5LvSDl5dj5giS4SJCdATz5du8j3bowsrfyoTLPZ/GSTgpOxgf +vS5utF39GnEjeDkoU7W38vX2NIj8SKcMcWTVER8VdzEEVDbvWNFSctdcLGPs6lJvtNYNy VWrMFrWxWKM0YfNaqQAliDW5zoQkDVf1BYgDJfjBGsC8zGPBKX65pkMPjoTJDzydp3Yxme NEsZeGVlBkFLI/dOXHnSIFOqEeUgJ+O+3TV8FL5WT6OLBWbMZmSYbFse2bmG6A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731313405; a=rsa-sha256; cv=none; b=paFPc8n8xTVl5QAjJ5USob0QmeuwfFVsFKKqodaF5RH8lcjcU32bzMRNjwf/lFZESZZ+Ar 40nVm3jQmvOMtXwfomSLrXtwuvGpg8xo2EzWVebMGbGMU9G2Yfsd+cXN5moiZjifp+jDDM OupnEOl2c4rCAqsMqx6VoN9nB7m/iwH1x1V2+T/cV+kW7bDiuyjFC9tHVlp3fLAIrslRPH k7E2f3LJ/o4skAQK8sBTrRmmXNpkcbm2GzBfwMXJWH0o8Aq81gTg8v6bBwdXB0eKUvDGAd lUqnlMzQRgceGLRYUd1acglqYweBc/9AnZiSxH3HwoQ5WSUrkHJ9nUoISZ75Gg== 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 4Xn2cX718mzJXN; Mon, 11 Nov 2024 08:23:24 +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 4AB8NOhX056704; Mon, 11 Nov 2024 08:23:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AB8NORB056701; Mon, 11 Nov 2024 08:23:24 GMT (envelope-from git) Date: Mon, 11 Nov 2024 08:23:24 GMT Message-Id: <202411110823.4AB8NORB056701@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Michal Meloun Subject: git: 248109448f6a - main - arm: switch the BUSDMA buffers to normal uncached memory 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 248109448f6afb3d093a522677aab2975a3e7a15 Auto-Submitted: auto-generated The branch main has been updated by mmel: URL: https://cgit.FreeBSD.org/src/commit/?id=248109448f6afb3d093a522677aab2975a3e7a15 commit 248109448f6afb3d093a522677aab2975a3e7a15 Author: Michal Meloun AuthorDate: 2024-11-08 12:00:57 +0000 Commit: Michal Meloun CommitDate: 2024-11-11 08:22: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 --- 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 */