Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp929678pxb; Thu, 4 Feb 2021 00:14:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwPya+B2CTc+ZPfCdHDIZyoa1oAmo1fFvXld85UEMqSerM5u5/GBma7GJl7ZD73boN7pP84 X-Received: by 2002:a05:6402:309c:: with SMTP id de28mr5924903edb.96.1612426479571; Thu, 04 Feb 2021 00:14:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612426479; cv=none; d=google.com; s=arc-20160816; b=zAn3K655lIh1kZhm9aCQZYp53HzX4JQC2v3AEqyYnc2r6Pog1QRXanWr6Zm/fpkpeQ 2bRYi1lBLh7CmiyvLb8iIFBA/VbqLe2YwByTdZfxcDWKMdEOIHSsNx/k3CiEKPP/xzaQ Ik4WwwPick9rFL7msbn7otlq3UpD1M7OxAILWYRKHijxE8Xk21+/O+dxwdRYF/KzwaLM eJf4o0kfa8kV7+VM4+/yj073jiL56lzO7s5kZYkYqlYFRp8PrDppzTlQ+Qfo2Tqe/RHh 9ce4/xNIJnlBPTv/BPLN2CBp+xqhENY0tdD7mIWvVWlZsDoCu9eNLR9f7m/mbLt5POmY zUxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Qx0Orp2D7dKzIfXughhW29/GNQy6bVJN7VUDID0upIw=; b=oR6v8oivRbwEV4Bj2RZWDmSMWpyaDm9jhgtw3Ed2QiWq+VjfCsOoUszYZp75/Ml1XH 8/m5HwzauMzcS7PtJTivBuld4dbX1XXYGnNM0At+jrRPTBNbnxCw5bwIqweriY306Q3C BuA30n9duGjgRFZ4ma12Qm/2neB4tncmASHdGedhX/Y0Wn9vAEEibjjETUST8r9sscqC H7COJ23kr+k1Z5t4IUfyCBtmK1Pj3KRVzXhtNtqIz56Vh/olDnMjkkUW4m8IQ8gfCizM 5wK+4NY6Pi+vfVhPpLhV1B+ar8y2fP8lJabToYIXY1L9q0AQ6NT1/MIooWWSHoHqxFPd cg8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mK1+xAQ5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m26si2863045ejc.354.2021.02.04.00.14.14; Thu, 04 Feb 2021 00:14:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mK1+xAQ5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234932AbhBDINM (ORCPT + 99 others); Thu, 4 Feb 2021 03:13:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234566AbhBDINH (ORCPT ); Thu, 4 Feb 2021 03:13:07 -0500 Received: from mail-il1-x12c.google.com (mail-il1-x12c.google.com [IPv6:2607:f8b0:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C1F3C0613D6 for ; Thu, 4 Feb 2021 00:12:27 -0800 (PST) Received: by mail-il1-x12c.google.com with SMTP id y17so1743114ili.12 for ; Thu, 04 Feb 2021 00:12:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Qx0Orp2D7dKzIfXughhW29/GNQy6bVJN7VUDID0upIw=; b=mK1+xAQ57OW3J+YyKJ2vxHMqrrYC4PwdNXP08DPqwEsqhYxk8DVvE+M/ld+hmk3ndi yN1ZVKl7fF9k1gOMNnhBGMy7FWqX0OB+DjiOdWsRVOOpsunHmP7y2K65xWlqBnI3O6Ab tWOKYc0/gsl4MPQ/hCUThugfrR2w9gPYH23BY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Qx0Orp2D7dKzIfXughhW29/GNQy6bVJN7VUDID0upIw=; b=hlQbIwX7I3+j0kcyxh9njGAgyCur8H/n6W/J1n0TDyfmkqnhSe3t2yFbKsjSC4Wktg PABJQq4HulL9i5a/v6cKNAYsvUdnBSt91jHf0t28/sq19WelKt5N8oM9ya3sDmTco9G2 FB34xaOLB+BM6Q/xzoL0nHIiC0Gd446enEZ0jNL1wkNvFmfC7j3RIxLRcbNrmjP2hWX+ QO8oOofqBZTll1wZLsfzKoXreIaKmafFS+OpPtE6kmt1nSP0IAGGVHwinat3CBzDj0oY cDwE0xv1+L/wDMhM9sNCAt4mU28+xnM79SLomV0mXs12f4TFU120SjJkNktoe5hVSJ3Z LCFg== X-Gm-Message-State: AOAM531C+VQSgik6BRVIrsbQ6h911hNxQB4WXCIjuU5337XaPjfBE2Gb TWb9Zy2vnF4d/j630pusYI3+yeBay09Gbgv4uToS6Q== X-Received: by 2002:a92:cf08:: with SMTP id c8mr5929433ilo.106.1612426347082; Thu, 04 Feb 2021 00:12:27 -0800 (PST) MIME-Version: 1.0 References: <20210203092400.1791884-1-hsinyi@chromium.org> <20210204054133.sb6vymf56u43bpwe@vireshk-i7> In-Reply-To: <20210204054133.sb6vymf56u43bpwe@vireshk-i7> From: Hsin-Yi Wang Date: Thu, 4 Feb 2021 16:12:01 +0800 Message-ID: Subject: Re: [PATCH v5 0/3] Add required-opps support to devfreq passive gov To: Viresh Kumar Cc: Viresh Kumar , Linux PM , Nishanth Menon , Stephen Boyd , "Rafael J . Wysocki" , lkml , "MyungJoo Ham )" , Kyungmin Park , Chanwoo Choi , Saravana Kannan Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 4, 2021 at 1:41 PM Viresh Kumar wrote: > > On 03-02-21, 17:23, Hsin-Yi Wang wrote: > > The devfreq passive governor scales the frequency of a "child" device based > > on the current frequency of a "parent" device (not parent/child in the > > sense of device hierarchy). As of today, the passive governor requires one > > of the following to work correctly: > > 1. The parent and child device have the same number of frequencies > > 2. The child device driver passes a mapping function to translate from > > parent frequency to child frequency. > > > > When (1) is not true, (2) is the only option right now. But often times, > > all that is required is a simple mapping from parent's frequency to child's > > frequency. > > > > Since OPPs already support pointing to other "required-opps", add support > > for using that to map from parent device frequency to child device > > frequency. That way, every child device driver doesn't have to implement a > > separate mapping function anytime (1) isn't true. > > So you guys aren't interested in dev_pm_opp_set_opp() but just the > translation of the required-OPPs ? > I think this series focuses on required-opps. > I am fine with most of the stuff and I would like to take it via OPP > tree, hope that would be fine ? > Sounds good to me, thanks. > -- > viresh