Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp555926ybl; Wed, 29 Jan 2020 05:36:07 -0800 (PST) X-Google-Smtp-Source: APXvYqzSClDsRpaQLCXnLUiW8cmAouC8/qOVBpsJdmpFYlgQNNlt4hk/o/+u6VrfvXYAqtZ6P86i X-Received: by 2002:aca:3a05:: with SMTP id h5mr6540752oia.3.1580304967739; Wed, 29 Jan 2020 05:36:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580304967; cv=none; d=google.com; s=arc-20160816; b=Yi+Oy1R0UcizPbKkWtqXsJUXiD+nMOoIwBmCeBbedKjLyp14R283zA8VILZDRQrB+P cgGCMERPdCduL3fbcdtBCRRAWKdhZGGjxaa7Xp2o0Z1/o0vXfMypt8aYE+gL9LddI2sV /TEDmHzfZjIDqE7RS/y3OLW2adWTYDXtdNUzM4kjCPzt3OwkLRXfo2hYswJfK1fpMHjH fEGA1+2WH9tY/uQpS7WlkpJYRuiJl+YX/ktTYShL1AdN6iwFbdgtwTGfhuUlgv98fyUT ryTUSfOMfP4fvhFCtWX1ejx4QoArELKqeKWEtXznpljmRB6IR6PS6nzbdhP0KiUSGJLy Qp3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature; bh=2sxskHCGXQhVALsZwgwhTjZajzTjZeZfv8scmDcudzQ=; b=f37Pkd9WfM2qUSPB97J8Yr/T+V54Mvre6Sd6R75iJPmJJr9ZHR6lW60J2aUTK00Yyn PLnDutmSFSDxwrObuqBzt0/9uQg2fQi/4kPh3wZJPpNpT9xAw49XxdbXAcNMHbIFecCh oU484HfcZS5Kbz0Mg3MoHh/zyNbIEj0E5ad/NziusJ/ZNualwrdRMvOOiRh/RZLojjDM phZARoaQCqNV5m6IATwIAEn2uM38LYwncSvC+wSe9lVZ5y0nNKR3JAtjv0VJxlb5ixRW vRTSeQj8Jy2eW/69mqRJiKs5assfIF0QFD35V7V1pXy4ku5LR7ViFyJdGLPYmlQS/A3e 8lpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=ZkiK6g2D; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j14si1099516otp.319.2020.01.29.05.35.55; Wed, 29 Jan 2020 05:36:07 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=ZkiK6g2D; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726605AbgA2NfD (ORCPT + 99 others); Wed, 29 Jan 2020 08:35:03 -0500 Received: from mail25.static.mailgun.info ([104.130.122.25]:25243 "EHLO mail25.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726498AbgA2NfD (ORCPT ); Wed, 29 Jan 2020 08:35:03 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1580304903; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=2sxskHCGXQhVALsZwgwhTjZajzTjZeZfv8scmDcudzQ=; b=ZkiK6g2Dv7AEUofl2tei241X2HlCS8yLpocfRAzI7MFw5on6w3NOQ2mFYv/LhIzuu1NTtSG2 V9E42+CC+9Wg2AcSuInRNuqnv+BA3SRqFjQgmTb9zi4CDbM0H3NIbQOpixtclFUY2GDV3GCu fjhLDz/x39S3U1B2g0FOlnt2+tM= X-Mailgun-Sending-Ip: 104.130.122.25 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e318a03.7ff1150a60d8-smtp-out-n02; Wed, 29 Jan 2020 13:34:59 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id E0D8EC447A1; Wed, 29 Jan 2020 13:34:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from [10.79.43.230] (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sibis) by smtp.codeaurora.org (Postfix) with ESMTPSA id B794DC43383; Wed, 29 Jan 2020 13:34:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org B794DC43383 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=sibis@codeaurora.org Subject: Re: [PATCH v3 3/5] OPP: Improve require-opps linking To: Viresh Kumar , Saravana Kannan Cc: MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Viresh Kumar , Nishanth Menon , Stephen Boyd , "Rafael J. Wysocki" , kernel-team@android.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190717222340.137578-1-saravanak@google.com> <20190717222340.137578-4-saravanak@google.com> <20191125112812.26jk5hsdwqfnofc2@vireshk-i7> <20200127061118.5bxei6nghowlmf53@vireshk-i7> From: Sibi Sankar Message-ID: Date: Wed, 29 Jan 2020 19:04:44 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20200127061118.5bxei6nghowlmf53@vireshk-i7> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Viresh, On 1/27/20 11:41 AM, Viresh Kumar wrote: > 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 ? I don't have a gen-pd use case to test against but with the is_genpd check removed it works as expected when I used it against this series: https://patchwork.kernel.org/cover/11353185/ In the lazy_link_required_opps fn shouldn't we skip the dynamic opps in the the opp list? With ^^ addressed: Reviewed-by: Sibi Sankar Tested-by: Sibi Sankar > > -- Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc, is a member of Code Aurora Forum, a Linux Foundation Collaborative Project