public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* pxa_camera: DMA alignment requirement
@ 2008-11-09 17:01 Robert Jarzmik
  2008-11-13 10:23 ` Mike Rapoport
  0 siblings, 1 reply; 5+ messages in thread
From: Robert Jarzmik @ 2008-11-09 17:01 UTC (permalink / raw)
  To: video4linux-list

Hello,

In the pxa camera driver, the 3 DMA channels used are MMU page aligned. Does
somebody remember where that constraint comes from ?

I'm wondering because the planar YUV format generated is something like this for
a 640 * 480 image :
 - Y plane => 640 * 480 bytes = 307200 (and this happens to be a multiple of
 pagesize : 307200 = 4096 * 75)
 - U plane => 640 * 480 / 2 bytes = 153600 (and this is not a multiple of 4096)
 - padding to reach next page : 2048 bytes
 - V plane => 153600 bytes
 - padding to reach next page : 2048 bytes

This means a user space library should be kernel pagesize aware to transform the
output image. I don't really understand the necessity of page aligned DMA
channels. Would someone tell me please ?

--
Robert

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

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

end of thread, other threads:[~2008-11-26  0:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-09 17:01 pxa_camera: DMA alignment requirement Robert Jarzmik
2008-11-13 10:23 ` Mike Rapoport
2008-11-16  1:14   ` Robert Jarzmik
2008-11-16  7:30     ` Mike Rapoport
2008-11-25 21:18       ` Robert Jarzmik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox