Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 24 Feb 2002 16:40:38 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 24 Feb 2002 16:40:28 -0500 Received: from mail.pha.ha-vel.cz ([195.39.72.3]:50180 "HELO mail.pha.ha-vel.cz") by vger.kernel.org with SMTP id ; Sun, 24 Feb 2002 16:40:09 -0500 Date: Sun, 24 Feb 2002 22:40:07 +0100 From: Vojtech Pavlik To: Alan Cox Cc: Martin Dalecki , Troy Benjegerdes , Linus Torvalds , Andre Hedrick , Rik van Riel , Kernel Mailing List Subject: Re: Flash Back -- kernel 2.1.111 Message-ID: <20020224224007.A1949@ucw.cz> In-Reply-To: <3C794DC0.7040706@evision-ventures.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from alan@lxorguk.ukuu.org.uk on Sun, Feb 24, 2002 at 09:15:06PM +0000 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 24, 2002 at 09:15:06PM +0000, Alan Cox wrote: > > The previous code didn't distinguish the bus speed between different > > busses and it doesn't do now as well. > > It could be really helpfull to look at the patch actually. Don't you > > think? > > I know what would actually help here, (the other code wasn't broken IMHO) > and would clean this up properly for not just IDE. Add a bus_speed field > to the struct pci_bus - that is where the info belongs and its the platform > specific bus code that can find the bus speed out (if anyone) I have some experimental IDE based code which can detect the PCI bus speed by doing some IDE transfers and measuring the time it takes. It isn't 100% reliable, though. I haven't found any other way to detect PCI clock reliably, unfortunately it cannot be safely guessed from the CPU clock or FSB clock or anything. -- Vojtech Pavlik SuSE Labs - 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/