Return-path: Received: from an-out-0708.google.com ([209.85.132.241]:53582 "EHLO an-out-0708.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750992AbXIRVCH (ORCPT ); Tue, 18 Sep 2007 17:02:07 -0400 Received: by an-out-0708.google.com with SMTP id d31so305081and for ; Tue, 18 Sep 2007 14:02:06 -0700 (PDT) Message-ID: <43e72e890709181402x7335d0acp306cf576fac6c070@mail.gmail.com> Date: Tue, 18 Sep 2007 17:02:06 -0400 From: "Luis R. Rodriguez" To: "Linus Torvalds" Subject: Re: [PATCH] Clarify pci_iomap() usage for MMIO-only devices Cc: "Alan Cox" , linux-kernel , "Jeff Garzik" , "John W. Linville" , linux-wireless In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 References: <43e72e890709171322x76ab6b70xd29bf97e3643c553@mail.gmail.com> <20070918113401.6a8a737f@the-village.bc.nu> <43e72e890709181146s604e0f9fl8b0c16627469c77f@mail.gmail.com> <43e72e890709181207j7c85dc29sb355a9f5a4207411@mail.gmail.com> <43e72e890709181312sf2b421cn49be3389b3786a2a@mail.gmail.com> Sender: linux-wireless-owner@vger.kernel.org List-ID: On 9/18/07, Linus Torvalds wrote: > > > On Tue, 18 Sep 2007, Luis R. Rodriguez wrote: > > > > An extra branch is created on MMIO-only devices on read/writes on the > > IO_COND macro using this interface -- or is this optimized out? > > Umm. Does anybody actually have any performance numbers? > > The thing is, those things are *cheap* compared to the IO. And any > high-performance device will be using DMA for the real IO, so we're not > generally even talking about any performance-critical stuff. ACK but do we really need to benchmark this if we *know* we are creating unnecessary branches? How about Jeff's suggestion of introducing pci_mmio_map() ? This way we leave the current documenation as it is and just introduce this for MMIO-only devices. No benchmarks are necessary then, and no need to confuse people with the old API. Luis