linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 4/7] S3C64XX DMA: S3C2410_DMAF_CIRCULAR disable
@ 2009-09-15 10:01 Jassi
  2009-09-15 10:07 ` Mark Brown
  2009-09-16  0:28 ` Ben Dooks
  0 siblings, 2 replies; 8+ messages in thread
From: Jassi @ 2009-09-15 10:01 UTC (permalink / raw)
  To: linux-arm-kernel

S3C2410_DMAF_CIRCULAR requires that we don't free buffer
resources after TC-IRQ because we will revisit the buffer.
During simple long term playback/capture, like movie-play,
this may block those resources(kmem/dma_pool) unncessarily.
This is especially a problem since we allocate them in IRQ
context.
For now, we disable the option and free buff resources after
it's TC-IRQ. Also, chan->curr will point to the active buffer
while chan->next is rendered useless.

Signed-Off-by: Jassi <jassi.brar@samsung.com>
---
 arch/arm/plat-s3c64xx/dma.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/arm/plat-s3c64xx/dma.c b/arch/arm/plat-s3c64xx/dma.c
index 266a107..02bc82b 100644
--- a/arch/arm/plat-s3c64xx/dma.c
+++ b/arch/arm/plat-s3c64xx/dma.c
@@ -375,10 +375,12 @@ int s3c2410_dma_enqueue(unsigned int channel, void *id,
 		end->next = buff;
 		endlli->next_lli = buff->lli_dma;
 
+#if 0
 		if (chan->flags & S3C2410_DMAF_CIRCULAR) {
 			struct s3c64xx_dma_buff *curr = chan->curr;
 			lli->next_lli = curr->lli_dma;
 		}
+#endif
 
 		if (next == chan->curr) {
 			writel(buff->lli_dma, chan->regs + PL080_CH_LLI);
-- 
1.6.2.5

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-09-22 20:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-15 10:01 [PATCH 4/7] S3C64XX DMA: S3C2410_DMAF_CIRCULAR disable Jassi
2009-09-15 10:07 ` Mark Brown
2009-09-15 11:01   ` jassi brar
2009-09-15 11:52     ` Mark Brown
2009-09-15 12:05       ` jassi brar
2009-09-16  0:28 ` Ben Dooks
2009-09-16  2:24   ` jassi brar
2009-09-22 20:14     ` Ben Dooks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).