Re: 【BUG】The kernel start fail when enable CONFIG_ARM64_LSE_ATOMICS and KCOV_INSTRUMENT_ALL

2017-10-17 Thread Bixuan Cui
> This is a known issue [1,2] that's being worked on at the moment. > > The problem is that the out-of-line LL/SC atomics are built with a > special ABI, but KCOV inserts calls to other code that does not follow > this ABI, resulting in register corruption. > > When I saw this happen, this result

Re: 【BUG】The kernel start fail when enable CONFIG_ARM64_LSE_ATOMICS and KCOV_INSTRUMENT_ALL

2017-10-17 Thread Mark Rutland
On Tue, Oct 17, 2017 at 01:54:35PM +0800, Bixuan Cui wrote: > Hi, Hi, > I try to start the kernel(v4.14.0-rc4) by qemu while enable > CONFIG_ARM64_LSE_ATOMICS and KCOV_INSTRUMENT_ALL(use > arch/arm64/configs/defconfig) at the same time. Then > it hang: > qemu-system-aarch64 -kernel Image -m 204

【BUG】The kernel start fail when enable CONFIG_ARM64_LSE_ATOMICS and KCOV_INSTRUMENT_ALL

2017-10-16 Thread Bixuan Cui
Hi, I try to start the kernel(v4.14.0-rc4) by qemu while enable CONFIG_ARM64_LSE_ATOMICS and KCOV_INSTRUMENT_ALL(use arch/arm64/configs/defconfig) at the same time. Then it hang: qemu-system-aarch64 -kernel Image -m 2048 -smp 8 -initrd qemu-le.rootfs -cpu cortex-a57 -nographic -machine virt,kern