Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3193479ybl; Sun, 26 Jan 2020 22:12:26 -0800 (PST) X-Google-Smtp-Source: APXvYqwVfMYLmJaLkGQlQC2vo9j94C+b9NO3Ec/y8sbz63iPp1kBHcXzx0LyRdhe9odHF/ECSEbP X-Received: by 2002:a9d:3b09:: with SMTP id z9mr11462858otb.195.1580105546033; Sun, 26 Jan 2020 22:12:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580105546; cv=none; d=google.com; s=arc-20160816; b=0ytByko/lSKzQBCKAAdWlieX5aYlAOWjgckDQrMnQBTcDrPtZijRJE5QN2X/moO8dT kXKhUlm7YPUEqwPc9Spq8VzKxQogCItQ3ulK+wNGDTqkBBarbKsANUiuUEROJDH9Yqv3 JsO3P14NcGv2eVkloMdvcOf+HsJ+KPR4rWDZ5xRSOLMsTMcpbGLTHWY6/iXR11NaFNrB 3JZmYcGP4sPj8CnXjxhiCrfOoNhS9I0yQ5O+4iQJdnrwuaiXjXTTpg+TwE7sKfuhrIdY qx07tlXjYzn2BZun/Efv9UnxnTm4GbT4mZxBi7UwBxn3e8HjGoDbxWh8kDRQj0+NrF79 pUEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XlOxx0+jj+Ueflcbt7+M5DoGBZOJ3YgoxX9npTLU818=; b=LOiQTAzROZ6oKOdLvMVDr4N82oCGYK14CyHuZIkmFfL45yxvd3jML2hw+oZ74oOroA wK3eg5DBEbYRHGhUZNeets1Gq1rafAXHuhlc3r4MglI/lTNDIhfjjuJYw16cwdR76Fc0 SyE4BkmLHrcQkDxejtYXvrm0d/B1aCnKAtT71HqCbyroxY5fDCzMTpR662pqEe8LOwdk 8/IJZ2JHN7c/wVSmbJ3C9pD0c3XlvOx4YLObrNK3FgP9csyovGfdyawAQMXnhjc49mpD nhbUEFy+AzESplWVD09udl9Po7tQpR24T4n07wguOLaUjWWhYyMXeIP7MNQurvnng1+b G9LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vf8y+dkI; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t85si2882205oih.254.2020.01.26.22.12.13; Sun, 26 Jan 2020 22:12:26 -0800 (PST) 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=@linaro.org header.s=google header.b=vf8y+dkI; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726743AbgA0GLW (ORCPT + 99 others); Mon, 27 Jan 2020 01:11:22 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:32807 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725807AbgA0GLW (ORCPT ); Mon, 27 Jan 2020 01:11:22 -0500 Received: by mail-pg1-f194.google.com with SMTP id 6so4623154pgk.0 for ; Sun, 26 Jan 2020 22:11:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=XlOxx0+jj+Ueflcbt7+M5DoGBZOJ3YgoxX9npTLU818=; b=vf8y+dkIOyamo0I61J7+ZSkbJGj40SHUioxA/UvAT4mXKJOPpTWo1waDRBuWBQKGFe VB4npKCMULhEanj7fe7B8P0Tpm6YqrKnLnSB1yeFvIIKAc2mOQCU3qzaP7f9Jp3Lks/W myykYoBSgxnIpiUwckSSFRex0x/vmDrNBMpRxBLIu3KmrNHM4QwwqGBMNr+qRycfZOuj M9XsKdkv5UAKHg9vMRFEuDQmUgrGsepnOmykL2wWoEI0MGV+RmTS8ozosY4EKos+mJkF qnnM6p9WFGXItpOfMQpF4gzErGhDTlMY3VyrI1dsQwHQp0c+2p4zjnepe8qoscXiZNd5 NwRA== 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=XlOxx0+jj+Ueflcbt7+M5DoGBZOJ3YgoxX9npTLU818=; b=Ro2XrkkGBQCdn7G4B3svfujA6tNOA8zakBjvRZj5L0mlj6pxlgKMxI8hwRezZSzrat lm5WMr25j7V8gi8mxyyWZn0enk3uR/THPnRkfOeIqxXWI5NdKzqTj2CP4501R7xArQSw p07Vvl5Xw0XmU9UnQqBVib1kLwTk6qBBlKIztZREMupgdxRMqImt7ABu719vkBqPkPhp e4TGCEOW9GQ6VsCKO4pHENDZMCo1Lers5T78tq18Xr0PKaCPkF+UNEcxB+UQG3Svjh0p KziaGISQbHVooqCICgzM5bnTZUoKrLZR/PaK7kgN46b3A0NAHd1fqxqDCcBrHCNtAm5j BseQ== X-Gm-Message-State: APjAAAWRFmFJ5afEBsirNMh0XDB1opX0dI0aQtpMIZXAQiolfC5jl1gT RN8+iTdmllLgi3he1YVxi46SnA== X-Received: by 2002:a63:554c:: with SMTP id f12mr18365168pgm.23.1580105481429; Sun, 26 Jan 2020 22:11:21 -0800 (PST) Received: from localhost ([122.172.51.87]) by smtp.gmail.com with ESMTPSA id j9sm14298014pfn.152.2020.01.26.22.11.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Jan 2020 22:11:20 -0800 (PST) Date: Mon, 27 Jan 2020 11:41:18 +0530 From: Viresh Kumar To: Saravana Kannan Cc: MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Viresh Kumar , Nishanth Menon , Stephen Boyd , "Rafael J. Wysocki" , Sibi Sankar , kernel-team@android.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 3/5] OPP: Improve require-opps linking Message-ID: <20200127061118.5bxei6nghowlmf53@vireshk-i7> References: <20190717222340.137578-1-saravanak@google.com> <20190717222340.137578-4-saravanak@google.com> <20191125112812.26jk5hsdwqfnofc2@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191125112812.26jk5hsdwqfnofc2@vireshk-i7> User-Agent: NeoMutt/20180716-391-311a52 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25-11-19, 16:58, Viresh Kumar wrote: > >From 8df083ca64d82ff57f778689271cc1be75aa99c4 Mon Sep 17 00:00:00 2001 > Message-Id: <8df083ca64d82ff57f778689271cc1be75aa99c4.1574681211.git.viresh.kumar@linaro.org> > From: Viresh Kumar > Date: Mon, 25 Nov 2019 13:57:58 +0530 > Subject: [PATCH] opp: Allow lazy-linking of required-opps > > The OPP core currently requires the required opp tables to be available > before the dependent OPP table is added, as it needs to create links > from the dependent OPP table to the required ones. This may not be > convenient to all the platforms though, as this requires strict ordering > of probing of drivers. > > This patch allows lazy-linking of the required-opps. The OPP tables for > which the required-opp-tables aren't available at the time of their > initialization, are added to a special list of OPP tables: > pending_opp_tables. Later on, whenever a new OPP table is registered > with the OPP core, we check if it is required by an OPP table in the > pending list; if yes, then we complete the linking then and there. > > An OPP table is marked unusable until the time all its required-opp > tables are available. And if lazy-linking fails for an OPP table, the > OPP core disables all of its OPPs to make sure no one can use them. > > Signed-off-by: Viresh Kumar > --- > drivers/opp/core.c | 13 ++++++ > drivers/opp/of.c | 113 +++++++++++++++++++++++++++++++++++++++++++-- > drivers/opp/opp.h | 4 +- > 3 files changed, 124 insertions(+), 6 deletions(-) I was hoping to queue this up for next release, any update on getting this tested ? -- viresh