<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックRe: sdma_test failed on imx6q</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/sdma-test-failed-on-imx6q/m-p/247226#M21738</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also have this question, sdma_prep_slave_sg return NULL, sdma_prep_dma_sg return NULL ,sdma_prep_dma_memcpy return NULL&amp;nbsp; .&lt;/P&gt;&lt;P&gt;My software&amp;nbsp; : linux-4.1.18&lt;/P&gt;&lt;P&gt;Board&amp;nbsp; : i.mx6q&lt;/P&gt;&lt;P&gt;I want to use sdma to memory to memory, how can I solve this question?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jan 2017 01:17:44 GMT</pubDate>
    <dc:creator>sharpjison</dc:creator>
    <dc:date>2017-01-04T01:17:44Z</dc:date>
    <item>
      <title>sdma_test failed on imx6q</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/sdma-test-failed-on-imx6q/m-p/247224#M21736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have recently downloaded imx-test-3.0.35-4.0.0.tar.gz from &lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Frepository.timesys.com%2Fbuildsources%2Fi%2Fimx-test%2F" rel="nofollow" target="_blank"&gt;Index of /buildsources/i/imx-test&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;my kernel is 3.0.35-05524-g8513494-dirty from Android 13.4.1 for imx6.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I build the mxc_sdma_memcopy_test.c as a kernel modules and mxc_sdma_test.c as an app,&lt;/P&gt;&lt;P&gt;However when i run the mxc_sdma_test, i got error like this:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unable to handle kernel NULL pointer dereference at virtual address 00000010&lt;/P&gt;&lt;P&gt;pgd = d2370000&lt;/P&gt;&lt;P&gt;[00000010] *pgd=26163831, *pte=00000000, *ppte=00000000&lt;/P&gt;&lt;P&gt;Internal error: Oops: 17 [#1] PREEMPT SMP&lt;/P&gt;&lt;P&gt;Modules linked in: sdma_test&lt;/P&gt;&lt;P&gt;CPU: 0&amp;nbsp;&amp;nbsp;&amp;nbsp; Not tainted&amp;nbsp; (3.0.35-05524-g8513494-dirty #4)&lt;/P&gt;&lt;P&gt;PC is at sdma_write+0x27c/0x2e0 [sdma_test]&lt;/P&gt;&lt;P&gt;LR is at sdma_write+0x278/0x2e0 [sdma_test]&lt;/P&gt;&lt;P&gt;pc : [&amp;lt;bf00035c&amp;gt;]&amp;nbsp;&amp;nbsp;&amp;nbsp; lr : [&amp;lt;bf000358&amp;gt;]&amp;nbsp;&amp;nbsp;&amp;nbsp; psr: 60000013&lt;/P&gt;&lt;P&gt;sp : d236ff20&amp;nbsp; ip : c0267240&amp;nbsp; fp : 00000000&lt;/P&gt;&lt;P&gt;r10: 00000000&amp;nbsp; r9 : d236e000&amp;nbsp; r8 : 00000000&lt;/P&gt;&lt;P&gt;r7 : c07f4ce0&amp;nbsp; r6 : bf000b68&amp;nbsp; r5 : 00000000&amp;nbsp; r4 : 00000400&lt;/P&gt;&lt;P&gt;r3 : 00000000&amp;nbsp; r2 : 00000003&amp;nbsp; r1 : bf0003c0&amp;nbsp; r0 : 00000000&lt;/P&gt;&lt;P&gt;Flags: nZCv&amp;nbsp; IRQs on&amp;nbsp; FIQs on&amp;nbsp; Mode SVC_32&amp;nbsp; ISA ARM&amp;nbsp; Segment user&lt;/P&gt;&lt;P&gt;Control: 10c53c7d&amp;nbsp; Table: 2237004a&amp;nbsp; DAC: 00000015&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SP: 0xd236fea0:&lt;/P&gt;&lt;P&gt;fea0&amp;nbsp; 00000000 c004ead4 00100100 00200200 c06cf710 00000c00 2234ec00 2234f000&lt;/P&gt;&lt;P&gt;fec0&amp;nbsp; 0000040f 00000007 bf000b68 c07f4ce0 00000000 c0044b50 00000000 bf0003c0&lt;/P&gt;&lt;P&gt;fee0&amp;nbsp; 00000003 00000000 00000400 00000000 bf000b68 c07f4ce0 00000000 d236e000&lt;/P&gt;&lt;P&gt;ff00&amp;nbsp; 00000000 00000000 c0267240 d236ff20 bf000358 bf00035c 60000013 ffffffff&lt;/P&gt;&lt;P&gt;ff20&amp;nbsp; 00000000 00000000 00000001 00000000 00000000 00040028 00000003 00000002&lt;/P&gt;&lt;P&gt;ff40&amp;nbsp; 00000000 d2322ea0 00000000 d2322ea0 00000000 be99fcbc d236ff88 c00fdc04&lt;/P&gt;&lt;P&gt;ff60&amp;nbsp; d2322ea0 d235a000 00000000 00000000 d2322ea0 be99fcbc 00000000 c00fde8c&lt;/P&gt;&lt;P&gt;ff80&amp;nbsp; 00000026 00000000 00000000 00000000 00000000 be99fd18 00008411 00000004&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IP: 0xc02671c0:&lt;/P&gt;&lt;P&gt;71c0&amp;nbsp; e517203c e59d101c e5070044 e2870030 e79a3003 e7832201 eaffffed e3a00000&lt;/P&gt;&lt;P&gt;71e0&amp;nbsp; eaffffeb e59a0000 e59d201c e58d3000 e59f1040 e59d3014 eb0067c5 eaffffe7&lt;/P&gt;&lt;P&gt;7200&amp;nbsp; e59a0000 e59d201c e58d3000 e1a03008 e59f1024 eb0067be eaffffe0 c06cf730&lt;/P&gt;&lt;P&gt;7220&amp;nbsp; c06b5a68 c05986a0 c06cf7d8 c06b6cbc c06cf728 c06cf740 c06cf764 c06cf7a0&lt;/P&gt;&lt;P&gt;7240&amp;nbsp; e92d4ff0 e1a05001 e5901050 e24dd014 e1a04000 e1a08002 e1a07003 e2406078&lt;/P&gt;&lt;P&gt;7260&amp;nbsp; e3510001 e510a078 e5109074 0a00002a e3a03001 e3a02002 e5803050 e1a03008&lt;/P&gt;&lt;P&gt;7280&amp;nbsp; e5002028 e59f2210 e59a1000 e59f020c e58d9000 eb0067f7 e5047070 e1a00006&lt;/P&gt;&lt;P&gt;72a0&amp;nbsp; ebfffee1 e2503000 1a00006e e3001155 e1580001 8a000065 e3580000 e5843054&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;R7: 0xc07f4c60:&lt;/P&gt;&lt;P&gt;4c60&amp;nbsp; c07f1660 c07f1660 c10d90a0 bfe07000 c07f1de0 c07f1de0 c10d6780 bfe06000&lt;/P&gt;&lt;P&gt;4c80&amp;nbsp; c07f2480 c07f2480 c10d6dc0 bfe05000 c07f2200 c07f2200 c10d6a00 bfe04000&lt;/P&gt;&lt;P&gt;4ca0&amp;nbsp; c07f1d20 c07f1d20 c10d6020 bfe03000 c07f1720 c07f1720 c10d67a0 bfe02000&lt;/P&gt;&lt;P&gt;4cc0&amp;nbsp; c07f2100 c07f2100 c10d6000 bfe01000 c07f1ac0 c07f1ac0 00000000 00000000&lt;/P&gt;&lt;P&gt;4ce0&amp;nbsp; c0916000 00000000 00000000 00000000 d9000000 00032400 00040000 00000000&lt;/P&gt;&lt;P&gt;4d00&amp;nbsp; 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000&lt;/P&gt;&lt;P&gt;4d20&amp;nbsp; 00000000 00000000 000000ab 00000000 c07adb00 c0789930 c0041030 00000000&lt;/P&gt;&lt;P&gt;4d40&amp;nbsp; d6000ea0 d6000f00 00000000 00000000 00000000 d6298aa0 d2338b2c bf000000&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;R9: 0xd236df80:&lt;/P&gt;&lt;P&gt;df80&amp;nbsp; 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000&lt;/P&gt;&lt;P&gt;dfa0&amp;nbsp; 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000&lt;/P&gt;&lt;P&gt;dfc0&amp;nbsp; 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000&lt;/P&gt;&lt;P&gt;dfe0&amp;nbsp; 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000&lt;/P&gt;&lt;P&gt;e000&amp;nbsp; 00000000 00000002 00000000 d67ba060 c07a5520 00000000 00000015 c11200e0&lt;/P&gt;&lt;P&gt;e020&amp;nbsp; d236e000 c003e0e0 d67ba060 d6c73ba0 00000000 c07911a0 d236fe54 d236fdb0&lt;/P&gt;&lt;P&gt;e040&amp;nbsp; c0570eac 00000000 00000000 00000000 00000000 00000000 01000000 00000000&lt;/P&gt;&lt;P&gt;e060&amp;nbsp; 40028820 00000000 00000000 00000000 00000000 00000000 00000000 00000000&lt;/P&gt;&lt;P&gt;Process test (pid: 1393, stack limit = 0xd236e2f0)&lt;/P&gt;&lt;P&gt;Stack: (0xd236ff20 to 0xd2370000)&lt;/P&gt;&lt;P&gt;ff20: 00000000 00000000 00000001 00000000 00000000 00040028 00000003 00000002&lt;/P&gt;&lt;P&gt;ff40: 00000000 d2322ea0 00000000 d2322ea0 00000000 be99fcbc d236ff88 c00fdc04&lt;/P&gt;&lt;P&gt;ff60: d2322ea0 d235a000 00000000 00000000 d2322ea0 be99fcbc 00000000 c00fde8c&lt;/P&gt;&lt;P&gt;ff80: 00000026 00000000 00000000 00000000 00000000 be99fd18 00008411 00000004&lt;/P&gt;&lt;P&gt;ffa0: c0045304 c0045180 00000000 be99fd18 00000003 be99fcbc 00000000 be99fcbc&lt;/P&gt;&lt;P&gt;ffc0: 00000000 be99fd18 00008411 00000004 00000000 00000000 400ca000 00000000&lt;/P&gt;&lt;P&gt;ffe0: 00000000 be99fcb4 00008525 4017425c 40000010 00000003 28e04021 28ad0401&lt;/P&gt;&lt;P&gt;[&amp;lt;bf00035c&amp;gt;] (sdma_write+0x27c/0x2e0 [sdma_test]) from [&amp;lt;c00fdc04&amp;gt;] (vfs_write+0x9c/0x140)&lt;/P&gt;&lt;P&gt;[&amp;lt;c00fdc04&amp;gt;] (vfs_write+0x9c/0x140) from [&amp;lt;c00fde8c&amp;gt;] (sys_write+0x38/0x70)&lt;/P&gt;&lt;P&gt;[&amp;lt;c00fde8c&amp;gt;] (sys_write+0x38/0x70) from [&amp;lt;c0045180&amp;gt;] (ret_fast_syscall+0x0/0x30)&lt;/P&gt;&lt;P&gt;Code: e58d5000 e59cc054 e12fff3c e59f1058 (e5902010)&lt;/P&gt;&lt;P&gt;---[ end trace 2d5f4b7560270f24 ]---&lt;/P&gt;&lt;P&gt;Segmentation fault&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After i learn the source code and imx-sdma.c from kernel, it looks like &lt;/P&gt;&lt;P&gt;when dma_channel.peripheral_type is set to IMX_DMATYPE_MEMORY， &lt;/P&gt;&lt;P&gt;the filed sdmac-&amp;gt;word_size is left unconfiged(default zero) so sdma_prep_slave_sg return NULL&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anyone who has met this problem or anyother examples on using of dmaengine(sdma)?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336127"&gt;imx-sdma.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336127"&gt;mxc_sdma_memcopy_test.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336127"&gt;mxc_sdma_test.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2013 04:33:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/sdma-test-failed-on-imx6q/m-p/247224#M21736</guid>
      <dc:creator>gangli</dc:creator>
      <dc:date>2013-07-01T04:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: sdma_test failed on imx6q</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/sdma-test-failed-on-imx6q/m-p/247225#M21737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think sdmac-&amp;gt;word_size is being set correctly in sdma_control(..) in imx-sdma.c for your case. In the mxc_sdma_memcopy_test.c sdma_write(...) function, the line:&lt;/P&gt;&lt;P&gt;dma_m2m_config.dst_addr_width = DMA_SLAVE_BUSWIDTH_2_BYTES;&lt;/P&gt;&lt;P&gt;sets the word_size param in the imx-sdma.c driver. So I suspect your problem is somewhere else. Have you tried running this test in yocto linux or ltib? Perhaps there is a kernel mismatch in your android kernel?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 15:13:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/sdma-test-failed-on-imx6q/m-p/247225#M21737</guid>
      <dc:creator>varsmolta</dc:creator>
      <dc:date>2013-08-13T15:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: sdma_test failed on imx6q</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/sdma-test-failed-on-imx6q/m-p/247226#M21738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also have this question, sdma_prep_slave_sg return NULL, sdma_prep_dma_sg return NULL ,sdma_prep_dma_memcpy return NULL&amp;nbsp; .&lt;/P&gt;&lt;P&gt;My software&amp;nbsp; : linux-4.1.18&lt;/P&gt;&lt;P&gt;Board&amp;nbsp; : i.mx6q&lt;/P&gt;&lt;P&gt;I want to use sdma to memory to memory, how can I solve this question?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 01:17:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/sdma-test-failed-on-imx6q/m-p/247226#M21738</guid>
      <dc:creator>sharpjison</dc:creator>
      <dc:date>2017-01-04T01:17:44Z</dc:date>
    </item>
  </channel>
</rss>

