Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4061878imw; Mon, 18 Jul 2022 21:28:22 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sfYhxn8NgmuYipvnpBz6ejr1h9GlCbv81b8XAaI7iACnlPLmz4qlkKbJ2Vxz6JTynhn58B X-Received: by 2002:a17:90b:1d8f:b0:1f0:270a:b556 with SMTP id pf15-20020a17090b1d8f00b001f0270ab556mr36856128pjb.192.1658204902666; Mon, 18 Jul 2022 21:28:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658204902; cv=none; d=google.com; s=arc-20160816; b=q5RilTSLm7nSGOXExuTMBEBE2741CuktwtcTHp/Yogp+PbMV4gIlGXUerfnfKsVy2W ih/HUnHeyB+ZOaC/vEMlm7KtkgwLf1uqcp+Pw1DWAbWT6R3kVATtQpqUYf54nZ8ALtn2 GgQJS291L81ulIeNAQ+mHvCnQrHp5uWJxhldGSlWUSbW/bTbXxX/nLqQDxrizBtKkWYl CZ0QVEZYdKQuiDEdSkjJ49HhtVgG8/+1dW6tKrku/OKsvGRt1omGqAFRRvxnp21p7V7s 8/GMgi82wCUjjErzHQ4oFejrsc8D8oe2k5ExUv0D75ix2/7zK0U89DQxXjWJAXQqF/oD HvHg== 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:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=jU56txNrlLvbYZzZ6gj0i6vcpYygudkLhnYlO1eIeYw=; b=yYMYsK1RWKEuD0bHMxSWZvbnvMZXaMau1/AIScvq/rlDA6sRp7hniMkk3MHjn8sT3W WcHUyiWDuuES+M2iyIw3/kGX25QtjQ6GlPrnl+tm1gewoknb/XskZ8NUi3tcmdUbjI5f 8M86ehbEJde1rKIyGIg4cOoS6uA1ftNjKFobhDo24B/M95iVvCiw+3mLCsR/3+L5AM3a jsCnQtx1e2fdPO8T48NqPf8Nbe4SxEvIl2/uRij0VmPmAB7bzVpXwwuCit5JULSvT7CB RvvYFHAtEubJzs2m3aMStGSLQVRck2wNKSo680JnjmM02/tooiHwbU3EBbRIjZju3cJs K/ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=PVEn2N6N; 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 pi19-20020a17090b1e5300b001e858850fbcsi18884937pjb.50.2022.07.18.21.28.08; Mon, 18 Jul 2022 21:28:22 -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=PVEn2N6N; 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 S236737AbiGSEHU (ORCPT + 99 others); Tue, 19 Jul 2022 00:07:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236723AbiGSEHS (ORCPT ); Tue, 19 Jul 2022 00:07:18 -0400 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8CD432EF9; Mon, 18 Jul 2022 21:07:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1658203637; x=1689739637; h=message-id:date:mime-version:subject:from:to:cc: references:in-reply-to:content-transfer-encoding; bh=jU56txNrlLvbYZzZ6gj0i6vcpYygudkLhnYlO1eIeYw=; b=PVEn2N6NhanL20A8FTCfn+OaN8DHZGIE4JEY9hy+2O37VBe19HPk5XS+ s74j7Q0vVBcYn52sX1UVl3Ah2Y3hA6cF2hAYuV6+I2cEih8LLoWZnnckt WlAQVhg/bgNwVquaByonXU04FHGmAZKWxkOFgLIzN1TpgD9zlFPsJbMgP 0=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-01.qualcomm.com with ESMTP; 18 Jul 2022 21:07:17 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg01-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jul 2022 21:07:17 -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; Mon, 18 Jul 2022 21:07:16 -0700 Received: from [10.216.42.230] (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; Mon, 18 Jul 2022 21:07:10 -0700 Message-ID: Date: Tue, 19 Jul 2022 09:37:05 +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: [Freedreno] [PATCH v2 5/7] arm64: dts: qcom: sc7280: Update gpu register list Content-Language: en-US From: Akhil P Oommen To: Doug Anderson , Stephen Boyd , Taniya Das , CC: "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Jonathan Marek , linux-arm-msm , Andy Gross , dri-devel , "Bjorn Andersson" , Rob Herring , Rob Clark , Matthias Kaehlcke , Krzysztof Kozlowski , Jordan Crouse , freedreno , LKML References: <1657346375-1461-1-git-send-email-quic_akhilpo@quicinc.com> <20220709112837.v2.5.I7291c830ace04fce07e6bd95a11de4ba91410f7b@changeid> In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit 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,NICE_REPLY_A,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 On 7/14/2022 11:10 AM, Akhil P Oommen wrote: > On 7/12/2022 4:57 AM, Doug Anderson wrote: >> Hi, >> >> On Fri, Jul 8, 2022 at 11:00 PM Akhil P Oommen >> wrote: >>> Update gpu register array with gpucc memory region. >>> >>> Signed-off-by: Akhil P Oommen >>> --- >>> >>> (no changes since v1) >>> >>>   arch/arm64/boot/dts/qcom/sc7280.dtsi | 6 ++++-- >>>   1 file changed, 4 insertions(+), 2 deletions(-) >>> >>> diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi >>> b/arch/arm64/boot/dts/qcom/sc7280.dtsi >>> index e66fc67..defdb25 100644 >>> --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi >>> +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi >>> @@ -2228,10 +2228,12 @@ >>>                          compatible = "qcom,adreno-635.0", >>> "qcom,adreno"; >>>                          reg = <0 0x03d00000 0 0x40000>, >>>                                <0 0x03d9e000 0 0x1000>, >>> -                             <0 0x03d61000 0 0x800>; >>> +                             <0 0x03d61000 0 0x800>, >>> +                             <0 0x03d90000 0 0x2000>; >>>                          reg-names = "kgsl_3d0_reg_memory", >>>                                      "cx_mem", >>> -                                   "cx_dbgc"; >>> +                                   "cx_dbgc", >>> +                                   "gpucc"; >> This doesn't seem right. Shouldn't you be coordinating with the >> existing gpucc instead of reaching into its registers? >> >> -Doug > IIUC, qcom gdsc driver doesn't ensure hardware is collapsed since they > are vote-able switches. Ideally, we should ensure that the hw has > collapsed for gpu recovery because there could be transient votes from > other subsystems like hypervisor using their vote register. > > I am not sure how complex the plumbing to gpucc driver would be to allow > gpu driver to check hw status. OTOH, with this patch, gpu driver does a > read operation on a gpucc register which is in always-on domain. That > means we don't need to vote any resource to access this register. > > Stephen/Rajendra/Taniya, any suggestion? > > -Akhil. > > Gentle ping. -Akhil