Ticket #2126 (closed defect: duplicate)

Opened 11 years ago

Last modified 2 years ago

xserver-xglamo eats 100% cpu time after resume

Reported by: lindi Owned by: openmoko-devel
Priority: normal Milestone:
Component: unknown Version:
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: no PatchReviewResult:


xserver-xglamo seems to spend 100% cpu time after resume from suspend sometimes.

I am using debian with

ii linux-image-2.6.24-openmoko-gta02 20081103.git7172ec57-1 Linux 2.6.24 kernel image for the Openmoko Neo Freerunner
ii xserver-xglamo tiny X server for the SMedia Glamo graphics chipset

Strace shows that xglamo calls gettimeofday again and again. The attached file xglamo-instructions.txt shows what instructions xglamo is executing according to gdb but backtrace prints just

#0 0x00014e3c in ?? ()
Cannot access memory at address 0x0

so it is not very usable. I can not kill X with kill -9 and dmesg shows

BUG: scheduling while atomic: X/1885/0x00000002
[<c0344a08>] (dump_stack+0x0/0x14) from [<c0041cdc>] (__schedule_bug+0x50/0x5c)
[<c0041c8c>] (__schedule_bug+0x0/0x5c) from [<c02b7c78>] (schedule+0x6c/0x2d4)
[<c02b7c0c>] (schedule+0x0/0x2d4) from [<c0041fec>] (sys_sched_yield+0x48/0x54)
[<c0041fa4>] (sys_sched_yield+0x0/0x54) from [<c02b8024>] (yield+0x24/0x28)
[<c02b8000>] (yield+0x0/0x28) from [<c01ad0d0>] (glamofb_cmd_mode+0x24/0xf0)
[<c01ad0ac>] (glamofb_cmd_mode+0x0/0xf0) from [<c01ad200>] (glamofb_set_par+0x64/0x444)
 r5:c7c6ce74 r4:c7c6cc00
[<c01ad19c>] (glamofb_set_par+0x0/0x444) from [<c01740ac>] (fb_set_var+0x1ac/0x258)
 r8:00000020 r7:c71abe48 r6:c7c6cc00 r5:c71abe48 r4:c01ace70
[<c0173f00>] (fb_set_var+0x0/0x258) from [<c01742ac>] (fb_ioctl+0x154/0x4dc)
[<c0174158>] (fb_ioctl+0x0/0x4dc) from [<c00a3b48>] (do_ioctl+0x80/0x9c)
 r8:c0029128 r7:00134628 r6:00004601 r5:00134628 r4:c7e652c0
[<c00a3ac8>] (do_ioctl+0x0/0x9c) from [<c00a3e1c>] (vfs_ioctl+0x2b8/0x2e8)
 r6:00004601 r5:c7e652c0 r4:c7ea80a4
[<c00a3b64>] (vfs_ioctl+0x0/0x2e8) from [<c00a3e8c>] (sys_ioctl+0x40/0x60)
 r7:c7e652c0 r6:00004601 r5:00134628 r4:00000004
[<c00a3e4c>] (sys_ioctl+0x0/0x60) from [<c0028f80>] (ret_fast_syscall+0x0/0x2c)
 r7:00000036 r6:00134fe0 r5:001351a8 r4:00134628


xglamo-instructions.txt (107.7 KB) - added by lindi 11 years ago.
dmesg2.txt (63.7 KB) - added by lindi 10 years ago.
output of 1b17c67794364bee from bootup till the moment where xglamo gets stuck

Change History

Changed 11 years ago by lindi

comment:1 Changed 11 years ago by andy

comment:2 Changed 11 years ago by lindi

Thanks for your patch. I started a kernel build to test your patch but meanwhile the bug occured again.

X seems to respond to touchscreen, I can move the mouse pointer but there is a lag of several seconds before it moves to a new position. X does not seem to ever finish redrawing xvkbd buttons (it has drawn the first row of letters but nothing new seems to be drawn). This time I don't see BUG print from kernel so maybe it is only printed if I try to kill -9 X? Before I could issue the kill command try this the device suddenly stopped responding to ping over usb network and did not react to anything on the touchscreen. I had to remove the battery to make it boot again.

I have not changed kernel recently. The only major change was upgrading to new version of fso-frameworkd and using.

mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/Usage org.freesmartphone.Usage.Suspend

instead of

mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/GSM/Device org.freesmartphone.GSM.Device.PrepareForSuspend
apm -s
mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/GSM/Device org.freesmartphone.GSM.Device.RecoverFromSuspend

to issue suspend (I had to do this since the API changed and the daemon itself now wants to do the "apm -s" invocation.)

comment:3 Changed 11 years ago by lindi


os.system("apm -s")

in the frameworkd source code to

os.system("sleep 4; apm -s; sleep 4")

seems to workaround the issue. Maybe this is some sort of race that happens when other processes slow down xglamo enough?

comment:4 Changed 10 years ago by lindi

With your patch I was able to do multiple suspends without any crashes (without those extra sleeps). I am now testing stable-tracking (with gta02-moredrivers-defconfig) which afaik has that patch too so I'll report back if I see xglamo freezing on resume again.

comment:5 Changed 10 years ago by andy

Great... you're better off with stable-tracking for suspend issues overall for sure.

FWIW Graeme is making full xorg solution for glamo


it's intended this will rewrite and fix the worst issues in there.

comment:6 Changed 10 years ago by lindi

I hit this now with stable-tracking at 1b17c67794364bee. I am attaching full dmesg output.

Changed 10 years ago by lindi

output of 1b17c67794364bee from bootup till the moment where xglamo gets stuck

comment:7 Changed 10 years ago by lindi

