<div dir="ltr"><div dir="ltr"><div>Hi Satyeshwar,</div><div><br></div><div>Thanks for your input.</div><div>Following is the sequence to render the first screen. will it not take atleast 500~ms?</div><div>1. weston init.(clear the screen content).</div><div>2. Create a window from the user application process and render the content.</div><div>3. Layer manager needs to react to the window creation and the render order configuration.</div><div>4. Then only rendered content can be seen in the display.</div></div><div><br></div><div>If we want stripdown weston dependencies then what could be your input?</div><div><br></div>Thanks in advance,<div>Arunkumar R</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 28, 2020 at 7:28 AM Singh, Satyeshwar <<a href="mailto:satyeshwar.singh@intel.com">satyeshwar.singh@intel.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Arunkumar,<br>
Have you measured:<br>
1) The time to load all of the dependencies and get to "int main" of the compositor?<br>
2) The time from "int main" to the first rendered frame? Is this what you mean by 500 ms? This looks abnormally large to me. <br>
<br>
First one may be improved by programs like preload. For second one, you should use tracing within Weston to figure out where is most of the time being spent.<br>
-Satyeshwar<br>
<br>
-----Original Message-----<br>
From: wayland-devel <<a href="mailto:wayland-devel-bounces@lists.freedesktop.org" target="_blank">wayland-devel-bounces@lists.freedesktop.org</a>> On Behalf Of Daniel Stone<br>
Sent: Monday, July 27, 2020 3:02 AM<br>
To: arunkrish20 <<a href="mailto:arunkrish20@gmail.com" target="_blank">arunkrish20@gmail.com</a>><br>
Cc: <a href="mailto:svadive2@visteon.com" target="_blank">svadive2@visteon.com</a>; genivi-ivi <<a href="mailto:genivi-ivi-layer-management@lists.genivi.org" target="_blank">genivi-ivi-layer-management@lists.genivi.org</a>>; wayland <<a href="mailto:wayland-devel@lists.freedesktop.org" target="_blank">wayland-devel@lists.freedesktop.org</a>><br>
Subject: Re: Trying to reduce boot time for weston and logo from weston<br>
<br>
Hi Arunkumar,<br>
<br>
On Mon, 27 Jul 2020 at 06:59, arunkrish20 <<a href="mailto:arunkrish20@gmail.com" target="_blank">arunkrish20@gmail.com</a>> wrote:<br>
> We are working with the i.MX8 platform. We are working with weston and DRM backend. Below are the version details.<br>
><br>
> NXP BSP Version: 4.14.98_2.0.0_ga<br>
> SC Firmware Version : 1.3.1<br>
> wayland version 1.16 am<br>
> weston- ivi - 5.0.0<br>
<br>
We are currently working our way towards releasing Weston 9.0.0, so this version is quite old.<br>
<br>
> Our requirement is to display the first screen in 2 Seconds.<br>
><br>
> In the current environment we are able to see the first screen in the 6th seconds.<br>
<br>
Ouch, that's quite long.<br>
<br>
> We tried to boot the weston in initramfs. But due to size constraints we are not able to. Size comes around 65MB.<br>
><br>
> Is there any possibility for reducing the size of weston?<br>
<br>
Weston itself with the DRM + GL backends only takes around 750kB once installed. I assume the 65MB comes from extra dependencies, but that is something you would have to investigate and configure in your Yocto build. Weston itself does not have many dependencies, and those dependencies are not large.<br>
<br>
> Weston taking 500ms to complete the initialization. Can we reduce this timing? e.g if we block unwanted device probing etc, any idea?<br>
><br>
> In case if we use separate drm based rendering application for the first screen and switching to weston are seeing blank. Instead of clearing the weston screen buffer can we have a logo on first rendering. so that blank can be avoided between the first drm application to weston rendering.<br>
<br>
NXP has forked Weston and written their own backend, which is responsible for the initialisation (both the time and the blank screen). The default DRM backend is quite quick to come up and be responsive, and doesn't blank the screen. So both these issues are something you'd need to raise with NXP support, as they are due to NXP's changes to our code.<br>
<br>
Cheers,<br>
Daniel<br>
_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org" target="_blank">wayland-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/wayland-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
</blockquote></div></div></div>