On 28.05.2009 18:23 Uhr, Myles Watson wrote:
- Kontron will break because I removed its special case from the resource
allocator. I think with the new resource allocator it will be easy to fix, but I'd like a Kontron tester.
I'll be glad to test... Can you suggest a fix or give a pointer on how to fix this? If we can get rid of the PCIe hole handling hack, I'm all for checking this in.
I think there are a couple of possible fixes depending on what the real problem is.
If the problem is that it needs to be at a fixed address, allocate it at the top (as high as you can before the IOAPIC) of the address space, and mark it fixed.
It's basically really just a fixed address memory space of a certain fixed size that needs to be kept free by the resource allocator, very similar to the way it needs to be done for the IOAPIC and Local APIC.
Since the PCIe BAR is part of the northbridge, I tried to tell the resource allocator to do this in the northbridge.c code, but I couldn't seem to figure out a way to make the (old) allocator honor it.
Stefan