Ticket #1179 (closed defect: fixed)

Opened 10 years ago

Last modified 9 years ago

Mobile phone hands after 'shutdown now' from the command line

Reported by: audriusa@… Owned by: openmoko-kernel
Priority: high Milestone:
Component: kernel Version: 2007.2
Severity: trivial Keywords:
Cc: buglog@… Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: no PatchReviewResult:
Reproducible:

Description

My instance of the Neo hangs if I send 'shutdown now' via ssh. It should
shutdown normally instead (it is rather convenient to turn it that way). The
reboot command works correctly.

The phone hangs when the shutdown progress bar goes over almost full length,
several pixels remaining. It is not responding to power button any longer and
the only way to bring it out of this condition is to remove the battery.

Change History

comment:1 Changed 10 years ago by balrogg@…

I can see this too, here's the stack trace that gets printed on the UART1 in qemu:

gta01-pm-gsm gta01-pm-gsm.0: powered down GSM, thus enabling serial console
pcf50606_rtc_set_time: RTC_TIME: 20.1.108 16:22:49
pcf50606_rtc_set_time: PCF_TIME: 20.01.08 16:22:49
Unable to handle kernel paging request at virtual address 49000028
pgd = c3bc8000
[49000028] *pgd=00000000
Internal error: Oops: 15 #4 PREEMPT
Modules linked in: snd_soc_s3c24xx_i2s rfcomm ohci_hcd hidp l2cap hci_usb bluetooth
CPU: 0 Not tainted (2.6.22.5-moko11 #1)
PC is at usb_hcd_platform_shutdown+0x18/0x30
LR is at platform_drv_shutdown+0x20/0x24
pc : [<c0197830>] lr : [<c0182578>] psr: 40000013
sp : c560de28 ip : c560de38 fp : c560de34
r10: 00000000 r9 : c560c000 r8 : c00270c8
r7 : fee1dead r6 : 0005f550 r5 : c02f7618 r4 : c02f9498
r3 : 49000000 r2 : c560c000 r1 : 00000001 r0 : c7ec8400
Flags: nZcv IRQs on FIQs on Mode SVC_32 Segment user
Control: c0007177 Table: 33bc8000 DAC: 00000015
Process halt (pid: 1822, stack limit = 0xc560c260)
Stack: (0xc560de28 to 0xc560e000)
de20: c560de44 c560de38 c0182578 c0197824 c560de5c c560de48
de40: c01846a0 c0182564 00000003 4321fedc c560de74 c560de60 c0050270 c0184608
de60: c560de84 4321fedc c560de84 c560de78 c00502c8 c0050244 c560dfa4 c560de88
de80: c0051b24 c00502c0 c004fa14 c004f990 00000000 c04aeac0 c560dee4 c560dea8
dea0: c025f574 c003c894 00000007 00000000 c04aebd4 c560c000 00000000 c560c000
dec0: c560df00 c560c000 00000014 c00270c8 c560c000 00000000 c560defc c560dee8
dee0: c025f60c c003c894 c560c000 00000000 c560dfa4 c560df00 c004ec50 c025f5d0
df00: 00000014 00000000 00000000 0000071e 00000000 00000103 00000001 00000000
df20: c560c000 c04a9ca8 c04a9ca0 00024800 60000013 c0461260 c560df64 c560df48
df40: c0088de0 c014b8f0 00024800 0008a628 fffffffe fffffffe c560df94 c560df68
df60: c008b2e4 c0088d64 00000001 00000001 00000001 0000002f 00000000 00000000
df80: 00000005 00000000 00000000 00000000 00000000 00000058 00000000 c560dfa8
dfa0: c0026f20 c0051a20 00000000 00000000 fee1dead 28121969 4321fedc 0005f550
dfc0: 00000000 00000000 00000000 00000058 00000001 00000001 00000001 fffffff6
dfe0: 00011d38 bec1acc8 000091b8 400c6c88 20000010 fee1dead 00000000 00000000
Backtrace:
[<c0197818>] (usb_hcd_platform_shutdown+0x0/0x30) from [<c0182578>]
(platform_drv_shutdown+0x20/0x24)
[<c0182558>] (platform_drv_shutdown+0x0/0x24) from [<c01846a0>]
(device_shutdown+0xa4/0xd0)
[<c01845fc>] (device_shutdown+0x0/0xd0) from [<c0050270>]
(kernel_shutdown_prepare+0x38/0x44)

r5:4321fedc r4:00000003

[<c0050238>] (kernel_shutdown_prepare+0x0/0x44) from [<c00502c8>]
(kernel_power_off+0x14/0x28)

r4:4321fedc

[<c00502b4>] (kernel_power_off+0x0/0x28) from [<c0051b24>] (sys_reboot+0x110/0x214)
[<c0051a14>] (sys_reboot+0x0/0x214) from [<c0026f20>] (ret_fast_syscall+0x0/0x2c)

r7:00000058 r6:00000000 r5:00000000 r4:00000000

Code: e24cb004 e59030f8 e1a00003 e59330b0 (e5933028)

Unfortunately I won't have time to debug this this week, and perhaps effort
should be concentrated on fixing 2.6.24 instead.

comment:2 Changed 10 years ago by audriusa@…

  • Severity changed from normal to trivial

Another command, poweroff, does turn the phone off. Hence the principal
possibility exists and likely something minor should be fixed. Well, the
severity is likely really not horrible, reducing it to trivial.

comment:3 Changed 9 years ago by andy

Does this still exist on 2.6.24 based kernel for GTA01?

comment:4 Changed 9 years ago by roh

  • Owner changed from willie_chen@… to willie_chen

comment:5 Changed 9 years ago by john_lee

  • Owner changed from willie_chen to openmoko-kernel
  • Status changed from new to assigned
  • HasPatchForReview unset

comment:6 Changed 9 years ago by john_lee

  • Status changed from assigned to closed
  • Resolution set to fixed

shutdown -h now works on gta01 with daily image from testing repo.

Note: See TracTickets for help on using tickets.