Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 25 Jul 2002 10:37:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 25 Jul 2002 10:37:20 -0400 Received: from s1.relay.oleane.net ([195.25.12.48]:48364 "HELO s1.relay.oleane.net") by vger.kernel.org with SMTP id ; Thu, 25 Jul 2002 10:37:20 -0400 From: To: Alan Cox Cc: Andre Hedrick , , Vojtech Pavlik , William Lee Irwin III , Subject: Re: PCI config locking (WAS Re: [RFC/CFT] cmd640 irqlocking fixes)2 Date: Thu, 25 Jul 2002 16:40:05 +0200 Message-Id: <20020725144005.8706@smtp.adsl.oleane.com> In-Reply-To: <1027611916.9488.79.camel@irongate.swansea.linux.org.uk> References: <1027611916.9488.79.camel@irongate.swansea.linux.org.uk> X-Mailer: CTM PowerMail 3.1.2 F MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1129 Lines: 27 >> So there seem to be a problem with your patch: pci_config_lock appears >> to be an x86-only thing that lives deep inside arch/i386/xxx/pci-pc.c >> (xxx beeing kernel or pci) >> >> On the other hand, there is already such a lock provided by >> drivers/pci/access.c (pci_lock). You should probably fix your patch >> to use that one. (and eventually get rid of the pci_config_lock >> in x86, provided I didn't miss something else). But does anybody >> but x86 uses CMD640 ? :) > >Possibly. I don't know. The lock in question we want is the config lock. >We are issuing configuration cycles so must lock against a parallel >issue of I/O to the configuration ports. Well, all config operations are going through the pci_read/write_config_xxxx in drivers/pci/pci.c or access.c (2.5) which will take the pci_lock already. Couldn't x86 use that instead of stacking another lock ? 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/