Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp732577ybi; Fri, 7 Jun 2019 16:21:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqxpnaYYkLsmdkh7mLRs0Z3XMvz6pNtPvNGdFUjXz3AA16xMxvKs71rGq1CRPKInjQlXweSs X-Received: by 2002:aa7:84d1:: with SMTP id x17mr38003488pfn.188.1559949661395; Fri, 07 Jun 2019 16:21:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559949661; cv=none; d=google.com; s=arc-20160816; b=u/xwO2vHFPBpCVuIQHAC+ZMouKOQrnU7I7gSSyOwoHCBFxA4gmY220TsIwtINajGLG qipLftUHswXA+epoToBxYpGLI1meEr0sHIOLeOiws88tzXXqHKq1qCa8BXgKm4417dMJ SL7V68JWptNWpeD2CnkA8DQswLK4lpcitdNdFVA274b3dKFap3afpDAkx+779kxYcDcO raxt+6S1/o/u6s6JJNXSBF30qLtL3NeZf99tXnk/3YEvi2BckrYkaOzu1E4Lam/WthTh iTyTzFiBZgwAw2JWKT5Daty4LXu6HqX3OFxCYPCiMXQxvvcWxSSRKrfahJm4+T6r6P7y 9MGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:user-agent:subject:cc :from:to:references:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=FQtfs6cMCKXsP+5SW5kloCK/mVm2Se2U+z+fAG8LUEc=; b=e80Too9K3aoRdwFCv9smjRsTdjLd9kLRxQstBlbH1/GVjnM/Az60ZAhnH2CUgVMV/4 r3E0w/w/quuYmY/868hoBHIdUWGv34tLs0E0aackEgp1BMLJ0l1pXyD80Ue7hrURvyyl XNPOZ9jHTRybcEuFasmRTZBkH/RUkw1DuWaVaMCRkZUFS3Kngct3Sa8R/eD4C8yIB/S3 CupWUXyKHi67xwieydYu9H9JTp+ZkKkBDAOo0siBzVJPUnwdLQ3xaKSJNrMtlVCIAN8U pNuF/o7SOb69571KyT1X8J875bT9gpzBP0WH/VRQIASx/5wMm9LCIGjDnfcqrowBlArB TW7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GCLGxU6a; 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 m10si3120190pgq.420.2019.06.07.16.20.44; Fri, 07 Jun 2019 16:21:01 -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=GCLGxU6a; 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 S1729841AbfFGXSn (ORCPT + 99 others); Fri, 7 Jun 2019 19:18:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:54110 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727933AbfFGXSn (ORCPT ); Fri, 7 Jun 2019 19:18:43 -0400 Received: from kernel.org (unknown [104.132.0.74]) (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 D101120825; Fri, 7 Jun 2019 23:18:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559949521; bh=l2jzpqRVXHZxq5pLdpMGhXCEZg3vOypPYJk8LvJUja8=; h=In-Reply-To:References:To:From:Cc:Subject:Date:From; b=GCLGxU6azs6ie7ehXuwV0HZBgHSl5RVwKBY/sOot40PJFHo56qbAciZfPutbiiAEE eivl+cvfIOPcr+av1XvzyMB9dswXq0KFVm/Fqc7M41ZxNBT7urjJ7MTTcHc9lH4Yv2 MFovqZaMbj0d9bpx/VN336ZjiVucLkR0eOpGHF5c= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <1558449843-19971-1-git-send-email-jhugo@codeaurora.org> <933023a0-10fd-fedf-6715-381dae174ad9@codeaurora.org> <20190607203838.1361E208C3@mail.kernel.org> To: Jeffrey Hugo From: Stephen Boyd Cc: Jeffrey Hugo , David Brown , Andy Gross , Bjorn Andersson , Marc Gonzalez , Michael Turquette , Rob Herring , Mark Rutland , MSM , linux-clk@vger.kernel.org, lkml , devicetree@vger.kernel.org Subject: Re: [PATCH v4 0/6] MSM8998 Multimedia Clock Controller User-Agent: alot/0.8.1 Date: Fri, 07 Jun 2019 16:18:41 -0700 Message-Id: <20190607231841.D101120825@mail.kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Jeffrey Hugo (2019-06-07 14:31:13) > On Fri, Jun 7, 2019 at 2:38 PM Stephen Boyd wrote: > > > > Quoting Jeffrey Hugo (2019-05-21 07:52:28) > > > On 5/21/2019 8:44 AM, Jeffrey Hugo wrote: > > > > The multimedia clock controller (mmcc) is the main clock controller= for > > > > the multimedia subsystem and is required to enable things like disp= lay and > > > > camera. > > > > > > Stephen, I think this series is good to go, and I have display/gpu st= uff > > > I'm polishing that will depend on this. Would you kindly pickup patc= hes > > > 1, 3, 4, and 5 for 5.3? I can work with Bjorn to pick up patches 2 a= nd 6. > > > > > > > If I apply patch 3 won't it break boot until patch 2 is also in the > > tree? That seems to imply that I'll break bisection, and we have > > kernelci boot testing clk-next so this will probably set off alarms > > somewhere. >=20 > Yes, it'll break boot. Maybe you and Bjorn can make a deal? (more below) >=20 > Doesn't look like kernelci is running tests on 8998 anymore, so maybe > no one will complain? As far as I am aware, Marc, Lee, Bjorn, and I > are the only ones whom care about 8998 presently, and I think we are > all good with a temporary breakage in order to get this basic > functionality in since the platform isn't really well supported yet. Ok. >=20 > > > > I thought we had some code that got removed that was going to make the > > transition "seamless" in the sense that it would search the tree for an > > RPM clk controller and then not add the XO fixed factor clk somehow. > > See commit 54823af9cd52 ("clk: qcom: Always add factor clock for xo > > clocks") for the code that we removed. So ideally we do something like > > this too, but now we search for a property on the calling node to see if > > the XO clk is there? > > >=20 > Trying to remember back a bit. >=20 > I don't think its possible. Maybe I'm wrong. I didn't see a solution > to the below: >=20 > How does GCC know the following? > -RPMCC is compiled in the build (I guess this can be assumed) This is the IS_ENABLED part. > -RPMCC has probed > -RPMCC is not and will not be providing XO Presumably if it's enabled then it will be providing XO at some point in the future. I'm not suggesting the probe defer logic is removed, just that we don't get into a state where clk tree has merged all the patches for clk driver side and that then relies on DT to provide the clk but it doesn't do that. So the idea is to check if RPM is compiled in and also check the GCC DT node for the clocks property having the xo clk there. Then we assume that we have the clk patches in place for the RPM clk driver to provide that clk and we skip inserting the fake clk that RPM is going to provide. This is also a "general" solution to GCC not depending on or selecting the RPM clk driver. It may be better to just have a select statement in GCC Kconfig so that we can't enable the GCC driver without also enabling the RPM driver if it's an essential dependency to the clk tree working. But if we do this design then we can make the clk tree keep working regardless of RPM being there or not, which may be a good thing.