Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp2797130rdb; Wed, 15 Nov 2023 10:41:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IH+Qwu5eTnzn975x6RI1RlESBKOilqJJHmjIJLSTZITMb6IJXHP+9qbjtKxWXSqNaYuh0KR X-Received: by 2002:a05:6a20:6a0b:b0:181:125:e85c with SMTP id p11-20020a056a206a0b00b001810125e85cmr17306016pzk.53.1700073705969; Wed, 15 Nov 2023 10:41:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700073705; cv=none; d=google.com; s=arc-20160816; b=U1GKfq0xayk8NhNO6blxKB+cWgYd5XQksUgICI8xKO6dmQBVrhoiokE+cR5eRafntK /SUxBUyTYyUetkNHmKHxAEq4vChIF7DoAysBNlPBxDgRfu7hLoP9olQB5Lz0BXZ26Nn2 cS95xKIveIhKCzQFc36Wr7Q9zgMjtgZ+/KeyFF0WE4goGyzhjSRYQZs4eeTmrUUdZSvn MVwP8QcX+Vcq/UYfExYbEkJ0KEZ/9jgmc2A383uE4vmc+7Ysl4FnwlrjwS6tfJvyb5tF 9FA6/JcmlX4MZo5rIfruuFhm6wD9nAhV3P7SJchP9mNeuNXlQpiIogfk5FBndmzhyy4U jUBQ== 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=PuFShW91pLCSKKRSr5TB0Kzh1Ye2y9QdBmcBG1d4LLo=; fh=1B4b71dYRW+UxgJS8Xy42+AR77KcsJ1qAHHL/n3cCpU=; b=TB7V/dv55LJrqyTmpDATw+AVukAJjoRlFd62/3pHRPjNniarK62rH5dWPyyHXpUgrM mNlfkgkfLvXJfyql5Yl+GfOV8WGFTM3dV3nR9A3ArpcWXUeNPsBQMEECkXT5qeHEtjby 5PMDq+6q4qAJHJ24sAP+/82Ts8nOC9v+kMErP3xF5lL97UvD9VULb47lEAbCrFIMoLYh IkpOMXybrexIcPBTWPTYvXx6XhOte2sDugynCy2i+sBeG+qEz6AQpFuMhmPsiDUW05Fj ZMNQAMZU4I5mYMviqZtRxgcnUy3m+VCpdNQGGPo016u4Aq6MHIqIrLk5FMI1aOZADz/C cgjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=A45+UnlB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id jc20-20020a056a006c9400b006c4ec5d627csi10966642pfb.299.2023.11.15.10.41.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 10:41:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=A45+UnlB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 112058058C4F; Wed, 15 Nov 2023 10:41:43 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229648AbjKOSlc (ORCPT + 99 others); Wed, 15 Nov 2023 13:41:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229522AbjKOSlc (ORCPT ); Wed, 15 Nov 2023 13:41:32 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBB5F9B; Wed, 15 Nov 2023 10:41:28 -0800 (PST) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AFDxWMc014687; Wed, 15 Nov 2023 18:41:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=PuFShW91pLCSKKRSr5TB0Kzh1Ye2y9QdBmcBG1d4LLo=; b=A45+UnlBOrODk8jEkvyk9I3LDsY5Yj34tyqSYs4Fsc54r5tpfGUq5BGoqxgtyij3WciF 8c1VNHJPbtE/BbJI0y3h0AVGjE5Jzmm5LFQgX0obFRRZ1KI1iqyaoMrIYNYzDxs5n9bp NxOXe68evw/3gmVcowyGaF8dqHe7YStnSxh0SxdJUOaYdoTmeQFJkcDlFITVL8U1ziWy CnEJw6q1e9qs7HudziLVsxLwe8+MlTihn7bOM1A+0Km4PdlEMe5E8mz0W3cL8sqrVmqb W+0R+EDBsVky/aJMhGSTTTa4cnJorN4KVEsWLDyjVu+saW5bZ0lxxLfL+WUqFUMWoxyj FA== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ucmbaj3uf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 15 Nov 2023 18:41:18 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3AFIfHeW009144 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 15 Nov 2023 18:41:17 GMT Received: from [10.110.71.50] (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.1118.39; Wed, 15 Nov 2023 10:41:16 -0800 Message-ID: Date: Wed, 15 Nov 2023 10:41:15 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH] drm/msm/dpu: Add missing safe_lut_tbl in sc8280xp catalog Content-Language: en-US To: Bjorn Andersson , Rob Clark , Dmitry Baryshkov , "Sean Paul" , Marijn Suijten , "David Airlie" , Daniel Vetter , Bjorn Andersson , Kuogee Hsieh CC: Johan Hovold , , , , , , Doug Anderson , Rob Clark References: <20231030-sc8280xp-dpu-safe-lut-v1-1-6d485d7b428f@quicinc.com> From: Abhinav Kumar In-Reply-To: <20231030-sc8280xp-dpu-safe-lut-v1-1-6d485d7b428f@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit 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: AclYIrKBsC7tOZwgZDgYgqZm0qk-nLBA X-Proofpoint-ORIG-GUID: AclYIrKBsC7tOZwgZDgYgqZm0qk-nLBA X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-15_18,2023-11-15_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 phishscore=0 adultscore=0 mlxlogscore=999 impostorscore=0 spamscore=0 lowpriorityscore=0 priorityscore=1501 clxscore=1011 malwarescore=0 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311150146 X-Spam-Status: No, score=-2.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 15 Nov 2023 10:41:43 -0800 (PST) On 10/30/2023 4:23 PM, Bjorn Andersson wrote: > During USB transfers on the SC8280XP __arm_smmu_tlb_sync() is seen to > typically take 1-2ms to complete. As expected this results in poor > performance, something that has been mitigated by proposing running the > iommu in non-strict mode (boot with iommu.strict=0). > > This turns out to be related to the SAFE logic, and programming the QOS > SAFE values in the DPU (per suggestion from Rob and Doug) reduces the > TLB sync time to below 10us, which means significant less time spent > with interrupts disabled and a significant boost in throughput. > > Fixes: 4a352c2fc15a ("drm/msm/dpu: Introduce SC8280XP") > Cc: stable@vger.kernel.org > Suggested-by: Doug Anderson > Suggested-by: Rob Clark > Signed-off-by: Bjorn Andersson > --- Matches what we have in downstream DT, hence Reviewed-by: Abhinav Kumar > drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h > index 1ccd1edd693c..4c0528794e7a 100644 > --- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h > +++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h > @@ -406,6 +406,7 @@ static const struct dpu_perf_cfg sc8280xp_perf_data = { > .min_llcc_ib = 0, > .min_dram_ib = 800000, > .danger_lut_tbl = {0xf, 0xffff, 0x0}, > + .safe_lut_tbl = {0xfe00, 0xfe00, 0xffff}, > .qos_lut_tbl = { > {.nentry = ARRAY_SIZE(sc8180x_qos_linear), > .entries = sc8180x_qos_linear > > --- > base-commit: c503e3eec382ac708ee7adf874add37b77c5d312 > change-id: 20231030-sc8280xp-dpu-safe-lut-9769027b8452 > > Best regards,