Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp222690lqb; Thu, 14 Mar 2024 09:30:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUPicSUya+FEP6L2jwVE5nMGS5tOXGtc+grubYGn3xANL9cSAVhMIilyzv1uOMCouKkK9+yUX//tw6GthRVzglmZeIMxbhKsjI1eQ83wg== X-Google-Smtp-Source: AGHT+IHmEsy+aWhZlRg/ay8VmHGdLiJVRfSSCJ+8pmIh6CuSVCZ5mcHwqCI2aaCoPP5rrMvVNSjd X-Received: by 2002:a17:907:7e9f:b0:a45:ad00:eade with SMTP id qb31-20020a1709077e9f00b00a45ad00eademr433320ejc.57.1710433815734; Thu, 14 Mar 2024 09:30:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710433815; cv=pass; d=google.com; s=arc-20160816; b=Mfn3N3uXhwK+3C76efZD4sakad8QFI2Y4uR4VWRGHm4pcLb2vguQP9rv2pbTx44xs7 rGBb2azWuF+N/onG/rHhPRTWUhuSWkJ/Np34nDXEYZhfUehmN4oTH/yV21dnJV3UvnLu OYnE2QKEJm2FNAOH1So08lTS0wiYIbXATZYLV7/AqBEte8eXBSsdURworGJ4uOinPzr+ kMjbW/p7Rt63PWj6yN05Of5/IQRXV0MuPDjUJK5ck2fNLXM8oo5agQ9dQEzVrbEOf7s9 05RQNeQIh6E/1brYrVlzIHc9aAs8MQ0yjcgzYPMr9/IzF7ojORTTP5qXG12xV+IUq4LX hEIg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=KLl3gK9cV6OxQa3WncHmwC4MY7fLl1EcNbFX0dIn7sc=; fh=6zQGdCF1RP4VUg6UbOAE4HR9IRN51Z80jw87+4XdbDo=; b=b9kr1gt9KxEXWOwQCsrV30Jbv2Ps7hH6gF2S/85ofctu1iff3ER3Cv5p5g5CqqkQ3j RaTCsiXFNsRpCfcml8he/SBDKAK0zUnibr7tQCSkvfH8L07Vmq7C2PUmj20Yp4R4rqW3 tHCPiVU+mVoqhIBZvA2h/dnfD0CwzBT/irn86QAcO0seayCr44mCYzPcs7Tj+3RSYwma IYhzj6ikVJ81cWJ0xRV3qegaqcBJjnm/55cZCnmwEqG/bWykybD082/lJTBUUTwBI4oI N7yrKufu7VGNg+mj5cGT281FvaNb1OiCZTWUKl2va9GUYDXgC6paSJE6FfKNpYnpVWTO I0tQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=n6Uyc3Nl; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-103572-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103572-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id sa39-20020a1709076d2700b00a45b3f0bd30si875606ejc.161.2024.03.14.09.30.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 09:30:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-103572-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=n6Uyc3Nl; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-103572-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103572-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 49E4F1F21F29 for ; Thu, 14 Mar 2024 16:30:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5DFA67440B; Thu, 14 Mar 2024 16:30:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="n6Uyc3Nl" Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A6CAE7353C for ; Thu, 14 Mar 2024 16:30:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710433806; cv=none; b=eZ0s3CvCX7sgRZ5Jm+ZILdq7fqF9ZYMrO026FzYso0ShKb5yCIyUnupOs/uwIGJo/Ah89+sVVJarYhGqZbSrG0Yd5o4w3eGjyt9guiM37DLWjETb0BbXMxxYNhZhlD60C2Yp5GwtwBW3xFLWOlVaKXWCcvA5kR9R4cOR5HWbLKA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710433806; c=relaxed/simple; bh=q7cZe7r0LCnbPyHPLloHmQxC19pPkG/8Zv4KL2YlRpY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=s6y8xQgKP9L8yHDoCmDzsyaU2hJnORTMjSz8+6DpMGfRpGqoiSqJ8qfR2w2yRnK0DyJ3eEdjcPOiYJUWacYZyggsQ5dEOdYbKBq49j2/SuRA+o5CvVlt7fbdLbxtKbUXSvn/cyuQmXMuvlRdHyF7Y15MblU9aSdcTUZU/3lO2OA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=n6Uyc3Nl; arc=none smtp.client-ip=209.85.208.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-5683247fd0fso1714351a12.3 for ; Thu, 14 Mar 2024 09:30:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710433803; x=1711038603; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=KLl3gK9cV6OxQa3WncHmwC4MY7fLl1EcNbFX0dIn7sc=; b=n6Uyc3NlqwrglWx6CD+iKjM48wD/5aa987KJPe9pY3CViriv6cC1HKpXUGuVtxD9vI RqeKjx+mnTkT4rZyH6jP0cJetXq7D3I+kSOGk6RoFuL3tmCxteyZGNnXDDHTiDAe8YAQ 8ySjnTBaIWyWm7bw6v3YaEJoXCkU2fjdvy8b/OmDKDn+msmlCkp7O8rgQ/eXpv5s3vDP KesO93ApWtJ6WZGE1cB4Cz7/wd8ebqL2FE+kFyAux9Fjq2onfA9E1tBROaHytyD6jwzN jlzBZumlM2K5LhDZic3j9NXHy4sTsdjcKm+z5+qzRBCdSifQIaP3hYlZbjAQtXMXckW0 DQdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710433803; x=1711038603; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KLl3gK9cV6OxQa3WncHmwC4MY7fLl1EcNbFX0dIn7sc=; b=PhSaMTw3s1/h88UjIND6U2qQ7yStxFBkhRBI4uD78l3eB2dqZpxjfM4ZlcZxj4+ANy 7pFgH5Jyv9Hzp2s/oUI+Og3Vo6YcV+/cmQrGrQeODklHka+dyG0D5+fgHFBKDIb2akWl EWde08BpY3R7QGUD4q6OJ6vEZwTO2Tl92H5cdaVojKx5Yw/rAspDQ84UET0poogevVTq jlnFQHwL3dCMrCWDDFHE3ywcP5hMrWkzA+anIPuPats5rc23wXJgXAkqU7A5W4w2KRA2 fh+p3HbgAwAF6sW3UISaZi0Il4WtPhQIzYsDMjjrQjkc1FulaDePI96x0QcRpx8Jnei9 Kd1g== X-Forwarded-Encrypted: i=1; AJvYcCVU+iMEqEbbRvnkCqlolUBInTQvipJTFaOBoWFvzKdygbI5ut1UIaa8n74q2GLd1D0AK2f9e4Bb6SVK05OIbTtSKrvNDPLIHygxZcvx X-Gm-Message-State: AOJu0Yz3o1SvfrET9M/sT9eYSoJnhYgGokCl0WbyFcNi9eB1Gi4pu5pz gdecmnKEIqHKoSbuPcAZns7bL15vM6S/mXlOb3sa92/u/LduuXCYVozR29oAgmAWkcX9ZMijzw0 JT+HPRNH8Z0I7p/wvK7RhsURvvf1RGvow/2mXGA== X-Received: by 2002:a05:6402:5414:b0:565:7733:3c58 with SMTP id ev20-20020a056402541400b0056577333c58mr872607edb.4.1710433803045; Thu, 14 Mar 2024 09:30:03 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240301164227.339208-2-abdellatif.elkhlifi@arm.com> <20240307194026.GA355455@e130802.arm.com> <20240311114442.GA82865@e130802.arm.com> <20240312173252.GA38992@e130802.arm.com> <20240313171756.GA82165@e130802.arm.com> In-Reply-To: From: Mathieu Poirier Date: Thu, 14 Mar 2024 10:29:51 -0600 Message-ID: Subject: Re: [PATCH 1/3] remoteproc: Add Arm remoteproc driver To: Sudeep Holla Cc: Abdellatif El Khlifi , Bjorn Andersson , 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 Content-Type: text/plain; charset="UTF-8" On Thu, 14 Mar 2024 at 08:59, 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. > I also agree with Robin's point of view. Proceeding with an initial driver with minimal functionality doesn't preclude having complete bindings. But that said and as I pointed out, it might be better to wait for the HW to be fixed before moving forward. > -- > Regards, > Sudeep