Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762124AbXIKBn7 (ORCPT ); Mon, 10 Sep 2007 21:43:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1761190AbXIKBnw (ORCPT ); Mon, 10 Sep 2007 21:43:52 -0400 Received: from mga01.intel.com ([192.55.52.88]:28823 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760620AbXIKBnv (ORCPT ); Mon, 10 Sep 2007 21:43:51 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.20,234,1186383600"; d="scan'208";a="301628519" Subject: Re: [RFC] disable PCIE 'Enable No Snoop' bit by default From: Shaohua Li To: Greg KH Cc: David Miller , matthew@wil.cx, linux-kernel@vger.kernel.org, linux-pci@atrey.karlin.mff.cuni.cz, akpm@linux-foundation.org, gregkh@suse.de In-Reply-To: <20070909164343.GC9199@kroah.com> References: <1189056908.24368.9.camel@sli10-conroe.sh.intel.com> <20070906115730.GE14130@parisc-linux.org> <20070906.054038.74750747.davem@davemloft.net> <20070909164343.GC9199@kroah.com> Content-Type: text/plain Date: Tue, 11 Sep 2007 09:29:43 +0800 Message-Id: <1189474183.3080.0.camel@sli10-conroe.sh.intel.com> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 (2.10.3-2.fc7) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1773 Lines: 33 On Sun, 2007-09-09 at 09:43 -0700, Greg KH wrote: > On Thu, Sep 06, 2007 at 05:40:38AM -0700, David Miller wrote: > > From: Matthew Wilcox > > Date: Thu, 6 Sep 2007 05:57:31 -0600 > > > > > I'm not sure your analysis is correct. Here's what my draft copy of > > > the pcie 2.0 spec says: > > > > > > Enble No Snoop ? If this bit is Set, the Function is permitted to > > > Set the No Snoop bit in the Requester Attributes of transactions it > > > initiates that do not require hardware enforced cache coherency (see > > > Section 2.2.6.5). Note that setting this bit to 1b should not cause > > > a Function to Set the No Snoop attribute on all transactions that it > > > initiates. Even when this bit is Set, a Function is only permitted > > > to Set the No Snoop attribute on a transaction when it can guarantee > > > that the address of the transaction is not stored in any cache in > > > the system. This bit permitted to be hardwired to 0b if a Function > > > would never Set the No Snoop attribute in transactions it initiates. > > > Default value of this bit is 1b. > > > > > > That implies that devices are only allowed to set it when it's safe to > > > do so ... and we don't need to turn it off. > > > > This is my understanding of this area of PCI-E as well, and I > > also agree that therefore we should not turn this bit off. > > I agree. But Shaohua, do you see any problems that this patch fixes? No, I didn't see any breakage, just worry about it's a potential issue. - 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/