Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757232AbYFZKgf (ORCPT ); Thu, 26 Jun 2008 06:36:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754420AbYFZKg0 (ORCPT ); Thu, 26 Jun 2008 06:36:26 -0400 Received: from casper.infradead.org ([85.118.1.10]:42854 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753047AbYFZKgY (ORCPT ); Thu, 26 Jun 2008 06:36:24 -0400 Date: Thu, 26 Jun 2008 03:36:14 -0700 From: Arjan van de Ven To: Dave Airlie Cc: Jeremy Fitzhardinge , Keith Packard , Dave Airlie , linux-kernel Subject: Re: kmap_atomic_pfn for PCI BAR access? Message-ID: <20080626033614.0ef55f9d@infradead.org> In-Reply-To: References: <1214242487.11887.35.camel@koto.keithp.com> <4862EE4C.4060009@goop.org> <21d7e9970806251823q3405e192q13d4944bd0cc3291@mail.gmail.com> <20080625213603.0e82805b@infradead.org> <1214458589.1044.45.camel@koto.keithp.com> <48633057.1040106@goop.org> Organization: Intel X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.10; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 970 Lines: 30 On Thu, 26 Jun 2008 07:02:15 +0100 (IST) Dave Airlie wrote: > > > > > > > Anything that does any kind of pagetable manipulation needs to do > > tlb flushes. kunmap_atomic handles the flushing. > > It doesn't however need to do an IPI dance which is the worst part of > doing a tlb flush on SMP machines. > > flushing local CPU tlbs is bad, but doing IPIs and waiting for > everyone else is brutal. but you only do IPI's for the multithreaded case to cpus where you're running; otoh I guess games are multithreaded nowadays > > Dave. -- If you want to reach me at my work email, use arjan@linux.intel.com For development, discussion and tips for power savings, visit http://www.lesswatts.org -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/