From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peng Fan Date: Fri, 12 Aug 2016 11:02:03 +0800 Subject: [U-Boot] [PATCH 5/5] mmc: sd: optimize erase In-Reply-To: References: <1470913205-27891-1-git-send-email-peng.fan@nxp.com> <1470913205-27891-5-git-send-email-peng.fan@nxp.com> Message-ID: <20160812030201.GB810@linux-7smt.suse> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Fabio, On Thu, Aug 11, 2016 at 09:53:31PM -0300, Fabio Estevam wrote: >Hi Peng, > >On Thu, Aug 11, 2016 at 8:00 AM, Peng Fan wrote: >> To SD, there is no erase group, then the value erase_grp_size >> will be default 1. When erasing SD blocks, the blocks will be >> erased one by one, which is time consuming. >> >> use AU_SIZE as a group to speed up the erasing. > >Just curious: what was the measured increase in performace for the >erase operation with your series? Erasing 4MB. Before applying this patch set => time mmc erase 0x100000 0x2000 MMC erase: dev # 0, block # 1048576, count 8192 ... 8192 blocks erased: OK time: 44.856 seconds After applying the patch set: => time mmc erase 0x100000 0x2000 MMC erase: dev # 0, block # 1048576, count 8192 ... 8192 blocks erased: OK time: 0.335 seconds Will add the test reults in V2 commit log. Thanks, Peng. > >Thanks