Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757298AbXLWXU1 (ORCPT ); Sun, 23 Dec 2007 18:20:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752515AbXLWXUS (ORCPT ); Sun, 23 Dec 2007 18:20:18 -0500 Received: from gate.crashing.org ([63.228.1.57]:49064 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750886AbXLWXUQ (ORCPT ); Sun, 23 Dec 2007 18:20:16 -0500 Subject: Re: [patch] Make MMCONFIG space (extended PCI config space) a driver opt-in issue From: Benjamin Herrenschmidt Reply-To: benh@kernel.crashing.org To: Martin Mares Cc: Linus Torvalds , Jeff Garzik , Arjan van de Ven , linux-kernel@vger.kernel.org, gregkh@suse.de, linux-pci@atrey.karlin.mff.cuni.cz In-Reply-To: <1198451202.6686.28.camel@pasglop> References: <476D1D16.5090703@garzik.org> <20071222064719.73fdd9a4@laptopd505.fenrus.org> <476DB95F.3090801@garzik.org> <476DDFEE.3010009@garzik.org> <476DE98F.2010009@garzik.org> <1198444150.6686.17.camel@pasglop> <1198451202.6686.28.camel@pasglop> Content-Type: text/plain Date: Mon, 24 Dec 2007 10:19:07 +1100 Message-Id: <1198451947.6686.34.camel@pasglop> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1300 Lines: 36 On Mon, 2007-12-24 at 10:06 +1100, Benjamin Herrenschmidt wrote: > On Sun, 2007-12-23 at 22:15 +0100, Martin Mares wrote: > > Hello! > > > > > - During that probe, you set a flag if any device has capabilities that > > > extend beyond 0xff. > > > > Can this work? The extended capabilities are not linked to the normal > > ones in any way. > > Yeah, well, you set a flag if you have extended capabilities. I don't > have my spec at hand (or the code) but can't we know if there are any > based on some non-ext field ? Allright, I d/l the spec and you are right... Yet another massive Intel f*ckup in the definition of PCI... Argh. So that means you can't automatically detect that there's potentially stuff in the extended caps. You still can do the initial probe solely with type1, that would work around the problem with MMCONFIG overlapping sized BARs (ah, BAR sizing, yet another case where somebody at Intel should rather have broken an arm that day). I still don't believe much in the idea of drivers enabling MMCONFIG though. Ben., -- 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/