Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F0ABCC6FD1F for ; Thu, 16 Mar 2023 04:41:00 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 408FF8598A; Thu, 16 Mar 2023 05:40:57 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="QQzyHatw"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 03DA78598A; Thu, 16 Mar 2023 05:40:54 +0100 (CET) Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DCB5585984 for ; Thu, 16 Mar 2023 05:40:51 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=n-jain1@ti.com Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32G4elme054770; Wed, 15 Mar 2023 23:40:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1678941647; bh=sMkl2KDlxtOH3a37R7FrF3WHjCl3P+5+s/+hFEDtehA=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=QQzyHatw8evPVn6goTTuFAANfmawBSRgdWER/XeP3DubTBqfRha3hq/hU9PdQJPyn VHLYNsuzYqKy7bu5c3/h4Roj1+ySrAJn+RekdHUnTDDWAz7pDBcViKINIm1saaRjbi JT+LdMmr1ut16mFA2vkbQysWi8lrXHqEWUcjN2zI= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32G4elZJ003169 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 15 Mar 2023 23:40:47 -0500 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Wed, 15 Mar 2023 23:40:46 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Wed, 15 Mar 2023 23:40:47 -0500 Received: from [172.24.145.43] (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 32G4eixb069748; Wed, 15 Mar 2023 23:40:45 -0500 Message-ID: <88e69942-9bae-0039-cb0f-0191c6a58341@ti.com> Date: Thu, 16 Mar 2023 10:10:43 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH 0/9] Enable splash screen Content-Language: en-US To: Simon Glass CC: , , , , , References: <20230313101459.58986-1-n-jain1@ti.com> From: Nikhil M Jain In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Hi Simon, On 15/03/23 19:38, Simon Glass wrote: > Hi Nikhil, > > On Wed, 15 Mar 2023 at 00:07, Nikhil M Jain wrote: >> >> Hi Simon, >> >> On 15/03/23 03:38, Simon Glass wrote: >>> Hi Nikhil, >>> >>> On Mon, 13 Mar 2023 at 04:15, Nikhil M Jain wrote: >>>> >>>> To enable splash screen at SPL stage move video driver and splash screen >>>> framework at SPL, which will bring up image on display very quickly and >>>> thus have early display support in SPL. >>>> >>>> Nikhil M Jain (9): >>>> drivers: video: Kconfig: Necessary configs for video at SPL >>>> drivers: video: tidss: Kconfig: Configs to enable TIDSS at SPL >>>> cmd: Kconfig: Add necessary configs for splash screen at SPL >>>> drivers: video: Makefile: Compile video driver files at SPL >>>> drivers: video: tidss: Makefile: Add condition to compile TIDSS at SPL >>>> cmd: Makefile: Add rules to build bmp.c and read.c at SPL >>>> common: splash: Enable splash_display at SPL stage >>>> drivers: video: video-uclass: Disable u-boot logo at SPL >>>> board: ti: am62x: evm: OSPI support for splash screen >>>> >>>> board/ti/am62x/evm.c | 6 ++++++ >>>> cmd/Kconfig | 17 +++++++++++++++++ >>>> cmd/Makefile | 2 ++ >>>> common/splash.c | 2 +- >>>> drivers/video/Kconfig | 32 ++++++++++++++++++++++++++++---- >>>> drivers/video/Makefile | 6 ++++++ >>>> drivers/video/tidss/Kconfig | 6 ++++++ >>>> drivers/video/tidss/Makefile | 1 + >>>> drivers/video/video-uclass.c | 2 +- >>>> include/splash.h | 2 +- >>>> 10 files changed, 69 insertions(+), 7 deletions(-) >>> >>> I'm not necessarily arguing against this, but what is the need for >>> this? How many milliseconds earlier does the image appear with this >>> patch? What is the bottleneck? We should be able to get to U-Boot >>> proper very quickly. >>> >> There is a significant difference in time, by adding support in SPL >> splash screen comes up by approx 650ms and at u-boot proper it comes at >> 2.6s, measured from first print in console as seen on AM62x. Also we >> plan to skip u-boot proper and load kernel directly. > > Yes that really is terrible. It should be under a second for U-Boot proper! > > Have you tried using bootstage to report the numbers? > No I haven't used the bootstage, I will use it to get the numbers. > Have you tried using tracing to figure out what is wrong? Is it just > slow storage? > U-boot proper comes up in one sec but the splash display is called through stdio_add_devices which is late in the board_init_r sequence defined in board_r.c. > Regards, > Simon Thanks