<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/drivers/dma, branch 0.9</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>twr_vf600: fix some issues</title>
<updated>2012-07-12T07:37:50+00:00</updated>
<author>
<name>Hirofumi Yagi</name>
<email>yagi@lineo.co.jp</email>
</author>
<published>2012-07-12T07:37:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=0357f36e930e84dd701278c18d8d95b8cff649a6'/>
<id>0357f36e930e84dd701278c18d8d95b8cff649a6</id>
<content type='text'>
Mask DDR interrupt and disable OpenVG clock.
Update l2switch, eDMA and timer drivers.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Mask DDR interrupt and disable OpenVG clock.
Update l2switch, eDMA and timer drivers.
</pre>
</div>
</content>
</entry>
<entry>
<title>Update: DMA</title>
<updated>2012-07-03T21:15:22+00:00</updated>
<author>
<name>Katsunaga Kinoshita</name>
<email>katsu@katsu-ubuntu.(none)</email>
</author>
<published>2012-06-22T08:11:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=657fb3cfc1fd3f5b680088a55d03df2813724b56'/>
<id>657fb3cfc1fd3f5b680088a55d03df2813724b56</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>add: FEC &amp; eDMA</title>
<updated>2012-07-03T21:15:09+00:00</updated>
<author>
<name>yagi</name>
<email>yagi@ke66.alps.lineo.co.jp</email>
</author>
<published>2012-06-08T10:46:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=ca1aae2ad0eac8089afebf56da2fdaebd8580213'/>
<id>ca1aae2ad0eac8089afebf56da2fdaebd8580213</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>ENGR00177046: Add the platform dependency for PXP in Kconfig</title>
<updated>2012-07-03T20:57:47+00:00</updated>
<author>
<name>Robby Cai</name>
<email>R63905@freescale.com</email>
</author>
<published>2012-03-16T03:40:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=fc7995167e6d2a806faee9c728936785225eb093'/>
<id>fc7995167e6d2a806faee9c728936785225eb093</id>
<content type='text'>
If there's no dependency, build will be broken when do
`make ARCH=arm CROSS_COMPILE=&lt;cross-compiler path&gt; allmodconfig'
`make'
because PXP module will be turned on. This patch fixed it.

Signed-off-by: Robby Cai &lt;R63905@freescale.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If there's no dependency, build will be broken when do
`make ARCH=arm CROSS_COMPILE=&lt;cross-compiler path&gt; allmodconfig'
`make'
because PXP module will be turned on. This patch fixed it.

Signed-off-by: Robby Cai &lt;R63905@freescale.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ENGR00174299-1: driver part: Add ePxP v2 DMAENGINE driver</title>
<updated>2012-07-03T20:57:09+00:00</updated>
<author>
<name>Robby Cai</name>
<email>R63905@freescale.com</email>
</author>
<published>2012-02-13T06:36:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=7bebd79b2e94cbc9312b0dd8ba77b44a65242f24'/>
<id>7bebd79b2e94cbc9312b0dd8ba77b44a65242f24</id>
<content type='text'>
add ePxP v2 DMAENGINE driver

Signed-off-by: Robby Cai &lt;R63905@freescale.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
add ePxP v2 DMAENGINE driver

Signed-off-by: Robby Cai &lt;R63905@freescale.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ENGR00173731-6 MX6Q/DMA : enable the mxs-dma for mx6q</title>
<updated>2012-07-03T20:56:51+00:00</updated>
<author>
<name>Huang Shijie</name>
<email>b32955@freescale.com</email>
</author>
<published>2012-02-01T08:14:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=cf1a13188d4358a26353de9f21fe4f366d0d38da'/>
<id>cf1a13188d4358a26353de9f21fe4f366d0d38da</id>
<content type='text'>
enable the mxs-dma for mx6q.

Signed-off-by: Huang Shijie &lt;b32955@freescale.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
enable the mxs-dma for mx6q.

