Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp430290rdb; Tue, 31 Oct 2023 11:13:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGBP1nKdV8zgVH9tgB9pqCGyn8BxhiYZ4TwGqjFEBgDVQ0XF2E5bsOIOB500daWv8Kau2OA X-Received: by 2002:a17:90a:e642:b0:280:9074:eb36 with SMTP id ep2-20020a17090ae64200b002809074eb36mr3985773pjb.14.1698776015847; Tue, 31 Oct 2023 11:13:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698776015; cv=none; d=google.com; s=arc-20160816; b=bnymTwI0QFm3/GrtUM3ilkOFy+THA2R+D60Kem5gNsspOL3coHovjYC/LZ/UihQM/M 2c+t4WGEqudTEx8GjmmF3hczFx1Br0bNZr1ffDwAvS9WT6gMzWv++sSTdupeSlTDlt4D LV+ah7LI/CkcBXJQuZL71/2ZrVfhefbw+I33YRYmhD2b4ykXNe+yhcG9tdsEWicH4ql7 wqKeyMs/RDB+VbhePjrdIxBpKe72DGCrHZFKfhCFc5QY9BHTbnllEBtrdk0H6uvohyiY GxylwqL/xg9h5WhuWuh0UhzeCBJ9SgIcsQMsj7bslhWz5bBjHu1aBoHcHK3IuPo6Qv5J NX9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=8+bea9ITYj3fJA+5jITbAwFJxHRR8ST9gfKocB/HsD0=; fh=Wporwqax68OnlNpWJrbWPNZbx6K31jXiFxgOpm6UAAY=; b=y0Tm92wA1nM9pCCsT9lIIZfi2wtQ1m+ropg8CA9YWKTdXC0LAho0exmzPWFOGy1TmU YCnFhro4aDZPtoaVFIrnXcEm6AOpbIREu29stwRMWCZfa3RiVBTkxNmTTRLa1QHEJC4S Pdc4YLPjuWDN/soanMLORgnV17Fn3WghxcIv9yWbqITVieqVrZldzUav2PgznHUFmhOA J6DE0Ing0erbs5iyOkYMiBETmgj689fnrs+xrMIdkkHTElo9m6WjNHEPmYqn6YoWZJdE hUCW68vgXkGlb7BwcCo93e52GQrv9dRkka9JhuGypFQitrSQLPJ/yhhhFInz+SpJOfet ASxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kali.org header.s=google header.b=EMZvVnzC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kali.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id gb8-20020a17090b060800b0025c1d114af0si1236650pjb.93.2023.10.31.11.13.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 11:13:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kali.org header.s=google header.b=EMZvVnzC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kali.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 33ABD80CE7F5; Tue, 31 Oct 2023 11:13:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376632AbjJaSNS (ORCPT + 99 others); Tue, 31 Oct 2023 14:13:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376616AbjJaSNQ (ORCPT ); Tue, 31 Oct 2023 14:13:16 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B70C9DF for ; Tue, 31 Oct 2023 11:13:10 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-53e2dc8fa02so10368564a12.2 for ; Tue, 31 Oct 2023 11:13:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kali.org; s=google; t=1698775989; x=1699380789; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=8+bea9ITYj3fJA+5jITbAwFJxHRR8ST9gfKocB/HsD0=; b=EMZvVnzCWRRUkxQ2KFbrmlwpIBb3uFTImWw99scyZczKIQPa1p0NQiu/qJQcQd52r8 3bIcEO7ETyT8Phi+8I4Di1n8lgwXn32g3XhbClyaYTdtNHi+E02Lpvd7ew+WLSv+whX3 vNm95MZSav2D8kDmRIgLmCCwxe1sZ33VY6qcWtA2YPARYOaipMH2QHE44MNspMQqRzj7 Dgsit7Ps8YJLxWb2olOdghIo+OAPGG2Fv1joSCRXBvqLLelNmYMIKkEK+vS0cGhCpOG2 ksc/hFUVx1ECnomcf0Zd+GyubUzkgH9BOM+sGf3uoJpdYQlkfsaBDuSNO01/3cdRz3Lx ZwfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698775989; x=1699380789; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8+bea9ITYj3fJA+5jITbAwFJxHRR8ST9gfKocB/HsD0=; b=AI8qD6hvAeGyMPXEBBh9l+H/yqRSlIrSpz077zyzDDrXxgB4sUtAioPv9nTtvm1D57 0+6jgQ9fo2Iq9Am7aDBd6+oPX3xr9iM2sZftytWALOqlc02MEACjdonD+O3/DvvWqVz8 HV2LAmM3ZbCyTkMbCaRwGkcraWuLeoE7WV0R4mNqYa7cXzoLahs70hxeAxYsZm7H8v7B nqKA4PWsSRkI/1J+8mXaWdm1kYJC12AutfXlGZaAuMbsGlyW2zuELQAnkUohyf0izHwf FE4jonEGEO++tFzfFml0zI21tWxRcijgiX9ex0H6M4kHYBzFROdK3tqE45nAwlEaHPpf ZjUg== X-Gm-Message-State: AOJu0Yz4GQ8mHC6EMYp6gbOZ+8F9nhthgucPsBV57KirlVe1Y+kezEBb SpqTfrr3MMYpSm1TfCqQdEJ028OmWS4szNgCy3B8Vg== X-Received: by 2002:aa7:d156:0:b0:533:c55f:5830 with SMTP id r22-20020aa7d156000000b00533c55f5830mr10614603edo.28.1698775988981; Tue, 31 Oct 2023 11:13:08 -0700 (PDT) MIME-Version: 1.0 References: <20231030-sc8280xp-dpu-safe-lut-v1-1-6d485d7b428f@quicinc.com> In-Reply-To: <20231030-sc8280xp-dpu-safe-lut-v1-1-6d485d7b428f@quicinc.com> From: Steev Klimaszewski Date: Tue, 31 Oct 2023 13:12:57 -0500 Message-ID: Subject: Re: [PATCH] drm/msm/dpu: Add missing safe_lut_tbl in sc8280xp catalog To: Bjorn Andersson Cc: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Bjorn Andersson , Kuogee Hsieh , Johan Hovold , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Doug Anderson , Rob Clark Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Tue, 31 Oct 2023 11:13:31 -0700 (PDT) On Mon, Oct 30, 2023 at 6:23=E2=80=AFPM 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=3D0). > > 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/d= rivers/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 = =3D { > .min_llcc_ib =3D 0, > .min_dram_ib =3D 800000, > .danger_lut_tbl =3D {0xf, 0xffff, 0x0}, > + .safe_lut_tbl =3D {0xfe00, 0xfe00, 0xffff}, > .qos_lut_tbl =3D { > {.nentry =3D ARRAY_SIZE(sc8180x_qos_linear), > .entries =3D sc8180x_qos_linear > > --- > base-commit: c503e3eec382ac708ee7adf874add37b77c5d312 > change-id: 20231030-sc8280xp-dpu-safe-lut-9769027b8452 > > Best regards, > -- > Bjorn Andersson > Tested-by: Steev Klimaszewski