Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2467903rwd; Fri, 9 Jun 2023 11:37:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ614cAsiqkhe4F/HXCy9VkIuEbEsyLoO0G+TYpZsWcIKb3jPJRi0h85CKrPgpive/jobJjC X-Received: by 2002:a17:902:788f:b0:1ac:8475:87c5 with SMTP id q15-20020a170902788f00b001ac847587c5mr1324763pll.56.1686335866983; Fri, 09 Jun 2023 11:37:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686335866; cv=none; d=google.com; s=arc-20160816; b=Tktik/SL0WIp5OKVQ1BuFDuEDftDvGdgzD5jeoZ4VKHut6zEm06L7vl5AmDtz/RdVR 3ufeY15kOLYYdW8j3oEr3MZGcmoOQPvfClt1ZDqDr9vfqsuETCHe80sVbKl/s+XMAzDJ BtcLVZZH6eSdRwD0An/b2yuDE//Cs5HpmIqWHWrn9Zi6Py6LjmBnOMQOKRb5BDhKIk3g OYcm+pp1rTAdMq1KhKdUuzrcUMfOuuIUgzs+pL+TPBoi/76teIedXoRmU5ZVi9WC25xA WNTfvrMbO7RWVI8IOjoRgnH0tEYl4gMlwnB5+6K79LSYdFfQ3+iSw9wNLAqQvJRY217+ 1/Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=FDqnF98IhW5NO85AdQhmRp9CAq0W/IalEYURCFmo4Hc=; b=sGv/X4/BK/m56w1bcAjlr3oxCn2vduzEt0KqtNvOC7LNh2TWxToU+6FyqI//biHy27 sF45W0LWNaSTgbKedt+e0jhPaRO8ECC6UCf5prEcuT4cJALLXd8a4LaiAEKi+qOETbp6 vIWxaTPBD+tCAPKcspt7u7TDlXbyMnojRkH4shtPq3KOC+dBq8Bcwcm4309hhtZu1uzM GbTwVWFKL527dIaxy8KZDhs1KUL31AwEoDhcfzzMXEqTPhw3bxz3HuWe/AG+ykZ58vDq 46nPO2L9etC7xyD8uJ/QU3BCEaIXo3jFmZwWXvygQ6pJJAz4titOOJGZn1J8CoDvH/Az tC1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="htYl/sSI"; 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 w2-20020a170902d10200b001b04b1bd781si511631plw.133.2023.06.09.11.37.35; Fri, 09 Jun 2023 11:37:46 -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="htYl/sSI"; 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 S230041AbjFISZy (ORCPT + 99 others); Fri, 9 Jun 2023 14:25:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229506AbjFISZu (ORCPT ); Fri, 9 Jun 2023 14:25:50 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F4AC35BC; Fri, 9 Jun 2023 11:25:49 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 359EP1ec004202; Fri, 9 Jun 2023 18:25:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=qcppdkim1; bh=FDqnF98IhW5NO85AdQhmRp9CAq0W/IalEYURCFmo4Hc=; b=htYl/sSI7pOL8Scp5R9qzqMht+yMK/ECclHGausIK9VZFgsHbOEyeOp4Fvh8v5QfiJ8J L3RTG0i/wWAA8F6vd+UnJipRnwnW5DFBaHgMMKqfFv68wbhYH1iDfhoDZ7b8p6LYsu4c H5aPMlV1V5tJYqp2pQ6Vp23GF2XpFDotL5SMLDEXoaKZE/wkfGRgjnSC8sZXDM4nFbEF gOxYHNGR8Xna4DJGhyBFxUnINr/tqXW7jHUqCR6/4rB3jQhZOrRV8hP6KZQgFVXUTA9q 5pE2IBkUd9I7cgC4toTiKrN+9/2foCm0b2iRDvqUY95KIJlAZALFzebg557Avu4A0Yq7 5g== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3r45tsgkdj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 09 Jun 2023 18:25:38 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 359IPbtv023685 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 9 Jun 2023 18:25:38 GMT Received: from akhilpo-linux.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.42; Fri, 9 Jun 2023 11:25:32 -0700 Date: Fri, 9 Jun 2023 23:55:29 +0530 From: Akhil P Oommen To: Konrad Dybcio CC: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Bjorn Andersson , Konrad Dybcio , Conor Dooley , , , , , , Rob Clark , Marijn Suijten Subject: Re: [PATCH v8 08/18] drm/msm/a6xx: Remove both GBIF and RBBM GBIF halt on hw init Message-ID: References: <20230223-topic-gmuwrapper-v8-0-69c68206609e@linaro.org> <20230223-topic-gmuwrapper-v8-8-69c68206609e@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20230223-topic-gmuwrapper-v8-8-69c68206609e@linaro.org> 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: pDd0c0saJPQ6L-_owofx1-LRtx1gzvEd X-Proofpoint-ORIG-GUID: pDd0c0saJPQ6L-_owofx1-LRtx1gzvEd X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-09_14,2023-06-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 mlxlogscore=828 mlxscore=0 phishscore=0 clxscore=1015 malwarescore=0 bulkscore=0 impostorscore=0 priorityscore=1501 spamscore=0 lowpriorityscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306090153 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Mon, May 29, 2023 at 03:52:27PM +0200, Konrad Dybcio wrote: > > Currently we're only deasserting REG_A6XX_RBBM_GBIF_HALT, but we also > need REG_A6XX_GBIF_HALT to be set to 0. > > This is typically done automatically on successful GX collapse, but in > case that fails, we should take care of it. > > Also, add a memory barrier to ensure it's gone through before jumping > to further initialization. > > Reviewed-by: Dmitry Baryshkov > Signed-off-by: Konrad Dybcio > --- > drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gpu.c b/drivers/gpu/drm/msm/adreno/a6xx_gpu.c > index 083ccb5bcb4e..dfde5fb65eed 100644 > --- a/drivers/gpu/drm/msm/adreno/a6xx_gpu.c > +++ b/drivers/gpu/drm/msm/adreno/a6xx_gpu.c > @@ -1003,8 +1003,12 @@ static int hw_init(struct msm_gpu *gpu) > a6xx_gmu_set_oob(&a6xx_gpu->gmu, GMU_OOB_GPU_SET); > > /* Clear GBIF halt in case GX domain was not collapsed */ > - if (a6xx_has_gbif(adreno_gpu)) > + if (a6xx_has_gbif(adreno_gpu)) { > + gpu_write(gpu, REG_A6XX_GBIF_HALT, 0); > gpu_write(gpu, REG_A6XX_RBBM_GBIF_HALT, 0); > + /* Let's make extra sure that the GPU can access the memory.. */ > + mb(); This barrier is unnecessary because writel transactions are ordered and we don't expect a traffic from GPU immediately after this. -Akhil > + } > > gpu_write(gpu, REG_A6XX_RBBM_SECVID_TSB_CNTL, 0); > > > -- > 2.40.1 >