Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp113413lqb; Thu, 14 Mar 2024 06:57:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXiLGFOTPlppr9egy+xxxXSGeCaSb94v3peSzaHlVCTZVfdmQWMb9wZvUANdTINd+NM21F4C/0HX6gYoap0OXtW5ZbXwfyppNCbupZBBg== X-Google-Smtp-Source: AGHT+IHSNxnQRMa1tDGyOi2ZR6opHlFiG45uSD6oGxbGxqJZBXotcKR33Qsgi8iP/hPUEeMKkBhN X-Received: by 2002:ae9:f102:0:b0:788:6cd0:8e4 with SMTP id k2-20020ae9f102000000b007886cd008e4mr1796426qkg.45.1710424634679; Thu, 14 Mar 2024 06:57:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710424634; cv=pass; d=google.com; s=arc-20160816; b=md/LRU38XF4AqbSDGw1RG9b/lSHb5z1VD1csBImaDv+STPCNj6XwKGvgzNRVbCpm2X w6Y4FGmRq8Z1Jga3FxcWgTTLAOTK6SdK1GgjFM4UZ4BHSjh6ijZ+hZ5OEFKfyfefHZn0 Ny/FLXsGpF5s0NTVWlBdlP5drZBvawcuGTZ0A1AmKVhtulTu6y6P6mEv0kJN2SJsDrG6 x/HcuZGqNXm6DHve1e1RR86OHMvYHXZO2tXOFNQUCTVf5Nmbw86dAA3+1B/D0n958Air geu2l6Mss4b5P3ysEgciaumA8OIVjqYd8Ns7cCDWeRfwWCpT36ReuW4pQVJL6q16iLqc 8bLw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=wU+5zjNt2rmyof5Fvve875MtX+yDLSiVmTgw1JG0my8=; fh=4JOw5D0pEkuUmrJkGCysPLHRZOezAgrlDO7lDW0zSJE=; b=eeIJtVDVG8K6GN24J9E0Aj1QadAQycSmgobCF8n28SHTa9tMigUbZWg7aZTnDlg7Ii YpRGKcoYWLavjiQwswyszcniIWLBHrQDqhqIto3kMUVjQ9sEiueUYrsEoX4VNPbIsrXN f5oMBLBU6ORdeOHlYht5r8TU7yULYFtYCC2cl+a+sbXrfPVd4FjGfoOtGY01aCNKS7CO GvqIsPd9etoje51biqbILkJkZSgjoYmuubO3hNw2GiMAax8zWgRQrwzhAu3K76dZlgbl VM/j1NpBY5mmzqjgxlWipD+1MmRMZ+b0MQgPDvqC7D0MkJfi1VUN+mRRMKg88Ryyhcsi CZvQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QY6jPgIh; 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-103328-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103328-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u4-20020a05620a0c4400b00789d967058fsi1023121qki.542.2024.03.14.06.57.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 06:57:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-103328-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QY6jPgIh; 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-103328-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103328-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 40A4C1C214F1 for ; Thu, 14 Mar 2024 13:57:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 668EE6FE10; Thu, 14 Mar 2024 13:57:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="QY6jPgIh" Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (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 9102A6FBB8 for ; Thu, 14 Mar 2024 13:56:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710424619; cv=none; b=gk3lBnagVDKXtD7Q19so16exyBG+lZSjd2U/sUbKsk26sRz94W9JLaVGqpvpFnheMfYsjlfMMI5NXPk3x6P8ehtMyn+KYAJDuY9V3THCsTj4CrX8vcwDUaKI0xsxWuZ68SJy7R/ZJuapu74V39QDp2S8JcRtHxXhIcRV2fJAx8g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710424619; c=relaxed/simple; bh=97IREz6AQGN+Adg5OvgCHvuY7w7GBw1iUsPVAKP1GHE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=oI4R0vfVWwrmL7HgAbHWGcD87iJMgAD92vBhQiJ8IadROFKmPFmkBn8Vtjmz6gTLpR2tynbmqTT7Sw+Yk3eydqHZLWsDcp8kGTwUNS1hZd52kU0ckuayv2VzWDtUMRZH6ZnrQV2yTZvCH2mfjYVrTuy5mHENh7U/H7pkqLYdaSE= 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=QY6jPgIh; arc=none smtp.client-ip=209.85.208.41 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-f41.google.com with SMTP id 4fb4d7f45d1cf-568a5e15ae8so406766a12.0 for ; Thu, 14 Mar 2024 06:56:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710424616; x=1711029416; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=wU+5zjNt2rmyof5Fvve875MtX+yDLSiVmTgw1JG0my8=; b=QY6jPgIhY61D8feI2pHG+yrGZKV2PceAuZDLigNqCtg+NkdRP2vBQLCRU7oTnxz8nT xADUPRlX6Y9wiRwxjZl97IwSUUe+hnoGCUCU80GHYrVA1rEQDL6F8axkxBuQH6xN+tkL gc2mD8Vps5a1RtnSfuQHUGlXBddUNAQdLtJ+98uGQJXzJou/4FDmBd0G3K+msc3IiR4/ 3A2DV/GO4yIpZUMnflQRQeRIcC6L1SN8EcxXxf+/Bd0Gcp9IehAJmsIIQ5vRvES0+Alu UJHpmNw9LEfpz0cEsVb4PnSe0n6vQKeae7Ww5OjQ5I/uP+bCv4kHoE8vf1DHrkmwJF/v I78Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710424616; x=1711029416; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=wU+5zjNt2rmyof5Fvve875MtX+yDLSiVmTgw1JG0my8=; b=q5mEGBhtXninNbTyZcU0NcpcONmuNcNSMa6TdZOmTfMtKs7fu4c2G3MgeSywkhh+fW xLRL/hPu2a9VkNjkuPALTmBx/fKANHqYiEL++BliBQ7Fy9zgxyDhtMHHJBu1GFIyZDoE 3RYNrj7x1NY18sFQAvAp9C/il+Zxr7Wc9Ljyic4GDr3L40rDM0rkI5XZ3XlnwJNh07o+ qOkPbUVTEN9MIiBPFio/BxpFM1AT7K2cOnaPYjDaAX8EqnNb0oJwCB6Q8V4I/+go/mCN h6AHmEIYPmK6nCggeODNP5YJ0rGu1hCJd+UfWQsrQWZla82JsXZ1pbN6Q6eN7C9kHuvM mR7A== X-Forwarded-Encrypted: i=1; AJvYcCUu/DhPna959edWy0QUl0QHggTX5ukKRN68hLrY0AD4XV9ZQEUJGzvVyaos45Pbebk7QNRupfNqtLfkpXd9W8Er7+3bflauCBymX/Xf X-Gm-Message-State: AOJu0YyXaDozTPjnYxKtQkrd/2dWUNY+zjOeKZ62G24lctj+C3nqxG7j tvUBXkP3fpEhMxVytko/zImfhF/XcLorojC2zMA5iUMFKX4j0hFNzUaTw0O1FG4= X-Received: by 2002:a05:6402:e10:b0:568:949b:e91f with SMTP id h16-20020a0564020e1000b00568949be91fmr1283422edh.36.1710424615889; Thu, 14 Mar 2024 06:56:55 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.97]) by smtp.gmail.com with ESMTPSA id s15-20020a056402014f00b005664afd1185sm748738edu.17.2024.03.14.06.56.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Mar 2024 06:56:55 -0700 (PDT) Message-ID: Date: Thu, 14 Mar 2024 14:56:53 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 3/3] dt-bindings: remoteproc: Add Arm remoteproc To: Abdellatif El Khlifi , Robin Murphy Cc: Bjorn Andersson , Mathieu Poirier , Rob Herring , Liviu Dudau , Sudeep Holla , 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 References: <20240301164227.339208-1-abdellatif.elkhlifi@arm.com> <20240301164227.339208-4-abdellatif.elkhlifi@arm.com> <8c784016-9257-4d8a-b956-a0a406746c76@arm.com> <20240314134928.GA27077@e130802.arm.com> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRL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F35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240314134928.GA27077@e130802.arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 14/03/2024 14:49, Abdellatif El Khlifi wrote: >> Frankly at the moment I'd be inclined to say it isn't even a remoteproc >> binding (or driver) at all, it's a reset controller. Bindings are a contract >> for describing the hardware, not the current state of Linux driver support - >> if this thing still needs mailboxes, shared memory, a reset vector register, >> or whatever else to actually be useful, those should be in the binding from >> day 1 so that a) people can write and deploy correct DTs now, such that >> functionality becomes available on their systems as soon as driver support >> catches up, and b) the community has any hope of being able to review >> whether the binding is appropriately designed and specified for the purpose >> it intends to serve. > > 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). > > The plan for the driver is as follows: > > Step 1: provide a foundation driver capable of turning the core on/off > Step 2: provide mailbox support for comms > Step 3: provide FW reload capability > > Steps 2 & 3 are waiting for a HW update so the Cortex-A35 (running Linux) can > share memory with the remote core. > > So, when memory sharing becomes available in the FPGA and FVP the > DT binding will be upgraded with: > > - mboxes property specifying the RX/TX mailboxes (based on MHU v2) > - memory-region property describing the virtio vrings > > Currently the mailbox controller does exist in the HW but is not > usable via virtio (no memory sharing available). > > Do you recommend I add the mboxes property even currently we can't do the comms ? Bindings should be complete, regardless whether Linux driver supports it or not. Please see writing bindings document for explanation on this and other rules. So yes: please describe as much as possible/reasonable. Best regards, Krzysztof