From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757203AbZHGIK4 (ORCPT ); Fri, 7 Aug 2009 04:10:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757182AbZHGIKv (ORCPT ); Fri, 7 Aug 2009 04:10:51 -0400 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:41869 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757157AbZHGIKt (ORCPT ); Fri, 7 Aug 2009 04:10:49 -0400 Date: Fri, 7 Aug 2009 09:10:41 +0100 From: Russell King - ARM Linux To: Laurent Pinchart Cc: David Xiao , Ben Dooks , Hugh Dickins , Robin Holt , "linux-kernel@vger.kernel.org" , v4l2_linux , "linux-arm-kernel@lists.arm.linux.org.uk" Subject: Re: How to efficiently handle DMA and cache on ARMv7 ? (was "Is get_user_pages() enough to prevent pages from being swapped out ?") Message-ID: <20090807081041.GB18343@n2100.arm.linux.org.uk> References: <200908061208.22131.laurent.pinchart@ideasonboard.com> <20090806222543.GG31579@n2100.arm.linux.org.uk> <1249624766.32621.61.camel@david-laptop> <200908070958.31322.laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200908070958.31322.laurent.pinchart@ideasonboard.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 07, 2009 at 09:58:30AM +0200, Laurent Pinchart wrote: > Sorry about this, but I'm not sure to understand the speculative prefetching > cache issue completely. The general case with speculative prefetching is that if memory is accessible, it can be prefetched. In other words, if we mapped devices without NX (non-exec) set, the CPU can prefetch instructions from devices, causing random read accesses. Yes, I know it sounds crazy, but that's what I'm told _can_ happen.