Signed-off-by: Huang Shijie &lt;b32955@freescale.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ENGR00173731-3 mxs-dma : rewrite the last parameter of mxs_dma_prep_slave_sg()</title>
<updated>2012-07-03T20:56:50+00:00</updated>
<author>
<name>Huang Shijie</name>
<email>b32955@freescale.com</email>
</author>
<published>2012-01-18T02:51:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=5380b34c1581410b72bc4c8fbc3af8bfc200f9e0'/>
<id>5380b34c1581410b72bc4c8fbc3af8bfc200f9e0</id>
<content type='text'>
[1] Background :
    The GPMI does ECC read page operation with a DMA chain consist of three DMA
    Command Structures. The middle one of the chain is used to enable the BCH,
    and read out the NAND page.

    The WAIT4END(wait for command end) is a comunication signal between
    the GPMI and MXS-DMA.

[2] The current DMA code sets the WAIT4END bit at the last one, such as:

    +-----+               +-----+                      +-----+
    | cmd | ------------&gt; | cmd | ------------------&gt;  | cmd |
    +-----+               +-----+                      +-----+
                                                          ^
                                                          |
                                                          |
                                                     set WAIT4END here

    This chain works fine in the mx23/mx28.

[3] But in the new GPMI version (used in MX50/MX60), the WAIT4END bit should
    be set not only at the last DMA Command Structure,
    but also at the middle one, such as:

    +-----+               +-----+                      +-----+
    | cmd | ------------&gt; | cmd | ------------------&gt;  | cmd |
    +-----+               +-----+                      +-----+
                             ^                            ^
                             |                            |
                             |                            |
                        set WAIT4END here too        set WAIT4END here

    If we do not set WAIT4END, the BCH maybe stalls in "ECC reading page" state.
    In the next ECC write page operation, a DMA-timeout occurs.
    This has been catched in the MX6Q board.

[4] In order to fix the bug, rewrite the last parameter of
    mxs_dma_prep_slave_sg(), and use the dma_ctrl_flags:
    ---------------------------------------------------------
      DMA_PREP_INTERRUPT : append a new DMA Command Structrue.
      DMA_CTRL_ACK       : set the WAIT4END bit for this DMA Command Structure.
    ---------------------------------------------------------

[5] changes to the relative drivers:
    For gpmi-nand driver: use the new flags.

Signed-off-by: Huang Shijie &lt;b32955@freescale.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[1] Background :
    The GPMI does ECC read page operation with a DMA chain consist of three DMA
    Command Structures. The middle one of the chain is used to enable the BCH,
    and read out the NAND page.

    The WAIT4END(wait for command end) is a comunication signal between
    the GPMI and MXS-DMA.

[2] The current DMA code sets the WAIT4END bit at the last one, such as:

    +-----+               +-----+                      +-----+
    | cmd | ------------&gt; | cmd | ------------------&gt;  | cmd |
    +-----+               +-----+                      +-----+
                                                          ^
                                                          |
                                                          |
                                                     set WAIT4END here

    This chain works fine in the mx23/mx28.

[3] But in the new GPMI version (used in MX50/MX60), the WAIT4END bit should
    be set not only at the last DMA Command Structure,
    but also at the middle one, such as:

    +-----+               +-----+                      +-----+
    | cmd | ------------&gt; | cmd | ------------------&gt;  | cmd |
    +-----+               +-----+                      +-----+
                             ^                            ^
                             |                            |
                             |                            |
                        set WAIT4END here too        set WAIT4END here

    If we do not set WAIT4END, the BCH maybe stalls in "ECC reading page" state.
    In the next ECC write page operation, a DMA-timeout occurs.
    This has been catched in the MX6Q board.

[4] In order to fix the bug, rewrite the last parameter of
    mxs_dma_prep_slave_sg(), and use the dma_ctrl_flags:
    ---------------------------------------------------------
      DMA_PREP_INTERRUPT : append a new DMA Command Structrue.
      DMA_CTRL_ACK       : set the WAIT4END bit for this DMA Command Structure.
    ---------------------------------------------------------

[5] changes to the relative drivers:
    For gpmi-nand driver: use the new flags.

