From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ilya Yanok Date: Fri, 28 Oct 2011 00:27:50 +0400 Subject: [U-Boot] [PATCH 5/7] omap_gpmc: use SOFTECC in SPL if it's enabled In-Reply-To: <4EA152C9.1040407@gmail.com> References: <1318894433-9038-1-git-send-email-yanok@emcraft.com> <1318894433-9038-6-git-send-email-yanok@emcraft.com> <4EA00D56.9070103@gmail.com> <4EA03CFB.8040302@emcraft.com> <4EA152C9.1040407@gmail.com> Message-ID: <4EA9BEC6.8080207@emcraft.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Simon, On 21.10.2011 15:08, Simon Schwarz wrote: >>>> Use software ECC for the SPL build if support for software ECC in > SPL is >>>> enabled. >>> >>> I'am curious: Is there a special reason for having software ecc in SPL? >> >> Well, yes. On OMAP2+ ECC mode defaults to software (incompatible with HW >> mode; 256 vs 512 bytes block size) both in U-Boot and Linux (U-Boot has >> command to change it while in Linux you have to recompile the kernel). >> >> So we need software ecc to read images written from Linux. > > ok. Agreed. > > Another thing just poped into my mind, ATM I have a DMA patch for > devkit8000 on the ML: > http://article.gmane.org/gmane.comp.boot-loaders.u-boot/109744 > http://article.gmane.org/gmane.comp.boot-loaders.u-boot/112661 Yes, I've seen this patch. > It speeds up the process of copying the u-boot/linux image. ATM this is > in combination with HW ecc and I doubt that it will work seamlessly with > SW-ecc, yet. However IMHO DMA in combination with SW-ecc could be nearly > as fast as using HW-ecc. > > So maybe an adaption is worth a try? Uh.. Had no time to look at it last days... I'll try to take a look at it this weekend. Regards, Ilya.