From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (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 B2F7017BA4 for ; Wed, 24 Jan 2024 09:01:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706086871; cv=none; b=T3GZq4DZYT09+oSyZEXqB8Of1p8WSYrVEr8ttRkpK/b1IGYQIEBh6G0PwwjD+CqQRwJV50ddmli+d4iR5itrjnHXKk7kfdfo1q8lbVo9gKTKdPsZy/Bzc5ZuN2w4Kn5gKh3QdhMTjYkYCz+MISiFCRGwGgQO7mC/eZfAiWxkC+M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706086871; c=relaxed/simple; bh=TZAefpIPMmBjDY6MC3hONxp6Rg/heX6hoWqY2r8NPGo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=iTuIeGJdFqj3NvUZoCHGlDsH8IDw+gS2IOb5lvjstglKd3twe8M6d/ep54zfcn6Ng8sPR9idh+LHG7hej18lAuMNfD2d8lN+V2fFfqcgIXh1UpDsFI1PAE9wKe0LOT9H0EQlBlIWrPWT4l2x8HooXe4qv2/hfUYbBHqWO07Vfv8= 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=ItR9W5Px; arc=none smtp.client-ip=209.85.221.44 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ItR9W5Px" Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-3392291b21bso4464168f8f.1 for ; Wed, 24 Jan 2024 01:01:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706086868; x=1706691668; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=S6QPOPNcFTRPWk+HMPk/Vr5ieKdteE9+gRFOsnFJaao=; b=ItR9W5PxUcETzn5eHXtByUldU7KWo4vJASsg0CrMBFiTPUCTgUKwEQfYnw//4fM+XE l5aTp5KW48e8TmpCDQ+JqYO5VqPEWos4dP96hakmqbEQvEkAihlQNzDjJhqOSqiEYORU J4dLCtNmOrA3HPrioQ25EPDzl0GoFK/7/8MDu/QbFr4YpmvjA5lGsXN0D7yNIvsE85LJ JyPIIAl8e4hOjXY6nkDZJaQA2JrhQCmVQhDfTubUHJR5kgOEFe7m4ocEOY9bbdvlgBiq J16E0T7UxEA0N4d8ipNTBR/UfuaPqbzgZx8OWas3jkcs9FCKyKwjF/fXgIsVfM+/f03j rrKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706086868; x=1706691668; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=S6QPOPNcFTRPWk+HMPk/Vr5ieKdteE9+gRFOsnFJaao=; b=MaVKoLtxgPOAlg5tCpcLXOk0pBFzK4KZC/ma7tZlNPF28MB0+ZWig9PTEB7IEjAGSY GeeXvW6z01OH1L3Q6J8l3/NpSuXVzUlgeA2GHCvRmdUEOx6nbsssjstsisNrshfUMW1D tB8KU3REBKJKRS4RU6pEVOmqVTr1s36/2vi3xJLs8F0DqT+qB6wC6c2jaXpr75POaCDB lc43sricsEKqf7LWq0n1XrPCj8G5dJiDnDRwcYYosObUs+1okiOf+dTsN/CvFrG/1Tr8 yg41lO4vNxL9hjVs9sXlPquYrCAKSM50rwOIutumu3pl4T2VdhIA+cDuFe1DHWTa8Hvd d3CQ== X-Gm-Message-State: AOJu0Yw+kFsErz9roffzipaWokFrexvGt4rAfVCDYI/3BuJFP8ymZoWW V34ZeB7MGFYKEOWV/9VXJ9ltk72101Kj686x4nEbacKrTJX0LD2SuIYZSZbTMlY= X-Google-Smtp-Source: AGHT+IGYvQmv/bdUk8piPCzB1FKy/xByceT7gDXsrnSLEbGTKiHHlE802OC2iUEp9V8yeg+4df6FwQ== X-Received: by 2002:a05:6000:230:b0:337:c1a8:ce54 with SMTP id l16-20020a056000023000b00337c1a8ce54mr264342wrz.134.1706086867676; Wed, 24 Jan 2024 01:01:07 -0800 (PST) Received: from [192.168.1.20] ([178.197.215.66]) by smtp.gmail.com with ESMTPSA id e11-20020a5d594b000000b003392bbeeed3sm9827590wri.47.2024.01.24.01.01.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 Jan 2024 01:01:07 -0800 (PST) Message-ID: <597b7aeb-79f1-4d34-94f6-965adfed9eb0@linaro.org> Date: Wed, 24 Jan 2024 10:01:05 +0100 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: DT Query on "New Compatible vs New Property" Content-Language: en-US To: Manivannan Sadhasivam Cc: Nikunj Kela , robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, devicetree@vger.kernel.org, "Prasad Sodagudi (QUIC)" , srinivas.kandagatla@linaro.org, vincent.guittot@linaro.org, ulf.hansson@linaro.org References: <82115165-6089-4214-b47b-2c2c0dfb8c66@linaro.org> <1935cb82-648c-f079-8852-d461dc9f8609@quicinc.com> <20231214061742.GG2938@thinkpad> <66f82e2c-0c42-4ead-93f5-2136ad478df2@linaro.org> <7768258d-4748-84f7-0da2-43988138e5cc@quicinc.com> <20240123161231.GG19029@thinkpad> <20240124083919.GC4906@thinkpad> <7980834a-6bdf-4d6c-9f76-71b156e143d3@linaro.org> <20240124085306.GG4906@thinkpad> 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+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrcnp5c3p0b2Yua296bG93c2tpQGxpbmFyby5vcmc+wsGUBBMBCgA+FiEE m9B+DgxR+NWWd7dUG5NDfTtBYpsFAmI+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qsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240124085306.GG4906@thinkpad> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 24/01/2024 09:53, Manivannan Sadhasivam wrote: > On Wed, Jan 24, 2024 at 09:45:05AM +0100, Krzysztof Kozlowski wrote: >> On 24/01/2024 09:39, Manivannan Sadhasivam wrote: >>> On Wed, Jan 24, 2024 at 09:02:16AM +0100, Krzysztof Kozlowski wrote: >>>> On 23/01/2024 17:12, Manivannan Sadhasivam wrote: >>>>> On Thu, Dec 14, 2023 at 07:18:25AM -0800, Nikunj Kela wrote: >>>>>> >>>>>> On 12/13/2023 11:49 PM, Krzysztof Kozlowski wrote: >>>>>>> On 14/12/2023 07:17, Manivannan Sadhasivam wrote: >>>>>>>> On Tue, Dec 12, 2023 at 11:06:42AM -0800, Nikunj Kela wrote: >>>>>>>>> + Linaro team >>>>>>>>> >>>>>>>>> On 12/12/2023 11:01 AM, Krzysztof Kozlowski wrote: >>>>>>>>>> On 12/12/2023 18:45, Nikunj Kela wrote: >>>>>>>>>>> We are abstracting some resources(ex. clocks) under new firmware on an >>>>>>>>>>> existing platform therefore need to make changes in certain drivers to >>>>>>>>>>> work with that firmware. We need to make a distinction between two >>>>>>>>>>> different variants of the FW. In one case, some resources will be >>>>>>>>>>> abstracted while in other case, they won't be abstracted. My query is - >>>>>>>>>>> "should we define a new compatible string for the variant with >>>>>>>>>>> abstracted resources(in FW) or we should add a new DT property keeping >>>>>>>>>>> the compatible same?" >>>>>>>>>> Hi, >>>>>>>>>> >>>>>>>>>> Usually change in the interface or behavior warrants new compatible. >>>>>>>>>> Property would be suitable if the same device, e.g. same SoC component >>>>>>>>>> with same FW, was configured differently on different boards. >>>>>>>>>> >>>>>>>> Here, the hardware is going to be the same, but the resources (clocks, >>>>>>>> regulators, etc...) will be controlled by the firmware instead of OS. >>>>>>> Yeah, that's the problem with generic questions, instead of specific... >>>>>>> "Talk is cheap." >>>>>>> >>>>>>> OK, so the hardware is exactly the same? Does FW bring any >>>>>>> incompatibilities in the interface or is it just about the clocks? I >>>>>>> guess I should not have included "with same FW" in my last statement. >>>>>>> It's true, but way too narrow. Therefore let me rephrase it: >>>>>> >>>>>> HW is exactly the same. Let me give more insight on the setup. We have been >>>>>> using the HW in virtual environment but now the ownership of certain >>>>>> resources (e.g. clock controller etc.) is handed over to a different VM(non >>>>>> Linux VM). Earlier the ownership of the resources was local to the same >>>>>> VM(Linux VM) via passthrough mode so it could directly access them however >>>>>> now Linux VM talks to non-Linux VM for its operations for resources that it >>>>>> doesn't own anymore via some interface(shared memory/doorbell).  So shall we >>>>>> use property like 'qcom, controlled-remotely' or do we need a new compatible >>>>>> for such setup? >>>>>> >>>>> >>>>> Krzysztof, just a ping on this thread. >>>>> >>>>> To summarise, the hardware is exactly same. We can consider the case of UFS. The >>>>> UFS controller is exactly same in this proposed setup but the resources of the >>>>> UFS controller are taken care by the VM. So instead of enabling the resources >>>>> one by one, Linux kernel will just ask the VM to do so using an SCMI command. >>>>> >>>>> Due to this difference, we need to make the changes in the UFS controller >>>>> driver. So we want to know if we can use a different compatible for the UFS >>>>> controller altogether in DT (this will allow Linux kernel to have a separate >>>>> driver and will simplify things) or just use a property like >>>>> "remotely-controlled" to let the driver detect this setup and take action >>>>> accordingly. >>>> >>>> What devices do we talk about? Are they released? For which other >>>> devices you want to use it? >>> >>> If you are referring to "peripherals" as "devices", then this new interface is >>> going to be applicable to most of the peripherals in the SoC like PCIe, UFS, USB >>> etc... >>> >> >> And what about SoCs and final products? >> > > Sorry, I don't understand what you mean. This interface is still under > development and going to be available in future SoCs. At that time, we need > changes to the drivers to adapt to this interface. Hm, confused... The message was saying: the same hardware. Same hardware means for example Qualcomm SM8550 SoC. OK, I think we are way past possible theoretical discussions. Please send patches and we will discuss it from there. Best regards, Krzysztof