freescale android kernel have scheduling problem !!!

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

freescale android kernel have scheduling problem !!!

Jump to solution
21,227 Views
yangaaron
Contributor III

I wrote a very simple Android application(AndroidGLSurfaceViewActivity.apk).mainly use opengl use muti-thread to draw frame on the screen

I tried to run on the freescale platform ( i.mx6q , 1GB Ram , android 4.0.4 , hdmi 1080p output )

It can't run more than one hour will cause the system to crash. (Kernel panic or rcu_preempt_state detected stalls on CPUs/tasks).

but it can run all night on the Android Emulator and Samsung Galaxy Note 8.0


PS : Android apk and program source code and detailed error messages, see attached file

Original Attachment has been moved to: rcu_preempt_state-detected-stalls-on-CPUstasks.txt.zip

Original Attachment has been moved to: AndroidGLSurfaceViewActivity.apk.zip

Original Attachment has been moved to: AndroidGLSurfaceViewActivity.7z.zip

Original Attachment has been moved to: Kernel-panic--not-syncing-Fatal-exception.txt.zip

Tags (1)
1 Solution
9,163 Views
qiang_li-mpu_se
NXP Employee
NXP Employee

Hi Aaron, please apply the attached two patches, from our test, the issue can be fixed.

View solution in original post

50 Replies
1,541 Views
xiaoqianlin
NXP Employee
NXP Employee

This issue can be duplicated on MX6SDP JB4.2.2_1.1.0. I attached the log.

Linda Lin
0 Kudos
Reply
613 Views
xiaoqianlin
NXP Employee
NXP Employee

I  tested this issue on JB4.3_1.1.0, this issue still can be duplicated

Linda Lin
0 Kudos
Reply
613 Views
Chris1z
Contributor III

We have also seen similar crashes on our product that is based on SabreSD iMX6Q jb4.2.2-1.1.0-ga release with 2GB of memory.  Kernel panics with a NULL pointer dereference or " rcu_preempt_state detected stalls".  I ran your tests on our boards and saw the kernel panic a couple of times.  I also saw sometimes the app would freeze and I would have stop and start it again.

I also tried your test on a few of our SabreSd (Rev C1 and Rev C2) boards.  I didn't see the same specific kernel panic or rcu stall yet, but they did reboot a couple of times without any logs.  The OOM killer seems to kick in pretty quickly too, maybe because SabreSd only has 1GB.

I am running a newer version of Android (and probably the kernel) than you.  But regardless, your test does definitely reveals some issues on the iMX6. 

Someone from Freescale please comment.

0 Kudos
Reply
613 Views
yangaaron
Contributor III

Yes .  similar result with your when I upgrade our platform to android 4.2.2 .

it will reboot system and without any error logs in one hour.

i think seems to be a watchdog role because the kernel no response
.

0 Kudos
Reply
613 Views
LeonardoSandova
Specialist I

Aaron, Chris

The issue has been escalated. Yesterday I tried on latest JB (4.3). and the issue is present. I am not an Android expert so I can not provide any useful insight for the moment.

Aaron,

on the other thread you created, just to avoid confusion, post a comment indicating that the updates will be done on this thread, which is the original.

Leo

0 Kudos
Reply
613 Views
LeonardoSandova
Specialist I

aaronyang please mark it as 'unanswered'.

0 Kudos
Reply
613 Views
yangaaron
Contributor III

ok,   i will open an new topic "freescale android kernel have scheduling problem ?"

Please reply as soon as possible solutions to the problem

thanks~

0 Kudos
Reply
613 Views
Chris1z
Contributor III

aaronyang I think Leo just wanted you to mark this topic an "unanswered" so Freescale users will know to look at it. Thanks.

0 Kudos
Reply
613 Views
yangaaron
Contributor III

hello , chris1z

I know - but I do not see unmark option on this page .

0 Kudos
Reply