Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3366603lqp; Tue, 26 Mar 2024 07:24:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUAckqBNUYw1kznmLpflL7aFv650z1OmF/W0PGz/QaFQma7/jcObbpM+hPgskVozhnkDCpMZb6qYJXlpcbdh0BQvZJwTvjtODFtdML1Vw== X-Google-Smtp-Source: AGHT+IHNWdJInZYlPBz+ZmQG+C0kgrfoDyg+57bglz+yJnTpuEXzSPYS5UT1jUXUDAzlXKbtE/lr X-Received: by 2002:a05:6a21:78a7:b0:1a1:6803:69a3 with SMTP id bf39-20020a056a2178a700b001a1680369a3mr14544262pzc.0.1711463052941; Tue, 26 Mar 2024 07:24:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711463052; cv=pass; d=google.com; s=arc-20160816; b=VDiamQHZn8Xl2bAD3Qxu7sug6zef/xg/N7L91ZRhVnP/Gc6e8MSsSn1Iqick6Jomo6 Iy6aZUOtoo25dqe8tkUlByWiwCqpYwam21nIX4T3MKXFnLq0AgExyaNWLGxjWJmCNbUJ o/y0cCBKrFt1oXvqlgd2tPjSE5AwXw98U1L57McMZm+TcnvKRZ53TuKD6dTG6BhpruiR 9MSqgd+H2V/bwZCkxI/rRsf4d2b1WlGdWZX9lLa55m15gzAKyoJIB9jEb4w7EfbLXiA4 Iv6Pc2BmbifUH2Y5RJdmg8R3e5+JQBB4p0WEwAxMTta2ClBG6ddvFxjrDw9sL/W2n6/d cCgw== 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=w0pAKQRmRJlibruDxzELT+hsaTaozLHFzCa7oaB4xn8=; fh=4b/Y6KM/FFRYN9IRp9ScXVD0gtOw5PhWfATpEM9S+Ac=; b=VqHH84oU77mZiL+2WX883MW/11r9s44VXOtNI/MNSpbKy9lGbgMNdIRCtDcQw4G6M0 YCM6lXMvXwrwFK1kpv/rmAbE3eFcYsQe2ETILABgdeMpJ/r/I9QgcgWh0z55Z7O3nHZU UvxNQp3x4fpKvFZDlc9yvJL+vGfBdRmuj6IbNCy5U7vGda84656tsy91uhRFWNAc9b54 vIaKfOgaL2DMGbkqUuUpd2iwb53Ui4rpwEWgYYVjzs8FIpIO3k0fhjunHN84lDnSwBBB UQzvXWlrwu1k+n/bPze6CFWBbA1h8HEGkwTb8l+IqWhNE0hM94pkP718D8nnaZfIsYkB no1Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bbmPwVNX; 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-119166-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119166-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id q9-20020a056a00084900b006eac0139f20si771675pfk.254.2024.03.26.07.24.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 07:24:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-119166-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bbmPwVNX; 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-119166-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119166-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 8A563B21AAD for ; Tue, 26 Mar 2024 14:21:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 68F2412D76F; Tue, 26 Mar 2024 14:20:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="bbmPwVNX" Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (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 9D49C12BF06 for ; Tue, 26 Mar 2024 14:20:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711462852; cv=none; b=X3MswxS/RVm23ay6OX0ojpJigVWnCYNIgetsxsq946P+SHozkm0TooaiW6rPbLP2Lmz4uO1j6ZJRYCtAaBdT/hBZk+gsVASVRL6MmWxH46Pri5kLjM+TKWQnzFXdfOmjTTenIPMcimNFUfLH/VP+F/aJPOwEPSeXE3QJm3T6E1E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711462852; c=relaxed/simple; bh=zbQD84N+7FiwZVGN4FdwAoTPSjxSngVc8SRGDkRxKT8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=uziWq62gKPL8zm7sRIv3cpN1ONfkHETZr1VdJ8m2ORmSwpJF9EQR1bB8CQoLg3iVg3AnD3lpRxvAwltXRkjDsfzGTnpYB+qbkib/tr11yK8bAorxMU4qZ5WKTOZbYYbNuOGVGp8TFNfagqK4PDhHHKw5d66cW+0HoPHnFpaYqo0= 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=bbmPwVNX; arc=none smtp.client-ip=209.85.208.43 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-f43.google.com with SMTP id 4fb4d7f45d1cf-56bc5a3aeb9so7298130a12.3 for ; Tue, 26 Mar 2024 07:20:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711462849; x=1712067649; 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=w0pAKQRmRJlibruDxzELT+hsaTaozLHFzCa7oaB4xn8=; b=bbmPwVNXEd/szBZoH1EhEVxstgftUptVmc6d34/st2pIdBYWAjCn96Gncn+Vxu5c4e MNJ4Bi8iEnOOlqBjgeQeRYNG5tS9M9B80FJVtCgiJvDGoZrrSZpQwMd2t5U47EutWzCM MDygHjM58C2qWjF1Q+h4DbWZ+9ZLPl/7DHRH0/5KsB9kQ/BUcvZwaeAE9inM1A+SaXHm YcPuJTWNdujv5sT31GhTvbFje/qpgcc70shaBWZQCByva3DkRctv88cjFfseLjOkxvRf CgiZfeKketgbhNJI46X9BgblqH6Xg7cr16OZZByNXioOgXQBwiXXj105dy/zlTXF8AyW EcDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711462849; x=1712067649; 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=w0pAKQRmRJlibruDxzELT+hsaTaozLHFzCa7oaB4xn8=; b=j0Z0u+CL2SK46TvN94Gs/RaYEhPFL3BDwYtJTcKHjc03hhuzJbz5M6Ir2h44hf0acJ fbKYGWKnIztSYTEBrVIvU6DAzcgIEg45zQUVk8tskhBNiRGofO9n3vSbfmXEyzvFKy3p 651JnMEjq2uAeSZSABYdwLXTR8rOe6NQFMjltvDR+5EqwwRKl98ZPQNRE36BymWd2uMQ Hfzj6oPosW1uLvsv4wJ/9gHuoIUI/OtHZdCdWuovswEaVKI89C0+Gyf5r47HcTCLHAWI 6NXTAQ4YsstWy9+QJWBZTbd+7DfM2G/QeP7XeHNkG7+QXUiz+4CDidWJX+Xg9DnsfEOi uI7A== X-Forwarded-Encrypted: i=1; AJvYcCXQr+LPdN1JKA0D7IoCd0kY67ekHHum8fqIQWZE8Jmc8olY/cdOHeGSenxKqp4u6wGvE2Em3q6CWCkNcENbvPM46vQQVAtaDPS5/do4 X-Gm-Message-State: AOJu0Yym9wJOe6lAsk6ahtHtMUM2yiqSoNjyImN+HP6rDfODwVenRaLf LR9vjgY3NZWzUlVrkve541I2CIIU/+Xh02s+k3hmPWd2m7lS+BJlqvvvuJWYI4EWA54L98eSiEg 7iVr1DufghZ9f7XMKwsDx8oFL+15DwAJWHgjC3w== X-Received: by 2002:a50:9f4a:0:b0:56c:19d2:85be with SMTP id b68-20020a509f4a000000b0056c19d285bemr3317223edf.11.1711462848915; Tue, 26 Mar 2024 07:20:48 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240307194026.GA355455@e130802.arm.com> <20240311114442.GA82865@e130802.arm.com> <20240312173252.GA38992@e130802.arm.com> <20240313171756.GA82165@e130802.arm.com> <20240325171339.GA368569@e130802.arm.com> In-Reply-To: <20240325171339.GA368569@e130802.arm.com> From: Mathieu Poirier Date: Tue, 26 Mar 2024 08:20:37 -0600 Message-ID: Subject: Re: [PATCH 1/3] remoteproc: Add Arm remoteproc driver To: Abdellatif El Khlifi Cc: Sudeep Holla , 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 Mon, 25 Mar 2024 at 11:13, Abdellatif El Khlifi wrote: > > Hi Mathieu, > > > > > > > > > > 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. > > We checked with the HW teams. The missing features will be implemented but > this will take time. > > The foundation driver as it is right now is still valuable for people wanting to > know how to power control Corstone external systems in a future proof manner > (even in the incomplete state). We prefer to address all the review comments > made so it can be merged. This includes making the DT binding as complete as > possible as you advised. Then, once the HW is ready, I'll implement the comms > and the FW reload part. Is that OK please ? > I'm in agreement with that plan as long as we agree the current preloaded heuristic is temporary and is not a valid long term scenario. > Cheers, > Abdellatif