Re: Memory allocation in Video4Linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Wen,

On Thursday 10 February 2011 08:59:38 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?

I second this request. It's not totally clear to me from this mail thread 
whether your ISP has its own MMU (which would then be considered as an IOMMU), 
or accesses the system memory through other means (continuous buffers, 
scatter-gather lists, ...).

If the Medfield ISP includes an IOMMU, the IOMMU layer is probably what you 
want to use. Memory can then be allocated using a simple vmalloc(), and pages 
can be mapped to the ISP memory space using the IOMMU.

Please note that, unless the ISP IOMMU is already supported by the Linux 
kernel, you will obviously need to implement an IOMMU driver for it. What you 
shouldn't do is put that code in the ISP driver (unless hardware design 
doesn't give you a choice about that, but I need to see more documentation to 
answer this question).

-- 
Regards,

Laurent Pinchart
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux