From: Wolfgang Denk Date: Mon, 11 Oct 2010 13:35:13 +0200 Subject: [U-Boot] [PATCH] mmc: seperate block number into small parts for multi-write cmd In-Reply-To: <4CB2EA80.2090804@emk-elektronik.de> References: <1283757567-15161-1-git-send-email-leiwen@marvell.com> <4CB2EA80.2090804@emk-elektronik.de> Message-ID: <20101011113513.A4B571508A2@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 Reinhard Meyer, dear Lei Wen, In message <4CB2EA80.2090804@emk-elektronik.de> you wrote: > > > Ok, I am also fine with not include the 512KiB restriction. > > So we comes to a conclusion that we still use v1 patch, but cut the > > 512KiB limitation? > > Considering the comments that were given to that one, yes. I would like to point out that, from the previous discussion, I actually think that a 512 KiB limit would be wrong. If the limitation is really in the alignment, i. e. when crossing a 512 KiB boundary, then the allowable transfer size depends on the start address, and 512 KiB is actually only the maximum possible value. > > As mmc host limitation, the max number of block in one go > > should be limited to 65535, and the max buffer size should > > not excceed 512k bytes. > > Better reads somehow like this: > Since some hardware has a 16 bit block counter, split the multiple block > write into a maximum of (2**16 - 1) blocks to be written at one go. Agreed. 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 Einstein argued that there must be simplified explanations of nature, because God is not capricious or arbitrary. No such faith comforts the software engineer. - Fred Brooks, Jr.