From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Date: Wed, 17 Jun 2015 19:55:40 -0600 Subject: [U-Boot] Very slow fatload on bcm2835 In-Reply-To: <201506171243.05720.marex@denx.de> References: <20150611203514.2f83d4b3@north> <557F9FAE.3040602@wwwdotorg.org> <557FEA0F.9050303@suse.cz> <201506171243.05720.marex@denx.de> Message-ID: <5582251C.9050303@wwwdotorg.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 06/17/2015 04:43 AM, Marek Vasut wrote: > On Tuesday, June 16, 2015 at 11:19:11 AM, Michal Marek wrote: >> On 2015-06-16 06:01, Stephen Warren wrote: >>> On 06/11/2015 12:35 PM, Jakub Kicinski wrote: >>>> Hello! > > Hi/Ahoj :) > >>>> I'm using latest git source of U-Boot on Raspberry Pi Compute Module >>>> and performance of fatload is quite bad. Does anyone have any clue >>>> about what can be wrong? Is it the lack of cache? >>> >>>> Sample boot log: >>> ... >>> >>>> reading zImage >>>> 4003816 bytes read in 48930 ms (79.1 KiB/s) >>> >>> I see this too. I bisected it to: >>> 33fe2fb8df01 ARM: mmc: bcm283x: Remove get_timer_us() from mmc driver >>> >>> Marek, this is the second symptom I bisected to this patch. Something >>> seems quite wrong with it. Did changing to the other timer function >>> change the timer tick rate or something? FWIW, "sleep 10" at the shell >>> prompt appears to run for the correct amount of time, so I guess it's >>> not that. > > Hmmmm, get_timer() returns msecs, not usecs. I wonder what I was smoking. > Can you try with the attached diff please (I only compile-tested it) ? Thanks for the quick fix; it works great. Tested-by: Stephen Warren >> I think you meant Marek Va?ut. I'm Marek by last name :). > > We're both Czech though ;-) Oops. Must check my auto-completes more thoroughly!