<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/drivers/dma/dmatest.c, branch linux-5.1.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-5.1.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-5.1.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2019-03-14T16:11:54Z</updated>
<entry>
<title>Merge tag 'dmaengine-5.1-rc1' of git://git.infradead.org/users/vkoul/slave-dma</title>
<updated>2019-03-14T16:11:54Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2019-03-14T16:11:54Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=31ef489a026ef2c07383ef336dc9b6601c7b9b93'/>
<id>urn:sha1:31ef489a026ef2c07383ef336dc9b6601c7b9b93</id>
<content type='text'>
Pull dmaengine updates from Vinod Koul:

 - dmatest updates for modularizing common struct and code

 - remove SG support for VDMA xilinx IP and updates to driver

 - Update to dw driver to support Intel iDMA controllers multi-block
   support

 - tegra updates for proper reporting of residue

 - Add Snow Ridge ioatdma device id and support for IOATDMA v3.4

 - struct_size() usage and useless LIST_HEAD cleanups in subsystem.

 - qDMA controller driver for Layerscape SoCs

 - stm32-dma PM Runtime support

 - And usual updates to imx-sdma, sprd, Documentation, fsl-edma,
   bcm2835, qcom_hidma etc

* tag 'dmaengine-5.1-rc1' of git://git.infradead.org/users/vkoul/slave-dma: (81 commits)
  dmaengine: imx-sdma: fix consistent dma test failures
  dmaengine: imx-sdma: add a test for imx8mq multi sdma devices
  dmaengine: imx-sdma: add clock ratio 1:1 check
  dmaengine: dmatest: move test data alloc &amp; free into functions
  dmaengine: dmatest: add short-hand `buf_size` var in dmatest_func()
  dmaengine: dmatest: wrap src &amp; dst data into a struct
  dmaengine: ioatdma: support latency tolerance report (LTR) for v3.4
  dmaengine: ioatdma: add descriptor pre-fetch support for v3.4
  dmaengine: ioatdma: disable DCA enabling on IOATDMA v3.4
  dmaengine: ioatdma: Add Snow Ridge ioatdma device id
  dmaengine: sprd: Change channel id to slave id for DMA cell specifier
  dt-bindings: dmaengine: sprd: Change channel id to slave id for DMA cell specifier
  dmaengine: mv_xor: Use correct device for DMA API
  Documentation :dmaengine: clarify DMA desc. pointer after submission
  Documentation: dmaengine: fix dmatest.rst warning
  dmaengine: k3dma: Add support for dma-channel-mask
  dmaengine: k3dma: Delete axi_config
  dmaengine: k3dma: Upgrade k3dma driver to support hisi_asp_dma hardware
  Documentation: bindings: dma: Add binding for dma-channel-mask
  Documentation: bindings: k3dma: Extend the k3dma driver binding to support hisi-asp
  ...
</content>
</entry>
<entry>
<title>dmaengine: dmatest: move test data alloc &amp; free into functions</title>
<updated>2019-02-25T17:43:50Z</updated>
<author>
<name>Alexandru Ardelean</name>
<email>alexandru.ardelean@analog.com</email>
</author>
<published>2019-02-12T15:11:39Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=3b6679f91e6f7772b7bfa3417b637f09e5998357'/>
<id>urn:sha1:3b6679f91e6f7772b7bfa3417b637f09e5998357</id>
<content type='text'>
This patch starts to take advantage of the `dmatest_data` struct by moving
the common allocation &amp; free-ing bits into functions.

Signed-off-by: Alexandru Ardelean &lt;alexandru.ardelean@analog.com&gt;
Signed-off-by: Vinod Koul &lt;vkoul@kernel.org&gt;
</content>
</entry>
<entry>
<title>dmaengine: dmatest: add short-hand `buf_size` var in dmatest_func()</title>
<updated>2019-02-25T17:43:50Z</updated>
<author>
<name>Alexandru Ardelean</name>
<email>alexandru.ardelean@analog.com</email>
</author>
<published>2019-02-12T15:11:38Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=41d00bb7a60fadbae76e1826bd27a320e18c769f'/>
<id>urn:sha1:41d00bb7a60fadbae76e1826bd27a320e18c769f</id>
<content type='text'>
This is just a cosmetic change, since this variable gets used quite a bit
inside the dmatest_func() routine.

