DSS2 oops when shutting down while DPMS is active

Bug #563650 reported by Oliver Grawert
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux-ti-omap (Ubuntu)
Won't Fix
Medium
Unassigned
Lucid
Won't Fix
Medium
Unassigned

Bug Description

issuing reboot or shutdown on a beagleboard while the screen is suspended (i.e. via serial console) causes an oops in dss/core.c

ogra@ubuntu:~$ sudo reboot
[sudo] password for ogra:

Broadcast message from ogra@ubuntu
        (/dev/ttyS2) at 2:10 ...

The system is going down for reboot NOW!
ogra@ubuntu:~$ init: tty4 main process (393) killed by TERM signal
init: tty5 main process (396) killed by TERM signal
init: tty2 main process (400) killed by TERM signal
init: tty3 main process (401) killed by TERM signal
init: tty6 main process (403) killed by TERM signal
init: cron main process (409) killed by TERM signal
init: ttyS2 main process (446) killed by TERM signal
init: tty1 main process (449) killed by TERM signal
[ OK ]ing all remaining processes to terminate...
[ OK ] processes ended within 1 seconds....
[ OK ]onfiguring network interfaces...
[ OK ]ctivating swap...
[ OK ]ounting weak filesystems...
 * Will now restart
[ 2323.079162] kernel BUG at /home/amit/work/.Canonical/sources/ubuntu-lucid/drivers/video/omap2/dss/core.c:323!
[ 2323.089233] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[ 2323.097412] pgd = cf99c000
[ 2323.100158] [00000000] *pgd=00000000
[ 2323.103759] Internal error: Oops: 805 [#1]
[ 2323.107879] last sysfs file: /sys/kernel/uevent_seqnum
[ 2323.113037] Modules linked in: arc4 zd1211rw mac80211 cfg80211 rfkill omap_wdt musb_hdrc leds_gpio twl4030_usb sg usb_storage
[ 2323.124481] CPU: 0 Not tainted (2.6.33-500-omap #5)
[ 2323.129730] PC is at __bug+0x1c/0x24
[ 2323.133331] LR is at __bug+0x18/0x24
[ 2323.136932] pc : [<c00396f0>] lr : [<c00396ec>] psr: 60000013
[ 2323.136932] sp : cf0dfe20 ip : c0602de0 fp : 00000000
[ 2323.148468] r10: 00000000 r9 : cf0de000 r8 : c0035c48
[ 2323.153717] r7 : c0278ffc r6 : 00000000 r5 : cf0dfe48 r4 : 00000003
[ 2323.160278] r3 : 00000000 r2 : c05cc868 r1 : 60000013 r0 : 00000077
[ 2323.166839] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
[ 2323.174011] Control: 10c5387d Table: 8f99c019 DAC: 00000015
[ 2323.179779] Process reboot (pid: 597, stack limit = 0xcf0de2e8)
[ 2323.185729] Stack: (0xcf0dfe20 to 0xcf0e0000)
[ 2323.190124] fe20: 00000003 c0272e6c c05c4d80 c0278ea4 c05c4d80 c02827fc 00000000 c027900c
[ 2323.198333] fe40: 00000000 c02ad15c cf846a78 cee1dd70 c05bd928 c05cb6f0 c066bfc4 01234567
[ 2323.206542] fe60: 00000058 c02aeb1c c05cb6f0 c02a9fd0 00000000 c05cdfb8 01234567 c007820c
[ 2323.214782] fe80: 00000000 c0078244 00000000 c00783c8 cf99d000 00000200 cef8fb40 4002c000
[ 2323.222991] fea0: 00000000 cf9e1de0 00000000 c00dc3e0 0000000d 00000000 00000000 cefbe1f0
[ 2323.231231] fec0: cf0dffb0 cf9e1de0 cef8fb40 4002c3fc cf0dffb0 00000200 cef8fb40 c04428dc
[ 2323.239440] fee0: 00000000 c04429bc c05bc414 00000000 00000007 c05bc484 cf0dffb0 00000000
[ 2323.247680] ff00: 4002c3fc c0035270 cf0dff6c c043f0c8 cf0dff4c c05d985c c05bc6e8 c05fd700
[ 2323.255889] ff20: c05cbc50 c06248a8 0001ab3f 00000000 00000000 c043f2b0 cef40d24 cf0de000
[ 2323.264099] ff40: e239080f 0000021c cf0dff7c cf0de000 c05da1bc 00000000 00000024 00000000
[ 2323.272338] ff60: cf0de000 00000000 cf0dff7c c043f2b0 cf2b7e40 c05da1bc cf2b7e00 c05da1bc
[ 2323.280548] ff80: cf2b7e00 c01156ec 2a009f3c 00000000 00000000 2a009f3c 00000000 be931ca8
[ 2323.288787] ffa0: 00000058 c0035aa0 2a009f3c 00000000 fee1dead 28121969 01234567 00000058
[ 2323.296997] ffc0: 2a009f3c 00000000 be931ca8 00000058 00000000 00000000 2a009f3c 00000000
[ 2323.305206] ffe0: 2a009f50 be931ca8 2a00128f 400c0d42 00000030 fee1dead 0074696e 00000000
[ 2323.313446] [<c00396f0>] (__bug+0x1c/0x24) from [<c0272e6c>] (dss_clk_disable+0x88/0x98)
[ 2323.321594] [<c0272e6c>] (dss_clk_disable+0x88/0x98) from [<c0278ea4>] (omapdss_dpi_display_disable+0x20/0x3c)
[ 2323.331665] [<c0278ea4>] (omapdss_dpi_display_disable+0x20/0x3c) from [<c02827fc>] (generic_panel_disable+0xc/0x18)
[ 2323.342163] [<c02827fc>] (generic_panel_disable+0xc/0x18) from [<c027900c>] (dss_disable_device+0x10/0x18)
[ 2323.351898] [<c027900c>] (dss_disable_device+0x10/0x18) from [<c02ad15c>] (bus_for_each_dev+0x60/0x8c)
[ 2323.361236] [<c02ad15c>] (bus_for_each_dev+0x60/0x8c) from [<c02aeb1c>] (platform_drv_shutdown+0x18/0x1c)
[ 2323.370880] [<c02aeb1c>] (platform_drv_shutdown+0x18/0x1c) from [<c02a9fd0>] (device_shutdown+0x48/0x8c)
[ 2323.380432] [<c02a9fd0>] (device_shutdown+0x48/0x8c) from [<c007820c>] (kernel_restart_prepare+0x2c/0x34)
[ 2323.390045] [<c007820c>] (kernel_restart_prepare+0x2c/0x34) from [<c0078244>] (kernel_restart+0xc/0x40)
[ 2323.399505] [<c0078244>] (kernel_restart+0xc/0x40) from [<c00783c8>] (sys_reboot+0x148/0x1f0)
[ 2323.408081] [<c00783c8>] (sys_reboot+0x148/0x1f0) from [<c0035aa0>] (ret_fast_syscall+0x0/0x2c)
[ 2323.416839] Code: e30301e4 e34c0051 eb1014cb e3a03000 (e5833000)
[ 2323.434570] ---[ end trace bf08bfb116ae6118 ]---
Segmentation fault

Oliver Grawert (ogra)
Changed in linux-ti-omap (Ubuntu Lucid):
importance: Undecided → Medium
milestone: none → lucid-updates
assignee: nobody → Amit Kucheria (amitk)
Amit Kucheria (amitk)
Changed in linux-ti-omap (Ubuntu Lucid):
status: New → Confirmed
Revision history for this message
Robert Nelson (robertcnelson) wrote :

The attached quick patch seems to work me on my beagles, using on my 2.6.34 + dss2-for next builds...

I just sent it to the linux-omap mailing list for review...

Revision history for this message
Dana Goyette (danagoyette) wrote :

Hmm, rather than turning the display back on (which could be jarring if you reboot with screen off), would it be possible to just not do whatever it is that causes the null-pointer dereferences? You'd also want to compare to the behavior on x86 -- if you remote reboot, does the screen turn on?

Amit Kucheria (amitk)
Changed in linux-ti-omap (Ubuntu Lucid):
assignee: Amit Kucheria (amitk) → Mathieu Poirier (mathieu.poirier)
Changed in linux-ti-omap (Ubuntu):
assignee: Amit Kucheria (amitk) → Mathieu Poirier (mathieu.poirier)
Revision history for this message
Mathieu Poirier (mathieu.poirier-deactivatedaccount) wrote :

I have also seen this many times.

Revision history for this message
Mathieu Poirier (mathieu.poirier-deactivatedaccount) wrote :

This issue seems to have been resolved in kernels newer than 2.6.33-500-omap-5. We haven't seen it in 2.6.33-502 nor in Maverick.

Changed in linux-ti-omap (Ubuntu):
status: Confirmed → Won't Fix
Changed in linux-ti-omap (Ubuntu Lucid):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.