<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: EGLContext issue in P9.0.0_1.0.0-ga for i.MX 8M Quad in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/EGLContext-issue-in-P9-0-0-1-0-0-ga-for-i-MX-8M-Quad/m-p/868534#M132137</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/Bio_TICFSL"&gt;Bio_TICFSL&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for the fast response!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;we have the reference code to alloc aligned memory buffer for GPU&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Do you mean, there is already an existing reference implementation somewhere, which has to be extended for custom board designs?&amp;nbsp;Could you please point me to the project or file where this&amp;nbsp;is used / has to be implemented (like kernel, gralloc, native frameworks, etc)?&amp;nbsp;Probably there are many functions called &lt;STRONG&gt;alloc&lt;/STRONG&gt;&amp;nbsp;in the Android workspace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;igrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Mar 2019 08:11:38 GMT</pubDate>
    <dc:creator>igrik</dc:creator>
    <dc:date>2019-03-06T08:11:38Z</dc:date>
    <item>
      <title>EGLContext issue in P9.0.0_1.0.0-ga for i.MX 8M Quad</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/EGLContext-issue-in-P9-0-0-1-0-0-ga-for-i-MX-8M-Quad/m-p/868532#M132135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am&amp;nbsp;working on Android 9 for a custom board based on the imx8mq design (HDMI connection). U-boot and kernel seem to load fine. I also get the Android to boot up&amp;nbsp;and load proprietary Vivante libraries. Unfortunately, as soon as the surfaceflinger tries to create a EGLContext,&amp;nbsp;the process crashes&amp;nbsp;with&amp;nbsp;EGL_BAD_ALLOC. Did I miss some kind of additional configuration in Android/Linux kernel?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kernel version&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;4.9.51&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Kernel cmdline&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;init=/init video=mxcfb0:dev=hdmi,1920x1080M@60 androidboot.hardware=freescale androidboot.fbTileSupport=enable androidboot.gui_resolution=1080p cma=736M androidboot.primary_display=imx-drm firmware_class.path=/vendor/firmware buildvariant=userdebug&amp;nbsp;[...]&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Logcat error&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;01-01 00:00:11.441 2664 2664 D libEGL : loaded /vendor/lib64/egl/libEGL_VIVANTE.so&lt;BR /&gt;01-01 00:00:11.729 2664 2664 D libEGL : loaded /vendor/lib64/egl/libGLESv1_CM_VIVANTE.so&lt;BR /&gt;01-01 00:00:11.807 2664 2664 D libEGL : loaded /vendor/lib64/egl/libGLESv2_VIVANTE.so&lt;BR /&gt;01-01 00:00:11.850 2664 2664 D v_gal : HAL user version 6.2.4 build 163672&lt;BR /&gt;01-01 00:00:11.850 2664 2664 D v_gal : HAL kernel version 1.1.771948129 build 0&lt;BR /&gt;[...]&lt;BR /&gt;01-01 00:00:11.876 2664 2664 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0&lt;BR /&gt;01-01 00:00:11.876 2664 2664 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0&lt;BR /&gt;01-01 00:00:11.877 2664 2664 I SurfaceFlinger: ===&amp;gt; got EGL display: 0x1&lt;BR /&gt;01-01 00:00:11.877 2664 2664 I SurfaceFlinger: ===&amp;gt; looking for EGL config&lt;BR /&gt;01-01 00:00:11.877 2664 2664 W SurfaceFlinger: no suitable EGLConfig found, trying a simpler query&lt;BR /&gt;01-01 00:00:11.877 2664 2664 D v_gal : HAL user version 6.2.4 build 163672&lt;BR /&gt;01-01 00:00:11.877 2664 2664 D v_gal : HAL kernel version 1.1.-241628520 build 65535&lt;BR /&gt;[...]&lt;BR /&gt;01-01 00:00:11.898 2664 2664 I SurfaceFlinger: EGL information:&lt;BR /&gt;01-01 00:00:11.898 2664 2664 I SurfaceFlinger: vendor : Android&lt;BR /&gt;01-01 00:00:11.898 2664 2664 I SurfaceFlinger: version : 1.4 Android META-EGL&lt;BR /&gt;01-01 00:00:11.898 2664 2664 I SurfaceFlinger: extensions: EGL_KHR_get_all_proc_addresses EGL_ANDROID_presentation_time EGL_KHR_swap_buffers_with_damage EGL_ANDROID_get_native_client_buffer EGL_ANDROID_front_buffer_auto_refresh EGL_ANDROID_get_frame_timestamps EGL_EXT_surface_SMPTE2086_metadata EGL_EXT_surface_CTA861_3_metadata EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_lock_surface EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_reusable_sync EGL_KHR_fence_sync EGL_KHR_create_context EGL_KHR_surfaceless_context EGL_EXT_create_context_robustness EGL_ANDROID_image_native_buffer EGL_KHR_wait_sync EGL_ANDROID_recordable EGL_KHR_partial_update EGL_EXT_buffer_age &lt;BR /&gt;01-01 00:00:11.898 2664 2664 I SurfaceFlinger: Client API: OpenGL_ES&lt;BR /&gt;01-01 00:00:11.898 2664 2664 I SurfaceFlinger: EGLSurface: 8-8-8-8, config=0xb&lt;BR /&gt;01-01 00:00:11.898 2664 2664 D v_gal : HAL user version 6.2.4 build 163672&lt;BR /&gt;01-01 00:00:11.898 2664 2664 D v_gal : HAL kernel version 1.1.8 build 0&lt;BR /&gt;01-01 00:00:11.898 2664 2664 I SurfaceFlinger: ===&amp;gt; client version is 2&lt;BR /&gt;01-01 00:00:11.900 2664 2664 I SurfaceFlinger: ===&amp;gt; creating EGL context&lt;BR /&gt;01-01 00:00:11.900 2664 2664 D libEGL : ===&amp;gt; creating new context from EGL context&lt;BR /&gt;01-01 00:00:11.900 2664 2664 D v_gal : HAL user version 6.2.4 build 163672&lt;BR /&gt;01-01 00:00:11.900 2664 2664 D v_gal : HAL kernel version 1.1.-40 build 4294967168&lt;BR /&gt;[...]&lt;BR /&gt;01-01 00:00:11.902 2664 2664 D libEGL : ===&amp;gt; creating new context returned EGL_BAD_ALLOC (0x3003)&lt;BR /&gt;01-01 00:00:11.902 2664 2664 D libEGL : ===&amp;gt; continuing w/o valid context&lt;BR /&gt;01-01 00:00:11.902 2664 2664 F SurfaceFlinger: EGLContext creation failed&lt;BR /&gt;--------- beginning of crash&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2019 13:06:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/EGLContext-issue-in-P9-0-0-1-0-0-ga-for-i-MX-8M-Quad/m-p/868532#M132135</guid>
      <dc:creator>igrik</dc:creator>
      <dc:date>2019-03-05T13:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: EGLContext issue in P9.0.0_1.0.0-ga for i.MX 8M Quad</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/EGLContext-issue-in-P9-0-0-1-0-0-ga-for-i-MX-8M-Quad/m-p/868533#M132136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi igrik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Android layer, we have the reference code to alloc aligned memory buffer for GPU, since you are using this, you need implement such align by yourself, from Android, the align code can be found in function alloc().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2019 19:56:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/EGLContext-issue-in-P9-0-0-1-0-0-ga-for-i-MX-8M-Quad/m-p/868533#M132136</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2019-03-05T19:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: EGLContext issue in P9.0.0_1.0.0-ga for i.MX 8M Quad</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/EGLContext-issue-in-P9-0-0-1-0-0-ga-for-i-MX-8M-Quad/m-p/868534#M132137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/Bio_TICFSL"&gt;Bio_TICFSL&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for the fast response!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;we have the reference code to alloc aligned memory buffer for GPU&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Do you mean, there is already an existing reference implementation somewhere, which has to be extended for custom board designs?&amp;nbsp;Could you please point me to the project or file where this&amp;nbsp;is used / has to be implemented (like kernel, gralloc, native frameworks, etc)?&amp;nbsp;Probably there are many functions called &lt;STRONG&gt;alloc&lt;/STRONG&gt;&amp;nbsp;in the Android workspace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;igrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2019 08:11:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/EGLContext-issue-in-P9-0-0-1-0-0-ga-for-i-MX-8M-Quad/m-p/868534#M132137</guid>
      <dc:creator>igrik</dc:creator>
      <dc:date>2019-03-06T08:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: EGLContext issue in P9.0.0_1.0.0-ga for i.MX 8M Quad</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/EGLContext-issue-in-P9-0-0-1-0-0-ga-for-i-MX-8M-Quad/m-p/868535#M132138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found some allocation-related definitions in&amp;nbsp;&lt;EM&gt;imx8m/evk_8mq/BoardConfig.mk&lt;/EM&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE class="" lang="plaintext"&gt;&lt;SPAN class="" lang="plaintext"&gt;USE_ION_ALLOCATOR := true
