From nobody Sun Feb 8 15:42:30 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 From nobody Sun Feb 8 15:42:30 2026 Received: from lelvem-ot01.ext.ti.com (lelvem-ot01.ext.ti.com [198.47.23.234]) (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 CE6B622129F; Thu, 24 Apr 2025 08:44:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.234 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745484268; cv=none; b=hSFWiEfwZuc6P1K8aqsj9cmmQxaBC+5kZc0hQAHMtmDwa4/9zAMkS7J6OHAO9atWnjRK656MgeuRHGBAA5ETYgm8UGvOwb6MkaN1aMllhLuUiiNgDrQIYdVUmGa66g/X9jsM05WduH61v/AeDKiOBG1Oix6Y+mN8QgfXwFwMSPs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745484268; c=relaxed/simple; bh=IVpug+m3gWxIXV4zN8fOjdYZHgS7Tn54meRbedloeew=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=CnzrvF6PeKUHV8b+Y7jXCpzCylkeESOxQb0ko/v3yrvCl9dFL6srUio/J9g0Z9SwvieE9HVu7pO04VHWH9ozFByRioOkczn26Zszqu/ahx4P/wYW9/jMYmA8l2prnv3W8fkOXABL0ZONchKbWMn/3iKhafvBphjOo2WKMI4bWz0= 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=TDgGrgg5; arc=none smtp.client-ip=198.47.23.234 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="TDgGrgg5" Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelvem-ot01.ext.ti.com (8.15.2/8.15.2) with ESMTPS id 53O8iKS31804371 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 24 Apr 2025 03:44:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1745484261; bh=bt4bJ+f8aJF8JA4JoxVha75ahB4eqXqYACSbuvx5hOI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=TDgGrgg5eyHPoq67OxCnONXk9+4bhUUUEFHc2tvGTRHH0hIFCeDq0gJ7gcQpHqEDW W1BDwQfuX1w/gbNZKTnNa6JtBR5SFrv5p5T3jLhTXs+HyGsWK4d9uyR5daEbPup468 yLOfNxtsVnBlM0O6jwVRVgB34Ady2uMhoxOJurVY= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 53O8iKfj004741 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 24 Apr 2025 03:44:20 -0500 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE107.ent.ti.com (157.170.170.37) 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:20 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE108.ent.ti.com (157.170.170.38) 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:20 -0500 Received: from localhost (jayesh-hp-z2-tower-g5-workstation.dhcp.ti.com [10.24.72.182]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 53O8iJ1S067224; Thu, 24 Apr 2025 03:44:19 -0500 From: Jayesh Choudhary To: , , CC: , , , , , , , , Subject: [PATCH 2/4] arm64: dts: ti: k3-j784s4-j742s2-evm-common: Reserve 1920MiB of global CMA Date: Thu, 24 Apr 2025 14:14:13 +0530 Message-ID: <20250424084415.66457-3-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 1920MiB 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. J784S4 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 J784S4 can support 12 cameras so ~192MiB 2) 3840x2160@60fps 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 ~1600MiB for 16 channel codec application. Total comes about 1885MiB. Adding 32MiB for other peripherals and and additional 3MiB for rounding it off to 1920MiB. Signed-off-by: Jayesh Choudhary --- arch/arm64/boot/dts/ti/k3-j784s4-j742s2-evm-common.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-evm-common.dtsi b/arch= /arm64/boot/dts/ti/k3-j784s4-j742s2-evm-common.dtsi index 2664f74a9c7a..33b54afe0a06 100644 --- a/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-evm-common.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-evm-common.dtsi @@ -27,6 +27,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 0x78000000>; + linux,cma-default; + }; + secure_ddr: optee@9e800000 { reg =3D <0x00 0x9e800000 0x00 0x01800000>; no-map; --=20 2.34.1 From nobody Sun Feb 8 15:42:30 2026 Received: from lelvem-ot02.ext.ti.com (lelvem-ot02.ext.ti.com [198.47.23.235]) (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 182AD221DAB; Thu, 24 Apr 2025 08:44:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.235 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745484275; cv=none; b=rOELP00PiQ1zLW22eRXGzRAXaH8aVrzH9x4JdPD6PXQLzkj9345licYWb1L3JPB/gqMta6o7seFr76IITUXjZFlzmCzQA9UYbxDLwEiVEblkQ8NLlbR3OyMyDvxmXFuoRS6L0/933LosvnQ2WhOXw0rsfL5e07OWMLPk3h22Da0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745484275; c=relaxed/simple; bh=nk81WDgRzvPU5k8WHoJfcyhF1SMmi8nKKdUbnY9Iewo=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ReSjQAg+zgx4cd9zkYV3//o+P+K6ryZIVYl/KUblEZ4I8FTmbH8Eq30uXTHUVz0LB2LCbrHDT42q2NTl09fspwbOcV8U+zhkIXvXFlAru1MhhEkAgfvlkIuUv/5v6k3hDlpjwMg118Muw5KbycP7OzQXfmWIGQ7CBk/VQ6hfyi4= 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=ijIDI++5; arc=none smtp.client-ip=198.47.23.235 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="ijIDI++5" Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelvem-ot02.ext.ti.com (8.15.2/8.15.2) with ESMTPS id 53O8iMvY2574670 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 24 Apr 2025 03:44:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1745484262; bh=Gyc2hJedNBMQB3mtMI7n6IC+t7jRMFsAPdQTaHcDrtc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ijIDI++5Y3Wvcd9H7mRWvCEhAXcv8c27qs5qqeDcTwXD/L/nruhkktqbMJJBbb0n1 7IaHaz9ojoACClJ4S4qb1oZau8/btMqQJ7tOCgv6QvfbrBYVnfVzVwBYgdZ8WVcs4p bjX7n1KC8JRLT3PKmfYhDjzq4hjOwRq2xNNbVgOE= Received: from DFLE101.ent.ti.com (dfle101.ent.ti.com [10.64.6.22]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 53O8iMRi004759 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 24 Apr 2025 03:44:22 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE101.ent.ti.com (10.64.6.22) 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:22 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE103.ent.ti.com (10.64.6.24) 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:22 -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 53O8iLnI058454; Thu, 24 Apr 2025 03:44:21 -0500 From: Jayesh Choudhary To: , , CC: , , , , , , , , Subject: [PATCH 3/4] arm64: dts: ti: k3-am68-sk-som: Reserve 1008MiB of global CMA Date: Thu, 24 Apr 2025 14:14:14 +0530 Message-ID: <20250424084415.66457-4-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 1008MiB 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. AM68-SK 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 AM68-SK can support 8 cameras so ~128MiB 2) 1920x1080 HDMI -> 1920 width x 1080 height x 4 bytesperpixel x 2 buffers : 15.820 MiB which is ~16MiB 3) 2560x1440@60fps DSI via DisplayPort0 -> 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 973MiB. Adding 32MiB for other peripherals and and additional 3MiB for rounding it off to 1008MiB. Signed-off-by: Jayesh Choudhary --- arch/arm64/boot/dts/ti/k3-am68-sk-som.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am68-sk-som.dtsi b/arch/arm64/boot/d= ts/ti/k3-am68-sk-som.dtsi index 4ca2d4e2fb9b..2b02575549eb 100644 --- a/arch/arm64/boot/dts/ti/k3-am68-sk-som.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am68-sk-som.dtsi @@ -22,6 +22,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 0x3f000000>; + linux,cma-default; + }; + secure_ddr: optee@9e800000 { reg =3D <0x00 0x9e800000 0x00 0x01800000>; no-map; --=20 2.34.1 From nobody Sun Feb 8 15:42:30 2026 Received: from lelvem-ot01.ext.ti.com (lelvem-ot01.ext.ti.com [198.47.23.234]) (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 A7A45221DB2; Thu, 24 Apr 2025 08:44:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.234 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745484276; cv=none; b=TbwzrPCtB82ysR9s8WU8WKr4OM26JINNngqxv7IYbsKFY6l1HxrODfREGHhxE9YKso3yiYzINwBelgI8ICVkbFXY6eGzEKihJL8Myg8NCMi5I/S/Ou3w6O7OAduJyRGpV9qqo6YKoy8P0hCbdOZSjrh2hyfSruHTngWbvqBAIUc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745484276; c=relaxed/simple; bh=si7HH3FZ+zRXBsOldQvyZuozyV6cdA4cJ6hDozQW7qk=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=DnaDJUY1UfVfvvoqIvpCbT5/1Y+vgCCLHTrQnPQrThuUnrD++0P6EVfj1skpMOEe9hOuzyzXToleSR8Oar4hvoc2GNh58b8U2wX3fqo3JlDFxC7NrDrxaAUAhNmuX/m9g55NUiwVZZPBBlVHJKF7sjnXIhtzRKzhNRRMdeEALrA= 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=LNYKVPM+; arc=none smtp.client-ip=198.47.23.234 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="LNYKVPM+" Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelvem-ot01.ext.ti.com (8.15.2/8.15.2) with ESMTPS id 53O8iO3D1804379 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 24 Apr 2025 03:44:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1745484264; bh=mqD3JFg+NSuqkMavjFnAVMGsxZrDKdqG5Hr37LsOgLs=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=LNYKVPM+PydDwbUQ5bSZL9cyNBWjcoDH9DZ2Wx10q+pCKU3onN4pljOmTaduxhazY q38wqJ+vEbvEGLUpqlLXHhhcI254npUugRi4T3IvAHZNLKg56FHb6/zPFOvzYDYbkP Q7hMqoqWQesCiZ8Vm5vaxjvA0rtR1A9X+8AV+g70= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 53O8iOY1059199 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 24 Apr 2025 03:44:24 -0500 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE100.ent.ti.com (157.170.170.30) 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:24 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE112.ent.ti.com (157.170.170.23) 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:24 -0500 Received: from localhost (jayesh-hp-z2-tower-g5-workstation.dhcp.ti.com [10.24.72.182]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 53O8iMjK067284; Thu, 24 Apr 2025 03:44:23 -0500 From: Jayesh Choudhary To: , , CC: , , , , , , , , Subject: [PATCH 4/4] arm64: dts: ti: k3-am69-sk: Reserve 1904MiB of global CMA Date: Thu, 24 Apr 2025 14:14:15 +0530 Message-ID: <20250424084415.66457-5-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 1904MiB 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. AM69-SK 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 AM69-SK can support 12 cameras so ~192MiB 2) 3840x2160@60fps MHDP via DisplayPort0 -> 3840 width x 2160 height x 4 bytesperpixel x 2 buffers : 63.281 MiB which is ~64 MiB 3) 1920x1080@60fps HDMI -> 1920 width x 1080 height x 4 bytesperpixel x 2 buffers : 15.820 MiB which is ~16MiB 4) H264 Video Codec 1920x1080 resolution: -> For 1080p resolution codec application, we require ~98-100 MiB per channel. We require ~1600MiB for 16 channel codec application. Total comes about 1872MiB. Adding 32MiB for other peripherals to get 1904MiB. Signed-off-by: Jayesh Choudhary --- arch/arm64/boot/dts/ti/k3-am69-sk.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am69-sk.dts b/arch/arm64/boot/dts/ti= /k3-am69-sk.dts index b85227052f97..37228ec64852 100644 --- a/arch/arm64/boot/dts/ti/k3-am69-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am69-sk.dts @@ -44,6 +44,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 0x77000000>; + linux,cma-default; + }; + secure_ddr: optee@9e800000 { reg =3D <0x00 0x9e800000 0x00 0x01800000>; no-map; --=20 2.34.1