Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755638Ab2F2PC4 (ORCPT ); Fri, 29 Jun 2012 11:02:56 -0400 Received: from mga01.intel.com ([192.55.52.88]:9821 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751431Ab2F2PC4 (ORCPT ); Fri, 29 Jun 2012 11:02:56 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.71,315,1320652800"; d="asc'?scan'208";a="171661814" Message-ID: <1340982422.3070.226.camel@sauron.fi.intel.com> Subject: Re: [PATCH] UBI: add minimal amount of reserved erase blocks in Kconfig From: Artem Bityutskiy Reply-To: dedekind1@gmail.com To: Richard Genoud Cc: David Woodhouse , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Shmulik Ladkani Date: Fri, 29 Jun 2012 18:07:02 +0300 In-Reply-To: References: <1340636918-7505-1-git-send-email-richard.genoud@gmail.com> <1340894351.3070.121.camel@sauron.fi.intel.com> <1340900549.3070.130.camel@sauron.fi.intel.com> <1340979030.3070.216.camel@sauron.fi.intel.com> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-pBtcLmnxF2LNZ+ZOiecs" X-Mailer: Evolution 3.2.3 (3.2.3-3.fc16) Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2327 Lines: 59 --=-pBtcLmnxF2LNZ+ZOiecs Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 2012-06-29 at 16:57 +0200, Richard Genoud wrote: > 2012/6/29 Artem Bityutskiy : > >> I was thinking that instead of giving to ubiattach the MBB, we could > >> give it the MBB percentage (maximum bad blocks percentage of the whole > >> flash device). > >> From this % and the whole flash size, we get the MBB number, and set > >> beb_rsvd_level for each MTD part. > > > > Well, I thought that it may be not flexible enough for some people, > > because you cannot give 1.5%, since flaoting-point arithmetic in the > > kernel is not used. > So there's 2 ways to bypass that : > - use per-1024 instead of percent =3D> the default value would be 20. > - let ubiattach do the conversion from MBB% to MBB > I like the 1st one because it gives a number close to what we have in > the datasheets. > What do you think ? Yeah, probably, centi-percents would be OK. --=20 Best Regards, Artem Bityutskiy --=-pBtcLmnxF2LNZ+ZOiecs Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAABAgAGBQJP7cSWAAoJECmIfjd9wqK0H6gQAMtjmZiBQBrzI0qIxyMcBJ29 SsgG1fqZRjaAuLrOOa/TyMf1IbeG52ZPxadgVeNP1E9clkG977mIRkvOwi2DpZ8L S2cXo6MvgGw0C7CIKWBoj/r/ehoNjOjDGKApnZZNrNV9nR5FQ9RVCjktBCnkJ7wA PN07wE7DiFfXtm2I3X5NKWiqrU6WHOhivYmtr6zjWC9Md5REYY5m3NpFFM4gGa/6 fwpfL0AYkWTVlMTegXqKLo9bB4Q4FJFnpPA64y0+/bCJ6pQumsr8fMOz54rnLXzt 5upXJu7UNiu9/it9lcTIY5E4f1G84uTrq90bE8BJWpCfMIIsg+1ZTc8h253tqESy 8njUR/X+V2DDSGT6FsBlOEemb/2pK0PEr/tQkpHeyowDRzUDJBws5d6Ome7NAftm QdK6fJfCIPO2XYUKZ0g+ejWGeMKAaMbq4ILtHBcDco9Qp8jrBOh7W44Ik004HaZs tqxhALRQv1R4TfKFUUOXlNII2KWETnaFP1Bvbljq0XEaignQt2Bl2HNrRXZxoa6Z tENpuQAGbJPN9oXhkT7DEYvXEtG3JYTtTcoMYy8vNhFt7PK4k3gYDGVsWS4+B6UE sISUuR7Kl4nm17j2ZTBTDQ8mMkC7abYdU3gcKRx2IDhDRt/Yna32Tdc3ktAHQHsv aOlRc5lryHnuj+QQjTNz =9oW0 -----END PGP SIGNATURE----- --=-pBtcLmnxF2LNZ+ZOiecs-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/