Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp446669rwb; Thu, 11 Aug 2022 04:35:55 -0700 (PDT) X-Google-Smtp-Source: AA6agR6FTcTZ3TAIPcwqR2NTwu9A4WJZzqeq+/YJggm2tTqW58gO33wpDNU8Fe+8C9dYjmFJh5Pu X-Received: by 2002:a05:6402:34cf:b0:43d:96fd:bdfa with SMTP id w15-20020a05640234cf00b0043d96fdbdfamr30458285edc.40.1660217755369; Thu, 11 Aug 2022 04:35:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660217755; cv=none; d=google.com; s=arc-20160816; b=qYzz0NalVYVH5evhahYGLXxiFrIT9bP7nMB1kqIbPwmdSrt7TNd7OGKP4W47xE4HlX rAmG8B+ggn7ZLFaMrTW8cZLxixSkciGLVLyFmc/bz1JWdfFmmoa9C4R5DZ2OECwDlmLO eL8HVl8ZrbuvM7lRoIiWh7CXQC+pmr9lCtqyH57yN41fCXIs/lh3cnm2kcsJD1B5qSYC 1ulns+AIzMJUcCF1Np1YXwIxg0EqXi/Wv8zB6GmXhSuFQ75AxGX+V4Iw9ebl1d6mhuGN UVKTb/ZC4+NKgS6TSzuE/6mtvaPYjoY60I28YsO/y1PnRGD74dXAJo1PGdbrQgPc2naf pu/A== 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=7KaiEaKQcKJR7xjpPNQ8FEdyIVIj3AxeDSRSxYpiISg=; b=BUDBxgFMI0tKgznbbLwsOf4I2/xpmI3gJRAYNwXHOF9EWB2YWPkRqqcgtNOcHjgXEQ NcHzAu6e9Yd/2epgzT6ymY17bcGkvL2ARSwEbwe3TAdmb6tOlnX0ReOKzccMZNUjCz3f Wozq0bkOyQr2ZYEffcigewyGvGenIgjoW/w9FBCUX0nZEMtnK5pk4orj7HK+8kf45uTz qQaDNQm/yWMRubGV5ELb9MqD4c/nc0g83bfUyjooFbJmIz90EETDD0lb2uzISsEZekCK S356E7GOlv0TCFj52erz6NfCM2FDGYgUZVDI2Y0/H4qm4dHLeoOr2TYe9tPUIfzRdrn0 uOyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="Zoi//Dwl"; 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 re28-20020a170906d8dc00b0073094ce02casi5401837ejb.791.2022.08.11.04.35.29; Thu, 11 Aug 2022 04:35:55 -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="Zoi//Dwl"; 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 S234961AbiHKLdK (ORCPT + 99 others); Thu, 11 Aug 2022 07:33:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234885AbiHKLcw (ORCPT ); Thu, 11 Aug 2022 07:32:52 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0103C96753; Thu, 11 Aug 2022 04:32:26 -0700 (PDT) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 27B6fSQJ018190; Thu, 11 Aug 2022 11:30:54 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=7KaiEaKQcKJR7xjpPNQ8FEdyIVIj3AxeDSRSxYpiISg=; b=Zoi//DwlVP2oGIHdR42tfOnYMU+wPMze4rwMbIDsnijoqWHaZD6a/WUok9yME9tj/BSZ 4JeBDCFdnn4iECos+tfspdqez3Vntb+NtyiYsCRVgZnd9ixybOb+UBqBfEa0FpkduCBC 21K1H3PkdPhSXf34HWvG+Cmtk2EU5zkgTwlD+AUOYEi4gcHxetaoQ1obnmgJ1ue7HUho a9YWMCpVYAWZ6yvqSKbaKFWQ2R2WbyugIqYnlRQ4UFPUfcMwhh7hCeuOID9n7iYr5Mjo rKn0Cnr52OuEifu9/hQadC7vqGOye29ltZp5VBVFbbpC0sSNlw4BOkWVSx0pTjjFOq5g jg== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3huwr8wuwk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 11 Aug 2022 11:30:54 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 27BBFhpQ024546 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 11 Aug 2022 11:15:43 GMT Received: from [10.216.12.63] (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; Thu, 11 Aug 2022 04:15:35 -0700 Message-ID: <647583a6-6e1f-b3d9-cc1d-2ca4564cceed@quicinc.com> Date: Thu, 11 Aug 2022 16:45:31 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Subject: Re: [PATCH 0/5] clk/qcom: Support gdsc collapse polling using 'reset' inteface Content-Language: en-US To: Bjorn Andersson CC: freedreno , , , Rob Clark , Stephen Boyd , Douglas Anderson , Andy Gross , Konrad Dybcio , Krzysztof Kozlowski , Michael Turquette , Philipp Zabel , Rob Herring , Stephen Boyd , , , References: <1659172664-10345-1-git-send-email-quic_akhilpo@quicinc.com> From: Akhil P Oommen In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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: fJhxWupsDssORr3TgLNUO8nf0c7zzTVK X-Proofpoint-ORIG-GUID: fJhxWupsDssORr3TgLNUO8nf0c7zzTVK X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-11_05,2022-08-11_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 impostorscore=0 adultscore=0 suspectscore=0 spamscore=0 clxscore=1011 priorityscore=1501 mlxscore=0 phishscore=0 mlxlogscore=916 bulkscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2208110034 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,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 On 8/10/2022 2:35 AM, Bjorn Andersson wrote: > 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? Also, gpu driver needs a way to ensure cx gdsc was collapsed at least once before it goes ahead with re-init. Btw, the patch you mentioned is about gx gdsc in gpucc which is supposed to be owned by gmu (except when it is in bad shape). But the current series is about cx gdsc which is shared with other subsystems/drivers. -Akhil. > > 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 >>