Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp79605pxk; Wed, 23 Sep 2020 23:21:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgTRkvuu25RyrYkbveQXzyhh6wwPWO9IDiW3PPNyO3WeZWQozBsKo4tJkZto5sBW8Km1RT X-Received: by 2002:a05:6402:21c5:: with SMTP id bi5mr3071910edb.380.1600928512646; Wed, 23 Sep 2020 23:21:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600928512; cv=none; d=google.com; s=arc-20160816; b=PWKao3NjEXLvwIHPNWoHyw6bC4xGGnU4VG5uyzdE/jw2Mw1Z/oRpI6vQ3wYpUPv0bR Q7XOIsIzP4pCBtMqvbpzHKAv2mh6ACJt1L/2/helFTQSFnzQr4rEFPLrzI1ReHBitzAR 37aoOIiCP3PKNdDCZN1btfb/H0IzWbf0uCCr2F3zP3mCPN7breF/yuVE1865UssMi7Ku +hqYtvHMYAeJAqsMB0WjTtHLt1ierRH38JNO/f44l1Dw34T076CO5Bsw849TjheKLMRS kPmWdlpIHpr/ym5erMn7orQfi7GP54RbeptA0KCuH7yUHe8tCl0N065RCO4LhihuiTRl kQ8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=HNLjAzKJWwoc2Bwj1tFZY39mLe+/SE09mxujihoN2wQ=; b=PlSy5lMpL6bJl0QLZ4q5euevDmqTrHXOnTOsECprreC8BpTK9tkjVerX9fNoUMgWOA MsrOlAUQWqKE70QLykHIBuT6i9f6Y6T6MJN+hUvZrmMgaP0j7pvzcU7otiSYvAOUvxBh M7K62J3rIJVIF2OmECGTEmDAxKIuXfDq0YW4m3ztPZtPmaPoBS/OieU0Cf05vvMb8B2f KaWVsl7ntaWEsgSdWZg1T9xSMmoblOvpXY5Y0zoQcnl5einQBBLArns6PfrUnISkcmGd 8y/kGRYOY9MN2MF/w5OPl7+JThjck2M0OTPWySXi6JKoiLq7gwJCg0mgs6V2tOyg6EUz VxHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hW8qSEmn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z15si1328820ejm.695.2020.09.23.23.21.28; Wed, 23 Sep 2020 23:21:52 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=hW8qSEmn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726925AbgIXGRu (ORCPT + 99 others); Thu, 24 Sep 2020 02:17:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:41058 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726683AbgIXGRt (ORCPT ); Thu, 24 Sep 2020 02:17:49 -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 18A23208E4; Thu, 24 Sep 2020 06:17:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600928269; bh=ywMlU+ZfSYC9ZcnZdzwR0HqdVTNchu7DmscGuKbNLqQ=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=hW8qSEmnvkfbsBJdrVB5FZeQHcwUKxske6S3exItwKYARITiaUQrM/NUjQou/yo5/ XsuMGTBw5QV6+KKkSvq0xyHU/njZDxzgQ6Ze9wesU4fo5QEwN4fLD38H2zA5rEpZuK Z7URMKbOB3cZxPwmU8VuTTqcetVuDO8riVw++DUc= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <20200904030958.13325-1-jonathan@marek.ca> <20200904030958.13325-6-jonathan@marek.ca> <160080040123.310579.8471841951357841843@swboyd.mtv.corp.google.com> <0ce9fdb6-e224-ced7-ec32-fe67b2ca6127@marek.ca> <160090383364.310579.1979253418505275623@swboyd.mtv.corp.google.com> Subject: Re: [PATCH v2 5/5] clk: qcom: add video clock controller driver for SM8250 From: Stephen Boyd Cc: Andy Gross , Bjorn Andersson , Michael Turquette , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org To: Jonathan Marek , linux-arm-msm@vger.kernel.org, Taniya Das Date: Wed, 23 Sep 2020 23:17:47 -0700 Message-ID: <160092826778.310579.12225989905897101118@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Jonathan Marek (2020-09-23 17:54:59) > On 9/23/20 7:30 PM, Stephen Boyd wrote: > > Quoting Jonathan Marek (2020-09-23 09:07:16) > >> On 9/22/20 2:46 PM, Stephen Boyd wrote: > >>> Quoting Jonathan Marek (2020-09-03 20:09:54) > >>> > >>>> + .ops =3D &clk_branch2_ops, > >>>> + }, > >>>> + }, > >>>> +}; > >>>> + > >>>> +static struct clk_branch video_cc_mvs0_clk =3D { > >>>> + .halt_reg =3D 0xd34, > >>>> + .halt_check =3D BRANCH_HALT_SKIP, /* TODO: hw gated ? */ > >>> > >>> Is this resolved? > >>> > >> > >> Downstream has this clock as BRANCH_HALT_VOTED, but with the upstream > >> venus driver (with patches to enable sm8250), that results in a > >> "video_cc_mvs0_clk status stuck at 'off" error. AFAIK venus > >> enables/disables this clock on its own (venus still works without > >> touching this clock), but I didn't want to remove this in case it might > >> be needed. I removed these clocks in the v3 I just sent. > >> > >=20 > > Hmm. Does downstream use these clks? There have been some clk stuck > > problems with venus recently that were attributed to improperly enabling > > clks before enabling interconnects and power domains. Maybe it's the > > same problem. > >=20 >=20 > Yes, downstream uses these clks. >=20 > The "stuck" problem still happens if GSDCS/interconnects are always on,=20 > and like I mentioned, venus works even with these clocks completely=20 > removed. >=20 > I think venus controls these clocks (and downstream just happens to try=20 > enabling it at a point where venus has already enabled it?). I'm not too = > sure about this, it might have something to do with the GDSC having the=20 > HW_CTRL flag too.. Ok. Maybe Taniya has an idea.