
Dear Paul,
in message 200410111119.07866.pruhland@microwavedata.com you wrote:
I had code to autodetect the ram working but I removed it since it required changes to several files relating to how the DRAM config is handled (printed, passed to kernel, etc).
OK.
For configurations with more than 32MB of DRAM the layout is not contiguous, ie. more than one bank is required. Since the number of DRAM banks is #defined there is no way to adjust this at runtime. The result is having an extra bank of zero size configured for boards with <= 32MB DRAM.
And this cannot be fixed?
This gives the wrong impression...that there are more DRAM banks but for some reason one is zero size (ie. something is wrong).
I don't understand. You tell me, that there is no SDRAM populated on one of the banks, resulting in a smaller total RAM size, and you hesitate to show this information to the user?
It would be nice if either:
- the number of DRAM banks was configurable at runtime.
Personally, I don't see any need to display the number of banks at all; on PowerPC systems we just print the total RAM size, and every- body is happy with this.
But no matter what you want - both methods can be implemented. Feel free to submit a patch.
- leave the number of DRAM banks #defined (as max. banks) and simply add
checks for zero size in the config print, kernel atag, etc. handling to skip such banks.
Why skip them? What's wrong that a bank that is not populated shows up with a zero size?
Best regards,
Wolfgang Denk