From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8B65CA9EB7 for ; Tue, 22 Oct 2019 18:43:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8FE1F21872 for ; Tue, 22 Oct 2019 18:43:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1571769820; bh=A3vL0CJVtMwgJjE/UunL6amdwwIt9HFwNthqGj5zB5A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=Fd5x4NtB95LRh7ftV8m+831lhcwqlWDb7ursRPpRzHEaj4s35mDxbCleLHeBUKYFk 5HKE2ZCBcbThWUoOAZo/BPIaYuQSkQnU0ugeT40UY7CSe3VSzxoUAsEzE3I7e1VrQd +FdjXxOkCR8MRx7ULv1dtDloTCK5ajyCXfNZgvXE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732436AbfJVSnk (ORCPT ); Tue, 22 Oct 2019 14:43:40 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:45307 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732393AbfJVSnj (ORCPT ); Tue, 22 Oct 2019 14:43:39 -0400 Received: by mail-ed1-f68.google.com with SMTP id y7so6178643edo.12; Tue, 22 Oct 2019 11:43:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=MaK9HZRo2yPA34xjdPj8WIVzo4X/HVsTE3eZR+WBcic=; b=WwR/XSHAiRFFo4wQcTon1ii+X3ISus9Wr4wAOV/uyQ+9FSt1qE7BnhiGxqzpT64GMB jqnE0EyrABOUaGJvlhcTtxHjLgocZHgUUAXcXvMh5Q1vTv6iMLsNyW81orK9ZZKiMuE4 2fhDnvEhwE6tH361dkh/mNC+HravKWxWo+o4aVMf/PpmRRTPBKRoRIyiv5SYQJ5QsI2d Cxs19hGfqWcJgkKXXtsu0eaBa/vOzvAdpnlil3kqRxNTp8XngV7WplTQDb/LeQgtx4fp 5CXoMUqCxiy1LbvSjTVMk8O8BjJjEISnyQS0WOFv49sTR1+zNUStZ8UlptZTaXLD5uyU KOxg== X-Gm-Message-State: APjAAAUsFFaGYTjjgFtVTCMv82Ag8RVcRYJrO4AQnvhwfC+iQTdxmxIC 0ZfLbs5CR2DRbE2Ff+A7e8s= X-Google-Smtp-Source: APXvYqwaza4IQ48vd2aWTDDcq9RRblSoEI8imxQjQ2w9B33BxUNL8U7MIIpmrU+/Ly8hAxGL9ziPmQ== X-Received: by 2002:a17:906:69cc:: with SMTP id g12mr28731760ejs.235.1571769817645; Tue, 22 Oct 2019 11:43:37 -0700 (PDT) Received: from kozik-lap ([194.230.155.217]) by smtp.googlemail.com with ESMTPSA id w19sm123844ejo.3.2019.10.22.11.43.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 Oct 2019 11:43:36 -0700 (PDT) Date: Tue, 22 Oct 2019 20:43:34 +0200 From: Krzysztof Kozlowski To: Viresh Kumar Cc: Sylwester Nawrocki , vireshk@kernel.org, robh+dt@kernel.org, sboyd@kernel.org, roger.lu@mediatek.com, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, b.zolnierkie@samsung.com, m.szyprowski@samsung.com, Stephen Boyd Subject: Re: [PATCH v5 1/4] PM / OPP: Support adjusting OPP voltages at runtime Message-ID: <20191022184334.GA8305@kozik-lap> References: <20191016145756.16004-1-s.nawrocki@samsung.com> <20191016145756.16004-2-s.nawrocki@samsung.com> <20191017064258.yfbh7iz3pbzfhdvr@vireshk-i7> <20191021112354.GA2262@pi3> <20191022022341.yd6ykeszsuprmop2@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20191022022341.yd6ykeszsuprmop2@vireshk-i7> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Tue, Oct 22, 2019 at 07:53:41AM +0530, Viresh Kumar wrote: > On 21-10-19, 13:23, Krzysztof Kozlowski wrote: > > On Thu, Oct 17, 2019 at 12:12:58PM +0530, Viresh Kumar wrote: > > > On 16-10-19, 16:57, Sylwester Nawrocki wrote: > > > > From: Stephen Boyd > > > > > > > > On some SoCs the Adaptive Voltage Scaling (AVS) technique is > > > > employed to optimize the operating voltage of a device. At a > > > > given frequency, the hardware monitors dynamic factors and either > > > > makes a suggestion for how much to adjust a voltage for the > > > > current frequency, or it automatically adjusts the voltage > > > > without software intervention. Add an API to the OPP library for > > > > the former case, so that AVS type devices can update the voltages > > > > for an OPP when the hardware determines the voltage should > > > > change. The assumption is that drivers like CPUfreq or devfreq > > > > will register for the OPP notifiers and adjust the voltage > > > > according to suggestions that AVS makes. > > > > > > > > This patch is derived from [1] submitted by Stephen. > > > > [1] https://lore.kernel.org/patchwork/patch/599279/ > > > > > > > > Signed-off-by: Stephen Boyd > > > > Signed-off-by: Roger Lu > > > > [s.nawrocki@samsung.com: added handling of OPP min/max voltage] > > > > Signed-off-by: Sylwester Nawrocki > > > > --- > > > > drivers/opp/core.c | 69 ++++++++++++++++++++++++++++++++++++++++++ > > > > include/linux/pm_opp.h | 13 ++++++++ > > > > 2 files changed, 82 insertions(+) > > > > > > Applied. Thanks. > > > > Hi Viresh, > > > > Can you provide a stable tag with this patch so I can take soc/samsung > > driver? > > opp-5.4-support-adjust-voltages Thanks, merged. Best regards, Krzysztof