Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S265539AbUAGPM7 (ORCPT ); Wed, 7 Jan 2004 10:12:59 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S265580AbUAGPM7 (ORCPT ); Wed, 7 Jan 2004 10:12:59 -0500 Received: from ebiederm.dsl.xmission.com ([166.70.28.69]:7028 "EHLO ebiederm.dsl.xmission.com") by vger.kernel.org with ESMTP id S265539AbUAGPM5 (ORCPT ); Wed, 7 Jan 2004 10:12:57 -0500 To: Russell King Cc: "Eric W. Biederman" , Linus Torvalds , Andi Kleen , Mika Penttil? , Andi Kleen , David Hinds , linux-kernel@vger.kernel.org Subject: Re: PCI memory allocation bug with CONFIG_HIGHMEM References: <20040106040546.GA77287@colin2.muc.de> <20040106081203.GA44540@colin2.muc.de> <3FFA7BB9.1030803@kolumbus.fi> <20040106094442.GB44540@colin2.muc.de> <20040106153706.GA63471@colin2.muc.de> <20040107093143.A29200@flint.arm.linux.org.uk> From: ebiederm@xmission.com (Eric W. Biederman) Date: 07 Jan 2004 08:06:04 -0700 In-Reply-To: <20040107093143.A29200@flint.arm.linux.org.uk> Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1135 Lines: 27 Russell King writes: > On Tue, Jan 06, 2004 at 09:58:23PM -0700, Eric W. Biederman wrote: > > ffff0000-ffffffff : reserved > > > > That last reserved region is 64K. Which looking at the pci registers > > is technically correct at the moment. Only 64K happen to be decoded. > > We already have this distinction between in use (or busy) resources and > allocated resources. Surely the BIOS ROM region should be an allocation > resource not a busy resource, so that the MTD driver can obtain a busy > resource against it? Nope the BIOS region is allocated as BUSY, at least as it comes out of the E820 map. >From arch/i386/kernel/setup.c:legacy_init_iomem_resources .... res -> start = e820.map[i].addr; res -> end = res->start + e820.map[i].size - 1; res -> flags = IORESOURCE_MEM | IORESOURCE_BUSY; request_resource(&iomem_resource, res); Eric - 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/