lkml.org 
[lkml]   [2003]   [Oct]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: PPC & 2.6.0-test3: wrong mem size & hang on ifconfig
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.

--
Tom Rini
http://gate.crashing.org/~trini/
-
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/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.079 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site