Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp631191pxb; Thu, 14 Jan 2021 14:42:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJwsnT3NSWYOprZjUgMuTvDZI8HcLfDn/zdnjYuPCCFy6nSQH0ONYxFeAZcgsBwM5QQDrBCT X-Received: by 2002:a05:6402:2d1:: with SMTP id b17mr7278245edx.95.1610664156888; Thu, 14 Jan 2021 14:42:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610664156; cv=none; d=google.com; s=arc-20160816; b=bgbfxW2zYT7Q44NJ8UDu8f5CGJrNV9wrlgxFACBOiW6hk9Ci83bYJoYMc4WcONamhs 0cuqrnYMdVX/9IhgqeFfnLH7Hdx7sJqfOJExublxiFd8hRoRV3JvFXiwmoCTmU3hwmCW NOfjuIWUmZCckCYjdWU34ZFmWzfQ4Ywu4triKrE9H9hLcQAC+AT1hFFBEYHdc9olrRh6 CqQvT0TA1EcToB1R6Ni1J3kfaRES1NVbKQ4N6ApGzvt1cb93K7dOI2NnBbo5dksIWrE/ kxIesV85M7kjoo7kC5mBZODQAtSuQdHK5OdP4FZ9crizSgW5FAX7rt5T9fXU6GbkzqVv SABg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=L0lo1qoFX4/7D8vpL8SRCAIqdfPPxQKUw5h6L2+onKk=; b=lGVAURq8mVYQWKvQRyUyyrJ1C6By8J4aTjG9baawv0IdiCHcz9jpCNSXHYyB47DfHA TL477ia4C3JtaVPktZEJzlYs5C4RCATkGClKAXp8KGxlBr1Re7Gu0TAtE6WsoDaovF7n mbL7zJKIFP+eoWPVGYtBrx8a0l+7cSpxcipkPk18EHxR2XCH8aDHzNUxNo712/NaELAg uO5JiDODMAXDTQu9akkLIvbPnDnaeeksBf3Lcg2em1xMy+22IKXV1qvVYWbq8r4rubNj Wxn/CyW/N9pBhkGuHPZbIVxo5uY+j3XdBrDqzLI4f/9fTuQKqWSOMZ8AEKP4fkJR8p6C G56A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sa7si3279275ejb.706.2021.01.14.14.42.12; Thu, 14 Jan 2021 14:42:36 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730772AbhANWlA (ORCPT + 99 others); Thu, 14 Jan 2021 17:41:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729586AbhANWk7 (ORCPT ); Thu, 14 Jan 2021 17:40:59 -0500 Received: from relay08.th.seeweb.it (relay08.th.seeweb.it [IPv6:2001:4b7a:2000:18::169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E57F0C061575; Thu, 14 Jan 2021 14:40:03 -0800 (PST) Received: from IcarusMOD.eternityproject.eu (unknown [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 1BB0C3F116; Thu, 14 Jan 2021 23:40:02 +0100 (CET) Subject: Re: [PATCH 1/9] clk: qcom: gcc-msm8998: Wire up gcc_mmss_gpll0 clock To: Jeffrey Hugo Cc: MSM , konrad.dybcio@somainline.org, marijn.suijten@somainline.org, martin.botka@somainline.org, phone-devel@vger.kernel.org, lkml , Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , linux-clk@vger.kernel.org, DTML References: <20210109134617.146275-1-angelogioacchino.delregno@somainline.org> <20210109134617.146275-2-angelogioacchino.delregno@somainline.org> <9942f98c-c186-5cd0-d6ac-a18a4e20583e@somainline.org> From: AngeloGioacchino Del Regno Message-ID: Date: Thu, 14 Jan 2021 23:40:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Il 14/01/21 23:33, Jeffrey Hugo ha scritto: > On Thu, Jan 14, 2021 at 3:13 PM AngeloGioacchino Del Regno > wrote: >> >> Il 14/01/21 23:12, Jeffrey Hugo ha scritto: >>> On Sat, Jan 9, 2021 at 6:47 AM AngeloGioacchino Del Regno >>> wrote: >>>> >>>> This clock enables the GPLL0 output to the multimedia subsystem >>>> clock controller. >>>> >>>> Signed-off-by: AngeloGioacchino Del Regno >>> >>> Any reason why you are not also adding the div_clk? >>> >> >> Yes, just one: I haven't tested it... and my devices worked without. >> Perhaps we can add it whenever we find out if something really needs it? > > I'm mildly surprised you need to turn on the gate to the PLL0 out, but > not the div_out. The div_out/div_clk is also fed into every RCG that > exists in the MMCC. > > Per the frequency plan the following RCGs require it - > > cci > cpp > fd_core > camss_gp[0-1] > jpeg0 > mclk[0-3] > csi[0-2]phytimer > dp_gtc > maxi > axi > ahb > > Also, I'm very interested in all things 8998, and would generally > appreciate being added to the to: list. > To be honest, I was surprised as well because.. yes, I know that these RCGs seem to need it, but then their clock tables don't contain any reference to the gpll0 divider, hence it's never getting used - and that works great, for now. I am aware of the fact that the clocks that you've mentioned are using the divider to reduce jitter, but I haven't done any camera test on my devices yet: that's definitely in my plans and I really can't wait to do that (as I successfully did for SDM630/660), but... we have more than 100 patches in our trees. We need to get upstream in the same working order as what we have here, so that we don't diverge that much and our work is kept in a maintainable state (avoiding to lose pieces around). I'm sure that I'll send a commit adding the gpll0 divider branch as soon as I will start the camera work: I feel it, it's going to give me issues without, in that field. By the way, noted. I'll make sure to add you in the to/cc for all of the next series regarding 8998 that I'll send. Meanwhile, you may want to check out all the recent patches that I've sent, as like 90% are MSM8998-centric... :)) -- Angelo