public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* ISP buffer issue
@ 2009-08-04 12:00 Gary Thomas
  2009-08-06 14:30 ` Gary Thomas
  0 siblings, 1 reply; 3+ messages in thread
From: Gary Thomas @ 2009-08-04 12:00 UTC (permalink / raw)
  To: linux-omap

I'm having trouble with the OMAP3 camera (ISP) support when
I have a large sensor.  I'm working with a 3M CCD sensor which
has a native resolution of 2048x1536.  The problem is when I
run V4L2 code which tries to allocate & map buffers for input
streaming.  If the frame is much bigger than PAL size (720x576)
the system hangs.

I traced this into the ISP layer and found that when the
buffer being allocated is over 1MB, this happens:
  isp_tmp_buf_alloc: allocating 1531904 bytes
which eventually fails in iommu_vmalloc()

Looking at the code, there seems to be some magic here - the
buffer allocation falls over if the request is large.  I'm
working from this code:
  http://arago-project.org/git/people/vaibhav/ti-psp-omap-video.git
starting from commit (ti_display head on 2009-07-23)
  6810d6d683e768c3bc6b5647c214804045665e22

Ideas?

Thanks

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

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

* Re: ISP buffer issue
  2009-08-04 12:00 ISP buffer issue Gary Thomas
@ 2009-08-06 14:30 ` Gary Thomas
  2009-08-06 14:47   ` Hiroshi DOYU
  0 siblings, 1 reply; 3+ messages in thread
From: Gary Thomas @ 2009-08-06 14:30 UTC (permalink / raw)
  To: linux-omap; +Cc: Hiroshi Doyu

Gary Thomas wrote:
> I'm having trouble with the OMAP3 camera (ISP) support when
> I have a large sensor.  I'm working with a 3M CCD sensor which
> has a native resolution of 2048x1536.  The problem is when I
> run V4L2 code which tries to allocate & map buffers for input
> streaming.  If the frame is much bigger than PAL size (720x576)
> the system hangs.
> 
> I traced this into the ISP layer and found that when the
> buffer being allocated is over 1MB, this happens:
>   isp_tmp_buf_alloc: allocating 1531904 bytes
> which eventually fails in iommu_vmalloc()
> 
> Looking at the code, there seems to be some magic here - the
> buffer allocation falls over if the request is large.  I'm
> working from this code:
>   http://arago-project.org/git/people/vaibhav/ti-psp-omap-video.git
> starting from commit (ti_display head on 2009-07-23)
>   6810d6d683e768c3bc6b5647c214804045665e22

Hiroshi - I CC'd you directly as this code seems to be yours.
Could you comment on my problem?

Thanks

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

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

* Re: ISP buffer issue
  2009-08-06 14:30 ` Gary Thomas
@ 2009-08-06 14:47   ` Hiroshi DOYU
  0 siblings, 0 replies; 3+ messages in thread
From: Hiroshi DOYU @ 2009-08-06 14:47 UTC (permalink / raw)
  To: gary; +Cc: linux-omap

From: ext Gary Thomas <gary@mlbassoc.com>
Subject: Re: ISP buffer issue
Date: Thu, 6 Aug 2009 16:30:29 +0200

> Gary Thomas wrote:
> > I'm having trouble with the OMAP3 camera (ISP) support when
> > I have a large sensor.  I'm working with a 3M CCD sensor which
> > has a native resolution of 2048x1536.  The problem is when I
> > run V4L2 code which tries to allocate & map buffers for input
> > streaming.  If the frame is much bigger than PAL size (720x576)
> > the system hangs.
> > 
> > I traced this into the ISP layer and found that when the
> > buffer being allocated is over 1MB, this happens:
> >   isp_tmp_buf_alloc: allocating 1531904 bytes
> > which eventually fails in iommu_vmalloc()
> > 
> > Looking at the code, there seems to be some magic here - the
> > buffer allocation falls over if the request is large.  I'm
> > working from this code:
> >   http://arago-project.org/git/people/vaibhav/ti-psp-omap-video.git
> > starting from commit (ti_display head on 2009-07-23)
> >   6810d6d683e768c3bc6b5647c214804045665e22
> 
> Hiroshi - I CC'd you directly as this code seems to be yours.
> Could you comment on my problem?

Can you point out which function returns error in iommu_vmalloc()?


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

end of thread, other threads:[~2009-08-06 14:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-04 12:00 ISP buffer issue Gary Thomas
2009-08-06 14:30 ` Gary Thomas
2009-08-06 14:47   ` Hiroshi DOYU

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