Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp773639imn; Sat, 30 Jul 2022 02:28:41 -0700 (PDT) X-Google-Smtp-Source: AA6agR6uOeUv2iKBTWMmyXlRlOmLSVQJ+tHt5US441OaOQVhkLDQJS+z65/9XoQ7GuuIERLkkcCk X-Received: by 2002:a17:902:8d81:b0:16d:9dc5:a1e5 with SMTP id v1-20020a1709028d8100b0016d9dc5a1e5mr7561252plo.159.1659173320968; Sat, 30 Jul 2022 02:28:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659173320; cv=none; d=google.com; s=arc-20160816; b=A5CWvNrRYbdhO9AHZrd4wfyfJpTr3aHUxtRB4N70fH9awzm6r20G2pgug2L7PGmYbX Nk2fcpMiqQEAg3j0Xicj/F8ozAJMh3hm+dd2uXLaFpz5GejR07Lulxfbof+ZKhOROh8l aO33aamwygo4FeRWDgAMxYj6dARG90j3rnKlLUxRXG/gqjp+8071lo6j2Q+zoV1HdmuC 4tYA6N0mBC7JD+kbdY05xRHEc16KbNES0wSu9ANjkwTDT8kWCyAj/i8Zly7PKeWD2dzC yIf883CKr1ZNLdHx2owQIjQw45XwurCPsdWBfcrLjKLUQWcAr3MoP1Lv7qK6jj3NLCdH jCfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=9DS4bJLebw1lBvzzjml/GDCUoVQ6Slpznv0XDbK9ev4=; b=0kk9r/35KKLn/Ox3X4IfMZDnd7fQ/sIEhy1NpeRKtXIsQ1D34s8c8pJNe7xIGcvhSl F29hD0bPDd/CXE5f7mKJj1rM2Bbl3UM4Dbl3qrw5Iz/ToaYWqRJHkmRp15/kcJQxogoY GCelwpb5HS06n9UAHTzVKqQjVSzqNK2GWCkWo8xMwnXWtzmJow/9g8dkOsPk//3NuOGk Pn+F2/hbhZDNiTp8WFMIOT9CqdQR7kWRereeitIgUwAAUd7ar1xL3u4MoOn0KBfLoLaL 0QfZsQpWwSr0UIFdyG+aCRXX64MTA53M9388bDtBkGzxgHE9S7Pas/XqTuU+wOvbRuWV BhKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=YlxCfbAX; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w64-20020a638243000000b0041b90d59d39si4144269pgd.340.2022.07.30.02.28.25; Sat, 30 Jul 2022 02:28:40 -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=@quicinc.com header.s=qcdkim header.b=YlxCfbAX; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233828AbiG3JSN (ORCPT + 99 others); Sat, 30 Jul 2022 05:18:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232154AbiG3JSM (ORCPT ); Sat, 30 Jul 2022 05:18:12 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A714F40BD5; Sat, 30 Jul 2022 02:18:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1659172690; x=1690708690; h=from:to:cc:subject:date:message-id:mime-version; bh=9DS4bJLebw1lBvzzjml/GDCUoVQ6Slpznv0XDbK9ev4=; b=YlxCfbAXSbgg/M7bAPTE7Hxu+MnMRHSbVXN/DDYs6BPT1lV3CoF8Hlzv FSKlcCGjsWaUa3vyeMbklLAEO2eXDV1W65Z/SjYg62WJBthEUekjn3m71 JiC3XI5wBaGZTmeWuilMM+d8IwhlCFpQlyrodpFL/G9nug0B+4Qq8g/8o U=; Received: from ironmsg07-lv.qualcomm.com ([10.47.202.151]) by alexa-out.qualcomm.com with ESMTP; 30 Jul 2022 02:18:10 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg07-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jul 2022 02:18:09 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Sat, 30 Jul 2022 02:18:09 -0700 Received: from hyd-lnxbld559.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Sat, 30 Jul 2022 02:18:03 -0700 From: Akhil P Oommen To: freedreno , , , Rob Clark , Bjorn Andersson , "Stephen Boyd" CC: Douglas Anderson , Akhil P Oommen , Andy Gross , Konrad Dybcio , Krzysztof Kozlowski , Michael Turquette , Philipp Zabel , "Rob Herring" , Stephen Boyd , , , Subject: [PATCH 0/5] clk/qcom: Support gdsc collapse polling using 'reset' inteface Date: Sat, 30 Jul 2022 14:47:39 +0530 Message-ID: <1659172664-10345-1-git-send-email-quic_akhilpo@quicinc.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham 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 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/ 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