Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp169704pxb; Mon, 7 Feb 2022 08:39:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJzG2UbpZ0pQQi/GcudRTTaMw0pCo6h2847/EnLLuxS1E5GHZ7H9wHYDiYXJmdOAWSx9p74i X-Received: by 2002:a05:6402:3608:: with SMTP id el8mr287825edb.193.1644251972978; Mon, 07 Feb 2022 08:39:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644251972; cv=none; d=google.com; s=arc-20160816; b=XmVw+QfHryya16XUpeySjEn9RZDCGFars3hxAx4HGuhk2BZ8IjgC5nU4ZxZMw0iCvl furYzz9StLBAVfz1h3HPcGLjUp/2fOq9WgdQMYXg3XGFf7LKftf00CG3BX1pLu0FUibP sIUBETRtZApaIcSM+Yn6m2dPBCOdDkMUFaKeurjRcQ9ZwxZ1skO3PGXZdGLrQ8Qf63G9 lXpNhcPQal+ATcsTy6ZrVKz5heQtdR3i4RJOHjZlLToH8gPs9awrxon2XnOLiHns20At tApjDEd7sHHGk0oLPkskf5hLbnrUk0MuMMy5IiPcDX8BP7ralZTx5yHOmvLyfIVzLqKq OHlA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=RTjB7vEIGj/9KeoICtBV1CKz/tArkzzwZdJcuRWAD6I=; b=xKHBHf+fedgiqEfNTShuw7WaIgDONFk2ww3cU+II+O8EhfROeW6qHdeUmsTxX0dWQm mLl1tY6UmFJ/uYmgU1vExgDXz+CTFcXdOFGChRM5p97sB3HGdL+Ez6ca8mcbE9JYEU5+ tjkCwSRSMFYKHld94MkCxnFEw+PIwYtCqO1D8UECFmD1sW1SuC7f7B/RHD6QAmpSNecS ouao1PMzFuzF02xDjHfPV1jaqa5d1uLRVtiwbRjeCNWYowH24Rrffmdu3ptMPBGRCsJg wKMQ0G/e+AqQ25xkXf0QsNgsug91/hdUucoTbLpOxYp779v0LnQnh1Dk+dXAZwrtEHls CFkg== 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 sh37si3294929ejc.929.2022.02.07.08.39.08; Mon, 07 Feb 2022 08:39:32 -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; 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 S1359255AbiBDOWk (ORCPT + 99 others); Fri, 4 Feb 2022 09:22:40 -0500 Received: from foss.arm.com ([217.140.110.172]:47676 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234877AbiBDOWj (ORCPT ); Fri, 4 Feb 2022 09:22:39 -0500 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 0E65211D4; Fri, 4 Feb 2022 06:22:39 -0800 (PST) Received: from bogus (unknown [10.57.41.150]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 943D03F40C; Fri, 4 Feb 2022 06:22:37 -0800 (PST) Date: Fri, 4 Feb 2022 14:21:50 +0000 From: Sudeep Holla To: Wojciech Bartczak Cc: "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Sudeep Holla , "cristian.marussi@arm.com" , Szymon Balcerak Subject: Re: Mixing SCMI and ACPI? Message-ID: <20220204142150.glsu6ujjtqpcktjp@bogus> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Wojciech, Please cc me too for anything SCMI related in the future. On Fri, Feb 04, 2022 at 01:32:47PM +0000, Wojciech Bartczak wrote: > Hi Folks, > > I have been working with SCMI for some time now. Good to know ???? > Here at Marvell, we use very common software stack. Excellent! > Mostly ATF, U-Boot and Kernel. With this software stack, SCMI integration is > just a matter of following the common sense. Glad to hear that. > Recently, the new requirement for supporting ACPI and UEFI has arrived. > The main goal is to have ACPI and platform that works almost the same. > Sure. > This is where the problem begins. SCMI is quite well-defined for DT-based > environments. Indeed and that is intentional. However, lots of concepts in SCMI already aligns well with ACPI concepts just under different name most of the time. > Unfortunately, there are not too many mentions for the UEFI/ACPI based > platforms. This is probably caused by the fact that SCMI overlaps with ACPI > in some points like sensors or performance management. Correct. > However, SCMI has one single advantage over the ACPI, namely it defines pretty > nice framework for clocks management. ACPI is silent in this regard. Yes but any reasons why that can't be part of standard power methods. > It is just delegating clocks to OSPM. The kernel and OS should be unaware of > the clocks management according to the ACPI spec. This surely does work for x86, > but not so well for ARM. > While that could be true, why do you need to manage the clocks so much outside the standard power methods in ACPI. > Wonder, if you had chance discuss using SCMI in ACPI based environments? We have discussed in the past, SCMI can be used in ACPI abstracted under the existing well defined methods(I know you will be shouting not clocks but we need to know why that can't be done with standards device power/state methods. > I am mostly interested in the description using ACPI tables and eventually > the bindings for ACPI tables. I need something portable and > in line with future development for SCMI. > I don't understand what you mean by that. > Now the review of existing threads and forums returns almost nothing. > The SCMI specification wasn't too helpful either. > I did the code review too. But only thing I see are bindings for DT (v5.17-rc2). > It will help greatly if you have any advice or pointer that I could try. > Has anyone done this before? Not sure if anyone has told so in the public ML. However if you want to run same platform both in ACPI and DT with same firmware, you can write ASL to manage clocks via SCMI command so that same firmware can be used. I may be giving to generic info and may not be addressing your specific issue, but I need specific info to address that. What have you tried with ACPI so far, what are the issues you are seeing, ...etc ? -- Regards, Sudeep