Re: PPC & 2.6.0-test3: wrong mem size & hang on ifconfig

Tom Rini
2003-10-14T23:25:18Z

On Tue, Oct 14, 2003 at 10:58:05PM +0300, Meelis Roos wrote:
> > > This is Motorola Poserstack Pro4000 (UtahII), it has no residual data,
> > > at least the messages say so.
> >
> > Does that machine have openfirmware by chance?
>
> Yes, OF is present.

Ah-ha!

> I will be away and can access this computer only on next Monday again.

Can you apply the following patch (2.6)? I'm expecting it to print out that
it hard-codes to 32mb.

===== arch/ppc/boot/prep/misc.c 1.18 vs edited =====
--- 1.18/arch/ppc/boot/prep/misc.c Tue Jan 7 13:25:58 2003
+++ edited/arch/ppc/boot/prep/misc.c Tue Oct 14 16:23:55 2003
@@ -224,14 +224,18 @@
if (((pci_viddid & 0xffff) == PCI_VENDOR_ID_MOTOROLA)
&& ((pci_did == PCI_DEVICE_ID_MOTOROLA_MPC105)
|| (pci_did == PCI_DEVICE_ID_MOTOROLA_MPC106)
- || (pci_did == PCI_DEVICE_ID_MOTOROLA_MPC107)))
+ || (pci_did == PCI_DEVICE_ID_MOTOROLA_MPC107))) {
+ puts("Probing for memory\n");
TotalMemory = get_mem_size();
/* If it's not, see if we have anything in the residual data. */
- else if (residual && residual->TotalMemory)
+ } else if (residual && residual->TotalMemory) {
+ puts("Residual? Shouldn't!\n");
TotalMemory = residual->TotalMemory;
/* Fall back to hard-coding 32MB. */
- else
+ } else {
+ puts("Hard-coded\n");
TotalMemory = 32*1024*1024;
+ }

/* assume the chunk below 8M is free */

Thanks.