Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp208760rdb; Tue, 31 Oct 2023 05:35:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE6J0+lN/R71f5K9wFQiK4iDOtplnxMzO8LugOMLEnvSXmXT6KtwS9kKH27C+rZkk7JJr6D X-Received: by 2002:a05:6a20:54a8:b0:17b:129b:1813 with SMTP id i40-20020a056a2054a800b0017b129b1813mr12373045pzk.1.1698755748288; Tue, 31 Oct 2023 05:35:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698755748; cv=none; d=google.com; s=arc-20160816; b=AOlWW+2UnWo2wANsOvG7WdGJ7Vvi+hud580G456IHS0z7jilXM4fM4CVyJm6M1ERGr uoCBev089ERmVIq7emjYTlG6ILIuN1T0QhffmyQKMHnZZwgAezd0FJvhAdtFdtlAN2St DXgx9+lpoOpa7HFMc3m7s+Y5trL4s9GtXfat2GkHQhG/Q1YprGpbgPkeD8Kh2FHPzMrP EXwLNOhCRdruIPTSl961GADQuGR1Rv1gCn1JwclCYvn/mbab2jE5zsFQLxenOm3GRoau 4eEmebECRU4pIQD7IjXSxvOycHsaNF44BSiwS78CKbCgS4uSZppzvmjGjs47SNjMRUVd y35g== 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=e/G1T99sIjxpWJfqCPCXcfVom1ZCOg6LAcsXQMzp/uk=; fh=GeTRNuBLu5QeQOWsBznhuUiZSWvPbcXTMH1XY2vHV4o=; b=tlhQ+LgrRmdX80Afh+Uip2bq+gH13JopbxXZGkfcmTw35PxDIOAL1xZykDxVExeRfR b51tR7pvww1E0aMAuwRzTPXvwyv89YrIeI1uiuoJ2WNUoa1MsoluLf/j9yRNLRD0qJD8 RvdE9JE0XusezdrAYLKA8ZPPynHAhxhzReLw/EG6hbTdlHdoJZl7JQ53kiE6HvzlBupi md1lvDnHPeQB4KRIHXIvz1MERg5xTBD4yKVIMmzb4vNrLlaYs1kMCdIUxKgMGBCT2xNm zUCgVd4j0Rma8wf4egYUqexn2YSCW3mGbr4oa0H0PfpWjPvIPKFV9iH4oWoVStu5kMy3 b8qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AawslDTl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id h70-20020a638349000000b00584e65212d4si973389pge.609.2023.10.31.05.35.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 05:35:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AawslDTl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 1EF398021DA7; Tue, 31 Oct 2023 05:35:17 -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 S1344283AbjJaMfJ (ORCPT + 99 others); Tue, 31 Oct 2023 08:35:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344269AbjJaMfI (ORCPT ); Tue, 31 Oct 2023 08:35:08 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93C8698; Tue, 31 Oct 2023 05:35:06 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 35809C433C7; Tue, 31 Oct 2023 12:35:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698755706; bh=CBUVROw+HLBHDa2ZlqHiNrVzZsfNM0kP05CgmKncJNU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AawslDTlAr3FVetIK2w1+5xf8zUrdTnBOlL5+1k/IGBS0bTro3bVAGBSSlELDglx1 MzW5gd1lJdVTCr2CFhMBnoLi+qlqpDMHjNH/Uw0MXNsbo2J4kaXoSFBf7O56G0AtpP Z1A2poUGNtoXPPpP+hnExpbxDc4agt5tYzLk/ahJHhlBuzcKZBNzxQ/fggTLsbZ8if pPVC/Ftf7XIwmrYroSoWXie3J7cF0Urzz9GOzQuvZYHlv0bSDSjbR/bpsghU0TczDx EI7yuvYUiIZxyRo2u7HDFaxbyfNsuJmVE3PRQIMSSUG97cNVE+jDLQYcFlvOtNwvF8 frJLmHTbZetJw== Received: from johan by xi.lan with local (Exim 4.96) (envelope-from ) id 1qxny2-00067y-1C; Tue, 31 Oct 2023 13:35:34 +0100 Date: Tue, 31 Oct 2023 13:35:34 +0100 From: Johan Hovold To: Bjorn Andersson Cc: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Bjorn Andersson , Kuogee Hsieh , 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 Subject: Re: [PATCH] drm/msm/dpu: Add missing safe_lut_tbl in sc8280xp catalog Message-ID: References: <20231030-sc8280xp-dpu-safe-lut-v1-1-6d485d7b428f@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231030-sc8280xp-dpu-safe-lut-v1-1-6d485d7b428f@quicinc.com> X-Spam-Status: No, score=-1.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 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]); Tue, 31 Oct 2023 05:35:17 -0700 (PDT) On Mon, Oct 30, 2023 at 04:23:20PM -0700, 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. I ran some tests with a gigabit ethernet adapter to get an idea of how this performs in comparison to using lazy iommu mode ("non-strict"): 6.6 6.6-lazy 6.6-dpu 6.6-dpu-lazy iperf3 recv 114 941 941 941 MBit/s iperf3 send 124 891 703 940 MBit/s scp recv 14.6 110 110 111 MB/s scp send 12.5 98.9 91.5 110 MB/s This patch in itself indeed improves things quite a bit, but there is still some performance that can be gained by using lazy iommu mode. Notably, lazy mode with this patch applied appears to saturate the link in both directions. Tested-by: Johan Hovold Johan