public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Jozef Kruger <jozef.kruger@siliconhive.com>
To: "Gao, Bin" <bin.gao@intel.com>
Cc: "Wang, Wen W" <wen.w.wang@intel.com>,
	"Kanigeri, Hari K" <hari.k.kanigeri@intel.com>,
	"Iyer, Sundar" <sundar.iyer@intel.com>,
	"Yang, Jianwei" <jianwei.yang@intel.com>,
	"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
	"umg-meego-handset-kernel@umglistsvr.jf.intel.com"
	<umg-meego-handset-kernel@umglistsvr.jf.intel.com>
Subject: Re: Memory allocation in Video4Linux
Date: Thu, 10 Feb 2011 00:08:46 -0800	[thread overview]
Message-ID: <4D539D0E.2080102@siliconhive.com> (raw)
In-Reply-To: <06F569D088CFBC4497658761DA003E13015636076A@rrsmsx505.amr.corp.intel.com>

Hi Bin,

the ISP in Medfield has it's own MMU. This needs to be programmed.

So in fact we have 2 problems:
1. how to allocate large memory address space (allocating pages is not
the problem).
2. if we re-use OS functionality for this, we need to keep the ISP MMU
up to date.
This means it needs to be programmed with the L1 page table base address
and the
TLB needs to be flushed whenever something changes in the page tables.

I don't think you need any ISP specific documentation for this. The ISP
MMU behaves the
same as the IA MMU does.

Best regards,
Jozef

On 02/09/2011 11:59 PM, Gao, Bin wrote:
> Penwell has IOMMU feature?
> As far as I know only part of Intel server processors have this feature which is designed originally for VT(virtualization technology).
>
> Wen,
> Can you refer to other ISP Soc drivers and see how they are dealing with this issue?
> I don't understand why you need to manage MMU inside ISP, I think the real problem is how can we allocate a large number of memory pages from IA side where ISP can access to by DMA.
> Any ISP document can be shared to help us understand what's the problem?
>
> -Bin
>
> -----Original Message-----
> From: umg-meego-handset-kernel-bounces@umglistsvr.jf.intel.com [mailto:umg-meego-handset-kernel-bounces@umglistsvr.jf.intel.com] On Behalf Of Wang, Wen W
> Sent: Tuesday, February 08, 2011 11:27 PM
> To: Kanigeri, Hari K; Iyer, Sundar; Yang, Jianwei; linux-media@vger.kernel.org; umg-meego-handset-kernel@umglistsvr.jf.intel.com
> Cc: Jozef Kruger
> Subject: Re: [Umg-meego-handset-kernel] Memory allocation in Video4Linux
>
> Hi Hari,
>
> You are right. What we need is virtual address.
>
> Currently we alloc pages (alloc_pages()) for any request. Store those pages for an image buffer into a list. We also manage the virtual address for ISP by ourself (the range from 0 to 4GB) and the page table for our MMU which is independent to system MMU page table.
>
> Thanks
> Wen
>
>> -----Original Message-----
>> From: Kanigeri, Hari K
>> Sent: 2011年2月9日 15:22
>> To: Iyer, Sundar; Wang, Wen W; Yang, Jianwei; linux-media@vger.kernel.org;
>> umg-meego-handset-kernel@umglistsvr.jf.intel.com
>> Cc: Jozef Kruger
>> Subject: RE: Memory allocation in Video4Linux
>>
>>
>>
>>> -----Original Message-----
>>> From: umg-meego-handset-kernel-bounces@umglistsvr.jf.intel.com
>>> [mailto:umg-meego-handset-kernel-bounces@umglistsvr.jf.intel.com] On
>>> Behalf Of Iyer, Sundar
>>> Sent: Wednesday, February 09, 2011 12:20 PM
>>> To: Wang, Wen W; Yang, Jianwei; linux-media@vger.kernel.org; umg-meego-
>>> handset-kernel@umglistsvr.jf.intel.com
>>> Cc: Jozef Kruger
>>> Subject: Re: [Umg-meego-handset-kernel] Memory allocation in
>>> Video4Linux
>>>
>>> I remember some Continous Memory Allocator (CMA) being iterated down a
>>> few versions on
>>> some mailing lists? IIRC, it is also for large buffers and management
>>> for video IPs.
>> I believe CMA is for allocating physically contiguous memory and from what Wen
>> mentioned he also needs virtual memory management, which the IOMMU will
>> provide. Please check the open source discussion on CMA, the last I heard CMA
>> proposal was shot down.
>> Reference: http://www.spinics.net/lists/linux-media/msg26875.html
>>
>> Wen, how are you currently allocating physical memory ?
>>
>>
>> Thank you,
>> Best regards,
>> Hari
> _______________________________________________
> Umg-meego-handset-kernel mailing list
> Umg-meego-handset-kernel@umglistsvr.jf.intel.com
> http://umglistsvr.jf.intel.com/mailman/listinfo/umg-meego-handset-kernel

-- 
Jozef Kruger
Senior Customer Solutions Architect
Silicon Hive Inc.
2025 Gateway Place, Suite 230
San Jose, CA 95110
phone: +1 408 512 2969
cell:  +1 408 644 7533
fax:   +1 408 437 6014
jozef.kruger@siliconhive.com
http://www.siliconhive.com


  reply	other threads:[~2011-02-10 10:01 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-09  6:23 Memory allocation in Video4Linux Wang, Wen W
2011-02-09  6:30 ` Kanigeri, Hari K
2011-02-09  6:30 ` Yang, Jianwei
2011-02-09  6:32   ` Wang, Wen W
2011-02-09  6:49     ` Iyer, Sundar
2011-02-09  7:22       ` Kanigeri, Hari K
2011-02-09  7:27         ` Wang, Wen W
2011-02-09  7:51           ` Hans Verkuil
2011-02-09  7:55             ` Wang, Wen W
2011-02-10 10:06               ` Sakari Ailus
2011-02-09  7:58             ` Jonghun Han
2011-02-09  8:10               ` Wang, Wen W
2011-02-10  7:59           ` Gao, Bin
2011-02-10  8:08             ` Jozef Kruger [this message]
2011-02-10  9:29             ` Laurent Pinchart
2011-02-10  9:44               ` Wang, Wen W
2011-02-10 10:00                 ` Laurent Pinchart
2011-02-11  2:07                   ` KyongHo Cho
2011-02-09 10:19 ` Mauro Carvalho Chehab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D539D0E.2080102@siliconhive.com \
    --to=jozef.kruger@siliconhive.com \
    --cc=bin.gao@intel.com \
    --cc=hari.k.kanigeri@intel.com \
    --cc=jianwei.yang@intel.com \
    --cc=linux-media@vger.kernel.org \
    --cc=sundar.iyer@intel.com \
    --cc=umg-meego-handset-kernel@umglistsvr.jf.intel.com \
    --cc=wen.w.wang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox