Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2325775pxb; Thu, 3 Feb 2022 04:22:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJygtkRGQVMnoXHyuwUlq6qbEbMgCzqb957LUtuAmAot2sR1/GTYU2Tz/PXUCz8w40SX7ldV X-Received: by 2002:a17:903:2449:: with SMTP id l9mr13696837pls.116.1643890970101; Thu, 03 Feb 2022 04:22:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643890970; cv=none; d=google.com; s=arc-20160816; b=yB/OkDO9ywzHtKWv+BjBpfS7ahGEmML/0Qxx9k/oSOTTz5vdsTElJA9Q5YAYtUO9JF Ph4a47SBmRXRDmG/TUNj0r4dTEzJNFYEeSvJJMZ40nxbs0RpojfcgSl15kF5q7iyJyiJ +fhwcjvs9g2duyPiMVyCwmeyDruR11pfW9DqlATq4yHccyh5QAzcTi/ptq06gTPuJddX +mnGr+bbKRs4uV1SoZMODSchGIPuD35wElcTDMjK19EhlsUK7XzHm87pvcGYgGZPtlmm xkvWO3Sk6UybcByMEeCPKT99rxiBOGIMWcPPcLXvsOAel0k+4YyuOE4xuGlZt9YTSqGq ip1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=uTzf33I/3Zp/7jFnhbki7u7w8ZOQrs+HCUnkN+xtD3Y=; b=JsnSly9x6RHOMs15iwt3Ihe/bvGuiQ0e7/seOHqz+yC84XB+CMUGem29bSBIGC+wLQ ySAXYrK9iAJHookjq+uE1RAiSmE6NWvImF5Y0oRg1QQK4sHGZNkEPrp53wOA97h4FfoV 7zIDNvCRZIiMS7AyItIA0nz85x4UuJuXEYM/rFGPAk7lgSV/XwyJXKJeYV4rHbPBxd9w LPb10fQ9nMBQ3cSfu30b6VcyZASwVyHAisCKeGeKT3xg1je/f0lkPT0ETLgKlpOaWX+5 SWQLnJCQtZ4ejawc6rAx5JiGS8onMrABYISbH0K4aBEdi2mvtshypLWfc6lsfFjKOk80 Q7Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=RdLaMr2o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id me3si8631725pjb.16.2022.02.03.04.22.38; Thu, 03 Feb 2022 04:22:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=RdLaMr2o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348306AbiBCAJt (ORCPT + 99 others); Wed, 2 Feb 2022 19:09:49 -0500 Received: from alexa-out-sd-01.qualcomm.com ([199.106.114.38]:22850 "EHLO alexa-out-sd-01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241194AbiBCAJr (ORCPT ); Wed, 2 Feb 2022 19:09:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1643846987; x=1675382987; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=uTzf33I/3Zp/7jFnhbki7u7w8ZOQrs+HCUnkN+xtD3Y=; b=RdLaMr2olLiipx53YnsG2IPaU+aAzqRaUOe1CCy0mL7a8fFQazaNniOA uQ80GiPy6+V2mKLrtI3IWCnTC+S5OSb3MYs1jRTPmMBoST/2AD5Qk3gBX ESWY/wm2UTq/bowD4FTuEHj6qr0lfl+Wxmt63JMl/l5OM/qly9/vMew0W 0=; Received: from unknown (HELO ironmsg05-sd.qualcomm.com) ([10.53.140.145]) by alexa-out-sd-01.qualcomm.com with ESMTP; 02 Feb 2022 16:09:47 -0800 X-QCInternal: smtphost Received: from unknown (HELO nasanex01a.na.qualcomm.com) ([10.52.223.231]) by ironmsg05-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2022 16:09:46 -0800 Received: from [10.46.160.247] (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Wed, 2 Feb 2022 16:09:46 -0800 Subject: Re: [RESEND PATCH 1/2] dt-bindings: firmware: arm,scmi: define support for name based regulators To: Mark Brown CC: Rob Herring , Sudeep Holla , , Liam Girdwood , "Cristian Marussi" , , , , "Subbaraman Narayanamurthy" References: <8355035c-6d90-adfd-c4e1-7bb37a2d8055@quicinc.com> From: David Collins Message-ID: <532aa931-2471-8fb3-0db4-7ab8a60333e8@quicinc.com> Date: Wed, 2 Feb 2022 16:09:43 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01a.na.qualcomm.com (10.52.223.231) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/2/22 9:38 AM, Mark Brown wrote: >> The system layout that this patch is targeted for consists of an SCMI >> platform implemented in software in the primary Linux OS on the >> application processor and an SCMI agent in a guest VM (also running >> Linux). This provides paravirtualized regulator control to the guest VM >> where full virtualization is not supported. > >> During the course of development of these software images, it may be >> necessary to add or reorder the set of SCMI voltage domains (regulators) >> implemented on the platform side. If the voltage domains are only >> identified and matched based on the ID number, then it is easy for the >> platform and agent to get out of sync. > >> Using the voltage domain name instead of ID number for identification >> and matching provides robust assurance of correct regulator usage in the >> face of domains being added, removed, or reordered on the platform side. > > This seems like a scenario where the DT should be being generated at > runtime along with the virtualisation of the platform? TBH a setup > where this is an issue feels like it's asking for trouble. I'm not familiar with runtime device tree generation. Could you please point to an example of it or documentation for it? How would this handle kernel devices on the VM side which need a phandle to an scmi-regulator DT subnode in order to get a pointer to the corresponding regulator device at runtime via devm_regulator_get()? >>>> + regulator-name: true > >>> This is abusing the existing regulator-name property which is there to >>> allow a human readable descriptive string to be attached to a regulator. >>> It should have no effect other than being included in diagnostic output. > >> Would you be ok with a new DT property being added in place of >> "regulator-name" in this patch which serves the same matching purpose >> (perhaps "arm,scmi-domain-name")? > > Yes, it needs to be a new property. Ok, I'll modify the series in V2 to use a different property. Thanks, David