From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757300AbZHGKLo (ORCPT ); Fri, 7 Aug 2009 06:11:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755963AbZHGKLn (ORCPT ); Fri, 7 Aug 2009 06:11:43 -0400 Received: from perceval.irobotique.be ([92.243.18.41]:53732 "EHLO perceval.irobotique.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755970AbZHGKLm convert rfc822-to-8bit (ORCPT ); Fri, 7 Aug 2009 06:11:42 -0400 From: Laurent Pinchart To: Matthieu CASTET Subject: Re: How to efficiently handle DMA and cache on ARMv7 ? (was " =?iso-8859-1?q?Is=09get=5Fuser=5Fpages?=() enough to prevent pages from being swapped out ?") Date: Fri, 7 Aug 2009 12:13:48 +0200 User-Agent: KMail/1.11.4 (Linux/2.6.30.3; KDE/4.2.4; x86_64; ; ) Cc: David Xiao , Ben Dooks , Hugh Dickins , Robin Holt , "linux-kernel@vger.kernel.org" , "v4l2_linux" , "linux-arm-kernel@lists.arm.linux.org.uk" References: <200908061208.22131.laurent.pinchart@ideasonboard.com> <200908070929.53873.laurent.pinchart@ideasonboard.com> <4A7BE1E7.60203@parrot.com> In-Reply-To: <4A7BE1E7.60203@parrot.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT Content-Disposition: inline Message-Id: <200908071213.48523.laurent.pinchart@ideasonboard.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday 07 August 2009 10:12:23 Matthieu CASTET wrote: > Laurent Pinchart a écrit : > > On Thursday 06 August 2009 20:46:14 David Xiao wrote: > > > > Think about the simple following use case. An application wants to > > display video it acquires from the device to the screen using Xv. The > > video buffer is allocated by Xv. Using the v4l2 user pointer streaming > > method, the device can DMA directly to the Xv buffer. Using > > driver-allocated buffers, a memcpy() is required between the v4l2 buffer > > and the Xv buffer. > > v4l2 got an API (overlay IRRC) that allow drivers to write directly in > framebuffer memory. That's right, but I was mostly using this as an example. > BTW Xv buffer is not always in video memory and the X driver can do a > memcpy. Still, one less memcpy is better :-) Regards, Laurent Pinchart