I can kill -9 xglamo this time. When I start xglamo again it does not exit but I do not see anything on the screen either. Kernel prints the following:

Nov 25 15:04:50 ginger user.err kernel: [43325.595000] glamofb_update_lcd_controller spin_lock_irqsave
Nov 25 15:04:50 ginger user.err kernel: [43325.595000] glamofb_update_lcd_controller spin_unlock_irqrestore
Nov 25 15:04:50 ginger user.err kernel: [43325.615000] fbcon_event_notify action=1, data=c7269df0
Nov 25 15:04:50 ginger user.err kernel: [43325.660000] glamofb_update_lcd_controller spin_lock_irqsave
Nov 25 15:04:50 ginger user.err kernel: [43325.660000] glamofb_update_lcd_controller spin_unlock_irqrestore
Nov 25 15:04:50 ginger user.err kernel: [43325.665000] fbcon_event_notify action=1, data=c7269df0

Also trying to set the backlight does not work anymore with X or without X running:

root@ginger:~# echo 1 > /sys/class/backlight/pcf50633-bl/bl_power
root@ginger:~# cat /sys/class/backlight/pcf50633-bl/bl_power
root@ginger:~# echo 63 > /sys/class/backlight/pcf50633-bl/brightness
root@ginger:~# cat /sys/class/backlight/pcf50633-bl/actual_brightness

Shouldn't backlight be adjustable always like that? (And would mean that this is actually a kernel bug and not xglamo bug).

comment:8 Changed 10 years ago by zecke

  • Status changed from new to closed
  • Resolution set to duplicate

Duplicate of #1315 and #2221 (filed by you?). Maybe you want to copy some of this to the other bug.

comment:9 Changed 2 years ago by Chassmetly

Amoxicillin Skin Treatment <a href=http://priligy.ccrpdc.com/priligy-forum.php>Priligy Forum</a> Baclofene Rembourse Routing Number Seminars Webinars SECU.govconsumerhelppopupcontentconsumernrreemdetails eliminate your power bill and join the solar revolution. <a href=http://nowfastmoney.com>small loans</a> These services exist because the demand is so high.If you have been turned down for unsecured credit you may still be able to obtain secured loans as long as you have something of value or if the item you wish to purchase can be used as collateral.Can I Get Cymbalta In Mexico <a href=http://zol1.xyz/buy-zoloft-uk.php>Buy Zoloft Uk</a> Can Keflex Diltiazem Be Taken Together Kajal <a href=http://kama1.xyz/sildenafil.php>Sildenafil</a> Reputable Ed Pills Canada Laboratorios Viagra <a href=http://cial5mg.xyz/order-cialis-pills.php>Order Cialis Pills</a> Tadalafil Overnight Cephalexin For Fish Same As Humans <a href=http://cial1.xyz/cialis.php>Cialis</a> Finasteride 1 Mg Buy Uk Propecia Desventajas <a href=http://kama1.xyz/cheap-kamagra-generic.php>Cheap Kamagra Generic</a> Zithromax Pills Online Viagra E Doping <a href=http://levitra.ccrpdc.com/vardenafil-levitra.php>Vardenafil Levitra</a> Where Can I Buy Celebrex Cialis En Gibraltar <a href=http://kama1.xyz/order-kamagra-onlines.php>Order Kamagra Onlines</a> Asendin Cephalexin Dogs Ear <a href=http://levitra.ccrpdc.com/buy-levitra-now.php>Buy Levitra Now</a> Ferility Drugs For Sale In Canada How Can I Buy Cialis In A Store In Ct <a href=http://zol1.xyz/order-zoloft-online.php>Order Zoloft Online</a> Cheap Cialis No Rx Baclofene Rembourse <a href=http://cial1.xyz/viagra-cialis.php>Viagra Cialis</a> Amoxicillin Tr K Clv Tasan Discount Viagra In Nederland Kopen <a href=http://zol1.xyz/generic-for-zoloft.php>Generic For Zoloft</a> Zithromax For Pneumonia Kamagra Kaufen Erfahrungen <a href=http://strattera.ccrpdc.com/strattera-pills.php>Strattera Pills</a> Baclofene Eureka Generika Viagra Cialis <a href=http://viag1.xyz/purchase-viagra-usa.php>Purchase Viagra Usa</a> Amoxicillin And Cystic Acne Acheter Viagra Pfizer Quebec <a href=http://cial1.xyz/buy-cialis-online.php>Buy Cialis Online</a> Cialis Hormona Baclofene Insomnie <a href=http://cial1.xyz/cialis-online-usa.php>Cialis Online Usa</a> Colchicine Buy In Canada Tadacip 20 Online <a href=http://nolvadex.ccrpdc.com/buy-generic-nolvadex.php>Buy Generic Nolvadex</a> Mail Order Propecia Indian Pharmacy Viagra <a href=http://viag1.xyz/generic-sildenafil.php>Generic Sildenafil</a> Cialis 10 E 20 Mg Opinioni Finasterid Gleich Propecia <a href=http://cial5mg.xyz/cheapest-cialis.php>Cheapest Cialis</a> Doxycycline Tablets Buy Prevacid Buy One Get One Rebate <a href=http://inderal.ccrpdc.com/order-propranolol.php>Order Propranolol</a> Thyroxine For Sale No Script Viagra 50 Mg <a href=http://nolvadex.ccrpdc.com/best-place-to-buy-nolvadex.php>Best Place To Buy Nolvadex</a> Cialis 20mg Lilly 12 Stuck Propecia Pastilla <a href=http://cial5mg.xyz/where-to-buy-cialis.php>Where To Buy Cialis</a> Erfahrungen Mit Cialis Viagra

Note: See TracTickets for help on using tickets.