<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/mtd/ubi/Kconfig, branch linux-3.14.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.14.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.14.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2012-10-03T13:39:37Z</updated>
<entry>
<title>UBI: Wire-up fastmap</title>
<updated>2012-10-03T13:39:37Z</updated>
<author>
<name>Richard Weinberger</name>
</author>
<published>2012-09-26T15:51:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=76ac66e469f084d41742ba08923de76fbdc7dce3'/>
<id>urn:sha1:76ac66e469f084d41742ba08923de76fbdc7dce3</id>
<content type='text'>
Make fastmap known to Kconfig, UBI Makefile and MAINTAINERS.

Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>UBI: add max_beb_per1024 to attach ioctl</title>
<updated>2012-09-04T06:39:01Z</updated>
<author>
<name>Richard Genoud</name>
</author>
<published>2012-08-20T16:00:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=db7e21c21f293d52f5363fe8d9ee91d6bd0a503a'/>
<id>urn:sha1:db7e21c21f293d52f5363fe8d9ee91d6bd0a503a</id>
<content type='text'>
This patch provides a possibility to set the "maximum expected number of
bad blocks per 1024 blocks" (max_beb_per1024) for each mtd device using
the UBI_IOCATT ioctl.

Signed-off-by: Richard Genoud &lt;richard.genoud@gmail.com&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>UBI: allow specifying bad PEBs limit using module parameter</title>
<updated>2012-09-04T06:39:01Z</updated>
<author>
<name>Richard Genoud</name>
</author>
<published>2012-08-20T16:00:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=edac493dfb48fe46d43fe6afabb8cfb2d1d4c048'/>
<id>urn:sha1:edac493dfb48fe46d43fe6afabb8cfb2d1d4c048</id>
<content type='text'>
This patch provides the possibility to adjust the "maximum expected number of
bad blocks per 1024 blocks" (max_beb_per1024) for each mtd device.

The majority of NAND devices have their max_beb_per1024 equal to 20, but
sometimes it's more.
Now, we can adjust that via a kernel parameter:
ubi.mtd=&lt;name|num|path&gt;[,&lt;vid_hdr_offs&gt;[,max_beb_per1024]]

Signed-off-by: Richard Genoud &lt;richard.genoud@gmail.com&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>UBI: use the whole MTD device size to get bad_peb_limit</title>
<updated>2012-09-04T06:39:00Z</updated>
<author>
<name>Richard Genoud</name>
</author>
<published>2012-07-10T16:23:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ba4087e956d336488c6df9dfca65d1e70cf480f1'/>
<id>urn:sha1:ba4087e956d336488c6df9dfca65d1e70cf480f1</id>
<content type='text'>
On NAND flash devices, UBI reserves some physical erase blocks (PEB) for
bad block handling. Today, the number of reserved PEB can only be set as a
percentage of the total number of PEB in each MTD partition. For example, for a
NAND flash with 128KiB PEB, 2 MTD partition of 20MiB (mtd0) and 100MiB (mtd1)
and 2% reserved PEB:
 - the UBI device on mtd0 will have 2 PEB reserved
 - the UBI device on mtd1 will have 16 PEB reserved

The problem with this behaviour is that NAND flash manufacturers give a
minimum number of valid block (NVB) during the endurance life of the
device, e.g.:

Parameter             Symbol    Min    Max    Unit      Notes
--------------------------------------------------------------
Valid block number     NVB     1004    1024   Blocks     1

From this number we can deduce the maximum number of bad PEB that a device will
contain during its endurance life: a 128MiB NAND flash (1024 PEB) will not have
less than 20 bad blocks during the flash endurance life.