Signed-off-by: Alexandru Ardelean &lt;alexandru.ardelean@analog.com&gt;
Signed-off-by: Vinod Koul &lt;vkoul@kernel.org&gt;
</content>
</entry>
<entry>
<title>dmaengine: dmatest: wrap src &amp; dst data into a struct</title>
<updated>2019-02-25T17:43:50Z</updated>
<author>
<name>Alexandru Ardelean</name>
<email>alexandru.ardelean@analog.com</email>
</author>
<published>2019-02-12T15:11:37Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=361deb7243d275ba8ce6e27db7727fce6fd39f3e'/>
<id>urn:sha1:361deb7243d275ba8ce6e27db7727fce6fd39f3e</id>
<content type='text'>
This change wraps the data for the source &amp; destination buffers into a
`struct dmatest_data`. The rename patterns are:
 * src_cnt -&gt; src-&gt;cnt
 * dst_cnt -&gt; dst-&gt;cnt
 * src_off -&gt; src-&gt;off
 * dst_off -&gt; dst-&gt;off
 * thread-&gt;srcs -&gt; src-&gt;aligned
 * thread-&gt;usrcs -&gt; src-&gt;raw
 * thread-&gt;dsts -&gt; dst-&gt;aligned
 * thread-&gt;udsts -&gt; dst-&gt;raw

The intent is to make a function that moves duplicate parts of the code
into common alloc &amp; free functions, which will unclutter the
`dmatest_func()` function.

Signed-off-by: Alexandru Ardelean &lt;alexandru.ardelean@analog.com&gt;
Signed-off-by: Vinod Koul &lt;vkoul@kernel.org&gt;
</content>
</entry>
<entry>
<title>dmaengine: dmatest: Abort test in case of mapping error</title>
<updated>2019-02-04T09:04:22Z</updated>
<author>
<name>Andy Shevchenko</name>
<email>andriy.shevchenko@linux.intel.com</email>
</author>
<published>2019-01-30T19:48:44Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=6454368a804c4955ccd116236037536f81e5b1f1'/>
<id>urn:sha1:6454368a804c4955ccd116236037536f81e5b1f1</id>
<content type='text'>
In case of mapping error the DMA addresses are invalid and continuing
will screw system memory or potentially something else.

[  222.480310] dmatest: dma0chan7-copy0: summary 1 tests, 3 failures 6 iops 349 KB/s (0)
...
[  240.912725] check: Corrupted low memory at 00000000c7c75ac9 (2940 phys) = 5656000000000000
[  240.921998] check: Corrupted low memory at 000000005715a1cd (2948 phys) = 279f2aca5595ab2b
[  240.931280] check: Corrupted low memory at 000000002f4024c0 (2950 phys) = 5e5624f349e793cf
...

Abort any test if mapping failed.

Fixes: 4076e755dbec ("dmatest: convert to dmaengine_unmap_data")
Cc: Dan Williams &lt;dan.j.williams@intel.com&gt;
Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Signed-off-by: Vinod Koul &lt;vkoul@kernel.org&gt;
</content>
</entry>
<entry>
<title>dmaengine: dmatest: Add transfer_size parameter</title>
<updated>2018-12-17T06:15:11Z</updated>
<author>
<name>Seraj Alijan</name>
<email>seraj.alijan@sondrel.com</email>
</author>
<published>2018-12-10T08:52:39Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=13396a130ffec45a736bcc08ad92d35e45f67dd8'/>
<id>urn:sha1:13396a130ffec45a736bcc08ad92d35e45f67dd8</id>
<content type='text'>
Existing transfer size "len" is either generated randomly or set to the
size of test_buf_size. In some cases we need to explicitly specify a
transfer size that is different from the buffer size and non aligned to
test the target device's ability to handle unaligned transfers.

