AnsweredAssumed Answered

imx 6qp GPU Issue

Question asked by Jerry zhou on Mar 2, 2017
Latest reply on Mar 3, 2017 by igorpadykov

Hello guys,

 

I met a big trobule now. It seems that it is related with GPU.

CPU: imx6qp

SW Version: android_M6.0.1_2.1.0

LCD: DPI (480x854)

Memory: DDR3 2GB

 

A GPU fatal issue happend when use the Android device.

1. Some time system crash:

 

Unable to handle kernel paging request at virtual address e6a73028
pgd = c0004000
[e6a73028] *pgd=32277811, *pte=00000000, *ppte=00000000
Internal error: Oops: 807 [#1] PREEMPT SMP ARM
Modules linked in:
CPU: 3 PID: 105 Comm: galcore daemon Not tainted 4.1.15 #22
Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
task: e2308600 ti: e2890000 task.ti: e2890000
PC is at gckHARDWARE_End+0x54/0xc0
LR is at gckCOMMAND_Stop.part.0+0x3c/0xec
pc : [<c081649c>] lr : [<c0807398>] psr: 200f0013
sp : e2891e30 ip : 00000001 fp : 00000000
r10: 00000286 r9 : 00000000 r8 : e27e9000
r7 : 00000000 r6 : e278a000 r5 : e6a73028 r4 : e27e9080
r3 : 10000000 r2 : e27e9080 r1 : e6a73028 r0 : e278a000
Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
Control: 10c53c7d Table: 339cc04a DAC: 00000015

PC: 0xc081641c:
641c 15823000 e3560000 0a000005 e3a00000 e5864000 e28dd008 e8bd81f0 e3e00000
643c eaffffdd e1a00006 eaffffdb e291c000 e92d40f0 13a0c001 e3520000 13a07000
645c 020c7001 e24dd00c e3570000 1a000022 e35c0000 e1a05001 e1a04002 e1a06000
647c 0a000016 e5923000 e3530007 93e0000a 8a000001 e28dd00c e8bd80f0 e3a03201
649c e5813000 e5963670 e5813004 e5960008 ebff99c9 e3500000 bafffff5 e1a01005
64bc e1a02007 e1a00006 e28d3004 ebffff80 e3500000 baffffee e59d3004 e586309c
64dc e3540000 0a000006 e3a03008 e3a00000 e5843000 e28dd00c e8bd80f0 e3e00000
64fc eaffffe3 e1a00004 eaffffe1 e92d4030 e3510000 e5903004 e24dd00c e3a02000

LR: 0xc0807318:
7318 e28dd018 e8bd87f0 e5985008 e3010bf8 e598400c e1a0100a e598e010 e34c0121
7338 e598c014 e5982000 e5983004 e58d5000 e98d4010 e58dc00c eb000e24 e28dd018
7358 e8bd87f0 e92d4070 e1a04000 e5903004 e24dd010 e1a06001 e3a01044 e593500c
7378 e1a00005 eb004732 e3500001 0a000015 e1a00005 e594107c e2842080 eb003c2b
7398 e3500000 ba00000d e5943004 e594105c e5942064 e593000c eb003bb6 e3500000
73b8 ba000006 e16f1f16 e1a00005 e28d200c e1a012a1 eb003ca9 e3500000 aa00000f
73d8 e28dd010 e8bd8070 e594e098 e35e0000 0a00000e e5943004 e284c080 e5941094
73f8 e5942078 e5930014 e594307c e58de000 e58dc004 eb00193b e3500000 baffffef

SP: 0xe2891db0:
1db0 0000000a 00006cb8 00000001 00000001 e2891dd4 c0157640 00000000 80400040
1dd0 c081649c 200f0013 ffffffff e2891e1c e27e9000 c010c018 e278a000 e6a73028
1df0 e27e9080 10000000 e27e9080 e6a73028 e278a000 00000000 e27e9000 00000000
1e10 00000286 00000000 00000001 e2891e30 c0807398 c081649c 200f0013 ffffffff
1e30 e27bcc40 a00f0013 00000000 e27e9000 e278a000 00000000 e24a9c00 c0807398
1e50 00000003 7ffffffe 38061028 e278a000 e278a000 00000003 00000001 c081b664
1e70 10000000 00000001 00000000 00000001 00000000 00000207 e39ab190 e39ab180
1e90 00000000 c0ab81fc 00000069 00000069 00000001 00000000 e2891ec8 e278a000

R0: 0xe2789f80:
9f80 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9fa0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9fc0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9fe0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
a000 44524148 e24a9e00 e24a9c00 00000000 00003000 00005450 e0287cad c9799efb
a020 fefbfadb eb9d4bbf edffdced 930d2f47 10000133 00000000 00000010 00000040
a040 00000400 00000004 00000010 00000400 00000002 00000200 00000140 00000000
a060 00000010 00000002 00000000 00000000 00000002 00000001 00000001 00000000

R1: 0xe6a72fa8:
2fa8 ******** ******** ******** ******** ******** ******** ******** ********
2fc8 ******** ******** ******** ******** ******** ******** ******** ********
2fe8 ******** ******** ******** ******** ******** ******** ******** ********
3008 ******** ******** ******** ******** ******** ******** ******** ********
3028 ******** ******** ******** ******** ******** ******** ******** ********
3048 ******** ******** ******** ******** ******** ******** ******** ********
3068 ******** ******** ******** ******** ******** ******** ******** ********
3088 ******** ******** ******** ******** ******** ******** ******** ********

R2: 0xe27e9000:
9000 20444d43 e24a9e00 e24a9c00 00001000 00000000 00000001 00000001 00000000
9020 0000031d 00000000 e27bcb80 e27bcbc0 e27bcc00 e27bcc40 00000001 e27bccc0
9040 e69f3000 38061000 00000002 e27bcdc0 e69f5000 38062000 38061000 e69f3000
9060 38061000 00000038 00000000 00000000 e31b6400 ef97a000 380e1028 e6a73028
9080 00000008 00000008 00000020 00000008 e27bcc80 00000001 00000000 38061088
90a0 00000010 38061088 00000010 38061088 00000010 38061088 00000010 38061088
90c0 00000010 38061088 00000010 38061088 00000010 38061088 00000010 38061088
90e0 00000010 38061088 00000010 38061088 00000010 38061088 00000010 38061088

R4: 0xe27e9000:
9000 20444d43 e24a9e00 e24a9c00 00001000 00000000 00000001 00000001 00000000
9020 0000031d 00000000 e27bcb80 e27bcbc0 e27bcc00 e27bcc40 00000001 e27bccc0
9040 e69f3000 38061000 00000002 e27bcdc0 e69f5000 38062000 38061000 e69f3000
9060 38061000 00000038 00000000 00000000 e31b6400 ef97a000 380e1028 e6a73028
9080 00000008 00000008 00000020 00000008 e27bcc80 00000001 00000000 38061088
90a0 00000010 38061088 00000010 38061088 00000010 38061088 00000010 38061088
90c0 00000010 38061088 00000010 38061088 00000010 38061088 00000010 38061088
90e0 00000010 38061088 00000010 38061088 00000010 38061088 00000010 38061088

R5: 0xe6a72fa8:
2fa8 ******** ******** ******** ******** ******** ******** ******** ********
2fc8 ******** ******** ******** ******** ******** ******** ******** ********
2fe8 ******** ******** ******** ******** ******** ******** ******** ********
3008 ******** ******** ******** ******** ******** ******** ******** ********
3028 ******** ******** ******** ******** ******** ******** ******** ********
3048 ******** ******** ******** ******** ******** ******** ******** ********
3068 ******** ******** ******** ******** ******** ******** ******** ********
3088 ******** ******** ******** ******** ******** ******** ******** ********

R6: 0xe2789f80:
9f80 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9fa0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9fc0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9fe0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
a000 44524148 e24a9e00 e24a9c00 00000000 00003000 00005450 e0287cad c9799efb
a020 fefbfadb eb9d4bbf edffdced 930d2f47 10000133 00000000 00000010 00000040
a040 00000400 00000004 00000010 00000400 00000002 00000200 00000140 00000000
a060 00000010 00000002 00000000 00000000 00000002 00000001 00000001 00000000

R8: 0xe27e8f80:
8f80 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
8fa0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
8fc0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
8fe0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9000 20444d43 e24a9e00 e24a9c00 00001000 00000000 00000001 00000001 00000000
9020 0000031d 00000000 e27bcb80 e27bcbc0 e27bcc00 e27bcc40 00000001 e27bccc0
9040 e69f3000 38061000 00000002 e27bcdc0 e69f5000 38062000 38061000 e69f3000
9060 38061000 00000038 00000000 00000000 e31b6400 ef97a000 380e1028 e6a73028
Process galcore daemon (pid: 105, stack limit = 0xe2890210)
Stack: (0xe2891e30 to 0xe2892000)
1e20: e27bcc40 a00f0013 00000000 e27e9000
1e40: e278a000 00000000 e24a9c00 c0807398 00000003 7ffffffe 38061028 e278a000
1e60: e278a000 00000003 00000001 c081b664 10000000 00000001 00000000 00000001
1e80: 00000000 00000207 e39ab190 e39ab180 00000000 c0ab81fc 00000069 00000069
1ea0: 00000001 00000000 e2891ec8 e278a000 e278a800 00000001 00000000 00000000
1ec0: 10000000 00000001 00000000 c07fda9c e278a000 e278a800 e278a000 c080bdc8
1ee0: 00100000 00000001 00100000 e278a800 e24a9e00 c080d7b0 e2891f0c c0157640
1f00: e278a820 00000000 00000000 00000000 0000001c c0ab6890 00100100 e278a000
1f20: e278a800 e27dcad0 c07f9828 00000000 00000000 00000000 00000000 c0816568
1f40: 00000000 00000000 c0ab81fc e27dca00 c155eb68 c07f9848 00000000 e280a340
1f60: e27dca00 c014d430 00000000 00000000 00000000 e27dca00 00000000 00000000
1f80: e2891f80 e2891f80 00000000 00000000 e2891f90 e2891f90 e2891fac e280a340
1fa0: c014d354 00000000 00000000 c01076e8 00000000 00000000 00000000 00000000
1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[<c081649c>] (gckHARDWARE_End) from [<c0807398>] (gckCOMMAND_Stop.part.0+0x3c/0xec)
[<c0807398>] (gckCOMMAND_Stop.part.0) from [<c081b664>] (gckHARDWARE_SetPowerManagementState+0x7cc/0xae4)
[<c081b664>] (gckHARDWARE_SetPowerManagementState) from [<c07fda9c>] (gckOS_Broadcast+0x70/0x130)
[<c07fda9c>] (gckOS_Broadcast) from [<c080bdc8>] (_TryToIdleGPU+0x108/0x114)
[<c080bdc8>] (_TryToIdleGPU) from [<c080d7b0>] (gckEVENT_Notify+0x528/0x534)
[<c080d7b0>] (gckEVENT_Notify) from [<c0816568>] (gckHARDWARE_Interrupt+0x60/0x80)
[<c0816568>] (gckHARDWARE_Interrupt) from [<c07f9848>] (threadRoutine+0x20/0x70)
[<c07f9848>] (threadRoutine) from [<c014d430>] (kthread+0xdc/0xf4)
[<c014d430>] (kthread) from [<c01076e8>] (ret_from_fork+0x14/0x2c)
Code: 8a000001 e28dd00c e8bd80f0 e3a03201 (e5813000)
---[ end trace 8363465eb3244ff9 ]---
Kernel panic - not syncing: Fatal exception
CPU0: stopping
CPU: 0 PID: 0 Comm: swapper/0 Tainted: G D 4.1.15 #22
Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
[<c010f3e4>] (unwind_backtrace) from [<c010b554>] (show_stack+0x10/0x14)
[<c010b554>] (show_stack) from [<c0ab0d40>] (dump_stack+0x84/0xc4)
[<c0ab0d40>] (dump_stack) from [<c010e190>] (handle_IPI+0x33c/0x354)
[<c010e190>] (handle_IPI) from [<c0101484>] (gic_handle_irq+0x58/0x5c)
unwind: Unknown symbol address c0101484
unwind: Index not found c0101484
CPU2: stopping
CPU: 2 PID: 0 Comm: swapper/2 Tainted: G D 4.1.15 #22
Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
[<c010f3e4>] (unwind_backtrace) from [<c010b554>] (show_stack+0x10/0x14)
[<c010b554>] (show_stack) from [<c0ab0d40>] (dump_stack+0x84/0xc4)
[<c0ab0d40>] (dump_stack) from [<c010e190>] (handle_IPI+0x33c/0x354)
[<c010e190>] (handle_IPI) from [<c0101484>] (gic_handle_irq+0x58/0x5c)
unwind: Unknown symbol address c0101484
unwind: Index not found c0101484
CPU1: stopping
CPU: 1 PID: 0 Comm: swapper/1 Tainted: G D 4.1.15 #22
Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
[<c010f3e4>] (unwind_backtrace) from [<c010b554>] (show_stack+0x10/0x14)
[<c010b554>] (show_stack) from [<c0ab0d40>] (dump_stack+0x84/0xc4)
[<c0ab0d40>] (dump_stack) from [<c010e190>] (handle_IPI+0x33c/0x354)
[<c010e190>] (handle_IPI) from [<c0101484>] (gic_handle_irq+0x58/0x5c)
unwind: Unknown symbol address c0101484
unwind: Index not found c0101484
Rebooting in 5 seconds..

 

2. Some time the screen has been messed.

GPU Issue

At the issue, We try to use "hierarchyviewer" to capture the each layer of launcher, and we found that all picture layer is normally. So we think that it maybe caused by "hwcomposer".

 

3. Some time libegl crash:

 

01-01 21:21:46.941 1280 1283 D libEGL : loaded /system/lib/egl/libEGL_VIVANTE.so
01-01 21:21:46.974 1280 1283 D libEGL : loaded /system/lib/egl/libGLESv1_CM_VIVANTE.so
01-01 21:21:47.339 1280 1283 D libEGL : loaded /system/lib/egl/libGLESv2_VIVANTE.so
01-01 21:21:47.611 1280 1283 E cutils-trace: Error opening trace file: Permission denied (13)
01-01 21:21:47.621 1280 1283 I imx6.gralloc: open gpu gralloc module!
01-01 21:21:47.622 215 249 E BufferQueueProducer: [BootAnimation] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count
01-01 21:21:47.713 226 226 F DEBUG :
01-01 21:21:47.713 226 226 F DEBUG : Tombstone written to: /data/tombstones/tombstone_00
01-01 21:21:47.717 226 226 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-01 21:21:47.717 226 226 F DEBUG : Build fingerprint: 'Freescale/yilian/yilian:6.0.1/yilian_0.2.0/20161124:eng/release-keys'
01-01 21:21:47.717 226 226 F DEBUG : Revision: '0'
01-01 21:21:47.717 226 226 F DEBUG : ABI: 'arm'
01-01 21:21:47.717 226 226 F DEBUG : pid: 916, tid: 1033, name: RenderThread >>> com.android.launcher <<<
01-01 21:21:47.717 226 226 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
01-01 21:21:47.748 226 226 F DEBUG : Abort message: 'Encountered EGL error 12299 EGL_BAD_NATIVE_WINDOW during rendering'
01-01 21:21:47.748 226 226 F DEBUG : r0 00000000 r1 00000409 r2 00000006 r3 98b6f978
01-01 21:21:47.748 226 226 F DEBUG : r4 98b6f980 r5 98b6f930 r6 00000019 r7 0000010c
01-01 21:21:47.748 226 226 F DEBUG : r8 0000300b r9 9b1cf000 sl b489d3a0 fp b6f74c55
01-01 21:21:47.748 226 226 F DEBUG : ip 00000006 sp 98b6f330 lr b6d4efc5 pc b6d513c0 cpsr 400f0010
01-01 21:21:47.776 226 226 F DEBUG :
01-01 21:21:47.776 226 226 F DEBUG : backtrace:
01-01 21:21:47.776 226 226 F DEBUG : #00 pc 000423c0 /system/lib/libc.so (tgkill+12)
01-01 21:21:47.776 226 226 F DEBUG : #01 pc 0003ffc1 /system/lib/libc.so (pthread_kill+32)
01-01 21:21:47.776 226 226 F DEBUG : #02 pc 0001c61f /system/lib/libc.so (raise+10)
01-01 21:21:47.776 226 226 F DEBUG : #03 pc 000197c1 /system/lib/libc.so (__libc_android_abort+34)
01-01 21:21:47.776 226 226 F DEBUG : #04 pc 000174b8 /system/lib/libc.so (abort+4)
01-01 21:21:47.776 226 226 F DEBUG : #05 pc 00008933 /system/lib/libcutils.so (__android_log_assert+86)
01-01 21:21:47.776 226 226 F DEBUG : #06 pc 0001cceb /system/lib/libhwui.so
01-01 21:21:47.776 226 226 F DEBUG : #07 pc 0001a33b /system/lib/libhwui.so
01-01 21:21:47.776 226 226 F DEBUG : #08 pc 0001be6d /system/lib/libhwui.so
01-01 21:21:47.776 226 226 F DEBUG : #09 pc 0001e907 /system/lib/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+62)
01-01 21:21:47.776 226 226 F DEBUG : #10 pc 00010115 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+112)
01-01 21:21:47.777 226 226 F DEBUG : #11 pc 0005d907 /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+70)
01-01 21:21:47.777 226 226 F DEBUG : #12 pc 0003f8c3 /system/lib/libc.so (__pthread_start(void*)+30)
01-01 21:21:47.777 226 226 F DEBUG : #13 pc 00019e55 /system/lib/libc.so (__start_thread+6)
01-01 21:21:47.785 234 234 I chatty : uid=0(root) expire 2 lines

 

We haven't make any software custom based on android_M6.0.1_2.1.0, just enable/change some driver in the Kernel. we think it isn't related this issue.

 

Any comments are much appreciated.

 

Outcomes