Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp145337imm; Thu, 2 Aug 2018 15:46:24 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeeljoWHE7OWFlD7Q1GFK9NXF/nyeFvfC9tunc3ShDcQELoTr95n0ZtbM2l3YzcLGncgYtn X-Received: by 2002:a62:d34a:: with SMTP id q71-v6mr1445405pfg.17.1533249984698; Thu, 02 Aug 2018 15:46:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533249984; cv=none; d=google.com; s=arc-20160816; b=Rg3Czc69lScfnDXyOq9IuKZotsexktOIoqI+8j5PMjKspuS0Y0QN6JCIU4cdReDZ60 VeAyVCdoMjhbQXcUAofMDAKq3G5YiAzKdaS/o/BwS4P9z7tXJ2MQ8MDuzu2DmJJwR6F6 GNgNyht/ZPmr7hA22lgmfN8dKjDdxXiGUhfWhxhM/qWTf21cqzz6rQ/JKRzxhN9/9J/x 0ioYIzVz7thB1PzuzixVddcxzLpro+G1mpj49gGhiPwgdivnk+ID9tb4cwTvTi0wRAuE UBDYYsIjXDkRE19mSSjlLb8o7amScjzCRRhjinQBCMTx01ZtOGeVH6Sz2TkHsLoOM0xd CUTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version:dkim-signature:arc-authentication-results; bh=PzGaF0YFoImv8SQE7Xc6qpS0qjlTx5HAoPX/TTNWi0M=; b=BAL2pgKQvUTYQBqgbQxj2Tk8EkFAbZ7n5hYqyyy/7i4ega9Ds9/ZkqpEJze4Y5cqwk CH3SX8DEVo80EGHw25EMlIMic444ZOc2mLkg7CbQhW7c2VLSQ91MaO5lumI33fBK2UQg oylgEDnruIAniRU9v54SNrSENnBbVQHQyroomvF9u+tYVIteLLftWwkYh2wTfnda86gG gjj3aIS5ULDkwg2UZioOkf0ONXN+PpwNwzto9z/58J+1Y+yN5lvHEnKdRYGb8t0ZErQo 33tbmu9zWqCZlWo0N5Gypf+ghC/RZG4RRVzjW/ojnnHOyqI0UpKtwa7gD+Q1vRyR529F SwMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vittXXwA; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 128-v6si3516673pge.444.2018.08.02.15.45.55; Thu, 02 Aug 2018 15:46:24 -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=@kernel.org header.s=default header.b=vittXXwA; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729407AbeHCAhp (ORCPT + 99 others); Thu, 2 Aug 2018 20:37:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:45866 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726702AbeHCAhp (ORCPT ); Thu, 2 Aug 2018 20:37:45 -0400 Received: from localhost (unknown [104.132.0.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4382F215A5; Thu, 2 Aug 2018 22:44:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1533249870; bh=PzGaF0YFoImv8SQE7Xc6qpS0qjlTx5HAoPX/TTNWi0M=; h=To:From:In-Reply-To:Cc:References:Subject:Date:From; b=vittXXwAQg6yrsACLbSr+I1lUPAB1B3D/g+VKYbryukdpr+EZZa+Lxniz4GqWVuaH ZYGJhA4ddZ8S+9AR9g3YFEn2GxWb9RIixNH3ZOiI5Ca57KAnWWsr0f+kCWdvQuZO8E WCS17jXDwlFinvvd6qJiMU7ojER0ux52RU2qHqNw= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: Amit Nischal From: Stephen Boyd In-Reply-To: <07e0321116993d27d6585bd1a186328d@codeaurora.org> Cc: Michael Turquette , Andy Gross , David Brown , Rajendra Nayak , Odelu Kukatla , Taniya Das , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk-owner@vger.kernel.org References: <1528285308-25477-1-git-send-email-anischal@codeaurora.org> <1528285308-25477-3-git-send-email-anischal@codeaurora.org> <153111693472.143105.11303543263643845656@swboyd.mtv.corp.google.com> <1e6d9fc284c3c118203728867f504ec6@codeaurora.org> <153250192252.48062.9210075387954345932@swboyd.mtv.corp.google.com> <07e0321116993d27d6585bd1a186328d@codeaurora.org> Message-ID: <153324986956.10763.5124619734269160725@swboyd.mtv.corp.google.com> User-Agent: alot/0.7 Subject: Re: [PATCH 2/4] clk: qcom: Add clk_rcg2_gfx3d_ops for SDM845 Date: Thu, 02 Aug 2018 15:44:29 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Amit Nischal (2018-07-30 04:28:56) > On 2018-07-25 12:28, Stephen Boyd wrote: > > = > > Ok. Sounds good! Is the rate range call really needed? It can't be > > determined in the PLL code with some table or avoided by making sure = > > GPU > > uses OPP table with only approved frequencies? > > = > = > Currently fabia PLL code does not have any table to check this and = > intention > was to avoid relying on the client to call set_rate with only approved > frequencies so we have added the set_rate_range() call in the GPUCC = > driver > in order to set the rate range. > = But GPU will use OPP so it doesn't seem like it really buys us anything here. And it really doesn't matter when the clk driver implementation doesn't use the min/max to clamp the values of the round_rate() call. Is that being done here? I need to double check. I would be more convinced if the implementation was looking at min/max to constrain the rate requested.