Signed-off-by: Huang Shijie &lt;b32955@freescale.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ENGR00173731-2 mxs-dma : use the new mxs-dma.h</title>
<updated>2012-07-03T20:56:50+00:00</updated>
<author>
<name>Huang Shijie</name>
<email>b32955@freescale.com</email>
</author>
<published>2012-02-01T07:26:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=ff48b0918d58611e442267af70d564f017618e2a'/>
<id>ff48b0918d58611e442267af70d564f017618e2a</id>
<content type='text'>
use the new header : mxs-dma.h.

Signed-off-by: Huang Shijie &lt;b32955@freescale.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
use the new header : mxs-dma.h.

Signed-off-by: Huang Shijie &lt;b32955@freescale.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>dma: mxs-dma: convert to clk_prepare/clk_unprepare</title>
<updated>2012-07-03T20:56:41+00:00</updated>
<author>
<name>Shawn Guo</name>
<email>shawn.guo@linaro.org</email>
</author>
<published>2011-12-20T05:54:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=bfea9c522ecbdc1b9e08a6ea5f6de1f7f311826d'/>
<id>bfea9c522ecbdc1b9e08a6ea5f6de1f7f311826d</id>
<content type='text'>
The patch converts mxs-dma driver to clk_prepare/clk_unprepare by
using helper functions clk_prepare_enable/clk_disable_unprepare.

Signed-off-by: Shawn Guo &lt;shawn.guo@linaro.org&gt;
Acked-by: Marek Vasut &lt;marek.vasut@gmail.com&gt;
Acked-by: Vinod Koul &lt;vinod.koul@linux.intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The patch converts mxs-dma driver to clk_prepare/clk_unprepare by
using helper functions clk_prepare_enable/clk_disable_unprepare.

Signed-off-by: Shawn Guo &lt;shawn.guo@linaro.org&gt;
Acked-by: Marek Vasut &lt;marek.vasut@gmail.com&gt;
Acked-by: Vinod Koul &lt;vinod.koul@linux.intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>dma: mxs-dma: Don't use CLKGATE bits in CTRL0 to disable DMA channels</title>
<updated>2012-07-03T20:56:41+00:00</updated>
<author>
<name>Lothar Waßmann</name>
<email>LW@KARO-electronics.de</email>
</author>
<published>2011-12-08T08:15:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=8dfbdc633cc62973328f030dc2aa8f43bc66ecb4'/>
<id>8dfbdc633cc62973328f030dc2aa8f43bc66ecb4</id>
<content type='text'>
This is how the original Freescale code (unintentionally) worked,
because the code path which would have asserted the CLKGATE bit was
never actually reached in their code.
This fixes the nefarious "DMA timout" bug when multiple DMA channels
(e.g. GPMI NAND and MMC) are used at the same time.
If a better fix for this problem should be found, the clkgate handling
could be reinstated.
See http://lists.infradead.org/pipermail/linux-arm-kernel/2011-September/065228.html

Also reverse the order of mxs_dma_disable_chan() and
mxs_dma_reset_chan() in mxs_dma_control() because mxs_dma_reset_chan()
can only work when the DMA channel is enabled.

Signed-off-by: Lothar Waßmann &lt;LW@KARO-electronics.de&gt;
Signed-off-by: Vinod Koul &lt;vinod.koul@linux.intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is how the original Freescale code (unintentionally) worked,
because the code path which would have asserted the CLKGATE bit was
never actually reached in their code.
This fixes the nefarious "DMA timout" bug when multiple DMA channels
(e.g. GPMI NAND and MMC) are used at the same time.
If a better fix for this problem should be found, the clkgate handling
could be reinstated.
See http://lists.infradead.org/pipermail/linux-arm-kernel/2011-September/065228.html

Also reverse the order of mxs_dma_disable_chan() and
mxs_dma_reset_chan() in mxs_dma_control() because mxs_dma_reset_chan()
can only work when the DMA channel is enabled.

Signed-off-by: Lothar Waßmann &lt;LW@KARO-electronics.de&gt;
Signed-off-by: Vinod Koul &lt;vinod.koul@linux.intel.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
