Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7322246rwd; Tue, 6 Jun 2023 09:07:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7yOCR3BleqCgXBLDCYAtm2Ae4V/0uKF73BqDD1I/2qnRMz6I0a1Vd9QJ0QV293QwWzkboc X-Received: by 2002:a17:903:647:b0:1a8:1c9a:f68 with SMTP id kh7-20020a170903064700b001a81c9a0f68mr1574254plb.36.1686067630489; Tue, 06 Jun 2023 09:07:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686067630; cv=none; d=google.com; s=arc-20160816; b=JSaiU5rL0zQxrftHdwOhZRQ6rtxakX44J0ZMLTXyfOajOda6Qi0hVu83Q+Gd1xGNHL Xg476mkEJdcHwQ2WuioZjxIbJIp6OkYFd3wkL+PHru9f1OW0zEy4x423aIi6mqOZb+to X0qkHOzITGq/x59cJa2mtv9ISRdYDrjVO5qSZOz7/0YvaTFwtm1WstKDbBFinoB+C/Xe QZEDtrs0jdV+WL7ES8U08oCSrtehrNK+NsOnz1fZweWCbiHdiWGtwZNw1xlFWZlfIVg/ yezxHmpPh8Rrzk7lF4IGBBwXi9ggdDFqCLXM3u966Yb6K8AvckqYcJemcHoe4LwHvWzF Hnnw== 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=tUScCHzizZ/C+ej3pCM4XinFAiRehlQxC2s7tiS5bfs=; b=yBxxjkwY5wMTLXUUY/d1V2/TEkUm6zHjVoF+LF6AZqwEYxaZUGaDbjdSwsXbYd+Luh o8H8Fj029UmnqGsT/Ge3nQPUlOkNoyEqvcdM1mFJ+WKTlFOqrztrKSWvKxHvjYnh+fGi 9cT7MfUmdHR03xdUuJZl8ILwQExcji5OgC7zL2LOiQlOroWhGQ4JVaSWHhQKW0XQBh5h 1/efbDtM/+ZQdTOzYa8tmtASj9OZve4GBlgYA/nmf8VFrVnhUSULG5Nkzu8LpZgnpBlX orP01id15mNl6Cux9ul3DvwO7HDQtHYoRV+JwK0Wp7/gc74tGJ3d9o5HBnXbR18+SMeZ vaqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=KcM0G2Sb; 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 i10-20020a170902eb4a00b001a95929ca08si7374399pli.533.2023.06.06.09.06.52; Tue, 06 Jun 2023 09:07:10 -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=KcM0G2Sb; 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 S238039AbjFFPkR (ORCPT + 99 others); Tue, 6 Jun 2023 11:40:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238445AbjFFPkL (ORCPT ); Tue, 6 Jun 2023 11:40:11 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C474910D1; Tue, 6 Jun 2023 08:40:10 -0700 (PDT) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 356DvJNq030987; Tue, 6 Jun 2023 15:40:01 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=tUScCHzizZ/C+ej3pCM4XinFAiRehlQxC2s7tiS5bfs=; b=KcM0G2SbrCusBexwQweYkkwQYV/B5BNteCKCOzKhZhiQXtgVrVsWriyvnXi6qiAm7PcN AioMY4zFW4j3c80YwvcGA3VdzIBJDMzckbtmrD2O4LhHhnlD+dYSrQAIlWgKFu0+1xwy /NluWp+iv7vGwmp3851cVIcHyXWGCKnKuyCY1oM5VZrI+LOgy0BLxoshCzqnBwF6v3dh z7UAH1XCC4W3X+VV6KNgCMhqiPPJ2M8TcBHVClba0SJKdhhbeOsUoFVJEMW8qTZwybAj 7SU9JAXbSxEMD/RPGH7sSyk5C+06NuZ4358DwZO5ZE0JDVMEn9ZRDHY9iui0uz8VTUM/ TQ== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3r1jg3jk8r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 06 Jun 2023 15:40:01 +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 356Fe0nw027434 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 6 Jun 2023 15:40:00 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 08:39:55 -0700 Date: Tue, 6 Jun 2023 21:09:52 +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: [Freedreno] [PATCH v8 11/18] drm/msm/adreno: Disable has_cached_coherent in GMU wrapper configurations Message-ID: References: <20230223-topic-gmuwrapper-v8-0-69c68206609e@linaro.org> <20230223-topic-gmuwrapper-v8-11-69c68206609e@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20230223-topic-gmuwrapper-v8-11-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: pnloLZMP3zTSKVaX3P58vlyOKhb92D_H X-Proofpoint-ORIG-GUID: pnloLZMP3zTSKVaX3P58vlyOKhb92D_H 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_11,2023-06-06_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 malwarescore=0 impostorscore=0 spamscore=0 bulkscore=0 suspectscore=0 lowpriorityscore=0 adultscore=0 phishscore=0 mlxlogscore=999 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2306060134 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:30PM +0200, Konrad Dybcio wrote: > > A610 and A619_holi don't support the feature. Disable it to make the GPU stop > crashing after almost each and every submission - the received data on > the GPU end was simply incomplete in garbled, resulting in almost nothing > being executed properly. Extend the disablement to adreno_has_gmu_wrapper, > as none of the GMU wrapper Adrenos that don't support yet seem to feature it. > > Signed-off-by: Konrad Dybcio > --- Reviewed-by: Akhil P Oommen -Akhil > drivers/gpu/drm/msm/adreno/adreno_device.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/msm/adreno/adreno_device.c b/drivers/gpu/drm/msm/adreno/adreno_device.c > index 8cff86e9d35c..b133755a56c4 100644 > --- a/drivers/gpu/drm/msm/adreno/adreno_device.c > +++ b/drivers/gpu/drm/msm/adreno/adreno_device.c > @@ -551,7 +551,6 @@ static int adreno_bind(struct device *dev, struct device *master, void *data) > config.rev.minor, config.rev.patchid); > > priv->is_a2xx = config.rev.core == 2; > - priv->has_cached_coherent = config.rev.core >= 6; > > gpu = info->init(drm); > if (IS_ERR(gpu)) { > @@ -563,6 +562,10 @@ static int adreno_bind(struct device *dev, struct device *master, void *data) > if (ret) > return ret; > > + if (config.rev.core >= 6) > + if (!adreno_has_gmu_wrapper(to_adreno_gpu(gpu))) > + priv->has_cached_coherent = true; > + > return 0; > } > > > -- > 2.40.1 >