[U-Boot] [PATCH] ppc: Unlock cache-as-ram in a consistent manner

Wolfgang Denk wd at denx.de
Thu Jul 23 21:01:01 CEST 2009


Dear Peter Tyser,

In message <1247269570-11406-1-git-send-email-ptyser at xes-inc.com> you wrote:
> Previously, non-e500 architectures only unlocked their data cache which
> was used as early RAM when booting to Linux using the "bootm" command.
> This change causes all PPC boards with CONFIG_SYS_INIT_RAM_LOCK defined
> to unlock their data cache during U-Boot's initialization.  This
> improves U-Boot performance and provides a common cache state when
> booting to different OSes.
> 
> Signed-off-by: Peter Tyser <ptyser at xes-inc.com>
> ---
> I've tested this on 86xx boards, it'd be great if someone could test on
> 83xx and 74xx/7xx.  85xx boards should not be affected by this change.
> 
> This change assumes http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/63423
> has already been applied, or the lib/ppc patches in the diffs below can
> be changed to lib_ppc.
> 
> Peter
> 
>  lib/ppc/board.c |    6 +++---
>  lib/ppc/bootm.c |    9 ---------
>  2 files changed, 3 insertions(+), 12 deletions(-)

Applied.

Hm... tested on TQM834x - it's still booting, but flash recognition
stopped working:


OLD:

	U-Boot 2008.10-00085-g13f9496-dirty (Oct 22 2008 - 00:28:08) MPC83XX

	Reset Status:

	CPU:   e300c1, MPC8349E, Rev: 1.1 at 533.328 MHz, CSB: 266.664 MHz
	Board: TQM834x
	PCI1:  32 bit, 33 MHz
	I2C:   ready
	DTT:   1 is 32 C
	DRAM:  256 MB
	FLASH: 32 MB
	PCI:   Bus Dev VenId DevId Class Int
		00  0b  104c  ac55  0607  ff
		00  0b  104c  ac55  0607  ff
	...


NEW:

	U-Boot 2009.06-00513-g982adfc (Jul 23 2009 - 20:46:38) MPC83XX

	Reset Status: Software Hard, External/Internal Soft, External/Internal Hard

	CPU:   e300c1, MPC8349E, Rev: 1.1 at 533.328 MHz, CSB: 266.664 MHz
	Board: TQM834x
	PCI1:  32 bit, 33 MHz
	I2C:   ready
	DRAM:  256 MB
	FLASH: ## Unknown FLASH on Bank 1 - Size = 0x02000000 = 0 MB
	32 MB
	PCI:   Bus Dev VenId DevId Class Int
		00  0b  104c  ac55  0607  ff
		00  0b  104c  ac55  0607  ff
	=> fli

	Bank # 1: missing or unknown FLASH type

Probably because of caching?

I can't do anything right now as I cannot reprogram the flash any
more. Need to attach a BDI when I'm bck in the office tomorrow
morning.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"The one charm of marriage is that it makes a  life  of  deception  a
neccessity."                                            - Oscar Wilde


More information about the U-Boot mailing list