Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp188641imw; Wed, 13 Jul 2022 22:47:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uoRKVa4JbqFrU7uWt4mwQTMBGrzieQeKO/abwB/3l2g4XjHf2aOC3xMWL9FZMXBq5nABo3 X-Received: by 2002:a17:90a:a884:b0:1ef:8eb8:7473 with SMTP id h4-20020a17090aa88400b001ef8eb87473mr7899242pjq.161.1657777620630; Wed, 13 Jul 2022 22:47:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657777620; cv=none; d=google.com; s=arc-20160816; b=O5RwyecBrBMZk985YrK5b93qW776eVS0wTBbOxIsJs6s1yyvCk/3aqBdkLposD+8Zx 4T+QuTwe3vLeW0tyoJSIj+c+DzWhbhqK4+1rSUPqyuRhT9UVJuR3gstLBMO9FkZV2aqD SwmjjMjaFtvBmqaqfLyV1IxeD+1dM8UWDfgNRCBEMOC7tHmF1HIYjVtHyRaiC8lJNzQZ gIL3URi8n9HyIEovkIIQSNCz6nXsztzhG4rZ1Yjj4osaaFVs/Xeeq8OpQDaTdEUufHio gP1VNn2/q9lVve107knz3QKGNA/l1BP8yeAbr8SAA+If2FN4TZTFJ530tI7Ty+IEslaD GkUQ== 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=4NKbmXxhlXJ2EzhZYmyUNHWWphemE+rKL52FLwRy3ew=; b=Saa9LwinH+d3vnkR+Vqevh2IHJL+1VSJnjpx+bC1fleCbuaPbhrc/WsBdNAOdIQUkT 55YyD+biQDpA35UByota6QSaszxZwuk5eIQzbdf5lIKpaVEgxHgu89MPc9kCgbK+hu6G Wx7t2SAc+FQeQFrllvmaB8ai2t7hLpkWDl04GCMdNKzfhm8wMyoeVpLKysU09L+J9/iw 3yiWRXD/Kpt2oYAXWxyJwTYMIDGL71B85LypPbAw+HhYh+3TbYy5oH8Vxn7i5MSrXtxL 4Uvg/YVqN1nX8wuAByE1Iy28S3MN80t7aXSge0njoVumfYxIcifyEe/i0h1LtzupiWOq mvsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=B9BO8JKy; 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 k9-20020a170902d58900b0016c20ceec07si810419plh.490.2022.07.13.22.46.47; Wed, 13 Jul 2022 22:47:00 -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=B9BO8JKy; 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 S234892AbiGNFkp (ORCPT + 99 others); Thu, 14 Jul 2022 01:40:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234088AbiGNFkn (ORCPT ); Thu, 14 Jul 2022 01:40:43 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12B8528E36; Wed, 13 Jul 2022 22:40:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1657777242; x=1689313242; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=4NKbmXxhlXJ2EzhZYmyUNHWWphemE+rKL52FLwRy3ew=; b=B9BO8JKy4MYh7EajcJwVG53Vgt9H5q0xNzltg4RttQMH30rtjuLqsA/l 9P/eyppEMyKArReYE7dKNaSLnmcp8qM/NK7xpYivLe0h6ZU+yjReWDBtH eHdQ/50nQijVxVsgzrMU7W8cKQN+TyRW4b4qdIBowcyEmlWwxiAJMm9dr 8=; Received: from unknown (HELO ironmsg-SD-alpha.qualcomm.com) ([10.53.140.30]) by alexa-out-sd-02.qualcomm.com with ESMTP; 13 Jul 2022 22:40:41 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg-SD-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jul 2022 22:40:41 -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; Wed, 13 Jul 2022 22:40:41 -0700 Received: from [10.216.13.53] (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; Wed, 13 Jul 2022 22:40:33 -0700 Message-ID: Date: Thu, 14 Jul 2022 11:10:29 +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 v2 5/7] arm64: dts: qcom: sc7280: Update gpu register list Content-Language: en-US To: Doug Anderson , Stephen Boyd , Taniya Das , CC: freedreno , dri-devel , linux-arm-msm , Rob Clark , "Bjorn Andersson" , Jonathan Marek , Jordan Crouse , Matthias Kaehlcke , Andy Gross , Krzysztof Kozlowski , Rob Herring , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , "Stephen Boyd" References: <1657346375-1461-1-git-send-email-quic_akhilpo@quicinc.com> <20220709112837.v2.5.I7291c830ace04fce07e6bd95a11de4ba91410f7b@changeid> 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-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,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 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.