Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1073917imm; Fri, 15 Jun 2018 10:44:53 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJO02oYQlTIIy7eLBh7JiTbFxzS/H43EF/nksCFQh3oR2yclMoVdlklECja4ysoC9ATBIwf X-Received: by 2002:a63:6f8a:: with SMTP id k132-v6mr2500727pgc.153.1529084693222; Fri, 15 Jun 2018 10:44:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529084693; cv=none; d=google.com; s=arc-20160816; b=f1wy83phW1gRGGC5+2Wz2EG8hb+6UMfANzLwPh0FTn3u6xXzOvpNVOUxiEFAiCRPOC U6EgBCpXjBcgJTBAeosW6LWwkcrJYKCOdbnzhThwoV+oUC/y6ifcfm/lJ0DbyJXnD4hl BEG1ovbU9gfsOPNWHG6PihlOvU/qaJkDDRuPydJyFcz+XMiRm0JzGZOMKrGuFpffDtZz BOx7VxzWREw6TPRAOfhhtR+A5zdGHHEGVoZeD7WvPQHjo3UbIu8kDEotWGt48r/Jq1kr +fPDkbPXjPXdQCpHT69ZBkyny2BkkJ7/bo+e4Cbwc9qsle5AUCOD3x5bIOq1C1l1YHvq Gy5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version:dkim-signature:arc-authentication-results; bh=zFDKTIMjEkQWmi30XVGygUATiRmthkhzp9fS7CssGAM=; b=xkQ++C1Q8QIRqWG4vFsUpdgG3sRj2jQ6o+mkagifOp90vZPjPHpuATyjPwKWeCGptu WNYeHCw2l6fAujj1AIK2mC0rsRDj+1xeKlzqCgFqboaAFtH6v0GKf14EtxxlfcAnz6Xe XeYVjrCfIg7KJTdqBFp5khiVoE7WIsrSzk6p28UMLJUbhMWQsY950qDuCryEEyvYs+lu Xt8NIsr5q5xqe/Tsv5aEPp+UDVjNcQ4VuQgA7wA8MM2K8DUwqGbafRB29bOX6jYmHVa2 IIjcdFvn2sELmTIbPHuvNk8vF6YFwy2LCi6eGjkJAfzOV30bn7Uw6KTzaiT+t90ITr19 3MVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="l/0mXnLo"; 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=pass (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 b13-v6si10055640plm.202.2018.06.15.10.44.38; Fri, 15 Jun 2018 10:44:53 -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=pass header.i=@kernel.org header.s=default header.b="l/0mXnLo"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966136AbeFORnQ (ORCPT + 99 others); Fri, 15 Jun 2018 13:43:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:49608 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936408AbeFORnM (ORCPT ); Fri, 15 Jun 2018 13:43:12 -0400 Received: from localhost (unknown [104.132.1.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B2BC1208AF; Fri, 15 Jun 2018 17:43:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1529084591; bh=fdLh8bar6RFdcHJwPlu/8O5wBEgmrCz2ZpqPw9zctkA=; h=To:From:In-Reply-To:Cc:References:Subject:Date:From; b=l/0mXnLoSvjcD7e3yYiKSCmaxPb9ISvbLmrRdWELjix3cwbKvLrQv4R2X74Gne/ce lIv/KaEiAfg+Kz0aNf9/LWBvyIDVF1mkIiNncitmfa3s1X5n5Dq1hk0s2LolYYM4Hd LqJxstH0TAgHy6whMiInypvWMZGJd141hFlR/UJ0= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: "Rafael J. Wysocki" , Andy Shevchenko , Srinath Mannam From: Stephen Boyd In-Reply-To: Cc: "Rafael J. Wysocki" , ACPI Devel Maling List , Michael Turquette , linux-clk , Linux Kernel Mailing List , Mika Westerberg References: Message-ID: <152908459103.16708.4012421602830600322@swboyd.mtv.corp.google.com> User-Agent: alot/0.7 Subject: Re: ACPI support in common clock framework Date: Fri, 15 Jun 2018 10:43:11 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 DT= S. > >> 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?