This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SGX library anomaly

Hi Guys!

Sorry for cross posting, but we have a very strange problem with the display with our beaglebone based android platform.

I posted this http://e2e.ti.com/support/dsp/sitara_arm174_microprocessors/f/791/p/242278/855037.aspx#855037 thread with some SGX lib debug messages but it seems that the problem is so exotic that none has a hint what could be wrong.

In short the platform is ICS based, it is very stable but in random cases the anomaly shown on the video in the other thread occurs. No system crash, no errors just SGX debug messages in kernel.

Could this be a hw build pattern problem or how to debug this?

Thanks in advance,

best regards,

sodjas

  • Hi Sodjas,

         The issue is seen due to sync loss condition in the display driver.

    Please apply the following two patches (SGX and kernel respectively) to fix this issue -

    http://gitorious.org/rowboat/hardware-ti-sgx/commit/e5b4be2894713763e5e2f886f3642503bcc77402

    http://gitorious.org/rowboat/kernel/commit/c6c1033cb38d85b242178cc379fc3bd5d6e403be

    Regards,

    Aditya

     Kindly click the verify answer button on this post if it answer your question.

  • Hi Aditya!

    Thank you very much for the information!

    I have a further question. We are porting JB in parallel also. How the SGX library maintenance works? Do I have to apply these patches also to that branch?

    I know I can simply apply it and it is not a lot of code, I'm just interested whether these fixes are committed to the newer  releases or what is the convetion?

    Thank you very much!

    best regards,

    sodjas

  • Hi Sodjas,

                  We have not pushed the patches on our JB branch yet. I believe you need them on JB as well.

    We will be committing the patches soon, in the mean time you may have to apply those patches

    manually for the fix..

    Regards,

    Aditya

  • Hi,

    OK no problem thank you very much again!

    best regards,

    sodjas

  • Hi Aditaya,

    Patch links are dead,
    could you provide new ones please ?
    Thank you

    Regards
    Aymen
  • Hi Aymen,

    Gitorious is now migrating their repositories this is why you can't reach the patches. I'm afraid that you have to wait while migration is ends. By the way, I'm sure that these patches are already in the latest version of the TI android repo (of course some parts of that project are also unavailable no because of migration).

    Best Regards,

    sodjas

  • Concerning latest version of TI Android repo, I am using the binary mentioned in Developer guide since we can't initialise a repo using

    repo init -u git://gitorious.org/rowboat/manifest.git -m TI-Android-JB-4.2.2-DevKit-4.1.1.xml

    Could you confirm that SGX patches are already there ?

    Regards,

    Aymen 

  • Unfortunately, I cannot confirm you patches are included in the binary since I'm not the one who compiled it.
    And yes repo init does not work because of the gitorious repo migration and TI-Android-JB-4.2.2-DevKit-4.1.1.xml contains a lot of repos pointing to that location. I'm afraid you should wait for the migration to be completed. The say:
    "Gitorious.org is migrating all the repositories to Internet Archive.
    The repositories will soon be available for read-only access, with original clone URLs preserved."

    Best Regards,
    sodjas
  • Thank you for fast reply Sodjas

    I don't know if git log in hardware/ti/sgx project might help :

    commit 7fa718855482aeffe961c0560346221f97701383
    Author: Vishveshwar Bhat <vishveshwar.bhat@ti.com>
    Date: Fri Jun 7 14:06:14 2013 +0530

    Revert "Revert "HWMOD support added along with renaming MACROS corresponding to ti335x""

    This reverts commit 5354159edc3804acb626e532051ee79d7253929b.

    commit a919c4d4a27981e4b9f9e56f634c82a137bdfc00
    Author: Aditya Nellutla <aditya.n@ti.com>
    Date: Fri May 24 19:46:52 2013 +0530

    gfx_rel_es4.x: Update binaries to align to byte boundary

    Fixes display artifacts for resolutions not aliged to multiple of WORD boundary.

    commit 5354159edc3804acb626e532051ee79d7253929b
    Author: Vishveshwar Bhat <vishveshwar.bhat@ti.com>
    Date: Fri May 24 18:52:23 2013 +0530

    Revert "HWMOD support added along with renaming MACROS corresponding to ti335x"

    This reverts commit 453c0a984bb439c3f9962af30489707abe801130.

    commit 453c0a984bb439c3f9962af30489707abe801130
    Author: Aditya Nellutla <aditya.n@ti.com>
    Date: Wed May 22 16:08:49 2013 +0530

    HWMOD support added along with renaming MACROS corresponding to ti335x

    Signed-off-by: Aditya Nellutla <aditya.n@ti.com>

    commit aab4a71512a361a56285fb64302f9a5ac75715d1
    Author: Vishveshwar Bhat <vishveshwar.bhat@ti.com>
    Date: Mon May 6 12:17:29 2013 +0530

    es4.x:rc.pvr: remove sleep in load_pvr()

    In JB 4.2.2 SurfaceFlinger comes up before SGX is fully up and crashes.
    Removing the delay fixes this issue.

    Signed-off-by: Vishveshwar Bhat <vishveshwar.bhat@ti.com>

    commit 8833e6c4bf2a68aaf594ccfe0985e69ff0fa47c1
    Author: Vishveshwar Bhat <vishveshwar.bhat@ti.com>
    Date: Fri Aug 10 14:48:57 2012 +0530

    Update Makefile with JB-preferred toolchain paths

    Signed-off-by: Vishveshwar Bhat <vishveshwar.bhat@ti.com>

    commit faf1ef3ea7fe3dbb29c228293aa008b249d58f1c
    Author: Aditya <aditya.n@ti.com>
    Date: Wed Aug 8 10:43:53 2012 +0530

    TI Android SGX 1.10 SDK

    This is TI's Android SGX SDK for OpenGL / 3D Graphics accelerations
    platforms supported : AM37x and AM335x

    Anyway I'll wait for migration. 

    Best Regards,

    Aymen