From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Wed, 20 Jul 2011 14:20:55 +0200 Subject: [U-Boot] ARM POST Tests. In-Reply-To: <4E26B523.3070609@keymile.com> References: <4E1FF69C.50005@denx.de> <4E25A2D0.1090903@keymile.com> <20110719184546.1C85017E88C9@gemini.denx.de> <4E26B523.3070609@keymile.com> Message-ID: <20110720122055.87A3C1579DF2@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Valentin Longchamp, In message <4E26B523.3070609@keymile.com> you wrote: > > I have done a little bit of profiling this morning, and the main culprit is the > call to getenv_f in post_get_flags for the four environment variables: > > "post_poweron", "post_normal", "post_slowtest" "post_critical" > > This is extremly slow on my system (before relocation). The goal of these env Are you by chance reading the environment from I2C attached EEPROM or so? This is indeed a speed killer. > variables is, I guess, to define the name of the tests that have to be run for > each post level, right ? Is this the only way to define which tests are to be run ? To define the tests to be run, and the reaction that is needed if a test fails. If your environment accesses are so slow, you should fix that anyway. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de You don't need a weatherman to know which way the wind blows. - Bob Dylan