But the manufacturer doesn't tell where those bad block will appear. He doesn't
say either if they will be equally disposed on the whole device (and I'm pretty
sure they won't). So, according to the datasheets, we should reserve the
maximum number of bad PEB for each UBI device (worst case scenario: 20 bad
blocks appears on the smallest MTD partition).

So this patch make UBI use the whole MTD device size to calculate the maximum
bad expected eraseblocks.

The Kconfig option is in per1024 blocks, thus it can have a default value of 20
which is *very* common for NAND devices.

Signed-off-by: Richard Genoud &lt;richard.genoud@gmail.com&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>UBI: kill CONFIG_MTD_UBI_BEB_RESERVE</title>
<updated>2012-09-04T06:38:58Z</updated>
<author>
<name>Shmulik Ladkani</name>
</author>
<published>2012-07-04T08:06:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1b2a5790613756d54fdf58d0b3965e43735f153b'/>
<id>urn:sha1:1b2a5790613756d54fdf58d0b3965e43735f153b</id>
<content type='text'>
CONFIG_MTD_UBI_BEB_RESERVE and MIN_RESEVED_PEBS are no longer used,
since the amount of reserved eraseblocks for bad PEB handling is now
derived from 'ubi-&gt;bad_peb_limit' (ubi's maximum expected bad
eraseblocks).

Signed-off-by: Shmulik Ladkani &lt;shmulik.ladkani@gmail.com&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>UBI: introduce new bad PEB limit</title>
<updated>2012-09-04T06:38:58Z</updated>
<author>
<name>Shmulik Ladkani</name>
</author>
<published>2012-07-04T08:06:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8beeb3bb9df8caba36ad3e4f226255dff9c92556'/>
<id>urn:sha1:8beeb3bb9df8caba36ad3e4f226255dff9c92556</id>
<content type='text'>
Introduce 'ubi-&gt;bad_peb_limit', which specifies an upper limit of PEBs
UBI expects to go bad.  Currently, it is initialized to a fixed percentage
of total PEBs in the UBI device (configurable via CONFIG_MTD_UBI_BEB_LIMIT).

The 'bad_peb_limit' is intended to be used for calculating the amount of PEBs
UBI needs to reserve for bad eraseblock handling.

Artem: minor amendments.

Signed-off-by: Shmulik Ladkani &lt;shmulik.ladkani@gmail.com&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>UBI: Change the default percentage of reserved PEB</title>
<updated>2012-07-18T07:13:41Z</updated>
<author>
<name>Richard Genoud</name>
</author>
<published>2012-06-29T06:57:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=54de1f1c44c3522dbdc2201be1f65e733526de51'/>
<id>urn:sha1:54de1f1c44c3522dbdc2201be1f65e733526de51</id>
<content type='text'>
The actual value (1%) is too low for actual NAND devices, a huge
majority of device has 2% maximum bad blocks (SLC or MLC).
(Actually it's 20 blocks on a 1024 blocks device, 40/2048...)

Signed-off-by: Richard Genoud &lt;richard.genoud@gmail.com&gt;
</content>
</entry>
<entry>
<title>UBI: remove Kconfig debugging option</title>
<updated>2012-05-20T17:26:00Z</updated>
<author>
<name>Artem Bityutskiy</name>
</author>
<published>2012-05-16T15:09:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=aa44d1d35f3485e0acea0f22e41cb472d2c99858'/>
<id>urn:sha1:aa44d1d35f3485e0acea0f22e41cb472d2c99858</id>
<content type='text'>
This patch kills the UBI debugging Kconfig option completely and makes all the
debugging stuff to be always compiled-in. It was pain in the neck to maintain
this useless option because all users I am aware of have debugging enabled
anyway - how else will you diagnose errors otherwise?

Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>UBI: do not select KALLSYMS_ALL</title>
<updated>2011-04-05T08:08:59Z</updated>
<author>
<name>Artem Bityutskiy</name>
</author>
<published>2011-03-30T08:27:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6bef0b67474d71e0d6484cbabcc87657a1176d8d'/>
<id>urn:sha1:6bef0b67474d71e0d6484cbabcc87657a1176d8d</id>
<content type='text'>
All UBI needs is to make sure we stacktraces when UBI debugging
is enabled. It is enough to select KALLSYMS for this, KALLSYMS_ALL
is not necessary.

And the current Kconfig line we have:

select KALLSYMS_ALL if KALLSYMS &amp;&amp; DEBUG_KERNEL

is just too complex to be sane and right. But this "if" part there
is needed to prevent "unmet direct dependency" warnings, because
KALLSYMS_ALL depends on KALLSYMS and DEBUG_KERNEL, so we cannot
just select KALLSYMS_ALL.

Anyway, this feels messy, and we do not seem to really need KALLSYMS_ALL,
so select KALLSYMS instead.

Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
Acked-by: Randy Dunlap &lt;randy.dunlap@oracle.com&gt;
</content>
</entry>
<entry>
<title>UBI: make tests modes dynamic</title>
<updated>2011-03-16T11:50:17Z</updated>
<author>
<name>Artem Bityutskiy</name>
</author>
<published>2011-03-15T08:30:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=28237e4583604818294dc1ce7881db5f53377b9c'/>
<id>urn:sha1:28237e4583604818294dc1ce7881db5f53377b9c</id>
<content type='text'>
Similarly to the debugging checks and message, make the test modes
be dynamically selected via the "debug_tsts" module parameter or
via the "/sys/module/ubi/parameters/debug_tsts" sysfs file. This
is consistent with UBIFS as well.

And now, since all the Kconfig knobs became dynamic, we can remove
the Kconfig.debug file completely.

Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
</feed>
