[ELDK] Glacier PPC460GT glacier.dts cache 2 problem in last linux git
Stefan Roese
sr at denx.de
Fri Jun 26 10:58:09 CEST 2009
Hi Etienne,
On Thursday 18 June 2009 16:38:30 Etienne Lorrain wrote:
> Not sure to be in the right place for linux-2.6-denx.git tree for
> the Glacier PPC460GT card, but I got latest tree by:
> git clone http://git.denx.de/linux-2.6-denx.git
> and re-generate/download the dtb & kernel - it does not work unless I apply
> this patch:
> diff arch/powerpc/boot/dts/glacier.dts
> arch/powerpc/boot/dts/glacier.dts-initial 108a109,118
>
> > L2C0: l2c {
> > compatible = "ibm,l2-cache-460ex", "ibm,l2-cache";
> > dcr-reg = <20 8 /* Internal SRAM DCR's */
> > 30 8>; /* L2 cache DCR's */
> > cache-line-size = <20>; /* 32 bytes */
> > cache-size = <40000>; /* L2, 256K */
> > interrupt-parent = <&UIC2>;
> > interrupts = <17 1>;
> > };
This looks wrong. Somehow we missed fixing these hex vs. decimal values in the
Glacier dts file. Here the Canyonlands version:
L2C0: l2c {
compatible = "ibm,l2-cache-460ex", "ibm,l2-cache";
dcr-reg = <0x020 0x008 /* Internal SRAM DCR's */
0x030 0x008>; /* L2 cache DCR's */
cache-line-size = <32>; /* 32 bytes */
cache-size = <262144>; /* L2, 256K */
interrupt-parent = <&UIC1>;
interrupts = <11 1>;
};
You see the difference. Please give this one a try and let me know if it
works.
> i.e. Glacier does not work (uboot latest from git at denx last line:
> Loading Device Tree to ... OK) if secondary memory cache is enabled. Seems
> 460ex and 460gt processors do not have the same cache, but being extremely
> new to those two, I cannot say more...
I'm pretty sure that both 406EX and 460GT have the same L2 cache. So there
shouldn't be any difference here. I'm pretty sure that the Canyonlands L2C
cache node will work on Glacier as well.
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
More information about the eldk
mailing list