[patch 0/2] ARM: Disable outer cache before kexec call -V3

Baruch Siach baruch at tkos.co.il
Wed Aug 4 03:00:29 EDT 2010


Hi Andrea,

On Wed, Aug 04, 2010 at 08:46:21AM +0200, Andrea Paterniani wrote:
> Il 03/08/2010 19.36, Gadiyar, Anand ha scritto:
> >Andrea Paterniani wrote:
> >>Hi,
> >>      I have applied your patches to kernel 2.6.35-rc4 running on my beagleboard.
> >>I'm using kexec-tools-2.0.1.
> >>
> >>My u-boot bootargs is:
> >>      console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait ip=192.168.2.13::255.255.255.0
> >>
> >>To restart the system I type:
> >>  >  sync
> >>  >  kexec -l /boot/zImage --append="console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait ip=192.168.2.13::255.255.255.0"
> >>  >  kexec -e
> >>
> >>Not every time the system restart.
> >>In some cases no output on the console after the following:
> >>      Bye!
> >>      Uncompressing Linux... done, booting the kernel.
> >>
> >>Any idea?
> >>
> >Can you try building your kernel with CONFIG_EARLY_PRINTK,
> >and add the word "earlyprintk" to your bootargs?
> >
> How to enable EARLY_PRINTK for ARM architecture?
> Browsing kernel source I find arch/arm/kernel/early_printk.c but no
> way to enable CONFIG_EARLY_PRINTK from make menuconfig.
> Is there any patch to have this config option for ARM?

EARLY_PRINTK is in arch/arm/Kconfig.debug. It depends on DEBUG_LL, though. So 
you must enable DEBUG_LL to make EARLY_PRINTK visible.

baruch

> 
> - Andrea
> >
> >>Il 05/07/2010 13.52, Thomas Gleixner ha scritto:
> >>>The following patch series addresses the problem that the kexec code
> >>>does not disable the outer cache before disabling the inner cache and
> >>>jumping into the new kernel. This results in random crashes of the new
> >>>kernel.
> >>>
> >>>Changes since version 2:
> >>>
> >>>   - Use CLEAN_INV_WAY in l2x0_flush_all according to Catalin
> >>>
> >>>   - Rename outer_cache_disable() to outer_disable()
> >>>
> >>>   - Added a  BUG_ON() when l2x0_inv_all() is called with L2 enabled.
> >>>
> >>>Thanks,
> >>>
> >>>       tglx

-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -



More information about the linux-arm-kernel mailing list