Received: by 2002:a05:7412:85a1:b0:e2:908c:2ebd with SMTP id n33csp124943rdh; Mon, 30 Oct 2023 16:23:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE57PH5vhDGCAbakdYXzIgf5LhtkgUxGC821YHHuSxtUn2zMVuE9XUEXiP6J5CsUrqWagbI X-Received: by 2002:a05:6a20:160e:b0:17e:5a1:f407 with SMTP id l14-20020a056a20160e00b0017e05a1f407mr11277453pzj.53.1698708230304; Mon, 30 Oct 2023 16:23:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698708230; cv=none; d=google.com; s=arc-20160816; b=dR9qdZ5DkyoNs3nu3xgdUE3vkJ6OQOmxuZaOUdsal09ZpsOyec+Vymt/h5aYWoUp8h dK+ZEOgWUdgk4oI2SoYxPW76QFBhRnrI1VJ9WVL2WMNUKia2ngn5UaTXdC7eqIwfhbjq J/QOv77IW/r2fe5d5SVU2ko88KED2QnEwyOL3N5/Mh9jr/7wBcIWyOfxMFJlm9Y/c4rc L/Ptw79oSZ08hqiRvys79zmfsmU1rCsZ6Ycw5vA1OonrjYVF6Z4VjMuazGT4g+P4yT07 PxXQ/3EBgVx9iLYJvhdfFmEqa50EE935GQOvPa7HwkfTXQDO8LRtWd+mzj7YLOdMulGU OYCQ== 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=i5z+ZB3OU6JhL0N7BkafyheHboeXMHsPBTTu214WUtA=; fh=0eYneLH/4l7l/XG4vraO7gaCm8NgSwhCZhREdO7NrVY=; b=VPC8ggP1oUUGW10lJOSa064GwqBkiO2hPyqKSQidWOLMh2gHzelj1IMTjq/qcMkMw9 mw6asBzpsPKrNuIbd1aLYxQlqrmI4dHZmLeejiwy/Mb/rlAr7QvPip7Phb0iVUoDRBwp 2SN81TYDVEHe3OwNlt4U6Gqx+7Z37pgzuQwwHMoc5EN8lu5dpBGTX4XZyJnj9ljiRhoo UoppMuVFblHQO+IZBqm8kgIJnpKGmQgjcM/WPjZTwH4fD9K7IOVNgJ9hmqTVJL8qB8kQ V9TX5PIw9GLK+fGUVutPq2PQTyPpdwLFm/oGdZ92qronJdlEEpFalCIlTEdRkiRb4UgF oNpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=jNnEqD4L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id t17-20020a170902d29100b001c9faf1439esi96019plc.288.2023.10.30.16.23.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 16:23:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=jNnEqD4L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id A834480B8F01; Mon, 30 Oct 2023 16:23:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230469AbjJ3XXk (ORCPT + 99 others); Mon, 30 Oct 2023 19:23:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229646AbjJ3XXi (ORCPT ); Mon, 30 Oct 2023 19:23:38 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11268ED; Mon, 30 Oct 2023 16:23:36 -0700 (PDT) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39UMeZnE014769; Mon, 30 Oct 2023 23:23:26 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=i5z+ZB3OU6JhL0N7BkafyheHboeXMHsPBTTu214WUtA=; b=jNnEqD4L4rL/OmClQcLFTZNhbncYtQIp7bb9g+Cv2KU3fZL19tAWnPEshZmaqoekAwTx veuKHYZfIFOTcEt4OH79P5BTLNZO23JuzQUkIcbYuxDGS/ih57Ot3Pt4nAeWgLrTtVcv uJ+66CvDAo1mbLEuOrHaq/3fzUDp30nBDe75vIRdExnlWXWJPOzPXqv6U0TYj4VIec+J cRo2YeEkECmukTlCD9k7gtmjxDnL2DabGhQ7vWobiO6dpB4taOGkW6DTW96UI5kwqLdz QDBthclhd+6hk6CqCYc7dl9BkbgLKa0RvMo5e/8SA17EDb3GB3IHLdSIgR03+pyXKcck lg== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3u0sw7w6sk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 30 Oct 2023 23:23:26 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 39UNNPp9019129 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 30 Oct 2023 23:23:25 GMT Received: from hu-bjorande-lv.qualcomm.com (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.39; Mon, 30 Oct 2023 16:23:24 -0700 From: Bjorn Andersson Date: Mon, 30 Oct 2023 16:23:20 -0700 Subject: [PATCH] drm/msm/dpu: Add missing safe_lut_tbl in sc8280xp catalog MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20231030-sc8280xp-dpu-safe-lut-v1-1-6d485d7b428f@quicinc.com> X-B4-Tracking: v=1; b=H4sIAOc6QGUC/x2NQQqDMBAAvyJ77sIa2xr7ldJDEte6ENKQNUUQ/ 97Q4wwMc4ByEVZ4dAcU/orKJzXoLx2E1aU3o8yNwZAZehoINVhjac8454rqFsZYN5zG+0Rm9PZ 6M9Ba75TRF5fC2upUY2wyF15k/8+er/P8AUbx+E98AAAA To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , "Bjorn Andersson" , Kuogee Hsieh CC: Johan Hovold , , , , , , Doug Anderson , Rob Clark , Bjorn Andersson X-Mailer: b4 0.12.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1698708204; l=1697; i=quic_bjorande@quicinc.com; s=20230915; h=from:subject:message-id; bh=72QR3jvGyo+H6e9GBhjN/2GIlA5WwaX4jbap18l6h0s=; b=bqxY/WqdAvcdYCAXfbuMJvBWsjU70xP5O/v2lbhdUd/dbGOf7FePR+cZvLxpieXKGyNpsaY7h3z7 6ZQTLy2KDOsSxu/R4xBwOZ1wnSkcMkJlCxAra8uhTklG2NygVehF X-Developer-Key: i=quic_bjorande@quicinc.com; a=ed25519; pk=VkhObtljigy9k0ZUIE1Mvr0Y+E1dgBEH9WoLQnUtbIM= X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01b.na.qualcomm.com (10.47.209.197) 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: AFHoEPvfCGEnalmptZfPnIEdLWGRZIFw X-Proofpoint-GUID: AFHoEPvfCGEnalmptZfPnIEdLWGRZIFw 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-10-30_13,2023-10-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 clxscore=1011 phishscore=0 lowpriorityscore=0 spamscore=0 malwarescore=0 priorityscore=1501 adultscore=0 bulkscore=0 impostorscore=0 suspectscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310240000 definitions=main-2310300182 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Mon, 30 Oct 2023 16:23:47 -0700 (PDT) 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 --- 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, -- Bjorn Andersson