Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030458AbWJYOFM (ORCPT ); Wed, 25 Oct 2006 10:05:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030455AbWJYOFL (ORCPT ); Wed, 25 Oct 2006 10:05:11 -0400 Received: from sj-iport-1-in.cisco.com ([171.71.176.70]:54164 "EHLO sj-iport-1.cisco.com") by vger.kernel.org with ESMTP id S1030458AbWJYOFC (ORCPT ); Wed, 25 Oct 2006 10:05:02 -0400 To: Jason Gunthorpe Cc: Matthew Wilcox , linux-ia64@vger.kernel.org, Jeff Garzik , linux-kernel@vger.kernel.org, openib-general@openib.org, linux-pci@atrey.karlin.mff.cuni.cz Subject: Re: [openib-general] Ordering between PCI config space writes and MMIO reads? X-Message-Flag: Warning: May contain useful information References: <20061024192210.GE2043@havoc.gtf.org> <20061024214724.GS25210@parisc-linux.org> <20061024223631.GT25210@parisc-linux.org> <20061024225935.GK4054@obsidianresearch.com> From: Roland Dreier Date: Wed, 25 Oct 2006 07:04:56 -0700 In-Reply-To: <20061024225935.GK4054@obsidianresearch.com> (Jason Gunthorpe's message of "Tue, 24 Oct 2006 16:59:35 -0600") Message-ID: User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.18 (linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-OriginalArrivalTime: 25 Oct 2006 14:04:56.0916 (UTC) FILETIME=[8D507940:01C6F83E] Authentication-Results: sj-dkim-3.cisco.com; header.From=rdreier@cisco.com; dkim=pass ( sig from cisco.com verified; ); Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 792 Lines: 17 > I'm not sure that can work either. The PCI-X spec is very clear, you > must wait for a non-posted completion if you care about order. Doing a > config read in the driver as a surrogate flush is not good enough in > the general case. Like you say, a pci bridge is free to reorder all > in flight non-posted operations. No, hang on. Nothing can reorder a dependent read to start after a write that it depends on, can it? So a config read of PCI_COMMAND can't start until the completion of a config write of the same register, right? - R. - 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/