Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp105844rwe; Tue, 30 Aug 2022 22:24:09 -0700 (PDT) X-Google-Smtp-Source: AA6agR7UNkvKFpppb3FDzazX52GBr4r/sicdwBuIehGT5AssLVmHvdbBRvRvWo/obU7Ur0bIQxLQ X-Received: by 2002:a17:907:7388:b0:741:9382:e612 with SMTP id er8-20020a170907738800b007419382e612mr9097175ejc.38.1661923449225; Tue, 30 Aug 2022 22:24:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661923449; cv=none; d=google.com; s=arc-20160816; b=VRxYwZ3Y3L7Wc99qnH8jaa7USbRmuoaLnpV+OK/FUqT7RqF/ApHntdoGIw51aCTCIo mkTF0OeLvjy7XvgcJjpwwdc4AOz6NyTPvE/ER3GMjZ8AFzXK1qICT1rKaeTwTsyqkcES h1SEP7+Y5CV29r9+yt8zDW88/tCB/xFNxPhDogl7pXQ1eDRhKyCdG53fq5nFI1oQ2Go/ INzAevemFZ9JTedoYaORDFwkmDFzy0b+yo/c7LdWAXepQYt2UuM37oKU2S0D4Z4AlHFQ D/2c5EdbTpqueBVSITfxhMSahLA1U9DEMX9YePl9n983ZdCVE0shgUr3YXP2TxZ7qRmO J1kg== 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=NjAqZ3QhtI/ZqQcKoVQ+P6AxCSkVITmaI0m/xYMMmA0=; b=doR+vRBWTieGJG8/ua3ogiKXIff4/KGwt6ziZW0hiZ+RY027iSNxrxJBsXQLCJqLKU qFN86pxCK2YZlBvRgbQ+tDk51fEcOyt5cGPJ+8bNcePVtLPFxCEp6q4WWoKqkjUoSUIc XfvH20yEqBWeXkfvZFblSNouVwxmlup505PxnZeht03B+gChEZcxjcfedn6jSKjs8vde B0IR+bMY1mdbfcDrD1Xvr6Jifnpnf9pZhN45QEHUOipbLqA4sF03e2Qb2a+TOfbx1ZQ4 zBneSomqW4WhCQBYHkX8QiUjiMu1P8WkpiJN5FHnpJc6V1oEU13he85mQqx8PMXM9L8W 9Ziw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=IuiAPXMN; 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 u13-20020a50a40d000000b0043e81c582d2si10041046edb.232.2022.08.30.22.23.43; Tue, 30 Aug 2022 22:24:09 -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=qcppdkim1 header.b=IuiAPXMN; 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 S231975AbiHaFTb (ORCPT + 99 others); Wed, 31 Aug 2022 01:19:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229637AbiHaFT0 (ORCPT ); Wed, 31 Aug 2022 01:19:26 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEF1BB6021; Tue, 30 Aug 2022 22:19:25 -0700 (PDT) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 27V2HRWn012337; Wed, 31 Aug 2022 05:19:01 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=qcppdkim1; bh=NjAqZ3QhtI/ZqQcKoVQ+P6AxCSkVITmaI0m/xYMMmA0=; b=IuiAPXMN80RDgz+MdrWMTqC4DnF3E9Cw7KcnVQwRXb1sokrRUkLjEScUfalb4lFY5q9b CaUlAULfcqHWwUTwFrz83R+Y+tTIx93xWDbD+zWxIjZabAdAAJ7ACHh/DBVRsAFUCeFf 8VoTTBBMXYHBZYWY9nnLEmccJiP5vnR+WS3hUVuGFwFWNGzHcv+4CLtpleou+a6sRCMf 8bwV2wos4GBmzFLrI/Wj43JPiC9VB5eRoClwMo6SOGajF2Fwn7D9gqKb1Izv3cRJozJ4 WNAqXB/MKpAX2IyxQ6iflpGJhYsuEimyR7VE1fFdekzWlyCDYvQ4wrNFwRYjbMgIR6yF Zw== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3j9txbh834-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 31 Aug 2022 05:19:01 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 27V5J0TG015884 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 31 Aug 2022 05:19:00 GMT 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.29; Tue, 30 Aug 2022 22:18:53 -0700 From: Akhil P Oommen To: freedreno , , , Rob Clark , Bjorn Andersson , "Stephen Boyd" , Dmitry Baryshkov , Philipp Zabel CC: Douglas Anderson , , Akhil P Oommen , Abhinav Kumar , Andy Gross , Daniel Vetter , David Airlie , "Konrad Dybcio" , Krzysztof Kozlowski , Michael Turquette , Rob Herring , Sean Paul , Stephen Boyd , , , Subject: [PATCH v6 0/6] clk/qcom: Support gdsc collapse polling using 'reset' interface Date: Wed, 31 Aug 2022 10:48:21 +0530 Message-ID: <1661923108-789-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-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: wNq8ePCvrbpW_Btfp7sFjXeQVlAiZrdc X-Proofpoint-ORIG-GUID: wNq8ePCvrbpW_Btfp7sFjXeQVlAiZrdc X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-31_03,2022-08-30_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 suspectscore=0 adultscore=0 mlxlogscore=999 phishscore=0 spamscore=0 malwarescore=0 impostorscore=0 lowpriorityscore=0 priorityscore=1501 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2208310025 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=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/ Changes in v6: - No code changes in this version. Just captured the Acked-by tags Changes in v5: - Nit: Remove a duplicate blank line (Krzysztof) Changes in v4: - Update gpu dt-binding schema - Typo fix in commit text Changes in v3: - Use pointer to const for "struct qcom_reset_ops" in qcom_reset_map (Krzysztof) Changes in v2: - Return error when a particular custom reset op is not implemented. (Dmitry) Akhil P Oommen (6): dt-bindings: clk: qcom: Support gpu cx gdsc reset clk: qcom: Allow custom reset ops clk: qcom: gdsc: Add a reset op to poll gdsc collapse clk: qcom: gpucc-sc7280: Add cx collapse reset support dt-bindings: drm/msm/gpu: Add optional resets arm64: dts: qcom: sc7280: Add Reset support for gpu .../devicetree/bindings/display/msm/gpu.yaml | 6 +++++ 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 | 10 ++++++++ drivers/clk/qcom/reset.c | 27 ++++++++++++++++++++++ drivers/clk/qcom/reset.h | 8 +++++++ include/dt-bindings/clock/qcom,gpucc-sc7280.h | 3 +++ 8 files changed, 83 insertions(+), 4 deletions(-) -- 2.7.4