Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932256AbWB1RUr (ORCPT ); Tue, 28 Feb 2006 12:20:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932263AbWB1RUr (ORCPT ); Tue, 28 Feb 2006 12:20:47 -0500 Received: from omx1-ext.sgi.com ([192.48.179.11]:64996 "EHLO omx1.americas.sgi.com") by vger.kernel.org with ESMTP id S932256AbWB1RUq (ORCPT ); Tue, 28 Feb 2006 12:20:46 -0500 Message-ID: <44048660.3010701@sgi.com> Date: Tue, 28 Feb 2006 18:20:32 +0100 From: Jes Sorensen User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Roland Dreier CC: "Bryan O'Sullivan" , Andrew Morton , Andi Kleen , linux-kernel , Jesse Barnes Subject: Re: [PATCH] Define wc_wmb, a write barrier for PCI write combining References: <1140841250.2587.33.camel@localhost.localdomain> <44047565.3090202@sgi.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1427 Lines: 32 Roland Dreier wrote: > Jes> Not quite correct as far as I understand it. mmiowb() is > Jes> supposed to guarantee that writes to MMIO space have > Jes> completed before continuing. That of course covers the > Jes> multi-CPU case, but it should also cover the write-combining > Jes> case. > > I don't believe this is correct. mmiowb() does not guarantee that > writes have completed -- they may still be pending in a buffer in a > bridge somewhere. The _only_ effect of mmiowb() is to make sure that > writes which have been ordered between CPUs using some other mechanism > (i.e. a lock) are properly ordered by the rest of the system. This > only has an effect systems like very large ia64 systems, where (as I > understand it), writes can pass each other on the way to the PCI bus. > In fact, mmiowb() is a NOP on essentially every architecture. Hmmmm That could be, seems like Jesse agrees that it could all be in the pipeline somewhere. Considering Jesse was responsible for mmiowb() I'll take his word for it ;-) In any case, I'd strongly recommend that any new barrier version is clearly documented. The jungle is very dense already ;( Cheers, Jes - 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/