Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8700919ybi; Tue, 23 Jul 2019 13:25:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqzrfuIo2aKiwHpHQ9F2OMbExasOh+kNglqUVXM4yAcBCANrp/TPVay56SNieY+h2IZc9BxJ X-Received: by 2002:a17:902:b48f:: with SMTP id y15mr83644431plr.268.1563913527122; Tue, 23 Jul 2019 13:25:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563913527; cv=none; d=google.com; s=arc-20160816; b=VSPYX75zRRoV1YpqA7yb7yTiaBPCAOEuGziz8N6PNfNx7s+NLVG7cLH3rMdLIH49PC sXWTDOwI3chDV4b0t+OOFH6cj/eqREo9Uz/rlshf7XRtHKgEq4dqFJrv2xI5amNX6hrM jt41u8iB5a4k96YkIzT9BXZU83vddJszoToxO7B8ygvqOioGcapVP01y2jok2nsuqlWN xRhW5nYQ6a+ZPYPtLcMTFlRDwp5IfSl2AMxxFB2DlvOjyzR2358+G5XmZKqNgnJ9xiHO 3YXqiyzDRE9i25tecXQtjQ8EVnvh5Qm4oi+hku+d9ji09VROl8ZeEBEXILZTVHTD/KHZ eeuA== 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=ZcYL9/P3n49g6DqKaLI+RkNcE4jpTV+/tkfkwu+pd/I=; b=s3MMiPO7IDWKMgs0TEd+lOde2y18e+sSap12yH8+72n689liQgcCRqAv72ksXC8Uw0 ZWrHbub2lAEO5/GIcQn1GuxtkFCkth8tY29MzYh5dygiSYsDRAzUT5eTiHzKei5fcRze eWMYJIpuaYWVyY+z4VI9N7zZvO3tkAgEDn4nMw/iQPiGmPtcpC3BtX6OYyYPvjBc1TnB 7vZ3QSmkz1jHEm0dScnPK/ys+8AOY9U1gh5DEu3dT9k9Q7FVqIv+j+iDRb+Lk4Exk99i Ecqh7cJlqMcb+e4CWO7zMRGwUTsstNkVFQbwb5YFbtOjOgkVYOO8Ka1a9dFlEG1zvB1r Zzhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VICLIGiH; 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 z26si12972897pfj.247.2019.07.23.13.25.11; Tue, 23 Jul 2019 13:25:27 -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=@linaro.org header.s=google header.b=VICLIGiH; 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 S2388984AbfGWK2q (ORCPT + 99 others); Tue, 23 Jul 2019 06:28:46 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:35819 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729877AbfGWK2q (ORCPT ); Tue, 23 Jul 2019 06:28:46 -0400 Received: by mail-pf1-f193.google.com with SMTP id u14so18941083pfn.2 for ; Tue, 23 Jul 2019 03:28:45 -0700 (PDT) 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=ZcYL9/P3n49g6DqKaLI+RkNcE4jpTV+/tkfkwu+pd/I=; b=VICLIGiHz6hhtuPRSMN0Rn4Tq2DcV/1P1Ybg1HBXsAWiuA6vj61xyt0mLNzXme8kX3 esV/scccE8LpryajCPPfFBXnjPrKeAfJpPYYXOO6IW9+HYl4svcS/Y5bpmOLY0Uftt2S 5lFx89MMXOr21qlPkt4ka9KBp2D079ldrslJgvwcjjuyjPrGHOzlrlivBj6mjXlhxhWI ZpgzNr5HE0JS+u9CBkfSQoBRLij9HcAJ2Lv6cVc+74Qo7Ost3lLBR8f8Djm3dvW2bg31 Sog1WcS19jK5z/9s31Oghgd2HpIL7BrU7MLg369l9M6T43hRdswMk/ps9QRPkTFIm1pr 9kAg== 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=ZcYL9/P3n49g6DqKaLI+RkNcE4jpTV+/tkfkwu+pd/I=; b=nqC56bJDg1c+awHGfmP2jVOMmK6L0hd7TEIblIgerSlNsvmT60cDkUOveax98qgTMb UkAkIWTCD2c9jQ9uTl+FKmCZINTrAZshknrHvCjKM5A0iB/7prZ6j1JrPLhrLlXNNgcY wwXSRQbDyvfTINwTd90TrPqIrkfbc+yD8AR322fFW7gqYgJ9+GqjClFDqRdYu74z6vuP i5kisvgqU+T9STODdE9ilFBkdP8fTthdQmdtfO5zSE1jS6TKx2GTIbuF7y5JN/jqS22G 33VRirei38aSu91wfqVNNlkrf0vXC9FLwmSszI6GBUQK+U7VFZhZ38XRLpmKbMafnUxQ 7D1Q== X-Gm-Message-State: APjAAAWTM7ELzoEIkFsJvrF2E5lSe3T+L6lUAWXBzOEOyg0neVSzEpnJ uRt248cytOz07riIM+3W32dJDA== X-Received: by 2002:a65:4489:: with SMTP id l9mr78187922pgq.207.1563877725327; Tue, 23 Jul 2019 03:28:45 -0700 (PDT) Received: from localhost ([122.172.28.117]) by smtp.gmail.com with ESMTPSA id o24sm80368031pfp.135.2019.07.23.03.28.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Jul 2019 03:28:44 -0700 (PDT) Date: Tue, 23 Jul 2019 15:58:42 +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: <20190723102842.t2s45zzylsjuccm4@vireshk-i7> References: <20190717222340.137578-1-saravanak@google.com> <20190717222340.137578-4-saravanak@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190717222340.137578-4-saravanak@google.com> 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 $subject doesn't have correct property name. On 17-07-19, 15:23, Saravana Kannan wrote: > Currently, the linking of required-opps fails silently if the > destination OPP table hasn't been added before the source OPP table is > added. This puts an unnecessary requirement that the destination table > be added before the source table is added. > > In reality, the destination table is needed only when we try to > translate from source OPP to destination OPP. So, instead of > completely failing, retry linking the tables when the translation is > attempted. > > Signed-off-by: Saravana Kannan > --- > drivers/opp/core.c | 32 +++++++++++----- > drivers/opp/of.c | 91 ++++++++++++++++++++++------------------------ > drivers/opp/opp.h | 5 +++ > 3 files changed, 71 insertions(+), 57 deletions(-) Here is the general feedback and requirements I have: - We shouldn't do it from _set_required_opps() but way earlier, it shouldn't affect the fast path (where we change the frequency). - Programming required-opps for half of the properties isn't correct, i.e. in case only few of the required-opps are parsed until now. So setting of rate shouldn't even start unless the OPP table is fully initialized with all required-opps in it. -- viresh