From patchwork Fri Dec 1 00:35:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 172193 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp784844vqy; Thu, 30 Nov 2023 16:35:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IHy0vQCyZu7AOMfH2ul4F3UofDGx4buXDsQweeigDjugJ/1WiPxAEzO6TmyDzRdz396WW+5 X-Received: by 2002:a05:6a21:1a4:b0:18c:8d0f:d6b9 with SMTP id le36-20020a056a2101a400b0018c8d0fd6b9mr16818378pzb.49.1701390956909; Thu, 30 Nov 2023 16:35:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701390956; cv=none; d=google.com; s=arc-20160816; b=unYgh5mltf+cqHYvbj0/sCdSj5CXl1eOT/qiUVHK9FkDQX7goYAkEbnPPxqYTVN+EQ AKz7d64dyjhCHN17K6oCrJtf058DHUBXeUTj6spVSdyOHWuIrV4yS7A+H4sav9psfH++ oQDbSaKTFWs4AhQR4FsEl2efLDkM/bHipmj6tNRBZw6Qha+wTb1Cjo77fMdOHFBh63zc QXmZAdvN8b38tkVESEapoF1qYpzS2Y9rJx61YGDhyh1yBZmQHocCSxG8g4Tr+Sl2H8rh ISwqCVtBjnapbvtQNo3qSFNUdqhPzpmZkxgv9OXcRTGM1tnEkSEkBjrfBmoxcMasSx93 XFMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:message-id:content-transfer-encoding :mime-version:subject:date:from:dkim-signature; bh=ICdgyrkMliI33Zpw9gltYRMWGQds5j3xcF2jKWyi/WY=; fh=ZiluER6G8FBxxCmRIYAMfmoSP8B+vCYs47w93CoBt9Q=; b=r9QTmNZ9YVi9JjkvLJWWJzDazMaGtxSstR5/fSp0cJT3F12iKNOUF7+leMEMkM5NYW H2kFvkn27KWOH1WBicNXWhNZxz+COZqxLYuzI51BBvQ8doLu+mhjXnRKL8OlqzYvKmQi letPpuVeYkUrSB7WsBmwGZ0K2GOcB2UGd6w09YgFBgtEuRpHdX9U2P1dfLRr+tZlzL6V xNhT7EAC0EHt0S3YMaz6Oiyt2nz0tHpiRlsNH4tX+2W2gXJGz442BTALPNcHD4Arj6KZ yWb4vr3KjxX8FAsclYTq8yeXf3yzkjXP0rxB4tFhC7ynWjeSpRhnPwRAKAgsEw3b7tpv 2SSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=CZwRLBHz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id c18-20020a170902d49200b001cfb29b9c0bsi2264785plg.161.2023.11.30.16.35.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 16:35:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=CZwRLBHz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 B515A8047501; Thu, 30 Nov 2023 16:35:37 -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 S1377449AbjLAAfV (ORCPT + 99 others); Thu, 30 Nov 2023 19:35:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377446AbjLAAfU (ORCPT ); Thu, 30 Nov 2023 19:35:20 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA7AB10DE; Thu, 30 Nov 2023 16:35:26 -0800 (PST) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AUNNE44000304; Fri, 1 Dec 2023 00:35:08 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : date : subject : mime-version : content-type : content-transfer-encoding : message-id : to : cc; s=qcppdkim1; bh=ICdgyrkMliI33Zpw9gltYRMWGQds5j3xcF2jKWyi/WY=; b=CZwRLBHzw0oIL4/Thp39vVR6BdRlp0zjo7WDSvK3NdSA4DxZGEho3rLJefqqEM/+HFI2 eokqYp2E+HI4RXi4+rWIVaugNTXwMiFADe3+fL8kf2iKdxuQJBQ2I7huPfFcdko/B2fh 01VH4f/TF3WNcEAViWPWxZve9tswPkQrlUg5y58yJYz9ugd+0eiUFOm18w7NiwCzN1+Y LpL7fQTDXPuU+qW8Vrh7Cyyahmz2dty8+xS4JKZcNUaFOPhVIcDO8u7TaDe5bKYWG1yd Hq0QYcNJGmjDhNgMs06dHnnq00J7KyAqTyNhMiBHq7q7zvN5hFW64OKAvFIQUMHz6I93 BQ== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3uprhdt13n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 01 Dec 2023 00:35:08 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3B10Z7Pa031593 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 1 Dec 2023 00:35:07 GMT Received: from [169.254.0.1] (10.49.16.6) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Thu, 30 Nov 2023 16:35:07 -0800 From: Bjorn Andersson Date: Thu, 30 Nov 2023 16:35:01 -0800 Subject: [PATCH] drm/msm/dpu: Add missing safe_lut_tbl in sc8180x catalog MIME-Version: 1.0 Message-ID: <20231130-sc8180x-dpu-safe-lut-v1-1-a8a6bbac36b8@quicinc.com> X-B4-Tracking: v=1; b=H4sIADQqaWUC/x2N0QqDMAwAf0XyvEBTwcl+ZeyhNskslE6adQjiv 6/4eAfHHWBSkxg8hgOq/JKlT+lAtwHiGspbMHFn8M6PRKNDizPNbkfeGlpQwdy+qMqO1Xvi6Q4 9XYIJLjWUuPa4tJy73Kpo2q/X83Wef6AHPT97AAAA To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , "Bjorn Andersson" CC: , Rob Clark , , , , Bjorn Andersson X-Mailer: b4 0.12.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1701390907; l=1254; i=quic_bjorande@quicinc.com; s=20230915; h=from:subject:message-id; bh=MEBwXB+U40Igb6rl9s9JdUj63wjC5O+InEcgkFNeMIA=; b=x7bPJlpmlUmEM2cThkbyeN+nKlbeopYuh/BL7ABKUpKBiPz+YHS0MdKpser8mH+VTK5k/WLm5bif qCT8UpHeDDXw/YprkmH6dAKoqpdJtto4+f0DjBmPPYhaWcKtfteM X-Developer-Key: i=quic_bjorande@quicinc.com; a=ed25519; pk=VkhObtljigy9k0ZUIE1Mvr0Y+E1dgBEH9WoLQnUtbIM= X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: krFbri4l06wzhX9N-6J09zRIA-AOB_oC X-Proofpoint-GUID: krFbri4l06wzhX9N-6J09zRIA-AOB_oC X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-30_25,2023-11-30_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 phishscore=0 spamscore=0 suspectscore=0 impostorscore=0 mlxlogscore=999 clxscore=1015 mlxscore=0 priorityscore=1501 adultscore=0 bulkscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2312010002 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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]); Thu, 30 Nov 2023 16:35:37 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784037724126799906 X-GMAIL-MSGID: 1784037724126799906 Similar to SC8280XP, the misconfigured SAFE logic causes rather significant delays in __arm_smmu_tlb_sync(), resulting in poor performance for things such as USB. Introduce appropriate SAFE values for SC8180X to correct this. Fixes: f3af2d6ee9ab ("drm/msm/dpu: Add SC8180x to hw catalog") Signed-off-by: Bjorn Andersson Reported-by: Anton Bambura Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 1 + 1 file changed, 1 insertion(+) --- base-commit: 3cd3fe06ff81cfb3a969acb12a56796cff5af23d change-id: 20231130-sc8180x-dpu-safe-lut-ffd0df221d67 Best regards, diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h index e07f4c8c25b9..9ffc8804a6fc 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h +++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h @@ -367,6 +367,7 @@ static const struct dpu_perf_cfg sc8180x_perf_data = { .min_llcc_ib = 800000, .min_dram_ib = 800000, .danger_lut_tbl = {0xf, 0xffff, 0x0}, + .safe_lut_tbl = {0xfff0, 0xf000, 0xffff}, .qos_lut_tbl = { {.nentry = ARRAY_SIZE(sc7180_qos_linear), .entries = sc7180_qos_linear