&lt;/SPAN&gt;&lt;SPAN class="" lang="plaintext"&gt;USE_GPU_ALLOCATOR := false&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;They are only used in &lt;EM&gt;vendor/nxp/imx-vpu-cnm&lt;/EM&gt;, which seems not relevant for imx8mq, as it uses &lt;EM&gt;vendor/nxp/imx-vpu-hantro&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also checked projects in &lt;EM&gt;vendor/nxp-opensource/imx/display&lt;/EM&gt;:&amp;nbsp;&lt;EM&gt;display&lt;/EM&gt;,&amp;nbsp;&lt;EM&gt;gralloc_v3&lt;/EM&gt; and&amp;nbsp;&lt;EM&gt;hwcomposer_v20.&lt;/EM&gt; Gralloc and hwcomposer are loaded correctly&amp;nbsp;and the display module does provide an &lt;EM&gt;alloc&lt;/EM&gt;&amp;nbsp;function. However, this function isn't called before the crash occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/Bio_TICFSL" rel="nofollow noopener noreferrer" target="_blank"&gt;Bio_TICFSL&lt;/A&gt;‌, do you have an idea which module is the right one for me to adapt? I didn't find any documentation on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2019 09:22:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/EGLContext-issue-in-P9-0-0-1-0-0-ga-for-i-MX-8M-Quad/m-p/868535#M132138</guid>
      <dc:creator>igrik</dc:creator>
      <dc:date>2019-03-08T09:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: EGLContext issue in P9.0.0_1.0.0-ga for i.MX 8M Quad</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/EGLContext-issue-in-P9-0-0-1-0-0-ga-for-i-MX-8M-Quad/m-p/868536#M132139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"Android\hardware\imx\mx6\libgralloc_wrapper\BufferManager.cpp" is from Android, the align code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2019 15:16:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/EGLContext-issue-in-P9-0-0-1-0-0-ga-for-i-MX-8M-Quad/m-p/868536#M132139</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2019-03-08T15:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: EGLContext issue in P9.0.0_1.0.0-ga for i.MX 8M Quad</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/EGLContext-issue-in-P9-0-0-1-0-0-ga-for-i-MX-8M-Quad/m-p/868537#M132140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, there is no such project in the Android 9 source tree for imx8mq. I didn't find any files with this or similar name or a gralloc-related project :smileysad:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/Bio_TICFSL"&gt;Bio_TICFSL&lt;/A&gt;‌, any ideas? I will check if I can add this project manually to my source tree.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Mar 2019 12:27:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/EGLContext-issue-in-P9-0-0-1-0-0-ga-for-i-MX-8M-Quad/m-p/868537#M132140</guid>
      <dc:creator>igrik</dc:creator>
      <dc:date>2019-03-10T12:27:11Z</dc:date>
    </item>
  </channel>
</rss>

