public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: David Wagner <david.wagner@free-electrons.com>
To: Gilles <gilles.ganault@free.fr>
Cc: linux-mtd@lists.infradead.org
Subject: Re: [Ubiattach] "vtbl_check: too large reserved_pebs"
Date: Thu, 09 Jun 2011 17:50:57 +0200	[thread overview]
Message-ID: <4DF0EBE1.9000903@free-electrons.com> (raw)
In-Reply-To: <e2p1v6tlj2gka1lq4q2bd0mk5al776ivms@4ax.com>

>> 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

Regards,
-- 
David Wagner, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

  reply	other threads:[~2011-06-09 15:48 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 [this message]
2011-06-09 15:51           ` Artem Bityutskiy
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=4DF0EBE1.9000903@free-electrons.com \
    --to=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox