Re: [PATCH 2/3] ARM: kexec: copying code to ioremapped area

2014-01-22 Thread Wang Nan
On 2014/1/22 21:27, Russell King - ARM Linux wrote: > On Wed, Jan 22, 2014 at 07:25:15PM +0800, Wang Nan wrote: >> ARM's kdump is actually corrupted (at least for omap4460), mainly because of >> cache problem: flush_icache_range can't reliably ensure the copied data >> correctly goes into RAM. > >

Re: [PATCH 2/3] ARM: kexec: copying code to ioremapped area

2014-01-22 Thread Russell King - ARM Linux
On Wed, Jan 22, 2014 at 07:25:15PM +0800, Wang Nan wrote: > ARM's kdump is actually corrupted (at least for omap4460), mainly because of > cache problem: flush_icache_range can't reliably ensure the copied data > correctly goes into RAM. Quite right too. You're mistake here is thinking that flush

Re: [PATCH 2/3] ARM: kexec: copying code to ioremapped area

2014-01-22 Thread Wang Nan
On 2014/1/22 20:56, Vaibhav Bedia wrote: > On Wed, Jan 22, 2014 at 6:25 AM, Wang Nan > wrote: > > ARM's kdump is actually corrupted (at least for omap4460), mainly because > of > cache problem: flush_icache_range can't reliably ensure the copied data > cor

[PATCH 2/3] ARM: kexec: copying code to ioremapped area

2014-01-22 Thread Wang Nan
ARM's kdump is actually corrupted (at least for omap4460), mainly because of cache problem: flush_icache_range can't reliably ensure the copied data correctly goes into RAM. After mmu turned off and jump to the trampoline, kexec always failed due to random undef instructions. This patch use iorema