This patch adds optional parameter "transfer_size" to allow setting
explicit transfer size for dma transfers.

Signed-off-by: Seraj Alijan &lt;seraj.alijan@sondrel.com&gt;
Signed-off-by: Vinod Koul &lt;vkoul@kernel.org&gt;
</content>
</entry>
<entry>
<title>dmaengine: dmatest: Add alignment parameter</title>
<updated>2018-12-17T06:15:11Z</updated>
<author>
<name>Seraj Alijan</name>
<email>seraj.alijan@sondrel.com</email>
</author>
<published>2018-12-10T08:52:37Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=a875abfadf265cb1970036898068b34fc63759b7'/>
<id>urn:sha1:a875abfadf265cb1970036898068b34fc63759b7</id>
<content type='text'>
Add parameter "alignment" to allow setting the address alignment
manually. Having the ability to configure address alignment from
user space adds new testing capabilities where different alignments can
be configured for testing without having to modify the dma device
alignment properties.

If configured, the alignment value will override the device alignment
property of the target device.

Signed-off-by: Seraj Alijan &lt;seraj.alijan@sondrel.com&gt;
Signed-off-by: Vinod Koul &lt;vkoul@kernel.org&gt;
</content>
</entry>
<entry>
<title>dmaengine: dmatest: Use fixed point div to calculate iops</title>
<updated>2018-12-17T06:15:11Z</updated>
<author>
<name>Seraj Alijan</name>
<email>seraj.alijan@sondrel.com</email>
</author>
<published>2018-12-10T08:52:34Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=6138f967bccc7a84a167769c2e045c346ad37191'/>
<id>urn:sha1:6138f967bccc7a84a167769c2e045c346ad37191</id>
<content type='text'>
Use fixed point division to calculate iops to prevent reporting 0 iops
when operations last for longer than a second.

Signed-off-by: Seraj Alijan &lt;seraj.alijan@sondrel.com&gt;
Signed-off-by: Vinod Koul &lt;vkoul@kernel.org&gt;
</content>
</entry>
<entry>
<title>dmaengine: dmatest: Add support for multi channel testing</title>
<updated>2018-12-17T06:15:11Z</updated>
<author>
<name>Seraj Alijan</name>
<email>seraj.alijan@sondrel.com</email>
</author>
<published>2018-12-10T08:52:31Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=d53513d5dc285d9a95a534fc41c5c08af6b60eac'/>
<id>urn:sha1:d53513d5dc285d9a95a534fc41c5c08af6b60eac</id>
<content type='text'>
Add support for running tests on multiple channels simultaneously as the
driver currently limits to 1 channel per test run. This will add support
for stress testing DMA controllers with multi channel capabilities.

This is done by adding a callback function to the "channel" parameter
that registers the requested channel prior to the "run" parameter being
set to 1. Each time the "channel" parameter is populated with a new
dma channel, a new test is appended to the thread queue. Once the "run"
parameter is set to 1, the test will kick start all pending threads.

Signed-off-by: Seraj Alijan &lt;seraj.alijan@sondrel.com&gt;
Signed-off-by: Vinod Koul &lt;vkoul@kernel.org&gt;
</content>
</entry>
<entry>
<title>dmaengine: dmatest: fix a small memory leak in dmatest_func()</title>
<updated>2018-12-05T08:07:46Z</updated>
<author>
<name>Dan Carpenter</name>
<email>dan.carpenter@oracle.com</email>
</author>
<published>2018-12-03T14:49:33Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=3f3c75541ffe082194e48ea9aa5edf2341f77753'/>
<id>urn:sha1:3f3c75541ffe082194e48ea9aa5edf2341f77753</id>
<content type='text'>
We recently moved the test size tests around but it means we need to
adjust the error handling as well or we leak the "pq_coefs" memory.  I
updated the label name to reflect that we're freeing coefs.

Fixes: 787d3083caf8 ("dmaengine: dmatest: move size checks earlier in function")
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Vinod Koul &lt;vkoul@kernel.org&gt;
</content>
</entry>
</feed>
