From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=46.19.12.180 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796123097; b=Afh4SWxd18+FCgc8E4HZFH8SWRluII9RRBz0NMQ2D909A6/o/Eyj6jy2rHZhsw2+3iSL sffw5BhyU5Hgc55UA239ka6QJbZOJ4IcmgRNl9w3T8Ibl/w8NqPh+R1FdKwehuKc1H6Js OraRNBUAMVvqISaVYsQXR86GTojqG7CqVOeMjqoSWhi48i2YxVAiE5s+E3yeBHlxLlkae xjwuQbxAdHXJdnhnWEmsTZZQzJH7XNjKWOp+kyPFdh9bHDP6+IIvVVy/Pj+45qe4ASV9s Q+9jbjJEk3rxgBqltuOMssA9EJzZBahkWDoLQaqcxSTv1ypDiVXS92aOQgILpOBdhYQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796123097; h=DMARC-Filter:DKIM-Signature:Received:From:To:Cc:Subject:Date: Message-Id:X-Mailer:MIME-Version:Content-Transfer-Encoding: X-AntiAbuse:X-AntiAbuse:X-AntiAbuse:X-AntiAbuse:X-AntiAbuse: X-Get-Message-Sender-Via:X-Authenticated-Sender:X-Source: X-Source-Args:X-Source-Dir; bh=vRLUaFy1ath78uTKlHKRkk8NAerTNstj2h4DeGV+/jI=; b=5CwYp7yFJfXcItU/jXscv2NKpCbsCAXOOf2tZvm0ANWPrZe3RYUbKkAS3qbxIbLA1cv9 dTu2KaXub/tUSkq6JUZvGobsxW/MQS2yHA3fSn8b0aRA05fXsyBjD1ZX9x/LYnM7Onufz 18A5oM3JWfh4BTZdYou6nTkncE+A4LKOFTj5QSbv+nmyUO7Y50B6fS8KLshOlTSiQMMtF +FCUIO3tKJ44vDejnLAFeA0figQWcAC7sKbh9QeyV12wBYGPw4pOSDiSnxd69JqxUXFFe /bGcSEVdi3LIlXIep9nBt+wB/V7ewrsEaorimCi0N9zDG1f8lY/d9S5TryICGJycl/g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=norik.com; spf=pass smtp.mailfrom=norik.com; dkim=pass header.d=norik.com header.i=@norik.com header.a=rsa-sha256 header.s=default header.b=QvP3PUsu; arc=none smtp.remote-ip=46.19.12.180 Received: from cp2.siel.si (cp2.siel.si [46.19.12.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E9C2C606A31A; Tue, 1 Dec 2026 11:04:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E9C2C606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=norik.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=norik.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=norik.com header.i=@norik.com header.a=rsa-sha256 header.s=default header.b=QvP3PUsu DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=norik.com; s=default; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Unsubscribe-Post:List-Subscribe:List-Post:List-Owner:List-Archive; bh=vRLUaFy1ath78uTKlHKRkk8NAerTNstj2h4DeGV+/jI=; b=QvP3PUsuCRx8kzjdbh5nnFU7Pj Z1y45GL0FK4qQ0AjsKUTMiRkmZnO/oRXPYkc7QAGUm9+PWRMxt6HDTGVQLiQtH1HEuqp+2vO++U+w QRNngAuPnP/IGPR6hAx9v5UXPgXy4NX5Uhs7J891CHenfmwTO1Q6TIKvjQHRrD8o0CBsYdveK65fr EG0ErHH1S/osqwWICR8FjIWmdNqQxPSPiN4BiH/wDiRvXMRTvHbKR04uL5lEoUAnjA7yI5jKRq+Cp KKHCol/14IyhEy6tbBLIJdEZ5lm5mZY5AoPe5dSfvW6VNTkmbGJSc1x1unxOkUtDeSURzS2w6HuLX 8UwxfpuQ==; Received: from 89-212-21-243.static.t-2.net ([89.212.21.243]:44752 helo=and-HP-Z4..) by cp2.siel.si with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.100.2) (envelope-from ) id 1xYLfH-00000008rP4-031q; Tue, 01 Dec 2026 12:04:48 +0100 From: Andrej Picej To: Frank Li , Sascha Hauer , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: kernel@pengutronix.de, Fabio Estevam , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, upstream@lists.phytec.de, Andrej Picej Subject: [PATCH] arm64: dts: imx8mm-phycore-som: Add CMA reserved memory region Date: Tue, 1 Dec 2026 12:04:41 +0100 Message-Id: <20261201110441.3741481-1-andrej.picej@norik.com> X-Mailer: git-send-email 2.34.1 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cp2.siel.si X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - norik.com X-Get-Message-Sender-Via: cp2.siel.si: authenticated_id: andrej.picej@norik.com X-Authenticated-Sender: cp2.siel.si: andrej.picej@norik.com X-Source: X-Source-Args: X-Source-Dir: Without a linux,cma node the kernel falls back to CONFIG_CMA_SIZE_MBYTES, which is only 32 MiB with the arm64 defconfig. That is not enough for the display, GPU (etnaviv) and VPU (hantro) buffers and leads to failing contiguous allocations on phyCORE-i.MX8MM based boards. Thus add a 256 MiB default CMA pool. Allow it anywhere below 4 GiB, so it fits all RAM variants of the SoM. Signed-off-by: Andrej Picej --- Notes: Why in DT: the i.MX8MM has no IOMMU, so display and VPU buffers depend on CMA and the SoM should work without a special kernel config or bootloader setup. "cma=" still overrides it. Same approach as imx93-phycore-som.dtsi and imx8mm-tqma8mqml.dtsi. Peak CMA usage measured on phyBOARD-Polis-i.MX8MM: idle / display, GPU load 15 MiB 1080p H.264 / HEVC decode 59 / 49 MiB 4K HEVC decode 138 MiB 4K VP9 decode 242 MiB --- .../boot/dts/freescale/imx8mm-phycore-som.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-phycore-som.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-phycore-som.dtsi index b764f7734868..e5b29fa75b95 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-phycore-som.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-phycore-som.dtsi @@ -28,6 +28,20 @@ reg_vdd_3v3_s: regulator-vdd-3v3-s { regulator-min-microvolt = <3300000>; regulator-name = "VDD_3V3_S"; }; + + reserved-memory { + ranges; + #address-cells = <2>; + #size-cells = <2>; + + linux,cma { + compatible = "shared-dma-pool"; + reusable; + alloc-ranges = <0 0x40000000 0 0xc0000000>; + size = <0 0x10000000>; + linux,cma-default; + }; + }; }; &A53_0 { base-commit: 4fd36177c1281252290436f27a034d4473aa2744 -- 2.34.1