freescale android kernel have scheduling problem !!!

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

freescale android kernel have scheduling problem !!!

ソリューションへジャンプ
21,268件の閲覧回数
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

タグ(1)
1 解決策
9,204件の閲覧回数
qiang_li-mpu_se
NXP Employee
NXP Employee

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

元の投稿で解決策を見る

50 返答(返信)
1,544件の閲覧回数
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 件の賞賛
返信
616件の閲覧回数
xiaoqianlin
NXP Employee
NXP Employee

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

Linda Lin
0 件の賞賛
返信
616件の閲覧回数
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 件の賞賛
返信
616件の閲覧回数
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 件の賞賛
返信
616件の閲覧回数
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 件の賞賛
返信
616件の閲覧回数
LeonardoSandova
Specialist I

aaronyang please mark it as 'unanswered'.

0 件の賞賛
返信
616件の閲覧回数
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 件の賞賛
返信
616件の閲覧回数
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 件の賞賛
返信
616件の閲覧回数
yangaaron
Contributor III

hello , chris1z

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

0 件の賞賛
返信