Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964822AbWBTLdB (ORCPT ); Mon, 20 Feb 2006 06:33:01 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964873AbWBTLdB (ORCPT ); Mon, 20 Feb 2006 06:33:01 -0500 Received: from smtp.osdl.org ([65.172.181.4]:22423 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S964822AbWBTLdA (ORCPT ); Mon, 20 Feb 2006 06:33:00 -0500 Date: Mon, 20 Feb 2006 03:31:15 -0800 From: Andrew Morton To: Ivan Kokshaysky Cc: adaplas@gmail.com, linux-kernel@vger.kernel.org, bjk@luxsci.net Subject: Re: Bugzilla: PCI resource address mismatch Message-Id: <20060220033115.220fb924.akpm@osdl.org> In-Reply-To: <20060220142600.A25613@jurassic.park.msu.ru> References: <43F91283.4050307@gmail.com> <20060220142600.A25613@jurassic.park.msu.ru> X-Mailer: Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-redhat-linux-gnu) 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: 2119 Lines: 45 Ivan Kokshaysky wrote: > > On Mon, Feb 20, 2006 at 08:51:15AM +0800, Antonino A. Daplas wrote: > > Ben Kibbey reported that vesafb has stopped working for him for kernels newer than > > 2.6.12. His display is completely blanked. After a long debugging session, we noted > > that the address of resource 0 of his VGA controller as reported by lspci does not > > match what is reported by the BIOS. > > > > More details: > > > > In the working kernel (2.6.12.x), vesafb correctly ioremap's the framebuffer memory > > located at 0xff000000. lspci reports the same thing: > > > > PCI: Using IRQ router SIS [1039/0008] at 0000:00:01.0 > > PCI: Cannot allocate resource region 9 of bridge 0000:00:02.0 > > There are two bogus entries in the BIOS memory map table which are > conflicting with a prefetchable memory range of the AGP bridge: > > BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved) > BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved) > > 0000:00:02.0 PCI bridge: Silicon Integrated Systems [SiS] Virtual PCI-to-PCI bridge (AGP) (prog-if 00 [Normal decode]) > Flags: bus master, fast devsel, latency 0 > Bus: primary=00, secondary=01, subordinate=01, sec-latency=0 > I/O behind bridge: 0000c000-0000cfff > Memory behind bridge: e7e00000-e7efffff > Prefetchable memory behind bridge: fec00000-ffcfffff > ^^^^^^^^^^^^^^^^^ > > Starting from 2.6.13, kernel tries to resolve that sort of conflicts, > so that prefetch window of the bridge and the framebuffer memory behind > it get moved to 0x10000000. > Unfortunately, video BIOS still expects the framebuffer to be at 0xff000000, > that's why vesafb doesn't work. Won't this always be a problem if we've moved the framebuffer? Or is there some way in whcih the kernel can communicate the new address to the BIOS, but this BIOS isn't handling that right? - 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/