Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp173474lqb; Thu, 14 Mar 2024 08:17:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWtnjEhXErx+gu/NRtM0JGo8aKXJsS5QLUN4OkwKIr9RFUjPfGJ4Yr8OPVA3LDl3n4erI1IPOfW2MV/kPXUbS6TyEHsUvth+Ob2Ige+Fw== X-Google-Smtp-Source: AGHT+IFVIJd7mNlA1aZ7kh3xypcyIFAipBoR4xgW+gHxKqcB25oGkZcTDfgFdwPtfbft/8o1Pt6L X-Received: by 2002:a05:620a:21d1:b0:788:4320:61f8 with SMTP id h17-20020a05620a21d100b00788432061f8mr2500244qka.22.1710429435312; Thu, 14 Mar 2024 08:17:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710429435; cv=pass; d=google.com; s=arc-20160816; b=JJ0jN1Cz1JNlOIHkyXK7bUF7+dh74F9hwoZ1jUC0I1xXQKME8IQ4hNiKoOdOEDBk11 eDzoMqrRhtqLn5t+1cS5/f7yVNUL1QXWhzobV8cqLSb5RYqX9wyTtyTj2J/IeFn/pGY4 K2ruRBAIoLquWm1KQAIprzZA5pBE006gGvRpOp821nrFeL1e6s0TcR8M7pr1KkxTZTQ2 cv7T+uLNefRlbAr5nf+81N6Y5E6/GAODhur8cMWTzfTsScbI5ULgQlQvlnFrXeg6HlOd SG6fhSZOwLDO3lRsrpWeEJ3qAT9lsNgfEcUEYAY9Kack3hDiVWLHXc2Br3166d7Fe6w2 JgNw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=hguM+YTg0aA7AqQT1gtP6k659smStQLB44RZ3Y4apfI=; fh=Iocg8+u30DsBv+4TMXhdU+BXZrT985KI/77t67HeGfA=; b=pNNOqPTdTM42GmP28WxHRCQwaSMVyi6LlNDj3spRkczbV4iUBYG9sJFy/gZ9+J69CB n5HLBmKz9Yqp6E6kuDBIja1xiDgOoqfYO3BAtXJezlwWYO9EBBs7GMO8Er3LsaMEMVia JosOneypdmBsUVkzKjX93gBCBaEkKtM59CT8Q6odfpKop0Q6aLi0ANg1GHJWhotyB8FG hbY/flZSxjbfKMmFs+2jCEDLd87LdtGV1SWAnXdpWkvYyfWkTUPU7Pk5l61nhh1dzyjZ 5m6kNJVqqA0Rxr3wnJOYn+KTwh55Ov7D+y04PFp4K3BjcdmQLDxX6fBtRAetg7NJmvZ0 93RA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-103465-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103465-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id br15-20020a05620a460f00b007882e4e5330si1897307qkb.267.2024.03.14.08.17.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 08:17:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-103465-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-103465-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103465-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8EDE21C21E32 for ; Thu, 14 Mar 2024 15:17:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 70C8E71B27; Thu, 14 Mar 2024 15:17:08 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 191F371738; Thu, 14 Mar 2024 15:17:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710429428; cv=none; b=mPWLhbj+p2JeWR4sMi1sg0S2hNY33AqKqVgBGbHTtq/wRGWy4yIyvCqG0TAaYYjFDQJNdIxRy8X01UNVj1gsTXsWKjPMms1N9MHgbBxEy6jU7y4ECdqMncDH0+vVo+FaZyzfrF2aonySKvKzFaBAapyCykNWxa3XgIU6C29/OM0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710429428; c=relaxed/simple; bh=nJSdqGpDfoAcpzNxMMTCuqm2yzJZLVFp6mo7pIJTDEs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=EqTHPnmkYfFA4uYMKgFZRPkIeNEl/tvKO4VDxEQQ9qLM9rcu3BjnEgzHvxOw7jT14u++M61Bi22WivZCV0AJooCXuy2cpDfFHmkRG8hae11Jh5g4JWRjW+qBqGbTDkFXgXNntqOBo2CuJUu7lGAv5Xp5hF9ctdsJCw2d+KSYThk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5B9311007; Thu, 14 Mar 2024 08:17:41 -0700 (PDT) Received: from e130802.arm.com (e130802.arm.com [10.1.33.51]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0603C3F762; Thu, 14 Mar 2024 08:17:01 -0700 (PDT) Date: Thu, 14 Mar 2024 15:16:53 +0000 From: Abdellatif El Khlifi To: Sudeep Holla Cc: Robin Murphy , Bjorn Andersson , Mathieu Poirier , Rob Herring , Liviu Dudau , Lorenzo Pieralisi , Krzysztof Kozlowski , Conor Dooley , Drew.Reed@arm.com, Adam.Johnston@arm.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org Subject: Re: [PATCH 1/3] remoteproc: Add Arm remoteproc driver Message-ID: <20240314151653.GA40443@e130802.arm.com> References: <20240307194026.GA355455@e130802.arm.com> <20240311114442.GA82865@e130802.arm.com> <20240312173252.GA38992@e130802.arm.com> <20240313171756.GA82165@e130802.arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Hi Sudeep, On Thu, Mar 14, 2024 at 02:59:20PM +0000, Sudeep Holla wrote: > On Thu, Mar 14, 2024 at 08:52:59AM -0600, Mathieu Poirier wrote: > > On Wed, Mar 13, 2024 at 05:17:56PM +0000, Abdellatif El Khlifi wrote: > > > Hi Mathieu, > > > > > > On Wed, Mar 13, 2024 at 10:25:32AM -0600, Mathieu Poirier wrote: > > > > On Tue, Mar 12, 2024 at 05:32:52PM +0000, Abdellatif El Khlifi wrote: > > > > > Hi Mathieu, > > > > > > > > > > On Tue, Mar 12, 2024 at 10:29:52AM -0600, Mathieu Poirier wrote: > > > > > > > This is an initial patchset for allowing to turn on and off the remote processor. > > > > > > > The FW is already loaded before the Corstone-1000 SoC is powered on and this > > > > > > > is done through the FPGA board bootloader in case of the FPGA target. Or by the Corstone-1000 FVP model > > > > > > > (emulator). > > > > > > > > > > > > > >From the above I take it that booting with a preloaded firmware is a > > > > > > scenario that needs to be supported and not just a temporary stage. > > > > > > > > > > The current status of the Corstone-1000 SoC requires that there is > > > > > a preloaded firmware for the external core. Preloading is done externally > > > > > either through the FPGA bootloader or the emulator (FVP) before powering > > > > > on the SoC. > > > > > > > > > > > > > Ok > > > > > > > > > Corstone-1000 will be upgraded in a way that the A core running Linux is able > > > > > to share memory with the remote core and also being able to access the remote > > > > > core memory so Linux can copy the firmware to. This HW changes are still > > > > > This is why this patchset is relying on a preloaded firmware. And it's the step 1 > > > > > of adding remoteproc support for Corstone. > > > > > > > > > > > > > Ok, so there is a HW problem where A core and M core can't see each other's > > > > memory, preventing the A core from copying the firmware image to the proper > > > > location. > > > > > > > > When the HW is fixed, will there be a need to support scenarios where the > > > > firmware image has been preloaded into memory? > > > > > > No, this scenario won't apply when we get the HW upgrade. No need for an > > > external entity anymore. The firmware(s) will all be files in the linux filesystem. > > > > > > > Very well. I am willing to continue with this driver but it does so little that > > I wonder if it wouldn't simply be better to move forward with upstreaming when > > the HW is fixed. The choice is yours. > > > > I think Robin has raised few points that need clarification. I think it was > done as part of DT binding patch. I share those concerns and I wanted to > reaching to the same concerns by starting the questions I asked on corstone > device tree changes. Please have a look at my answer to Robin with clarifications [1]. Apart from mapping the register area rather than using the reg property I'll also add the mboxes property as Krzysztof confirmed. [1]: https://lore.kernel.org/all/20240314134928.GA27077@e130802.arm.com/ Cheers, Abdellatif