From nobody Mon Feb 9 23:01:01 2026 Received: from fllvem-ot04.ext.ti.com (fllvem-ot04.ext.ti.com [198.47.19.246]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 61066221291; Thu, 24 Apr 2025 08:44:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.246 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745484268; cv=none; b=h2pumxBOewc75fTuuoBLpvhtPW6jH2Cu4lvdEf08NNlw9Q0rrjpBzZHAsZJL0WVp28lblIzGltR8Id+1uWAMqB/wxk3X+ev4NOQ/7vCD2rZ1r6fb9UyzIb8uSolrdh0gK+Qc6keIOxRUnHKPWjHK4kZfCWJbF4SBYE2AAbjMOmI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745484268; c=relaxed/simple; bh=annhWEmk6DJ0CzX4ypobosFrKn1ReHpsc3v9qdBiNVM=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=OBzl8hflEx04wKF4mdELayb7zh5jyFqgbto90Vmnb+AmdfCXsLV+Gr4mB0i2oDsFQapxyosW+otCFGFBj+LuJ9SQgavM8srYikLsZ1nJgk/tHZYW1bYIosUAjUkmVoiIcdHgCLdY0W8QzDNIzyOEmkrQU8PXulOOfmp2TIoNuXw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=C5FBImGY; arc=none smtp.client-ip=198.47.19.246 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="C5FBImGY" Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllvem-ot04.ext.ti.com (8.15.2/8.15.2) with ESMTPS id 53O8iJHG2448691 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 24 Apr 2025 03:44:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1745484259; bh=hu3uAgQuAkms0/9RpR8vcBVvwdO2elej7Vk+d6PRqRU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=C5FBImGYId6V5JyMvVMZNFUl6Bqh4WxLp5ZOBI/x8g5y4BsBFPC7b2ijQbnYJa9zx h4yn7dm1bj15muZJgbhVCGfCcphHFNKN8iAbFDZmjMbpspozVKTLxT77FU2d0BXuqv XiL6ObI8ZM9UJK+KDov2fuleRLcMSV5h9zADV4bs= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 53O8iJpE059154 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 24 Apr 2025 03:44:19 -0500 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 24 Apr 2025 03:44:18 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 24 Apr 2025 03:44:18 -0500 Received: from localhost (jayesh-hp-z2-tower-g5-workstation.dhcp.ti.com [10.24.72.182]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 53O8iHLC058403; Thu, 24 Apr 2025 03:44:18 -0500 From: Jayesh Choudhary To: , , CC: , , , , , , , , Subject: [PATCH 1/4] arm64: dts: ti: k3-j721s2-som-p0: Reserve 1056MiB of global CMA Date: Thu, 24 Apr 2025 14:14:12 +0530 Message-ID: <20250424084415.66457-2-j-choudhary@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250424084415.66457-1-j-choudhary@ti.com> References: <20250424084415.66457-1-j-choudhary@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea Content-Type: text/plain; charset="utf-8" Reserve 1056MiB of global CMA pool which is also marked as re-usable so that OS can also use this region if peripheral drivers are not using it. J721S2 has different multimedia components such as Camera, Dual- Display and H264 Video Codec which uses CMA for buffer allocations. Assuming the worst case scenario where all three run in parallel, below is the calculation: 1) IMX390 camera sensor 1920x1080 -> 1920 width x 1080 height x 2 bytesperpixel x 4 buffers : 15.820 MiB which is ~16MiB J721S2 can support 8 cameras so ~128MiB 2) 3840x2160@30fps MHDP via DisplayPort0 -> 3840 width x 2160 height x 4 bytesperpixel x 2 buffers : 63.281 MiB which is ~64 MiB 3) 2560x1440@60fps DSI via DisplayPort1 -> 2560 width x 1440 height x 4 bytesperpixel x 2 buffers : 28.125 MiB which is ~29 MiB 4) H264 Video Codec 1920x1080 resolution: -> For 1080p resolution codec application, we require ~98-100 MiB per channel. We require ~800MiB for 8 channel codec application. Total comes about 1021MiB. Adding 32MiB for other peripherals and and additional 3MiB for rounding it off to 1056MiB. Signed-off-by: Jayesh Choudhary --- arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi b/arch/arm64/boot= /dts/ti/k3-j721s2-som-p0.dtsi index 54fc5c4f8c3f..2d67fc4bd018 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi @@ -25,6 +25,14 @@ reserved_memory: reserved-memory { #size-cells =3D <2>; ranges; =20 + /* global cma region */ + linux,cma { + compatible =3D "shared-dma-pool"; + reusable; + size =3D <0x00 0x42000000>; + linux,cma-default; + }; + secure_ddr: optee@9e800000 { reg =3D <0x00 0x9e800000 0x00 0x01800000>; alignment =3D <0x1000>; --=20 2.34.1