Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2381385imn; Tue, 2 Aug 2022 00:05:03 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vSQIFow6iOOWSTQp9v9qCeKL3o6L58578e1dioiIug0AnHhRjZYUrEmdRLkny1bGv0t10a X-Received: by 2002:a17:907:a0c7:b0:72e:dc8f:ad2b with SMTP id hw7-20020a170907a0c700b0072edc8fad2bmr15396296ejc.163.1659423903016; Tue, 02 Aug 2022 00:05:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659423903; cv=none; d=google.com; s=arc-20160816; b=MCLmxLxTIsSOjv6YqvfTd0dUmJmZwt2yFcAhtNqwPyG0UoGLpqudMXALO6CLbQ52kV cT/Ab7YmxiJgHPfXXAZ3gdcRhPL4495fXRVhXFJMJYeSUq8WcEM1Ph280ENuJ0m0CQ+9 Ied4BQd+WddjrlpbeV0DK9Dc6TdV+3bp8zQ0VFc8IAVymPG5mB1fsRD06mT5Df5nFTck Y2NcWllljazhHkuESsv7b856x1229vyuFJGlQTqK9M0cmZtNVTLghw/PO72r+/KHld4a UcQDsgyeC1FafXabm/pP+X/ulPFC9p1/K2QIjfA2pJKsKNX3L+ErjpX8kojsE6XU2EOe X2uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=/ySHTyzeX/H7MclcVdbanxVutrzYknZPMky5Ufc/cco=; b=DWcQ6FlcrxlhAD4ZDmgNoZYobriulgtNJlDl4lf7Du5MeqH7Cas0N/2RaEmgobh+VQ bPxwetYTG55ZZlnrtBqKjIf/ljJEUF0WtP78OtwcAmlmqkOdWP6ggnnRimxKGgWsvT8Y XUCbYAb5a5YHI/ejQUTv2EyCI3ZHG5aA4c9kZNj74HT1XLZZ057UdrkQYnXvgVLUXFG/ nOO/tVo460t9REeQf91LV5c/HaWv3M4irfpK3C3vY/C2+R1+oaC4EkQk4ZX0Qa1imaAt VMFRlTUIBjwWkUC/GqmDpLyPcQ+FENQmTylFXB8rUBBDxYlTo8xEJbpW3Qf7v5cpNQzD WTQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ILkBFGqD; 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 e10-20020a056402190a00b0043a64ab539bsi12722052edz.60.2022.08.02.00.04.37; Tue, 02 Aug 2022 00:05:02 -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=ILkBFGqD; 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 S232918AbiHBHCs (ORCPT + 99 others); Tue, 2 Aug 2022 03:02:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232948AbiHBHCq (ORCPT ); Tue, 2 Aug 2022 03:02:46 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B4A61D317 for ; Tue, 2 Aug 2022 00:02:44 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id m22so8830131lfl.9 for ; Tue, 02 Aug 2022 00:02:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=/ySHTyzeX/H7MclcVdbanxVutrzYknZPMky5Ufc/cco=; b=ILkBFGqDuBCm81NrzjcIfk8v3fifksnPm3jgAYKIm1BAm3lRuNREbalAI0fcXnz7IF JrlZx82CDX0uqldmBtxSkHAwRsYgW/DoTJ/9BnUGVTwk73vx/GRAjghPbY6AEzGREj79 pPIip6BBlJqM7gCDwLMRFLhCfHfXauIlXdJPxY2PCV0z9Zl7M74xX4hH8FFsT5d/GTS7 2fkW1xVwAX6Da7nQgCrqpe1Kp1UGxmIb417ZoswTZ2HUNFKYLNARs8l3WNnR6TdiOMfo G2UhGeT2lPVHtLKb0qRt3SLBhgiVVcQhbu2mu/2+M5KSR5xECr+ASZdEJnmTtlWyhaS3 wqsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=/ySHTyzeX/H7MclcVdbanxVutrzYknZPMky5Ufc/cco=; b=KDzcm+Y78kQE7jAFFB8e8hNb8psiVd1e/3VRjvMIcKD6vNUQ7eeXtBfi+Urh6sC5Yb krTHWtNbbcjYeBWkak7Wy+NsBwXuMFutOLQwMzg7SN4uXtpEyVjDBqQkKt+OuER24HVd uGg2KzeqnagRLQCybkQFF1Rk0mV/AyOXrMm2r7O5NZqwDNlZVRUnEfUbvnvQuPc5js0C lUwuaYNaNanTjRBw8u6HUS6YEsckulODKDsSp4qCssJTKm16n44mgsMnK2LtUZBy6jOd lQ3NOUxFtm4WQptfhTz/ggIcyrtq1bqPqTE/yngsY4HsQAo7017+Fnuj8+04eZfRC5n4 oC7g== X-Gm-Message-State: ACgBeo0v18lEtmMeT4YzaTbYXawGCoGYqkaxQbzJ/hlJPFickORZ7bbb A6/ik0pu9aiG05jdQu2/LYdVSw== X-Received: by 2002:a05:6512:3d8f:b0:48b:12f3:c9c7 with SMTP id k15-20020a0565123d8f00b0048b12f3c9c7mr161931lfv.23.1659423762780; Tue, 02 Aug 2022 00:02:42 -0700 (PDT) Received: from [192.168.1.211] ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id i17-20020a056512341100b0048a7fa5bff1sm1085463lfr.248.2022.08.02.00.02.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 02 Aug 2022 00:02:42 -0700 (PDT) Message-ID: <34ae275e-8d4c-3735-c08c-4769caf2909c@linaro.org> Date: Tue, 2 Aug 2022 10:02:41 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH 0/5] clk/qcom: Support gdsc collapse polling using 'reset' inteface Content-Language: en-GB To: Akhil P Oommen , freedreno , dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, Rob Clark , Bjorn Andersson , Stephen Boyd Cc: 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 References: <1659172664-10345-1-git-send-email-quic_akhilpo@quicinc.com> From: Dmitry Baryshkov In-Reply-To: <1659172664-10345-1-git-send-email-quic_akhilpo@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 30/07/2022 12:17, 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. If this is votable, do we have any guarantee that the gdsc will collapse at all? How can we proceed if it did not collapse? > 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. Trigger the polling made me think initially that we will actually trigger something in the HW. Instead the client uses reset framework to poll for the gdsc to be reset. > > This series is rebased on top of linus's master branch. > > Related discussion: https://patchwork.freedesktop.org/patch/493144/ > > > 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(-) > -- With best wishes Dmitry