From: Kishon Vijay Abraham I <kishon@ti.com>
To: <vkoul@kernel.org>
Cc: <dan.j.williams@intel.com>, <linux-kernel@vger.kernel.org>,
<dmaengine@vger.kernel.org>, <vigneshr@ti.com>,
<grygorii.strashko@ti.com>, <peter.ujfalusi@gmail.com>
Subject: Re: [PATCH 0/2] dmaengine: ti: k3-udma: memcpy throughput improvement
Date: Tue, 12 Jan 2021 09:07:03 +0530 [thread overview]
Message-ID: <b3aa1dc4-170c-36f5-6095-d9861ecc9a8e@ti.com> (raw)
In-Reply-To: <20201214081310.10746-1-peter.ujfalusi@ti.com>
Hi,
On 14/12/20 1:43 pm, Peter Ujfalusi wrote:
> Hi,
>
> 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
>
> The patches are on top of the AM64 support series:
> https://lore.kernel.org/lkml/20201208090440.31792-1-peter.ujfalusi@ti.com/
FWIW, tested this series with PCIe RC<->EP (using pcitest utility)
Without this series
READ => Size: 67108864 bytes DMA: YES Time: 0.137854270
seconds Rate: 475400 KB/s
WRITE => Size: 67108864 bytes DMA: YES Time: 0.049701495
seconds Rate: 1318592 KB/s
With this series
READ => Size: 67108864 bytes DMA: YES Time: 0.045611175
seconds Rate: 1436840 KB/s
WRITE => Size: 67108864 bytes DMA: YES Time: 0.042737440
seconds Rate: 1533456 KB/s
Tested-by: Kishon Vijay Abraham I <kishon@ti.com>
Thanks
Kishon
prev parent reply other threads:[~2021-01-12 3:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-14 8:13 [PATCH 0/2] dmaengine: ti: k3-udma: memcpy throughput improvement Peter Ujfalusi
2020-12-14 8:13 ` [PATCH 1/2] dmaengine: Extend the dmaengine_alignment for 128 and 256 bytes Peter Ujfalusi
2020-12-14 8:13 ` [PATCH 2/2] dmaengine: ti: k3-udma: Add support for burst_size configuration for mem2mem Peter Ujfalusi
2021-01-12 10:16 ` Vinod Koul
2021-01-13 7:39 ` Péter Ujfalusi
2021-01-13 10:43 ` Vinod Koul
2021-01-12 3:37 ` Kishon Vijay Abraham I [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b3aa1dc4-170c-36f5-6095-d9861ecc9a8e@ti.com \
--to=kishon@ti.com \
--cc=dan.j.williams@intel.com \
--cc=dmaengine@vger.kernel.org \
--cc=grygorii.strashko@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=peter.ujfalusi@gmail.com \
--cc=vigneshr@ti.com \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox