mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
To: "Antonino A. Daplas" <adaplas@gmail.com>
Cc: Linux Kernel Development <linux-kernel@vger.kernel.org>,
	bjk@luxsci.net, Andrew Morton <akpm@osdl.org>
Subject: Re: Bugzilla: PCI resource address mismatch
Date: Mon, 20 Feb 2006 14:26:00 +0300	[thread overview]
Message-ID: <20060220142600.A25613@jurassic.park.msu.ru> (raw)
In-Reply-To: <43F91283.4050307@gmail.com>; from adaplas@gmail.com on Mon, Feb 20, 2006 at 08:51:15AM +0800

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.

Booting with "mem=64M" (or what amount of RAM he has) should fix that,
as it causes the kernel to ignore e820 entries above 64M.

Ivan.

  reply	other threads:[~2006-02-20 11:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-20  0:51 Antonino A. Daplas
2006-02-20 11:26 ` Ivan Kokshaysky [this message]
2006-02-20 11:31   ` Andrew Morton
2006-02-20 23:26   ` Antonino A. Daplas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060220142600.A25613@jurassic.park.msu.ru \
    --to=ink@jurassic.park.msu.ru \
    --cc=adaplas@gmail.com \
    --cc=akpm@osdl.org \
    --cc=bjk@luxsci.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®