Bug#818951: linux: [armv7] kernel panic on power down of Cubieboard (A20)

2016-05-02 Thread Peter Colberg
Hi Uwe,

On Mon, May 02, 2016 at 09:22:50AM +0200, Uwe Kleine-König wrote:
> In the good case the message
> 
>   i2c i2c-0: mv64xxx: I2C bus locked, block: 1, time_left: 0
> 
> isn't there, right?

Correct, the message is printed only in the bad case. Note how the
message along with the panic occurs after a pause of two seconds.

Regards,
Peter



Bug#818951: linux: [armv7] kernel panic on power down of Cubieboard (A20)

2016-05-02 Thread Uwe Kleine-König
Hello Peter,

On 05/02/2016 04:59 AM, Peter Colberg wrote:
> Are any of you running an armv7 board similar to the Cubieboard or
> Cubietruck by chance, who happen to see a kernel panic on poweroff
> using Debian testing/unstable with Linux kernel 4.2 up to 4.5?
> 
> https://bugs.debian.org/818951

In the good case the message

i2c i2c-0: mv64xxx: I2C bus locked, block: 1, time_left: 0

isn't there, right?

Best regards
Uwe



signature.asc
Description: OpenPGP digital signature


Bug#818951: linux: [armv7] kernel panic on power down of Cubieboard (A20)

2016-05-01 Thread Peter Colberg
Dear Debian ARM porters,

Are any of you running an armv7 board similar to the Cubieboard or
Cubietruck by chance, who happen to see a kernel panic on poweroff
using Debian testing/unstable with Linux kernel 4.2 up to 4.5?

https://bugs.debian.org/818951

Regards,
Peter



Bug#818951: linux: [armv7] kernel panic on power down of Cubieboard (A20)

2016-03-21 Thread Peter Colberg
Source: linux
Version: 4.4.6-1
Severity: normal
Tags: upstream

Dear Maintainer,

After upgrading from jessie to stretch, my Cubieboard (Allwinner A20)
no longer powers down; instead, the machine halts with a kernel panic
while continuing to be powered.

I captured the following output on the serial console:

# poweroff
[  654.415345] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[  654.457107] systemd-journald[272]: Received SIGTERM from PID 1 
(systemd-shutdow).
[  654.576175] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[  654.614229] systemd-shutdown[1]: Unmounting file systems.
[  654.624854] systemd-shutdown[1]: Remounting '/' read-only with options 
'ssd,discard,space_cache,subvolid=5,subvol=/'.
[  654.900813] BTRFS info (device dm-0): disk space caching is enabled
[  655.043127] systemd-shutdown[1]: Remounting '/' read-only with options 
'ssd,discard,space_cache,subvolid=5,subvol=/'.
[  655.058439] BTRFS info (device dm-0): disk space caching is enabled
[  655.069255] systemd-shutdown[1]: All filesystems unmounted.
[  655.079341] systemd-shutdown[1]: Deactivating swaps.
[  655.089177] systemd-shutdown[1]: All swaps deactivated.
[  655.099060] systemd-shutdown[1]: Detaching loop devices.
[  655.109904] systemd-shutdown[1]: All loop devices detached.
[  655.120212] systemd-shutdown[1]: Detaching DM devices.
[  655.131915] systemd-shutdown[1]: Detaching DM 254:0.
[  655.141723] systemd-shutdown[1]: Could not detach DM /dev/dm-0: Device or 
resource busy
[  655.154470] systemd-shutdown[1]: Not all DM devices detached, 1 left.
[  655.165667] systemd-shutdown[1]: Cannot finalize remaining DM devices, 
continuing.
[  655.180404] systemd-shutdown[1]: Failed to finalize  DM devices, ignoring
[  655.192305] systemd-shutdown[1]: Powering off.
[  655.201618] kvm: exiting hardware virtualization
[  655.211292] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[  655.221730] sd 0:0:0:0: [sda] Stopping disk
[  655.323690] reboot: Power down
[  657.329374] i2c i2c-0: mv64xxx: I2C bus locked, block: 1, time_left: 0
[  657.342678] Kernel panic - not syncing: Attempted to kill init! 
exitcode=0x
[  657.342678]
[  657.361647] CPU: 0 PID: 1 Comm: systemd-shutdow Not tainted 
4.4.0-1-armmp-lpae #1 Debian 4.4.6-1
[  657.375569] Hardware name: Allwinner sun7i (A20) Family
[  657.385995] [] (unwind_backtrace) from [] 
(show_stack+0x20/0x24)
[  657.399051] [] (show_stack) from [] 
(dump_stack+0xa0/0xb4)
[  657.411627] [] (dump_stack) from [] (panic+0xc0/0x258)
[  657.423871] [] (panic) from [] (do_exit+0xa54/0xa78)
[  657.435964] [] (do_exit) from [] (SyS_reboot+0x1c8/0x238)
[  657.448589] [] (SyS_reboot) from [] 
(ret_fast_syscall+0x0/0x34)
[  657.461841] ---[ end Kernel panic - not syncing: Attempted to kill init! 
exitcode=0x
[  657.461841]

In order to pinpoint the kernel version that introduced the
regression, I tested the following kernels from snapshot.d.o:

linux-image-4.0.0-2-armmp-lpae  4.0.8-2  OK
linux-image-4.1.0-2-armmp-lpae  4.1.6-1  OK
linux-image-4.2.0-1-armmp-lpae  4.2.6-3  PANIC
linux-image-4.3.0-1-armmp-lpae  4.3.5-1  PANIC
linux-image-4.4.0-1-armmp-lpae  4.4.6-1  PANIC

The regression has been introduced in Linux 4.2. I compared the serial
console output of Linux 4.2/4.3/4.4, and, apart from the address offsets,
the stack traces of the kernel panic are identical.

Please let me know how I can help with further debugging.

Regards,
Peter