Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp494501pxb; Wed, 13 Jan 2021 08:33:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJyOIR8fgv+gwVsG34lXUoQ2ZPgLYVSbHmq7tyYmAMWFX0yVYdDWdNm6nKpW3d8czC7BdPs2 X-Received: by 2002:a05:6402:1f4:: with SMTP id i20mr839631edy.180.1610555582625; Wed, 13 Jan 2021 08:33:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610555582; cv=none; d=google.com; s=arc-20160816; b=dar7Aac7CDyVz7dCf0Gc0U+D+1SP07GJxlie7t86p7zn7llAQvG0R1w3TNRglHl3aG mffTEGHkMEYRDXAjTIC0pyvgbU4AQYDJ0YUjnk3tPPeRoj8iyhI9TPTODZR5NaLiBUjp k+I7ZCNww8BzJ/fppdzCZ7vz5E814IOcakwe1lQdALx7/Hu8gbJkPBTbiSYJJnhziNyV 2AEREyDUjIFfA830K9cTTWo3r7mytZ3ITGAG60BnYUlbTGojf5NH2cGtlkuznf+FNpDF Y1pOoINPApKj9tgyqhm979d2t1Mv8jgzg60zI1tpNBet49BmA+BR6zpb1q0YHS1zVJPs /eAA== 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=esyr/QuhbcNU0IaV2vshMN1wy/wuDAxQjEPBackN/hI=; b=0UkOdwCv7GZz9Gm7vaXN8Pcx5gKPtCRSQatXxyAKPQQWHBT4TBqQtpCmDwNYU6o3Vw wEJdpn/OY0WSFa/Ga7RSyH+tX8UqD2Dq9L9/lL6w4Yriz90U2O9pt2bbLxIIi5Rjn0C3 ZrfwI0pvA2Qgr5jls9AkvO0vvUSdeHrJBcWIgIgMVjEAO4Lb6m8ddwU4xCes9YamW+TX wWkE14IDWALtXoCGO9cmPCD1tKaYfii+Q2PzEp0/wSpJs8D+s7G9mpP2u87MKQgnIFKb NIf5PvsIfdOuWKXA7qD4l1JElKpxFIyDiULFQwsFBKyKltKWJ7m9bXINFBqikeIRcrMe S3Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KzfB2jvU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e19si1175398edy.553.2021.01.13.08.32.35; Wed, 13 Jan 2021 08:33:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KzfB2jvU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727437AbhAMQbf (ORCPT + 99 others); Wed, 13 Jan 2021 11:31:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:45422 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726880AbhAMQbe (ORCPT ); Wed, 13 Jan 2021 11:31:34 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id E1EFA2339D; Wed, 13 Jan 2021 16:30:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610555454; bh=ZwgOhhI4AHfEU9tEg0jPf24FQ+Kv3s86YiZ+XYbhOI4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KzfB2jvUagyvI0d9iO5zuPGkkaIq4u7YgubiCGqQ/81nHbM9JzGBuGYrTd+zSklW7 FrvEp6Jbhu+oC9nvdEP+6HzNfiUoFc5157zaQCkoyFw4/rZ57k+et9ux6gW3ZdH1OI NlyyJtHg5RALhgp62GYNCvZkSkkloTVNIPoZPcB9/+mkvMgO3PYEBM7w6VYox//O2p vDjxb8TlsnL2sHVwvZN2Ms/APPCJ/yTOkJhJfaxnuBmBK9KwPP3SyN5k0Q+gVuENnS m3Y6W6bD/+iBBTLlhrqvQCGCLN3YbMteOWUICAj5KaBxW0Jad5X3QWqWgPJQy3R+mJ ygy0xJKLzmIDw== Date: Wed, 13 Jan 2021 22:00:48 +0530 From: Vinod Koul To: Peter Ujfalusi Cc: dan.j.williams@intel.com, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, vigneshr@ti.com, grygorii.strashko@ti.com, kishon@ti.com Subject: Re: [PATCH v2 0/3] dmaengine: ti: k3-udma: memcpy throughput improvement Message-ID: <20210113163048.GV2771@vkoul-mobl> References: <20210113114923.9231-1-peter.ujfalusi@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210113114923.9231-1-peter.ujfalusi@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13-01-21, 13:49, Peter Ujfalusi wrote: > Hi, > > Changes since v1: > - Added Kishon's tested-by to the first two patch > - Moved the variable definitions to the start of their respective functions > - Remove braces where they are not needed > - correct indentation of cases > - additional patch to clean up the ret = 0 initializations in tisci channel configuration > functions, no functional changes. > > Newer members of the KS3 family (after AM654) have support for burst_size > configuration for each DMA channel. > > The HW default value is 64 bytes but on higher throughput channels it can be > increased to 256 bytes (UCHANs) or 128 byes (HCHANs). > > Aligning the buffers and length of the transfer to the burst size also increases > the throughput. > > Numbers gathered on j721e (UCHAN pair): > echo 8000000 > /sys/module/dmatest/parameters/test_buf_size > echo 2000 > /sys/module/dmatest/parameters/timeout > echo 50 > /sys/module/dmatest/parameters/iterations > echo 1 > /sys/module/dmatest/parameters/max_channels > > Prior to this patch: ~1.3 GB/s > After this patch: ~1.8 GB/s > with 1 byte alignment: ~1.7 GB/s Applied, thanks -- ~Vinod