Messages in this thread | | | Date | Tue, 6 Jan 2004 07:48:37 -0800 (PST) | From | Linus Torvalds <> | Subject | Re: PCI memory allocation bug with CONFIG_HIGHMEM |
| |
On Tue, 6 Jan 2004, Andi Kleen wrote: > > Anyways, I already implemented reservation for the aperture for the K8 > driver some time ago. And it's in your tree. But it doesn't help for > finding IO holes because there could be other unmarked hardware lurking > there ... Or worse there is just no free space below 4GB.
The "unmarked hardware" is why we have PCI quirks. Look at drivers/pci/quirks.c, and notice how many of the quirks are all about quirk_io_region(). Exactly because there isn't any way for the BIOS to tell us about these things on the IO side.
(Actually, there is: PnP-BIOS calls are supposed to give us that information. However, not only are the BIOSes buggy and don't give a complete list _anyway_, anybody who uses the PnP-BIOS is much more likely to just get a kernel oops when the BIOS is buggy and assumes that only Windows will call it. So I strongly suggest you not _ever_ use pnp unless you absolutely have to).
The same quirks could be done on the MMIO side for northbridges.
Linus - 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/
| |