# Android kern panic drivers/gpu/pvr/sgx/sgxutils.c

**URL:** <https://forums.imgtec.com/t/android-kern-panic-drivers-gpu-pvr-sgx-sgxutils-c/1414>\
**Category:** PowerVR Insider\
**Created:** [May 14, 2012, 10:33am UTC](https://forums.imgtec.com/t/android-kern-panic-drivers-gpu-pvr-sgx-sgxutils-c/1414 "2012-05-14T10:33:34Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![reubens](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/reubens/32/149_2.png) [@reubens](https://forums.imgtec.com/u/reubens)\
**Post date:** [May 14, 2012, 10:33am UTC](https://forums.imgtec.com/t/android-kern-panic-drivers-gpu-pvr-sgx-sgxutils-c/1414/1 "2012-05-14T10:33:34Z")

</div>

Hi,

  

Wondering if anyone suitably familiar with SGX540 driver internals could comment on this bug report?

  

[http://code.google.com/p/android/issues/detail?id=24118#](http://code.google.com/p/android/issues/detail?id=24118#)  
  

  

In a nutshell the Samsung Galaxy Nexus is occasionally rebooting itself in response to a kernel panic caused by a null pointer in&nbsp;SGXCleanupRequest() in drivers/gpu/pvr/sgx/sgxutils.c. This issue has been observed in stock Android ROMs up to and including the current (as of writing) ROM, 4.0.4.

  

Thanks,

  

  

Reuben

---

<div class="post-metadata">

**Author:** ![JoeDavis](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/joedavis/32/71_2.png) [@JoeDavis](https://forums.imgtec.com/u/JoeDavis)\
**Post date:** [July 2, 2012, 9:41am UTC](https://forums.imgtec.com/t/android-kern-panic-drivers-gpu-pvr-sgx-sgxutils-c/1414/2 "2012-07-02T09:41:27Z")

</div>

Hi Reuben,  
  
Can you retrieve the driver version number with “adb shell cat /proc/pvr/version” and share the output with us?  
  
Once we have this information, I can pass this issue to our driver team.  
  
Thanks,  
Joe

---

<div class="post-metadata">

**Author:** ![reubens](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/reubens/32/149_2.png) [@reubens](https://forums.imgtec.com/u/reubens)\
**Post date:** [July 5, 2012, 10:57am UTC](https://forums.imgtec.com/t/android-kern-panic-drivers-gpu-pvr-sgx-sgxutils-c/1414/3 "2012-07-05T10:57:01Z")

</div>

I don’t have a Galaxy Nexus but a friend was kind enough the run the command on theirs. This is what they got:

  

\> adb shell cat /proc/pvr/version  
  
Version CustomerGoogle\_Android\_ogles1\_ogles2\_GPL sgxddk 18 1.8@785978 (release)  
omap4430\_android  
System Version String: SGX revision = 1.2.0

---

<div class="post-metadata">

**Author:** ![JoeDavis](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/joedavis/32/71_2.png) [@JoeDavis](https://forums.imgtec.com/u/JoeDavis)\
**Post date:** [August 9, 2012, 7:53am UTC](https://forums.imgtec.com/t/android-kern-panic-drivers-gpu-pvr-sgx-sgxutils-c/1414/4 "2012-08-09T07:53:05Z")

</div>

Hi Reuben,  
  
Sorry for the delayed response.  
Has the issue been resolved in newer ROMs? Can you share a minimal reproduction with us?  
  
The Galaxy Nexus I have running a recent official Jellybean image (4.1.1 - build number JRO03C) has a newer 1.8 driver: 1.8@905891

---

<div class="post-metadata">

**Author:** ![appel](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/appel/32/161_2.png) [@appel](https://forums.imgtec.com/u/appel)\
**Post date:** [August 10, 2012, 7:06am UTC](https://forums.imgtec.com/t/android-kern-panic-drivers-gpu-pvr-sgx-sgxutils-c/1414/5 "2012-08-10T07:06:56Z")

</div>

```
This happens on my Galaxy Nexus even after the 4.1.1 update.
```

```
>adb shell cat /proc/pvr/version

Version CustomerGoogle\_Android\_ogles1\_ogles2\_GPL sgxddk 18 1.8@905891 (release)  
  
omap4430\_android  
  
System Version String: SGX revision = 1.2.0
```

```
I haven’t found a way to reproduce it 100% reliably. But it occurs fairly frequently if I do the following. Start a new game in[Solitaire Ultra](http://https://play.google.com/store/apps/details?id=com.firefrog.solitaire.free)and play for a little while, then press HOME to return to the launcher. Open another app, for example Google Talk, not sure if this step is necessary. Then use the task switcher return to Solitaire Ultra. You might need to switch back and forth a few times to trigger the kernel panic and it doesn’t happen every time. For me it happens perhaps one out of three tries.
```

```
It happens with other apps and games as well, but not as frequent.
```

---

<div class="post-metadata">

**Author:** ![chrmhoffmann](https://avatars.discourse-cdn.com/v4/letter/c/3e96dc/32.png) [@chrmhoffmann](https://forums.imgtec.com/u/chrmhoffmann)\
**Post date:** [August 28, 2012, 2:25pm UTC](https://forums.imgtec.com/t/android-kern-panic-drivers-gpu-pvr-sgx-sgxutils-c/1414/6 "2012-08-28T14:25:15Z")

</div>

Hi,
  

we seem to have similar issue on a different board (omap4430, aka nook tablet). One developer was able to capture a quite exhaustive log from the device.

  

Please see:&nbsp;[http://e2e.ti.com/support/omap/f/849/t/201436.aspx](http://e2e.ti.com/support/omap/f/849/t/201436.aspx)&nbsp;and especially the log here:

  

http://e2e.ti.com/cfs-file.ashx/\_\_key/communityserver-discussions-components-files/849/2514.Imaginarium\_2D00\_logcatpluslastkmsg.rar

  

Any help here would be highly appreciated.&nbsp;

  

Rgds,

Chris
  
  
chrmhoffmann2012-08-28 16:29:58

---

<div class="post-metadata">

**Author:** ![JoeDavis](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/joedavis/32/71_2.png) [@JoeDavis](https://forums.imgtec.com/u/JoeDavis)\
**Post date:** [September 5, 2012, 1:16pm UTC](https://forums.imgtec.com/t/android-kern-panic-drivers-gpu-pvr-sgx-sgxutils-c/1414/7 "2012-09-05T13:16:03Z")

</div>

Hi appel,  
  
I’ve been able to reproduce the driver bug with Solitaire Ultra. I’ll file a bug against the driver for this problem. Unfortunately, I cannot give an estimate of when/if a fix for this bug will make it to the device.  
  
Can you send an APK of the game to our [devtech@imgtec.com](mailto:devtech@imgtec.com), please? This would be very useful for our internal driver testing.  
  
Thanks,  
Joe

---

<div class="post-metadata">

**Author:** ![chrmhoffmann](https://avatars.discourse-cdn.com/v4/letter/c/3e96dc/32.png) [@chrmhoffmann](https://forums.imgtec.com/u/chrmhoffmann)\
**Post date:** [September 21, 2012, 7:26am UTC](https://forums.imgtec.com/t/android-kern-panic-drivers-gpu-pvr-sgx-sgxutils-c/1414/8 "2012-09-21T07:26:11Z")

</div>

Hi,

  

Great news. Is it possible to know in what IMG tec release this will be fixed?

  

Thx,

Chris

---

<div class="post-metadata">

**Author:** ![JoeDavis](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/joedavis/32/71_2.png) [@JoeDavis](https://forums.imgtec.com/u/JoeDavis)\
**Post date:** [September 25, 2012, 9:29am UTC](https://forums.imgtec.com/t/android-kern-panic-drivers-gpu-pvr-sgx-sgxutils-c/1414/9 "2012-09-25T09:29:48Z")

</div>

Hi Chris,  
  
I’ve filed this bug as BRN38475. I can’t give any estimates of when a fix for this may be added into our reference driver. Even when this fix is in our reference  
  
  
  
Normal  
  
0  
  
  
  
  
  
  
  
  
  
false  
  
false  
  
false  
  
  
  
EN-GB  
  
X-NONE  
  
X-NONE  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
MicrosoftInternetExplorer4

  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
/\* Style Definitions \*/  
table.MsoNormalTable  
{mso-style-name:"Table Normal";  
mso-tstyle-rowband-size:0;  
mso-tstyle-colband-size:0;  
mso-style-noshow:yes;  
mso-style-priority:99;  
mso-style-parent:"";  
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;  
mso-para-margin:0cm;  
mso-para-margin-bottom:.0001pt;  
mso-pagination:widow-orphan;  
font-size:10.0pt;  
font-family:"Times New Roman","serif";}  
  
  
  
Normal  
0  
  
  
  
  
false  
false  
false  
  
EN-GB  
X-NONE  
X-NONE  
  
  
  
  
  
  
  
  
  
  
  
MicrosoftInternetExplorer4  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
/\* Style Definitions \*/  
table.MsoNormalTable  
{mso-style-name:"Table Normal";  
mso-tstyle-rowband-size:0;  
mso-tstyle-colband-size:0;  
mso-style-noshow:yes;  
mso-style-priority:99;  
mso-style-parent:"";  
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;  
mso-para-margin:0cm;  
mso-para-margin-bottom:.0001pt;  
mso-pagination:widow-orphan;  
font-size:10.0pt;  
font-family:"Times New Roman","serif";}

---

<div class="post-metadata">

**Author:** ![JoeDavis](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/joedavis/32/71_2.png) [@JoeDavis](https://forums.imgtec.com/u/JoeDavis)\
**Post date:** [September 25, 2012, 9:39am UTC](https://forums.imgtec.com/t/android-kern-panic-drivers-gpu-pvr-sgx-sgxutils-c/1414/10 "2012-09-25T09:39:05Z")

</div>

Sorry Chris, I forgot to mention - if you can send an .apk to our [devtech@imgtec.com](mailto:devtech@imgtec.com) address (or email us to discuss another method of sharing the binary with us) of a minimal reproduction of the issue or of a version of your game that triggers the bug, then it will be much easier for us to investigate the problem and possibly suggest a workaround.  
  
If you would like to, we can sign an MNDA with you before receiving any binaries from you. Even without the NDA though, we will only ever use binaries internally to reproduce and test problems.  
  
Thanks,  
Joe
