From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 590DDCFA76B for ; Fri, 4 Oct 2024 11:28:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:CC:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=KPdjKo7hFMxWG9jf55ps3sg0vmoM9vRjCReXoVQKtGE=; b=d+2Z5L9ErLnGBMhz02V9O+nRfu R1TzEHvo2SxtxNVdX09O2ErjmVF0Sw7B3Jp1K5hqQKRZT5BVS3hozFZcUGWPt6yz3xnBBMgYrp6AZ xWd61wTiG5uW7681FS8LXjgR5aCwyKpAr6faCO7ZKvH10Aq5SGyMM8+l89z727D5+evfnPiqCRAM0 zTyVSWUxzixBTKg2Ns+JQKZrkTCmaqvzOoc77MT7D8VqvXNTHpLY1gqEKAI+7Z5Aex3d76umensRk ESVbBKeg1VDOf03qUPzqArema8BKHQS9D0bAm95WxolDJio/aqFau+v7tVbySBavmRPG36Jov7QuX xyce37hQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1swgTa-0000000C75m-3yHT; Fri, 04 Oct 2024 11:28:02 +0000 Received: from lelv0142.ext.ti.com ([198.47.23.249]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1swgSJ-0000000C6rk-3sdE for linux-arm-kernel@lists.infradead.org; Fri, 04 Oct 2024 11:26:45 +0000 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 494BQbJl081014; Fri, 4 Oct 2024 06:26:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1728041197; bh=KPdjKo7hFMxWG9jf55ps3sg0vmoM9vRjCReXoVQKtGE=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=eSBFWzBdgqjFuyy657N7/kJjseTGVRvUu6AnJMaSBVjWME6VyxIwmo/blrtKGyyvW /4ATWPvP6X90rJijdvDYsPLe72FbCP4TZ66qWD2295sH7z+nzAUWEbQNTCitp6a70/ 8px0fXL5QJAkXyZLVD2WUfwEeAJiTaBluSlpIVYo= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 494BQbpu026567 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 4 Oct 2024 06:26:37 -0500 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 4 Oct 2024 06:26:37 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE107.ent.ti.com (10.64.6.28) 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; Fri, 4 Oct 2024 06:26:37 -0500 Received: from localhost (uda0133052.dhcp.ti.com [128.247.81.232]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 494BQb37065159; Fri, 4 Oct 2024 06:26:37 -0500 Date: Fri, 4 Oct 2024 06:26:37 -0500 From: Nishanth Menon To: Bryan Brattlof CC: Andrew Davis , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , , , Subject: Re: [PATCH v12 2/5] arm64: dts: ti: k3-am625-sk: Add M4F remoteproc node Message-ID: <20241004112637.nc2qcquiuwdhdrye@thirteen> References: <20241003170118.24932-1-afd@ti.com> <20241003170118.24932-3-afd@ti.com> <20241003210606.2k7wyssklwfziod4@bryanbrattlof.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20241003210606.2k7wyssklwfziod4@bryanbrattlof.com> X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241004_042644_190503_07F889BB X-CRM114-Status: GOOD ( 26.52 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 16:06-20241003, Bryan Brattlof wrote: > Hi Andrew! > > On October 3, 2024 thus sayeth Andrew Davis: > > From: Hari Nagalla > > > > The AM62x SoCs of the TI K3 family have a Cortex M4F core in the MCU > > domain. This core can be used by non safety applications as a remote > > processor. When used as a remote processor with virtio/rpmessage IPC, > > two carveout reserved memory nodes are needed. The first region is used > > as a DMA pool for the rproc device, and the second region will furnish > > the static carveout regions for the firmware memory. > > > > The current carveout addresses and sizes are defined statically for > > each rproc device. The M4F processor does not have an MMU, and as such > > requires the exact memory used by the firmware to be set-aside. > > > > Signed-off-by: Hari Nagalla > > Signed-off-by: Andrew Davis > > --- > > .../arm64/boot/dts/ti/k3-am62x-sk-common.dtsi | 19 +++++++++++++++++++ > > 1 file changed, 19 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi b/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi > > index 44ff67b6bf1e4..6957b3e44c82f 100644 > > --- a/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi > > +++ b/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi > > @@ -56,6 +56,18 @@ linux,cma { > > linux,cma-default; > > }; > > > > + mcu_m4fss_dma_memory_region: m4f-dma-memory@9cb00000 { > > + compatible = "shared-dma-pool"; > > + reg = <0x00 0x9cb00000 0x00 0x100000>; > > + no-map; > > + }; > > + > > + mcu_m4fss_memory_region: m4f-memory@9cc00000 { > > + compatible = "shared-dma-pool"; > > + reg = <0x00 0x9cc00000 0x00 0xe00000>; > > + no-map; > > + }; > > + > > The only issue I have here is this takes away memory from people who do > not use these firmware or causes them to work around this patch if they > choose to have different carveouts. They can define their own overlays. > > Would an overlay be appropriate for this? Why is this any different from existing boards? Are you suggesting a change for all existing boards as well? -- Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D