From: Artem Bityutskiy <dedekind1@gmail.com>
To: David Wagner <david.wagner@free-electrons.com>
Cc: Gilles <gilles.ganault@free.fr>, linux-mtd@lists.infradead.org
Subject: Re: [Ubiattach] "vtbl_check: too large reserved_pebs"
Date: Thu, 09 Jun 2011 18:51:50 +0300 [thread overview]
Message-ID: <1307634710.7374.126.camel@localhost> (raw)
In-Reply-To: <4DF0EBE1.9000903@free-electrons.com>
On Thu, 2011-06-09 at 17:50 +0200, David Wagner wrote:
> >> Oops, sorry, the formula is
> >> ((Subpage_size + Page_size)) / Page_size) * Page_size
> >> That is, subpage+page truncated to page.
> >
> > Thanks, but I must have misunderstood the formula, as I find the same
> > number:
> >
> > PEB_size - ((Subpage_size + Page_size)) / Page_size) * Page_size =
> > LEB_size
> >
> > 131.072 - ((512 + 2048 ) / 2048) * 2048) = 128.512
>
> I should have mentionned that every sub-result has to be considered an
> integer, here, sorry.
> 512+2048 = 2560
> 2560 / 2048 = 1 // That's where it is important that the result be
> // an integer.
> 1 * 2048 = 2048
> 131072 - 2048 = 129024
An improvement patch to the mtd web-site is welcome - it is very simple
to change:
http://git.infradead.org/mtd-www.git
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
next prev parent reply other threads:[~2011-06-09 15:56 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-09 10:24 [Ubiattach] "vtbl_check: too large reserved_pebs" Gilles
2011-06-09 12:20 ` Artem Bityutskiy
2011-06-09 12:31 ` Gilles
2011-06-09 12:38 ` Artem Bityutskiy
2011-06-09 15:18 ` Gilles
2011-06-10 4:03 ` Artem Bityutskiy
2011-06-10 9:25 ` Gilles
[not found] ` <4DF0B36E.2020605@free-electrons.com>
[not found] ` <7.0.1.0.2.20110609135430.06967d28@free.fr>
2011-06-09 12:42 ` David Wagner
2011-06-09 15:19 ` Gilles
2011-06-09 15:50 ` David Wagner
2011-06-09 15:51 ` Artem Bityutskiy [this message]
2011-06-09 16:15 ` Gilles
2011-06-09 16:17 ` Gilles
2011-06-09 23:05 ` Gilles
2011-06-10 0:45 ` Gilles
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1307634710.7374.126.camel@localhost \
--to=dedekind1@gmail.com \
--cc=david.wagner@free-electrons.com \
--cc=gilles.ganault@free.fr \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.