Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp6398926rwb; Tue, 9 Aug 2022 14:46:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR4qY4bJPs5i2ehJj7HXkw/WMD2ZvRmlkIVRyuXy2uq46iP+L/+0bGsEiBeVpIcddydW0Ipp X-Received: by 2002:a17:902:988a:b0:16e:d52a:cce4 with SMTP id s10-20020a170902988a00b0016ed52acce4mr25603550plp.127.1660081599960; Tue, 09 Aug 2022 14:46:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660081599; cv=none; d=google.com; s=arc-20160816; b=CWTRBRGflujO9ezYPhnbkYgX0Dlvsj/trfZhutISqFZnLypBGAvwVXojYVAJADEjCC mOYbrbSsd+wk7XK40xwr2w/vs169/UJ8wUXf+nYGNU4n33+wLseLFhKNZJmk5KUdpq8O j/EMCHS+c9oL2OSUAmbyNPnhIrRLTFMMo0Tk75C3FZiSnMe9M7FgwcY2yH5g0vcrkzmX sph5xK42fs6ryfKinfSWWQYTiqC8/fEehu1GhMNoWkEyODwgMF7wDJQyJw1tpvHPZZSJ 7z+g5nNIV1BZhUWV1Gze7sPNaqSxv0Uw3tZGpfFJCI7alhmF0GEdcCPauMqdfAlT02BM F3vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=46DbGyQMRqNHGkxsacJCotXRTrnXUBQPUgKwQCTQR8k=; b=zVV+CAoc5L5ygcXibR9GBjwLFnRbHGalKt+lAVicl+XHDq8E6dNAbAkk5KenlALEVD 6z1XVmMsRCh29DtgkGfIxsf6p7FjqdzrjuST2DUCjBy6c/RHCKJm/GeKz1Ixh3q1SoN/ E85FES0YBJhCJO5tOzUZnVT4rUXvYVzfdjTim7Ir2djdHiRxV+Su1zOIlGGVyRSZDgrB SXCN1wbXx9T84QKOJbZeN9njEGnm0DPnPM1B9D8MkyqCGSBHj3fdPivWhPYCbOf+pjNn JTQ/3ce3iacb7f0vZdcFGuSuPbk1uBYv8ZL68Rz83cvKdFz0vL3LasQoa2Z6sCXPcLJr /DqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hKJ9CRNm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k9-20020a170902ce0900b0016f951d899dsi1971963plg.359.2022.08.09.14.46.26; Tue, 09 Aug 2022 14:46:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hKJ9CRNm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229539AbiHIVGK (ORCPT + 99 others); Tue, 9 Aug 2022 17:06:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229949AbiHIVFy (ORCPT ); Tue, 9 Aug 2022 17:05:54 -0400 Received: from mail-oa1-x30.google.com (mail-oa1-x30.google.com [IPv6:2001:4860:4864:20::30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B14F8459A0 for ; Tue, 9 Aug 2022 14:05:49 -0700 (PDT) Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-10ec41637b3so15495967fac.4 for ; Tue, 09 Aug 2022 14:05:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc; bh=46DbGyQMRqNHGkxsacJCotXRTrnXUBQPUgKwQCTQR8k=; b=hKJ9CRNm64FZ36uHItRlkf0idiXTuCMHIGEr6dAZWogMfifrszy0oFCa8H7K6Cah9D 55TjcK/iPn+BvOBQtb3mTI/51rUKzCQKkeAftF7q4oAP41j2EtShrtivvHKSpR5bfZer kKomkfpi78zEBQWdUTGBQsWZoO1hLcqLrubVg3hbnYziSqG7Np8t99DOzJt15uvfu4DH lIl3P/v4VaAuXaU2DVxn1GSS9n3BdSp8H0AaoYSW06MbcdfjeAjzYF6jJv0KLF0567nM IvcbioXxyho8pz1HTFTb4zgU+MfEOO3JI1a95UB3T4VXsLIsG9LxbQS1K6baKYW1BMBZ sV8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=46DbGyQMRqNHGkxsacJCotXRTrnXUBQPUgKwQCTQR8k=; b=tnhO7iuTK3PcMad5v/EPApBI/tuw3YNPkUDtDYISMzPtMeg1MGrROqfku5+kqURKGq 1ze+51qqmGaCGGqPVhFFgJQFUcHOxGwKwPpRONiGi4UK95pebdCcrB3NKJFFds7sMT2P CTyHort+/A+27BfCxQuTA5ZnO+Xb6aLANM3PB93dB18MYoFxD9IPDybN6VS+Y1PYB23W T/OVaz281d+dp2ep9gU35ddnIwPlC7AFu07XffKgkN9k35hZ4yDYJ5iB5919xTvR+GLw v/NRLoZNycWmLpdVLjQ3IgPCPjeYb0wdPsNdaXjoofudndl6p0I2G0U1YUyjDdvi18rc h9gQ== X-Gm-Message-State: ACgBeo3RmdKg38OvSXBUNPyO1lvYmqKjZ/yFgko5pboI4hqnpKOmr7xK g5y3MH3tj6jsArg9LCJS7WWrJA== X-Received: by 2002:a05:6870:5818:b0:116:a478:7f6a with SMTP id r24-20020a056870581800b00116a4787f6amr170549oap.204.1660079148210; Tue, 09 Aug 2022 14:05:48 -0700 (PDT) Received: from baldur ([2600:380:785a:7aa8:200:ff:fe00:0]) by smtp.gmail.com with ESMTPSA id s70-20020acaa949000000b0032e3cca8561sm214842oie.21.2022.08.09.14.05.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Aug 2022 14:05:47 -0700 (PDT) Date: Tue, 9 Aug 2022 16:05:43 -0500 From: Bjorn Andersson To: Akhil P Oommen Cc: freedreno , dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, Rob Clark , Stephen Boyd , Douglas Anderson , Andy Gross , Konrad Dybcio , Krzysztof Kozlowski , Michael Turquette , Philipp Zabel , Rob Herring , Stephen Boyd , devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/5] clk/qcom: Support gdsc collapse polling using 'reset' inteface Message-ID: References: <1659172664-10345-1-git-send-email-quic_akhilpo@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1659172664-10345-1-git-send-email-quic_akhilpo@quicinc.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat 30 Jul 04:17 CDT 2022, Akhil P Oommen wrote: > > Some clients like adreno gpu driver would like to ensure that its gdsc > is collapsed at hardware during a gpu reset sequence. This is because it > has a votable gdsc which could be ON due to a vote from another subsystem > like tz, hyp etc or due to an internal hardware signal. To allow > this, gpucc driver can expose an interface to the client driver using > reset framework. Using this the client driver can trigger a polling within > the gdsc driver. > > This series is rebased on top of linus's master branch. > > Related discussion: https://patchwork.freedesktop.org/patch/493144/ > Forgive me if I'm assuming too much, but isn't this an extension of: 85a3d920d30a ("clk: qcom: Add a dummy enable function for GX gdsc") With the additional requirement that disable should really ensure that the GDSC is turned off? Regards, Bjorn > > Akhil P Oommen (5): > dt-bindings: clk: qcom: Support gpu cx gdsc reset > clk: qcom: Allow custom reset ops > clk: qcom: gpucc-sc7280: Add cx collapse reset support > clk: qcom: gdsc: Add a reset op to poll gdsc collapse > arm64: dts: qcom: sc7280: Add Reset support for gpu > > arch/arm64/boot/dts/qcom/sc7280.dtsi | 3 +++ > drivers/clk/qcom/gdsc.c | 23 +++++++++++++++++++---- > drivers/clk/qcom/gdsc.h | 7 +++++++ > drivers/clk/qcom/gpucc-sc7280.c | 6 ++++++ > drivers/clk/qcom/reset.c | 6 ++++++ > drivers/clk/qcom/reset.h | 2 ++ > include/dt-bindings/clock/qcom,gpucc-sc7280.h | 3 +++ > 7 files changed, 46 insertions(+), 4 deletions(-) > > -- > 2.7.4 >