Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2061111imm; Sat, 16 Jun 2018 08:51:02 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJZIzfCNP91gNYeRYgwe+x7qB/MvuIlBZUIxpeZBBZ6akO0GUM6Tb+a53rV8o/PnSwlmhgJ X-Received: by 2002:a17:902:b28:: with SMTP id 37-v6mr6884926plq.201.1529164261996; Sat, 16 Jun 2018 08:51:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529164261; cv=none; d=google.com; s=arc-20160816; b=QH569jcbbjnAlDNgxmdlM5vSASjhm9hIJJAn3VYMiw5kdyIUCD+YH/MqhbgVtwTr6b CFxaaG5FBeL8YR4CdzGMYUZbfE2SZbaycdRJ/s9QVPHrJHxw8KkpHnp92P3GGVl3xhW+ UxF8jWZ0Yx+cdrlsHrBFFPHxmJQZe/+MOAkcz8IH6KEiRU1O6Brf6rdcI1B6OB6jk+fr DS+MeyB47qtKrexnZq24oj6331L1iFkxdo/f8veTBKYUDtOpLO0xPFTcHk7hwnAI/llq mq9GNKlThXQATyz8P2FuZEM4SUWvJuPeVqIAwstz8UuZ+Q6FItx+GnvmgCLAaUBUDDKh ysVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=ZXGg18g5pPjSRyZDeoTUVX9XCegl+mmO+OHaGdnq0uk=; b=jYOH9Z9vCUXAwIYvJui9VmKD2jOzF/t7rrr0GbH4U3HoCpTxaR+4PVpq7YWiV9ku9A 9SlMu6deDCUqAHqmEl+o5X+C6fCP3+oPLHhvHdDksUNvP0Xv/jFIfTcx8+BZaTIb5MAi DoIDMWpIpqBsIOJWnHYi7FJoyK8GnbGZL1Lwa64/nkaDaxl8iyBlvjQFoDKJT+BlxWmk kq3p+4PZsgxRrVN+oCEkTGp+MWD2GHfEEdtAQ4eRjcjsKDkIijg5ZZvlF8Gnggg0FkEF 5i8KkWsqgg2XXOtU+8SMW/XU2jXcWDqF7H0UhMb7X/bo7SbWfFEYVn7HgSocCZnJdOEN Y4Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=VEBLTMuZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n21-v6si6212168plp.31.2018.06.16.08.50.47; Sat, 16 Jun 2018 08:51:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=VEBLTMuZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756878AbeFPPuW (ORCPT + 99 others); Sat, 16 Jun 2018 11:50:22 -0400 Received: from mail-oi0-f51.google.com ([209.85.218.51]:39245 "EHLO mail-oi0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754201AbeFPPuU (ORCPT ); Sat, 16 Jun 2018 11:50:20 -0400 Received: by mail-oi0-f51.google.com with SMTP id t22-v6so11393126oih.6; Sat, 16 Jun 2018 08:50:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=ZXGg18g5pPjSRyZDeoTUVX9XCegl+mmO+OHaGdnq0uk=; b=VEBLTMuZsXyWzKCTvg3QYcZSVmm624ACetQ73ZVzuf4qRSpz9X5PLi7zvzlLOmy+/v qzhXpC8nSYfX8/8+RFESzZfFaVxHlRxm/w6ph8DYxje9CPuXSAPg5Q4BhrBj4lhdLeKX 9xRl9x3kphldHog2QL++H6Wl12vQPsaFt/PzxVCzaXWuUz+4qOfQ/H6HHPudv+7X3ccy DBW4hGD+wwDjNHPsZNqQDhGhAJY2ss4Rrli4MrALaQrDNsbBzPbA8mAuVDfZoTPBGgIP haCWFnzrbo89mz8K9OrirFSvCGRkSWG0Uvs/muVZdoG/CP8jXmVEL5QdZGW2PGsVCi9P fIDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=ZXGg18g5pPjSRyZDeoTUVX9XCegl+mmO+OHaGdnq0uk=; b=f8UGrA2Dr2dzggrPRa/cO1HqRukTO9fHXO6tH2jO2JDkpvDfyoAzvQ5h26TPv6lKlO MHzjZOf52Cb8heo0F0AKoV5bkxrN/f8YF7Pu6GVGvbWN4LBpN98SRmmRJ1Np66w8DEof zEgYQ384CEi98NGgc50h9xqnz+XnXMyfCsfuu0MhJdXgXIHIMGBk62p1irJRFoGgnDff it8dk/AJ67KZTk2SaNbhaVUF/Nck9VBv1ZihU+Y346zRdouixdABoPmC0Fdoa2ohnwta BsUJjovnxvySnxAcKsAVX6BieNod0uqNYwzKsk2f+wb1uuxpk0g6cZa62Qfkv5bMGHLL xZBg== X-Gm-Message-State: APt69E1A5cZs6uziKAyKSw4N/mynSjP90Xv6PALRpMBJTdlOu+oa3/tm 7Nwv90uAiX4mOPNzVWIp7oUP7+SLSbVhQIDZi/8= X-Received: by 2002:aca:5bc6:: with SMTP id p189-v6mr3592943oib.116.1529164219309; Sat, 16 Jun 2018 08:50:19 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:1429:0:0:0:0:0 with HTTP; Sat, 16 Jun 2018 08:50:18 -0700 (PDT) In-Reply-To: <152908459103.16708.4012421602830600322@swboyd.mtv.corp.google.com> References: <152908459103.16708.4012421602830600322@swboyd.mtv.corp.google.com> From: "Rafael J. Wysocki" Date: Sat, 16 Jun 2018 17:50:18 +0200 X-Google-Sender-Auth: kRGg-iVx55l3k5aqgemkFTJTEro Message-ID: Subject: Re: ACPI support in common clock framework To: Stephen Boyd Cc: "Rafael J. Wysocki" , Andy Shevchenko , Srinath Mannam , "Rafael J. Wysocki" , ACPI Devel Maling List , Michael Turquette , linux-clk , Linux Kernel Mailing List , Mika Westerberg Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 15, 2018 at 7:43 PM, Stephen Boyd wrote: > Quoting Rafael J. Wysocki (2018-06-13 01:27:39) >> On Wed, Jun 13, 2018 at 10:13 AM, Andy Shevchenko >> wrote: >> > +Cc: Rafael, ACPI ML >> > >> > On Wed, Jun 13, 2018 at 7:14 AM, Srinath Mannam >> > wrote: >> >> Hi Michael, Stephen, >> >> >> >> We are adding ACPI support in our Linux based platform. >> >> At present our clock hierarchy using common clock framework through DTS. >> >> Now we required ACPI support in common clock framework to upgrade our platform. >> >> >> >> For example, clk_get API called in many drivers to get clock device is >> >> tightly coupled with DT framework. >> >> >> >> Please let us know, if anybody in Open Source community have plans to >> >> add ACPI support for common clock framework. >> >> There are no plans for doing that AFAICS. >> >> Moreover, it generally would not be consistent with ACPI power >> management defined by the specification. > > This matches my understanding. > >> >> >> If not please suggest us alternative method to use common clock >> >> framework in ACPI use case. >> >> The problem with using the clock framework on systems with ACPI is >> that, in general, the clock manipulation is expected to be carried out >> by ACPI power management and therefore it is "owned" by AML. >> Currently, there are no defined methods for synchronizing the AML's >> use of clocks for power management with what the OS may do with them >> directly. >> >> In theory, that can be worked around to some extent by representing >> clocks as power resources in ASL (even though the provider information >> would be missing then) and manipulating those power resources directly >> from the OS. I'm not aware of anyone doing that successfully, >> however. >> >> For simple power management it should be sufficient to let drivers >> rely on the ACPI PM domain which should happen automatically in the >> majority of cases anyway. >> > > Is this for clk_enable/disable? What about clk_set_rate() or > clk_set_phase()? Is ACPI's AML taking care of that? That's for clk_enable/disable AFAICS. AML doesn't manage device performance states at all.