<div dir="ltr">Hi All!<div><span style="font-size:12.8px">I have a sama5d3 Explained with 4.3" LCD (TM4301).</span></div><div><span style="font-size:12.8px">My problem is the next: </span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">After booting the system and try to draw first using DRM using planes don't paint anything on the LCD displays, but from the second time is painted correctly on the LCD.</span><br></div><div><span style="font-size:12.8px"><br></span></div><div><div><span style="font-size:12.8px">I have seen a couple of things:</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">- After starting / sys/class/drm/card0/card0-LVDS-1/enabled is disabled</span></div></div><div><span style="font-size:12.8px">After running the program for the first time or paint something using the framebuffer, the state becomes enabled and can be drawn correctly using planes.</span><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">- If I don't use planes and use CRTC  it works correctly.</span></div><div><span style="font-size:12.8px">- If I open the device with </span><span class="im">drmOpen() </span><span style="font-size:12.8px">it works correctly. (works because this function calls drmAvailable(). I tried to modify the code libdrm and if we comment drmAvailable() does not work modetest using planes.)</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Attached two codes: In the first I do not use drmAvailable() and the second use drmAvailable().</span><br></div><div><span style="font-size:12.8px">I don't want to use drmOpen() because you have to indicate the driver and want to do it generically using the function open().</span><br></div><div><span style="font-size:12.8px"><br></span></div><div>I tried to enable drm from kernel_mode_setting (video=LVDS-1:480x272-16:e) but don't work.</div><div><br></div><div>I am almost certain that the first time does not paint because DRM is disabled and using planes seems not enabled properly until the sample application is closed. Viewing code of <span style="font-size:12.8px">drmAvailable()</span> I can see that opens and closes the device with what happens to an enabled state.<br></div><div><br></div><div><span style="font-size:12.8px">I'm not sure if it's a bug in the driver or libdrm or is my mistake...</span></div><div><br></div><div><span style="font-size:12.8px">Code:</span></div><div><span style="font-size:12.8px"><a href="http://pastebin.com/2jKvhFWD">http://pastebin.com/2jKvhFWD</a></span><br></div><div><span style="font-size:12.8px"><a href="http://pastebin.com/4aWi5e2X">http://pastebin.com/4aWi5e2X</a></span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thanks!</span></div><div><span style="font-size:12.8px">Regards!</span></div><div><span style="font-size:12.8px"><br></span></div><div><div><br></div></div></div>