Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7428238rwd; Tue, 6 Jun 2023 10:32:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5as6wPbCvQ39qbgbVvKrWkp9n9mqknwkD4wM2fNke9l4rs1rQxaAq2qVzyioMGeRiimvQF X-Received: by 2002:a05:622a:138a:b0:3f9:a7d2:f99 with SMTP id o10-20020a05622a138a00b003f9a7d20f99mr501532qtk.29.1686072723556; Tue, 06 Jun 2023 10:32:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686072723; cv=none; d=google.com; s=arc-20160816; b=XvXuGG6o17kIcjPgoTe1YgilaPBstnkCnnBFaqnxxaD551iD8sIsWwDdEQIMabqNwq ySNSWZrk12oSYgcKA7ddoCBJS0wCTXbY6rb2t/gEF7uAvW26jcbVKS9gpmU8RiZ7Q2ns JnLux4Uwg3vnN8KJuo+ED9IN/UtcVduwlA3P6/IFp5uABhYEfIj+iZ5BCOV2lEtq6xFg jU0Fk9BuHIHIwI8OpzoWZP7LNKmZHsh7e+CwPwe1cNZeGgz/18N3TYQSNFJLTZ+4pTiN ENE2iAFuoQ7PPZc+05rs0byGIOnyOhIL7e8uGPUXZnM9v/z063ernIaeIXYszh3xE7Qx o9+w== 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=cMFO+lrUNM2Y2ZHtb0xZ2vZlDKP4pr+BXCaQJt8SZHM=; b=1HX6XzYqezHP/bWiwVxP0uZUpUf1DnVJ9NUlZJgxN+o9Rb9sxd239pEfk98j9ZVXke Gxqw78t18rJbNAEKMWui7Q7OlYyXi1MyKXvkaHqxIe2BXLMPZTqx42hpR5AxnCWvkALv nu/2unXekBOnalTldDO2BGyHu+oGVbO2OpS2MxE77R2l+99K991cR623sfqZzCmIyUcz 3hnUW/Cv4m86Y0LZ5LpiB32oXPFNpP6G9GTvHLAmM/6D0D2gEftEWBEFvX5cwt1Y6iUz eAjBDns6HOm1C8wCwc93YCybQ2mmjp0YPAhqU+/ovMi13vumc1F0Kw2Axzwzth5WdKAu 6RbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=OElBh+H2; 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 a5-20020a05622a02c500b003f872206379si3586136qtx.591.2023.06.06.10.31.25; Tue, 06 Jun 2023 10:32:03 -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=OElBh+H2; 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 S233549AbjFFRKI (ORCPT + 99 others); Tue, 6 Jun 2023 13:10:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231700AbjFFRKF (ORCPT ); Tue, 6 Jun 2023 13:10:05 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7504210EB; Tue, 6 Jun 2023 10:10:04 -0700 (PDT) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 356CPliG008825; Tue, 6 Jun 2023 17:09:51 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=cMFO+lrUNM2Y2ZHtb0xZ2vZlDKP4pr+BXCaQJt8SZHM=; b=OElBh+H2UVDhy74uXx3KEhCHaY2mDZZkiv4YF2z/MmoEWkd6545oYtxxxLZCBCYDbAgz Lz36FksUexn7BX9w5dk97CKggRlyTJh9pamSMAEpBU8tr2FLcVJCA8JWH95TmAwWuyAE YxiZ+7grcYvWTghdpZLMBjiCY/21mmErb4SdktrNwm4t+Zg7pHmVoYsYXzobLCLxD2en axRpFEY20HiRo4fMP/SpNyI1GIkQuRvpt41T65vOt8nrH2kRlmEqJ5uccNXfEwYeBVFf M20r9tDPEhajk+tVTSQZAdLbi90lWwStcq+gWrKBdmEz/eeOpaBFdLGKaBDjXW6CFNdz YA== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3r249n0qxf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 06 Jun 2023 17:09:23 +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 356H9MOr009459 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 6 Jun 2023 17:09:22 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; Tue, 6 Jun 2023 10:09:16 -0700 Date: Tue, 6 Jun 2023 22:39:13 +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 06/18] drm/msm/a6xx: Improve a6xx_bus_clear_pending_transactions() Message-ID: References: <20230223-topic-gmuwrapper-v8-0-69c68206609e@linaro.org> <20230223-topic-gmuwrapper-v8-6-69c68206609e@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20230223-topic-gmuwrapper-v8-6-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-ORIG-GUID: DHc7Ixj7KM7S8vUVBI1mq2BpPrhNNbXE X-Proofpoint-GUID: DHc7Ixj7KM7S8vUVBI1mq2BpPrhNNbXE 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-06_12,2023-06-06_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 phishscore=0 adultscore=0 clxscore=1015 impostorscore=0 spamscore=0 priorityscore=1501 mlxscore=0 mlxlogscore=958 bulkscore=0 suspectscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2306060148 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:25PM +0200, Konrad Dybcio wrote: > > Unify the indentation and explain the cryptic 0xF value. > > Signed-off-by: Konrad Dybcio Reviewed-by: Akhil P Oommen -Akhil > --- > drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gpu.c b/drivers/gpu/drm/msm/adreno/a6xx_gpu.c > index 6bb4da70f6a6..e3ac3f045665 100644 > --- a/drivers/gpu/drm/msm/adreno/a6xx_gpu.c > +++ b/drivers/gpu/drm/msm/adreno/a6xx_gpu.c > @@ -1597,17 +1597,18 @@ static void a6xx_llc_slices_init(struct platform_device *pdev, > a6xx_gpu->llc_mmio = ERR_PTR(-EINVAL); > } > > -#define GBIF_CLIENT_HALT_MASK BIT(0) > -#define GBIF_ARB_HALT_MASK BIT(1) > +#define GBIF_CLIENT_HALT_MASK BIT(0) > +#define GBIF_ARB_HALT_MASK BIT(1) > +#define VBIF_XIN_HALT_CTRL0_MASK GENMASK(3, 0) > > void a6xx_bus_clear_pending_transactions(struct adreno_gpu *adreno_gpu, bool gx_off) > { > struct msm_gpu *gpu = &adreno_gpu->base; > > if (!a6xx_has_gbif(adreno_gpu)) { > - gpu_write(gpu, REG_A6XX_VBIF_XIN_HALT_CTRL0, 0xf); > + gpu_write(gpu, REG_A6XX_VBIF_XIN_HALT_CTRL0, VBIF_XIN_HALT_CTRL0_MASK); > spin_until((gpu_read(gpu, REG_A6XX_VBIF_XIN_HALT_CTRL1) & > - 0xf) == 0xf); > + (VBIF_XIN_HALT_CTRL0_MASK)) == VBIF_XIN_HALT_CTRL0_MASK); > gpu_write(gpu, REG_A6XX_VBIF_XIN_HALT_CTRL0, 0); > > return; > > -- > 2.40.1 >