Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1690425 > unrolled thread

Re: [PATCH V3 2/2] dmaengine: dmatest: add support for memset test

Started byVinod Koul <vinod.koul@intel.com>
First post2017-07-18 18:30 +0200
Last post2017-07-18 18:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH V3 2/2] dmaengine: dmatest: add support for memset test Vinod Koul <vinod.koul@intel.com> - 2017-07-18 18:30 +0200

#1690425 — Re: [PATCH V3 2/2] dmaengine: dmatest: add support for memset test

FromVinod Koul <vinod.koul@intel.com>
Date2017-07-18 18:30 +0200
SubjectRe: [PATCH V3 2/2] dmaengine: dmatest: add support for memset test
Message-ID<u4DxM-4G9-21@gated-at.bofh.it>
On Thu, Jun 29, 2017 at 10:30:58PM -0400, Sinan Kaya wrote:
> Introducing memset test into dmatest. This change allows us to test
> memset capable HW using the dmatest test procedure. The new dmatest
> value for memset is 2 and it is not the default value.
> 
> Memset support patch shares the same code path as the other dmatest
> code to reuse as much as we can.
> 
> The first value inside the source buffer is used as a pattern
> to fill in the destination buffer space.
> 
> Prior to running the test, source/destination buffers are initialized
> in the current code.
> 
> "The remaining bits are the inverse of a counter which increments by
>  one for each byte address."
> 
> Memset test will fill in the upper bits of pattern with the inverse of
> fixed counter value 1 as opposed to an incrementing value in a loop.
> 
> An example run is as follows:
> 
> echo dma0chan0 > /sys/module/dmatest/parameters/channel
> echo 2 >  /sys/module/dmatest/parameters/dmatest
> echo 2000 >  /sys/module/dmatest/parameters/timeout
> echo 10 >  /sys/module/dmatest/parameters/iterations
> echo 1 >  /sys/module/dmatest/parameters/run

Applied, thanks

-- 
~Vinod

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web