From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Fleming Subject: Re: [PATCHv2 1/5] mm: add coherence API for DMA to vmalloc/vmap areas Date: Thu, 24 Dec 2009 10:08:53 +0000 Message-ID: <20091224100853.GA3165@console-pimps.org> References: <1261603345-2494-1-git-send-email-James.Bottomley@suse.de> <1261603345-2494-2-git-send-email-James.Bottomley@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-arch@vger.kernel.org, linux-parisc@vger.kernel.org, Christoph Hellwig , Russell King , Paul Mundt To: James Bottomley Return-path: In-Reply-To: <1261603345-2494-2-git-send-email-James.Bottomley@suse.de> List-ID: List-Id: linux-parisc.vger.kernel.org On Wed, Dec 23, 2009 at 03:22:21PM -0600, James Bottomley wrote: > + > + void flush_kernel_vmap_range(void *vaddr, int size) > + flushes the kernel cache for a given virtual address range in > + the vmap area. This API makes sure that and data the kernel ^^^ code and data? > + void invalidate_kernel_vmap_range(void *vaddr, int size) > + invalidates the kernel cache for a given virtual address range > + in the vmap area. This API is designed to make sure that while > + I/O went on to an address range in the vmap area, the processor > + didn't speculate cache reads and thus make the cache over the > + virtual address stale. > + Could this sentence be reworked a little? I find the "over the virtual address" part a little difficult to parse.