* Re: [patch V2 0/6] dma: edma: Provide granular residue accounting [not found] <20140428104416.464002156@linutronix.de> @ 2014-04-28 20:47 ` Joel Fernandes 2014-04-29 8:46 ` Vinod Koul 0 siblings, 1 reply; 5+ messages in thread From: Joel Fernandes @ 2014-04-28 20:47 UTC (permalink / raw) To: Thomas Gleixner, dmaengine Cc: linux-arm-kernel, dan.j.williams, vinod.koul, nsekhar, Peter Ujfalusi, linux-omap@vger.kernel.org On 04/28/2014 05:49 AM, Thomas Gleixner wrote: > A simpler version to provide granular residue accounting and readout > for EDMA. > > Delta to V1: > > - Removed the double read of the address in PaRAM > > - Simplified the stats update in the interrupt callback for > intermediate transfers > > Thanks, > > tglx > Thanks for the series. I went over all the patches and it looks great. Acked-by: Joel Fernandes <joelf@ti.com> The patches however didn't apply and had some conflicts with my dma memcpy series and peter's cyclic series so I resolved conflicts and created a single branch based on Vinod's slave-dma next branch (commit 406efb1a745c1dc512dc9c3c859e302e7b7f907e) that Vinod can pull. I also renamed subject line of patches in Thomas's series to be "dmaengine: edma" and documented some of the variables used. https://github.com/joelagnel/linux-kernel.git (for-vinod branch) Vinod, could you pull if it looks OK? regards, -Joel ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [patch V2 0/6] dma: edma: Provide granular residue accounting 2014-04-28 20:47 ` [patch V2 0/6] dma: edma: Provide granular residue accounting Joel Fernandes @ 2014-04-29 8:46 ` Vinod Koul 2014-04-30 4:25 ` Joel Fernandes 0 siblings, 1 reply; 5+ messages in thread From: Vinod Koul @ 2014-04-29 8:46 UTC (permalink / raw) To: Joel Fernandes Cc: nsekhar, Peter Ujfalusi, dmaengine, Thomas Gleixner, linux-omap@vger.kernel.org, dan.j.williams, linux-arm-kernel On Mon, Apr 28, 2014 at 03:47:37PM -0500, Joel Fernandes wrote: > On 04/28/2014 05:49 AM, Thomas Gleixner wrote: > > A simpler version to provide granular residue accounting and readout > > for EDMA. > > > > Delta to V1: > > > > - Removed the double read of the address in PaRAM > > > > - Simplified the stats update in the interrupt callback for > > intermediate transfers > > > > Thanks, > > > > tglx > > > > Thanks for the series. I went over all the patches and it looks great. > Acked-by: Joel Fernandes <joelf@ti.com> > > The patches however didn't apply and had some conflicts with my dma > memcpy series and peter's cyclic series so I resolved conflicts and > created a single branch based on Vinod's slave-dma next branch (commit > 406efb1a745c1dc512dc9c3c859e302e7b7f907e) that Vinod can pull. > > I also renamed subject line of patches in Thomas's series to be > "dmaengine: edma" and documented some of the variables used. > > https://github.com/joelagnel/linux-kernel.git (for-vinod branch) > > Vinod, could you pull if it looks OK? The patches look good. But, commit 770f0f3a20188b7e17db2790803b9da925dc0b94 Author: Thomas Gleixner <tglx@linutronix.de> Date: Mon Apr 28 10:49:43 2014 +0000 dmaengine: edma: Make reading the position of active channels work As Joel pointed out, edma_read_position() uses memcpy_fromio() to read the parameter ram. That's not synchronized with the internal update as it does a byte by byte copy. We need to do a 32bit read to get a consistent value. Further reading destination and source is pointless. In DEV_TO_MEM transfers we are only interested in the destination, in MEM_TO_DEV we care about the source. In MEM_TO_MEM it really does not matter which one you read. Simple solution: Remove the pointers, select dest/source via a bool and return the read value. Remove the export of this function while at it. The only potential user is the dmaengine and that's always builtin. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> You s-o-b missing in this one, also ack from Sekhar missing. Do you want to redo this or prefer me to cherry-pick patches adding acks and your s-o-b, since I already fetched your branch Either way is fine with me... -- ~Vinod ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [patch V2 0/6] dma: edma: Provide granular residue accounting 2014-04-29 8:46 ` Vinod Koul @ 2014-04-30 4:25 ` Joel Fernandes 2014-04-30 5:08 ` Vinod Koul 0 siblings, 1 reply; 5+ messages in thread From: Joel Fernandes @ 2014-04-30 4:25 UTC (permalink / raw) To: Vinod Koul Cc: Thomas Gleixner, dmaengine, linux-arm-kernel, dan.j.williams, nsekhar, Peter Ujfalusi, linux-omap@vger.kernel.org On 04/29/2014 03:46 AM, Vinod Koul wrote: [..] > commit 770f0f3a20188b7e17db2790803b9da925dc0b94 > Author: Thomas Gleixner <tglx@linutronix.de> > Date: Mon Apr 28 10:49:43 2014 +0000 > > dmaengine: edma: Make reading the position of active channels work > > As Joel pointed out, edma_read_position() uses memcpy_fromio() to read > the parameter ram. That's not synchronized with the internal update as > it does a byte by byte copy. We need to do a 32bit read to get a > consistent value. > > Further reading destination and source is pointless. In DEV_TO_MEM > transfers we are only interested in the destination, in MEM_TO_DEV we > care about the source. In MEM_TO_MEM it really does not matter which > one you read. > > Simple solution: Remove the pointers, select dest/source via a bool > and return the read value. > > Remove the export of this function while at it. The only potential > user is the dmaengine and that's always builtin. > > Signed-off-by: Thomas Gleixner <tglx@linutronix.de> > > You s-o-b missing in this one, also ack from Sekhar missing. Do you want to redo > this or prefer me to cherry-pick patches adding acks and your s-o-b, since I > already fetched your branch > > Either way is fine with me... > If its Ok with you, it would great if you could add my Ack and Sob. Thanks a lot. Let me know if you'd want me to do anything else here. Regards, -Joel ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [patch V2 0/6] dma: edma: Provide granular residue accounting 2014-04-30 4:25 ` Joel Fernandes @ 2014-04-30 5:08 ` Vinod Koul 2014-05-01 1:57 ` Joel Fernandes 0 siblings, 1 reply; 5+ messages in thread From: Vinod Koul @ 2014-04-30 5:08 UTC (permalink / raw) To: Joel Fernandes Cc: Thomas Gleixner, dmaengine, linux-arm-kernel, dan.j.williams, nsekhar, Peter Ujfalusi, linux-omap@vger.kernel.org On Tue, Apr 29, 2014 at 11:25:02PM -0500, Joel Fernandes wrote: > On 04/29/2014 03:46 AM, Vinod Koul wrote: > [..] > > commit 770f0f3a20188b7e17db2790803b9da925dc0b94 > > Author: Thomas Gleixner <tglx@linutronix.de> > > Date: Mon Apr 28 10:49:43 2014 +0000 > > > > dmaengine: edma: Make reading the position of active channels work > > > > As Joel pointed out, edma_read_position() uses memcpy_fromio() to read > > the parameter ram. That's not synchronized with the internal update as > > it does a byte by byte copy. We need to do a 32bit read to get a > > consistent value. > > > > Further reading destination and source is pointless. In DEV_TO_MEM > > transfers we are only interested in the destination, in MEM_TO_DEV we > > care about the source. In MEM_TO_MEM it really does not matter which > > one you read. > > > > Simple solution: Remove the pointers, select dest/source via a bool > > and return the read value. > > > > Remove the export of this function while at it. The only potential > > user is the dmaengine and that's always builtin. > > > > Signed-off-by: Thomas Gleixner <tglx@linutronix.de> > > > > You s-o-b missing in this one, also ack from Sekhar missing. Do you want to redo > > this or prefer me to cherry-pick patches adding acks and your s-o-b, since I > > already fetched your branch > > > > Either way is fine with me... > > > > If its Ok with you, it would great if you could add my Ack and Sob. > Thanks a lot. Let me know if you'd want me to do anything else here. Done, The changes are getting pushed, pls do verify -- ~Vinod ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [patch V2 0/6] dma: edma: Provide granular residue accounting 2014-04-30 5:08 ` Vinod Koul @ 2014-05-01 1:57 ` Joel Fernandes 0 siblings, 0 replies; 5+ messages in thread From: Joel Fernandes @ 2014-05-01 1:57 UTC (permalink / raw) To: Vinod Koul Cc: Joel Fernandes, nsekhar, Peter Ujfalusi, dmaengine, Thomas Gleixner, linux-omap@vger.kernel.org, dan.j.williams, linux-arm-kernel On Wed, Apr 30, 2014 at 12:08 AM, Vinod Koul <vinod.koul@intel.com> wrote: > On Tue, Apr 29, 2014 at 11:25:02PM -0500, Joel Fernandes wrote: >> On 04/29/2014 03:46 AM, Vinod Koul wrote: >> [..] >> > commit 770f0f3a20188b7e17db2790803b9da925dc0b94 >> > Author: Thomas Gleixner <tglx@linutronix.de> >> > Date: Mon Apr 28 10:49:43 2014 +0000 >> > >> > dmaengine: edma: Make reading the position of active channels work >> > >> > As Joel pointed out, edma_read_position() uses memcpy_fromio() to read >> > the parameter ram. That's not synchronized with the internal update as >> > it does a byte by byte copy. We need to do a 32bit read to get a >> > consistent value. >> > >> > Further reading destination and source is pointless. In DEV_TO_MEM >> > transfers we are only interested in the destination, in MEM_TO_DEV we >> > care about the source. In MEM_TO_MEM it really does not matter which >> > one you read. >> > >> > Simple solution: Remove the pointers, select dest/source via a bool >> > and return the read value. >> > >> > Remove the export of this function while at it. The only potential >> > user is the dmaengine and that's always builtin. >> > >> > Signed-off-by: Thomas Gleixner <tglx@linutronix.de> >> > >> > You s-o-b missing in this one, also ack from Sekhar missing. Do you want to redo >> > this or prefer me to cherry-pick patches adding acks and your s-o-b, since I >> > already fetched your branch >> > >> > Either way is fine with me... >> > >> >> If its Ok with you, it would great if you could add my Ack and Sob. >> Thanks a lot. Let me know if you'd want me to do anything else here. > Done, The changes are getting pushed, pls do verify Sorry for the late reply as I'm at a conference. Thanks, I verified and it looks OK. Regards, -Joel ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-05-01 1:57 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20140428104416.464002156@linutronix.de>
2014-04-28 20:47 ` [patch V2 0/6] dma: edma: Provide granular residue accounting Joel Fernandes
2014-04-29 8:46 ` Vinod Koul
2014-04-30 4:25 ` Joel Fernandes
2014-04-30 5:08 ` Vinod Koul
2014-05-01 1:57 ` Joel Fernandes
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox