Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 22 Dec 2002 15:57:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 22 Dec 2002 15:57:47 -0500 Received: from [195.208.223.248] ([195.208.223.248]:55168 "EHLO localhost.localdomain") by vger.kernel.org with ESMTP id ; Sun, 22 Dec 2002 15:57:46 -0500 Date: Mon, 23 Dec 2002 00:05:42 +0300 From: Ivan Kokshaysky To: "Eric W. Biederman" Cc: Ivan Kokshaysky , Linus Torvalds , davidm@hpl.hp.com, linux-kernel@vger.kernel.org Subject: Re: PATCH 2.5.x disable BAR when sizing Message-ID: <20021223000542.C30070@localhost.park.msu.ru> References: <20021222213945.A30070@localhost.park.msu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from ebiederm@xmission.com on Sun, Dec 22, 2002 at 12:47:51PM -0700 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1269 Lines: 30 On Sun, Dec 22, 2002 at 12:47:51PM -0700, Eric W. Biederman wrote: > Not if it is an NMI or an SCI interrupt. The latter on x86 places > the cpu in System Management Mode, and what the cpu does from that > point forward is out of our control. > > Though disabling cpu controlled IRQs help if you are dealing > with any normal IRQs. I meant the timer interrupt in the first place. I assumed it's the only one that does matter on this stage of the boot process. What else could happen (in the real world terms)? > The window needs to be small from the PCI bus perspective, not in cpu > clocks. Write, Read, Write is only something like 9 PCI bus clocks. No, the window is huge from the PCI bus perspective. IIRC, PCI config read/write on x86 works like this (I may be wrong though): i/o port write (BAR address) ~1us i/o port read (BAR value after writing ~0) ~1us i/o port write (BAR address) ~1us i/o port write (saved BAR value) ~1us It's a little bit more than 9 PCI clocks. Am I missing something? Ivan. - 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/