linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* capture_mem limitations in OMAP ISP
@ 2012-07-03  9:46 Michael Jones
  2012-07-05 16:36 ` Laurent Pinchart
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Jones @ 2012-07-03  9:46 UTC (permalink / raw)
  To: linux-media ML; +Cc: Laurent Pinchart

Hi Laurent & co.,

I'm looking at the memory limitations in the omap3isp driver.  'struct 
isp_video' contains member 'capture_mem', which is set separately for 
each of our v4l2 video device nodes.  The CCDC, for example, has 
capture_mem = 4096 * 4096 * 3 = 48MB, while the previewer and resizer 
each have twice that. Where do these numbers come from?

Is the CCDC incapable of DMA'ing more than 48MB into memory?  I know 
that ISP_VIDEO_MAX_BUFFERS also limits the # of buffers, but I assume 
this is basically an arbitrary number so we can have a finite array of 
isp_video_buffer's.  The 48MB, on the other hand, looks like it might 
have a good reason.

thanks,
Michael

MATRIX VISION GmbH, Talstrasse 16, DE-71570 Oppenweiler
Registergericht: Amtsgericht Stuttgart, HRB 271090
Geschaeftsfuehrer: Gerhard Thullner, Werner Armingeon, Uwe Furtner, Erhard Meier

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

* Re: capture_mem limitations in OMAP ISP
  2012-07-03  9:46 capture_mem limitations in OMAP ISP Michael Jones
@ 2012-07-05 16:36 ` Laurent Pinchart
  0 siblings, 0 replies; 2+ messages in thread
From: Laurent Pinchart @ 2012-07-05 16:36 UTC (permalink / raw)
  To: Michael Jones; +Cc: linux-media ML

Hi Michael,

On Tuesday 03 July 2012 11:46:33 Michael Jones wrote:
> Hi Laurent & co.,
> 
> I'm looking at the memory limitations in the omap3isp driver. 'struct
> isp_video' contains member 'capture_mem', which is set separately for each
> of our v4l2 video device nodes. The CCDC, for example, has capture_mem =
> 4096 * 4096 * 3 = 48MB, while the previewer and resizer each have twice
> that. Where do these numbers come from?

That's mostly historical. When developing the driver for the N900 we set a 
limit to avoid putting too much pressure on the system memory, and 3x8MP 
buffers was considered to be enough.

We could raise the limit, remove it completely, or implement a policy 
mechanism to let a privileged userspace application specify limits. The later 
might be interesting as a core V4L2 mechanism.

> Is the CCDC incapable of DMA'ing more than 48MB into memory? I know that
> ISP_VIDEO_MAX_BUFFERS also limits the # of buffers, but I assume this is
> basically an arbitrary number so we can have a finite array of
> isp_video_buffer's. The 48MB, on the other hand, looks like it might have a
> good reason.

-- 
Regards,

Laurent Pinchart


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

end of thread, other threads:[~2012-07-05 16:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-03  9:46 capture_mem limitations in OMAP ISP Michael Jones
2012-07-05 16:36 ` Laurent Pinchart

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).