Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3050197pxp; Tue, 22 Mar 2022 11:01:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydEfhCxvjIMOEnBbvv52xzGDocLa1rYu7GvSUaJc2Cd0W70ZWgKIu1ZsUCIu/Q1IMeP2+8 X-Received: by 2002:a17:907:8687:b0:6da:824e:c8b8 with SMTP id qa7-20020a170907868700b006da824ec8b8mr27712758ejc.428.1647972064119; Tue, 22 Mar 2022 11:01:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647972064; cv=none; d=google.com; s=arc-20160816; b=Ng3JF/W8O3kLiRcuhtnMMYE2g+ty70cpEkrQEnpzEojAgXv11hcuaxCB0H2UjEfyop merca2mOu4K05+nfDYFllFZEfQexCVyo10Y2tH6xLr8j4nCnYoYW2Qu3eudGSjX41vn0 5u81F+/fXvcczVRuOqcaiK34ugVDMH2dPSWNSbvtajn7SIvBG75bTFF3biz5jdsOTWh3 09vFK/LFS1KktRNW2MelcZjga+qmTckJl05v1DbIZ0jrC9PrCGEmt/1zlMFJyNdMaEa0 imf0VY5atKtqREtNXkI99zyM74WasFYC/1FNlDDeQjn/HJKg0zSWlufulilUAo6/bvLs ntew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=nlVFQtBSZovSTJt52zSY/ChcYaR0F95NnzTm0oMLyTw=; b=RI5QTZ393BCl/pFdl1yj0woAGTP+rG+gmtinklO/UBmpa1ofM/AcNotalWYALGaBtv 4Wb2TTZS2bVT9d6Wq39Et3+rNrPTZ5JlId/+XVgfNXp8sogS15E8rc4UMdlFykSd3FQ9 qJsGj4uT4ZaU2Ns/NriDuuoowNes5rAsED6/Ke7yCl6pWEpypp4ITBgJX8QdCdnRIWhc GqS9Nt0WdS+OWtvhB5LAazCCbaj+2EEwy5sixXEI7m1MYIxNHCqC7eWaL03RiNeH/iXW zng8x262FvXavsGL/e/SyDIhhBhJblpUe65vHXuxNr2EJEn4mfLDDiMFtgwFJaxiI0ru hOmA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w9-20020a50c449000000b00418c2b5be6asi13667761edf.332.2022.03.22.11.00.35; Tue, 22 Mar 2022 11:01:04 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234042AbiCVLOE (ORCPT + 99 others); Tue, 22 Mar 2022 07:14:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232818AbiCVLNx (ORCPT ); Tue, 22 Mar 2022 07:13:53 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1FC1681671; Tue, 22 Mar 2022 04:12:25 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C29EF153B; Tue, 22 Mar 2022 04:12:24 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id AD5153F66F; Tue, 22 Mar 2022 04:12:23 -0700 (PDT) Date: Tue, 22 Mar 2022 11:12:21 +0000 From: Sudeep Holla To: Stefano Stabellini Cc: Oleksii Moisieiev , "devicetree@vger.kernel.org" , Rob Herring , Sudeep Holla , Souvik Chakravarty , Cristian Marussi , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2 2/2] dt-bindings: xen: Add xen,scmi-devid property description for SCMI Message-ID: References: <5859bb58c8caf87985deb84d7f6bfc8182bd6a59.1646639462.git.oleksii_moisieiev@epam.com> <20220316164619.GA3489934@EPUAKYIW015D> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 18, 2022 at 04:53:20PM -0700, Stefano Stabellini wrote: > On Wed, 16 Mar 2022, Sudeep Holla wrote: > > On Wed, Mar 16, 2022 at 04:46:20PM +0000, Oleksii Moisieiev wrote: > > > > > > > + The reason I want to keep it xen specific at the moment as we had some > > > > plan to extended the device-id usage in the spec which hasn't progressed > > > > a bit(I must admit that before you ask), and this addition should not be > > > > obstruct that future development. If we align with what we define xen > > > > specific as part of $subject work, we can always define generic binding > > > > in the future and slowly make the other obsolete over the time. > > > > > > IIUC you have some plans to provide device_id support to the device-tree > > > bindings from your side. Maybe we can discuss some of your plans here > > > and we can come up with the generic device-id binding? > > > So I will have something to base on in Xen. > > > > > > > Sorry if I wasn't clear in earlier emails. What I mentioned was that I would > > like to reserve the generic namespace(i.e. just device-id) for generic SCMI > > usage. Since we haven't defined it clearly in the spec, I don't want to > > introduce the generic definition and binding now. > > > > As mentioned earlier, though Xen definition and generic once may be exactly > > same, but we won't know until then. So keep the xen usage and namespace > > separate for now to avoid any future conflicts. > > > Hi Sudeep, > > I thought the specification already covered this device id, it simply > delegated the description of it to Device Tree or ACPI, which is common > behavior in ARM specs. What is missing in the SCMI spec from your point > of view? > While you can say so, but for me it isn't to an extent that we can support software around it. I did share my feedback with spec author but as you know it was needed for virtualisation use-case like Xen and was rushed into the spec. All it states is "Device identifier" identifies the device and the enumeration is not part of the spec. It defers to DT/ACPI. Since I didn't have to use that in OSPM, I hadn't given much thought/review on that. > > Or would you like this scmi-devid Device Tree property (or similar) to > be described in the SCMI specification itself? > Spec doesn't cover that in general but do carry some recommendations sometimes. > Typically Device Tree and ACPI descriptions are delegated to Device Tree > and ACPI respectively. Also specification updates are typically slow > (for good reason.) We might be waiting for a long time. It is usually > not a matter of days. I agree. As I said, there were thoughts about adding device protocol to make all the other protocols centered around the device. The idea is as below: Today a device A is associated with clock domain X, reset domain Y, voltage domain Z, perf domain P, power domain Q, ...and so on. Especially this would get complex with lots of devices and for virtual machines. Instead let all these different operations use the device identifier A in the above case to drive clock, reset, perf, power, voltage,...etc. While this was just initial idea, I am bit wary of the fact that it would alter the definition of device identifier. Also there is orthogonal topic of device assignment in various contexts and associated identifiers. IIRC Rob briefly raised concerns on one of such topics. With all these in consideration, I preferred to not use the "device-id" in the standard namespace for anything else until we get clarity on these. -- Regards, Sudeep