From: "Song Bao Hua (Barry Song)" <song.bao.hua@hisilicon.com>
To: Christoph Hellwig <hch@lst.de>
Cc: "iommu@lists.linux-foundation.org"
<iommu@lists.linux-foundation.org>,
"robin.murphy@arm.com" <robin.murphy@arm.com>,
"m.szyprowski@samsung.com" <m.szyprowski@samsung.com>,
Linuxarm <linuxarm@huawei.com>,
"linux-kselftest@vger.kernel.org"
<linux-kselftest@vger.kernel.org>,
"xuwei (O)" <xuwei5@huawei.com>, Joerg Roedel <joro@8bytes.org>,
Will Deacon <will@kernel.org>, Shuah Khan <shuah@kernel.org>
Subject: RE: [PATCH v3 1/2] dma-mapping: add benchmark support for streaming DMA APIs
Date: Sun, 15 Nov 2020 00:11:15 +0000 [thread overview]
Message-ID: <5c4488dd28fc4869b7e67dd842ffa208@hisilicon.com> (raw)
In-Reply-To: <20201114165336.GA24844@lst.de>
> -----Original Message-----
> From: Christoph Hellwig [mailto:hch@lst.de]
> Sent: Sunday, November 15, 2020 5:54 AM
> To: Song Bao Hua (Barry Song) <song.bao.hua@hisilicon.com>
> Cc: iommu@lists.linux-foundation.org; hch@lst.de; robin.murphy@arm.com;
> m.szyprowski@samsung.com; Linuxarm <linuxarm@huawei.com>;
> linux-kselftest@vger.kernel.org; xuwei (O) <xuwei5@huawei.com>; Joerg
> Roedel <joro@8bytes.org>; Will Deacon <will@kernel.org>; Shuah Khan
> <shuah@kernel.org>
> Subject: Re: [PATCH v3 1/2] dma-mapping: add benchmark support for
> streaming DMA APIs
>
> Lots of > 80 char lines. Please fix up the style.
Checkpatch has changed 80 to 100. That's probably why my local checkpatch didn't report any warning:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bdc48fa11e46f867ea4d
I am happy to change them to be less than 80 if you like.
>
> I think this needs to set a dma mask as behavior for unlimited dma
> mask vs the default 32-bit one can be very different.
I actually prefer users bind real devices with real dma_mask to test rather than force to change
the dma_mask in this benchmark.
Some device might have 32bit dma_mask while some others might have unlimited. But both of
them can bind to this driver or unbind from it after the test is done. So users just need to bind
those different real devices with different real dma_mask to dma_benchmark.
This can reflect the real performance of the real device better, I think.
> I also think you need to be able to pass the direction or have different tests
> for directions. bidirectional is not exactly heavily used and pays
> more cache management penality.
For this, I'd like to increase a direction option in the test app and pass the option to the benchmark
driver.
Thanks
Barry
next prev parent reply other threads:[~2020-11-15 0:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-02 8:06 [PATCH v3 0/2] dma-mapping: provide a benchmark for streaming DMA mapping Barry Song
2020-11-02 8:06 ` [PATCH v3 1/2] dma-mapping: add benchmark support for streaming DMA APIs Barry Song
2020-11-02 9:18 ` John Garry
2020-11-02 9:37 ` Song Bao Hua (Barry Song)
2020-11-10 8:10 ` Song Bao Hua (Barry Song)
2020-11-10 8:38 ` John Garry
2020-11-11 1:29 ` Song Bao Hua (Barry Song)
[not found] ` <51f0c148-e2e3-e084-4021-ec5883919436@huawei.com>
2020-11-11 9:42 ` Song Bao Hua (Barry Song)
2020-11-14 16:53 ` Christoph Hellwig
2020-11-15 0:11 ` Song Bao Hua (Barry Song) [this message]
2020-11-15 8:45 ` Christoph Hellwig
2020-11-15 21:54 ` Song Bao Hua (Barry Song)
2020-11-02 8:06 ` [PATCH v3 2/2] selftests/dma: add test application for DMA_MAP_BENCHMARK Barry Song
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=5c4488dd28fc4869b7e67dd842ffa208@hisilicon.com \
--to=song.bao.hua@hisilicon.com \
--cc=hch@lst.de \
--cc=iommu@lists.linux-foundation.org \
--cc=joro@8bytes.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linuxarm@huawei.com \
--cc=m.szyprowski@samsung.com \
--cc=robin.murphy@arm.com \
--cc=shuah@kernel.org \
--cc=will@kernel.org \
--cc=xuwei5@huawei.com \
/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