Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp287763lqp; Thu, 21 Mar 2024 00:40:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW+xXvARSQ/VnrOTjkXxElOMBto/V/dXu66js6s7NXGcbsUBufCkeWHtkeKb5PGZSYXmXI257G/BIkxChG7zXHzbezA1zPD7lIesaORew== X-Google-Smtp-Source: AGHT+IEddMQ9Rk/ciH9FxEOh3I20za6CAv6f1yqu7Ji5cFW9t1Qw37yys6KPbjoWcKobxPYcIRLB X-Received: by 2002:a9d:7491:0:b0:6e6:7e8f:fd4c with SMTP id t17-20020a9d7491000000b006e67e8ffd4cmr7970187otk.3.1711006807951; Thu, 21 Mar 2024 00:40:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711006807; cv=pass; d=google.com; s=arc-20160816; b=Y35gmp8Ip4KVBkF/syeKolokE2I6kIzi6lrR9rtREpAhE0is7NaQLt6Itl7uqluWra 8lNwfXgRbpzCgO730hebLa+m+Dc2FThhQEbKdZqtJyZkctWneaASrhqISndyADhlE5dy LoJCCuEvTH2ZubVYxP/TrXOIsVtcnMndh6wgr1xitSKKJJcYfAs38HbmR1lmlZ6Y8TFQ odjh3wO4pm/b76ngS2fwf/xX4tnrLDh1WAtqX4/YbUmYpUnUcS+VbLOFrJHw/WYJSvle aa3zhfyBMoMDqZqFv5VnShiouSzYUUq/w1N24A0EmCKV7m0D6CQyYGuXbPBUZojqOHwX fxTw== 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=Cx4dbdFXGzbw+VmmoopIV/mkoBJ1s93EyoOcIqTcLxg=; fh=IHp9SLenifBZvJ7rp8LLuEfEW57ZByBzAslhRGsMd+g=; b=i9ef2LhLL9CY/MmIGKNJJpm/j0TQ4N+YQfwNFqpjGQJicZhN/xrMPFrTU5C/hTWN8p K+H5LxSHXSHLYESBSbyoegSTCK+K5rBG9KooimCuOLKS4TGUl0XIBa1evY/aI9174SIG 9vW30Lz0E4Ne8neH96bLX/RjukIxaiSTPp76oTwFgBJrr3tWyA6vBB5cfBU0OIp2duaq pV29s3A81fy+JktHDYKAFkPLVBFFUHnJ/n2nF7F95mbhmxTpi/UiYh1xi0dnSbGP9UHb UlChgcNHmWk2OnogCd73aW388dLviuWoiShlSh6bnwNXEAD3bAWuwAlitBn9Bc1+PI74 IPTA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="eJ6h/vNI"; 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-109735-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109735-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 k4-20020a634b44000000b005ce021f4418si13872633pgl.524.2024.03.21.00.40.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 00:40:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-109735-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="eJ6h/vNI"; 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-109735-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109735-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 BCCC6B21859 for ; Thu, 21 Mar 2024 07:39:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2AB8458203; Thu, 21 Mar 2024 07:39:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="eJ6h/vNI" Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.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 A39EA4D9F4 for ; Thu, 21 Mar 2024 07:39:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711006785; cv=none; b=Ck5oHVnozbOhBOTI5893EVQYtCBOm3Jsj3sGU/dQPfrTAQVFFOOoJxqHVUKC0YewIwSt5FXGGdvNQ4FGWPHts0mdKEqDZ8D7UtcoC2UZnmykUpJOAkXKUr7LEIgQoZxNhRSpUENvFkyTD2vwoXZKkzO13lOqkGK1vnI71GSmQrM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711006785; c=relaxed/simple; bh=jGrgRXkWdeJNvY//aolXhQXi3wQUUZRKRYNs477JePs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=M8EdYFPhWqPi3Hroce9pD5ZQpJUv3e+cxGQwz8Y5IG0z4c0zusD1QJW+AY+efnWkyMoGLjdpb4V1caMVBdrAQHGXzZqTsQeC9iR7L5w9j2RTQM93dHiaByN+0PxZiLh/M1Oqg0i5W1hzQ2cqMRJ9Y8wpNtd7BNBqqKJgURr52+U= 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=eJ6h/vNI; arc=none smtp.client-ip=209.85.218.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-ej1-f41.google.com with SMTP id a640c23a62f3a-a46a7208eedso89031066b.0 for ; Thu, 21 Mar 2024 00:39:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711006781; x=1711611581; 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=Cx4dbdFXGzbw+VmmoopIV/mkoBJ1s93EyoOcIqTcLxg=; b=eJ6h/vNIhn+qOoVKz9caHLOX8t1sbTbff+JRjJx2U4U9bNXrcV/ufYbHcwcFzfdc27 DwKru2BWV68lqvpTn1dCqjzkOg4FFPywZ5s9Ee9jUlpuURhcjQ9/KtnJmStetfVlSHhO vDucetOD9hRuISQc2ApJBZAjRcPdaLUbc5yW6+SaroCbAnqVzukKMSZCyRF50pxZJC4t yNPR45b4Ar0/qq2bULMmuu8ysxEIJWGSpj5AI2zkbqiwAIyeIO4BGzjtBVI6DBxURSLb Hs3Pwubi3jwQcck7CN7/hT9cTP+01LB9qlQt/+gNuh9cifk9oHgXO7iTKyhUw4EGIVUc yxhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711006781; x=1711611581; 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=Cx4dbdFXGzbw+VmmoopIV/mkoBJ1s93EyoOcIqTcLxg=; b=gzQrYmNL6XK7ksz/bQJTWl3MKQ8djz6Gm9her3oeHX3OAUdYTNwCtgI8Vd6oxLD/iU wHdKRW73Mtl58xjkGiSeluRVsof2RcyfhmYi0EUe+3Rzg8QIgEHwbSYSTH78zeIh5Jxq bJaACDNoF0wXeoRgtMYwTEQcYOTV2Wm9xCPJJaqdxpT3HbkFUhPgHt0FoobJV5mCwfC7 7nBIqIhW7w2X4hO/Bu1n86L7fIJO3TbIblQv3oO70GIuoEnfeKsmfusjUPJd8tdoKfhZ pdtccgOXr0JuZxIeB1u1g90NmGKicWnIzThFrHsCXOiORO/h+4EUW064NLYSJmv9dqhO CALw== X-Forwarded-Encrypted: i=1; AJvYcCXVVhaonyoa+/Cf2a/Wa17Sjl0rbeDXYwon8LucMDkDMy2Y2m1bvQlNz6caBdQELH/xBndd8HmNoEm4pEIgRHz5JJphh6B7BCbM26D1 X-Gm-Message-State: AOJu0YzNxDFj2YXOuUNe/h0zWN24sCl6j+40VzpmQurSAeHPZaL75B4P yl89GTDoxM4CbfGwJd4xJ2NXPH6LEEWh7TGwVMaRVblgtQY+6c5sAEVhsOw9YvE= X-Received: by 2002:a17:906:564b:b0:a46:61b1:96cf with SMTP id v11-20020a170906564b00b00a4661b196cfmr12646976ejr.56.1711006780894; Thu, 21 Mar 2024 00:39:40 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.97]) by smtp.gmail.com with ESMTPSA id q21-20020a1709066b1500b00a46524d06afsm8047173ejr.8.2024.03.21.00.39.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Mar 2024 00:39:40 -0700 (PDT) Message-ID: <5025fb10-3bcc-43b1-ae85-b556f1c0415f@linaro.org> Date: Thu, 21 Mar 2024 08:39:38 +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 2/3] dt-bindings: remoteproc: add Versal-NET platform To: Tanmay Shah , andersson@kernel.org, mathieu.poirier@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, michal.simek@amd.com, ben.levinsky@amd.com Cc: linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20240315211533.1996543-1-tanmay.shah@amd.com> <20240315211533.1996543-3-tanmay.shah@amd.com> <3ca1c419-d185-4318-92ed-3c4e40dcf5bb@linaro.org> <14be0aa6-49b7-4342-9ca6-750c30c8e1e9@amd.com> <6f2ebe09-8ce5-4388-a01a-84ebc271472e@linaro.org> <72f3caa2-30ec-4191-9477-2d2a5e7f2f4b@amd.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/EXNUAIRefCyvaRG7oRYF3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53hyV4I2LPmptPE9Rb9yCTAbSUlzgjiyyjuXhcwM qf3lzsm02y7Ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <72f3caa2-30ec-4191-9477-2d2a5e7f2f4b@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 20/03/2024 16:14, Tanmay Shah wrote: > > > On 3/20/24 2:40 AM, Krzysztof Kozlowski wrote: >> On 19/03/2024 15:42, Tanmay Shah wrote: >>> >>> >>> On 3/19/24 12:30 AM, Krzysztof Kozlowski wrote: >>>> On 19/03/2024 01:51, Tanmay Shah wrote: >>>>> Hello Krzysztof, >>>>> >>>>> Thanks for reviews. Please find my comments below. >>>>> >>>>> On 3/17/24 1:53 PM, Krzysztof Kozlowski wrote: >>>>>> On 15/03/2024 22:15, Tanmay Shah wrote: >>>>>>> AMD-Xilinx Versal-NET platform is successor of Versal platform. It >>>>>>> contains multiple clusters of cortex-R52 real-time processing units. >>>>>>> Each cluster contains two cores of cortex-R52 processors. Each cluster >>>>>>> can be configured in lockstep mode or split mode. >>>>>>> >>>>>>> Each R52 core is assigned 128KB of TCM memory. ATCM memory is 64KB, BTCM >>>>>>> and CTCM memoreis are 32KB each. Each TCM memory has its own dedicated >>>>>>> power-domain that needs to be requested before using it. >>>>>>> >>>>>>> Signed-off-by: Tanmay Shah >>>>>>> --- >>>>>>> .../remoteproc/xlnx,zynqmp-r5fss.yaml | 220 +++++++++++++++--- >>>>>>> 1 file changed, 184 insertions(+), 36 deletions(-) >>>>>>> >>>>>>> diff --git a/Documentation/devicetree/bindings/remoteproc/xlnx,zynqmp-r5fss.yaml b/Documentation/devicetree/bindings/remoteproc/xlnx,zynqmp-r5fss.yaml >>>>>>> index 711da0272250..55654ee02eef 100644 >>>>>>> --- a/Documentation/devicetree/bindings/remoteproc/xlnx,zynqmp-r5fss.yaml >>>>>>> +++ b/Documentation/devicetree/bindings/remoteproc/xlnx,zynqmp-r5fss.yaml >>>>>>> @@ -18,7 +18,9 @@ description: | >>>>>>> >>>>>>> properties: >>>>>>> compatible: >>>>>>> - const: xlnx,zynqmp-r5fss >>>>>>> + enum: >>>>>>> + - xlnx,zynqmp-r5fss >>>>>>> + - xlnx,versal-net-r52fss >>>>>>> >>>>>>> "#address-cells": >>>>>>> const: 2 >>>>>>> @@ -64,7 +66,9 @@ patternProperties: >>>>>>> >>>>>>> properties: >>>>>>> compatible: >>>>>>> - const: xlnx,zynqmp-r5f >>>>>>> + enum: >>>>>>> + - xlnx,zynqmp-r5f >>>>>>> + - xlnx,versal-net-r52f >>>>>>> >>>>>>> reg: >>>>>>> minItems: 1 >>>>>>> @@ -135,9 +139,11 @@ required: >>>>>>> allOf: >>>>>>> - if: >>>>>>> properties: >>>>>>> - xlnx,cluster-mode: >>>>>>> - enum: >>>>>>> - - 1 >>>>>>> + compatible: >>>>>>> + contains: >>>>>>> + enum: >>>>>>> + - xlnx,versal-net-r52fss >>>>>> >>>>>> Why do you touch these lines? >>>>>> >>>>>>> + >>>>>>> then: >>>>>>> patternProperties: >>>>>>> "^r5f@[0-9a-f]+$": >>>>>>> @@ -149,16 +155,14 @@ allOf: >>>>>>> items: >>>>>>> - description: ATCM internal memory >>>>>>> - description: BTCM internal memory >>>>>>> - - description: extra ATCM memory in lockstep mode >>>>>>> - - description: extra BTCM memory in lockstep mode >>>>>>> + - description: CTCM internal memory >>>>>>> >>>>>>> reg-names: >>>>>>> minItems: 1 >>>>>>> items: >>>>>>> - - const: atcm0 >>>>>>> - - const: btcm0 >>>>>>> - - const: atcm1 >>>>>>> - - const: btcm1 >>>>>>> + - const: atcm >>>>>>> + - const: btcm >>>>>>> + - const: ctcm >>>>>>> >>>>>>> power-domains: >>>>>>> minItems: 2 >>>>>>> @@ -166,33 +170,70 @@ allOf: >>>>>>> - description: RPU core power domain >>>>>>> - description: ATCM power domain >>>>>>> - description: BTCM power domain >>>>>>> - - description: second ATCM power domain >>>>>>> - - description: second BTCM power domain >>>>>>> + - description: CTCM power domain >>>>>>> >>>>>>> else: >>>>>>> - patternProperties: >>>>>>> - "^r5f@[0-9a-f]+$": >>>>>>> - type: object >>>>>>> - >>>>>>> - properties: >>>>>>> - reg: >>>>>>> - minItems: 1 >>>>>>> - items: >>>>>>> - - description: ATCM internal memory >>>>>>> - - description: BTCM internal memory >>>>>>> - >>>>>>> - reg-names: >>>>>>> - minItems: 1 >>>>>>> - items: >>>>>>> - - const: atcm0 >>>>>>> - - const: btcm0 >>>>>>> - >>>>>>> - power-domains: >>>>>>> - minItems: 2 >>>>>>> - items: >>>>>>> - - description: RPU core power domain >>>>>>> - - description: ATCM power domain >>>>>>> - - description: BTCM power domain >>>>>>> + allOf: >>>>>>> + - if: >>>>>>> + properties: >>>>>>> + xlnx,cluster-mode: >>>>>>> + enum: >>>>>>> + - 1 >>>>>> >>>>>> Whatever you did here, is not really readable. You have now multiple >>>>>> if:then:if:then embedded. >>>>> >>>>> For ZynqMP platform, TCM can be configured differently in lockstep mode >>>>> and split mode. >>>>> >>>>> For Versal-NET no such configuration is available, but new CTCM memory >>>>> is added. >>>>> >>>>> So, I am trying to achieve following representation of TCM for both: >>>>> >>>>> if: versal-net compatible >>>>> then: >>>>> ATCM - 64KB >>>>> BTCM - 32KB >>>>> CTCM - 32KB >>>>> >>>>> else: (ZynqMP compatible) >>>>> if: >>>>> xlnx,cluster-mode (lockstep mode) >>>>> then: >>>>> ATCM0 - 64KB >>>>> BTCM0 - 64KB >>>>> ATCM1 - 64KB >>>>> BTCM1 - 64KB >>>>> else: (split mode) >>>>> ATCM0 - 64KB >>>>> BTCM0 - 64KB >>>>> >>>>> >>>>> If bindings are getting complicated, does it make sense to introduce >>>>> new file for Versal-NET bindings? Let me know how you would like me >>>>> to proceed. >>>> >>>> All this is broken in your previous patchset, but now we nicely see. >>>> >>>> No, this does not work like this. You do not have entirely different >>>> programming models in one device, don't you? >>>> >>> >>> I don't understand what do you mean? Programming model is same. Only number >>> of TCMs are changing based on configuration and platform. I can certainly >>> list different compatible for different platforms as requested. But other than >>> that not sure what needs to be fixed. >> >> You cannot have same programming model with different memory mappings. >> Anyway, please follow writing bindings rules: all of your different >> devices must have dedicated compatible. I really though we talked about >> two IPs on same SoC... > > I agree that Versal compatible should be added, I will do that in next revision. > > For ZynqMP case, it is two IPs on same SOC. In lockstep mode and split mode, > same SOC is configuring TCM differently. > > How this should be resolved for Versal-NET ? Driver avoids such TCM configuration > for Versal-NET. Binding should describe the hardware, not what driver is doing currently, so the question is: does your device have such properties or not? Anyway, you need compatible per each variant and each SoC implementation. Best regards, Krzysztof