<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/mtd/ubi/wl.c, branch linux-3.8.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.8.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.8.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2012-12-20T15:39:03Z</updated>
<entry>
<title>Merge tag 'upstream-3.8-rc1' of git://git.infradead.org/linux-ubi</title>
<updated>2012-12-20T15:39:03Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2012-12-20T15:39:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=85d5b70d8a0681a362d075bf0d19b4ee8c6767ee'/>
<id>urn:sha1:85d5b70d8a0681a362d075bf0d19b4ee8c6767ee</id>
<content type='text'>
Pull UBI update from Artem Bityutskiy:
 "Nothing exciting, just clean-ups and nicification.  Oh, and one small
  optimization which makes UBI to use less RAM."

* tag 'upstream-3.8-rc1' of git://git.infradead.org/linux-ubi:
  UBI: embed ubi_debug_info field in ubi_device struct
  UBI: introduce helpers dbg_chk_{io, gen}
  UBI: replace memcpy with struct assignment
  UBI: remove spurious comment
  UBI: gluebi: rename misleading variables
  UBI: do not allocate the memory unnecessarily
  UBI: use list_move_tail instead of list_del/list_add_tail
</content>
</entry>
<entry>
<title>UBI: introduce helpers dbg_chk_{io, gen}</title>
<updated>2012-12-10T11:38:59Z</updated>
<author>
<name>Ezequiel Garcia</name>
</author>
<published>2012-11-28T12:18:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=64575574f26d7969713ede9bde750c979da4037e'/>
<id>urn:sha1:64575574f26d7969713ede9bde750c979da4037e</id>
<content type='text'>
With this patch code is a bit more readable and there's no
generated code or functionality impact.
Furthermore, this abstracts implementation details and
will allow to change ubi_debug_info in a less invasive way.

Signed-off-by: Ezequiel Garcia &lt;elezegarcia@gmail.com&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>UBI: dont call ubi_self_check_all_ff() in __wl_get_peb()</title>
<updated>2012-12-04T14:04:31Z</updated>
<author>
<name>Richard Weinberger</name>
</author>
<published>2012-12-03T19:57:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=894aef215775b56b725e9dde856b7a8b091ddfcc'/>
<id>urn:sha1:894aef215775b56b725e9dde856b7a8b091ddfcc</id>
<content type='text'>
As ubi_self_check_all_ff() might sleep we are not allowed
to call it from atomic context.
For now we call it only from ubi_wl_get_peb().
There are some code paths where it would also make sense,
but these paths are currently atomic and only enabled
when fastmap is used.

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: remove PEB from free tree in get_peb_for_wl()</title>
<updated>2012-12-04T14:04:16Z</updated>
<author>
<name>Richard Weinberger</name>
</author>
<published>2012-12-03T19:57:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ed4b7021cb51fe5a0f260df03298709347a26967'/>
<id>urn:sha1:ed4b7021cb51fe5a0f260df03298709347a26967</id>
<content type='text'>
If UBI is built without fastmap, get_peb_for_wl() has to
remove the PEB manially from the free tree.
Otherwise the requested PEB lives in two trees.

Reported-by: Zach Sadecki &lt;zsadecki@itwatchdogs.com&gt;
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: remove spurious comment</title>
<updated>2012-11-30T11:54:41Z</updated>
<author>
<name>Ezequiel Garcia</name>
</author>
<published>2012-11-21T15:46:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=38f92cca8aae5b2e4ff2700c47eee0b807e22980'/>
<id>urn:sha1:38f92cca8aae5b2e4ff2700c47eee0b807e22980</id>
<content type='text'>
This line of comment looks completely bogus.

It was introduced in:
commit d99383b00eba9c6ac3dea462d718b2849012ee03
Author: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
Date:   Wed May 18 14:47:34 2011 +0300

    UBI: change the interface of a debugging check function

Remove it.

Signed-off-by: Ezequiel Garcia &lt;elezegarcia@gmail.com&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>UBI: Add fastmap support to the WL sub-system</title>
<updated>2012-10-03T09:29:38Z</updated>
<author>
<name>Richard Weinberger</name>
</author>
<published>2012-09-26T15:51:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8199b901a31b6e89b63842643f644fc05b403b20'/>
<id>urn:sha1:8199b901a31b6e89b63842643f644fc05b403b20</id>
<content type='text'>
To make fastmap possible the WL sub-system needs some
changes.
Mostly to support fastmaps pools.

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 fastmap stuff to ubi.h</title>
<updated>2012-10-03T09:29:37Z</updated>
<author>
<name>Richard Weinberger</name>
</author>
<published>2012-09-26T15:51:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5638b33abffd967dda4f984a247925b7af38b23d'/>
<id>urn:sha1:5638b33abffd967dda4f984a247925b7af38b23d</id>
<content type='text'>
This patch adds fastmap specific data structures to ubi.h.
It moves also struct ubi_work to ubi.h as it is now needed
for more than one c file.

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: print less</title>
<updated>2012-09-04T06:39:02Z</updated>
<author>
<name>Artem Bityutskiy</name>
</author>
<published>2012-08-27T14:14:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=719bb84017fcfc949a77e150dd5b045e90a4ebc9'/>
<id>urn:sha1:719bb84017fcfc949a77e150dd5b045e90a4ebc9</id>
<content type='text'>
UBI currently prints a lot of information when it mounts a volume, which
bothers some people. Make it less chatty - print only important information
by default.

Get rid of 'dbg_msg()' macro completely.

Reported-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>UBI: limit amount of reserved eraseblocks for bad PEB handling</title>
<updated>2012-09-04T06:38:58Z</updated>
<author>
<name>Shmulik Ladkani</name>
</author>
<published>2012-07-04T08:06:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=37f758a036da56c7cff81b68d1d872752079eb6c'/>
<id>urn:sha1:37f758a036da56c7cff81b68d1d872752079eb6c</id>
<content type='text'>
The existing mechanism of reserving PEBs for bad PEB handling has two
flaws:
- It is calculated as a percentage of good PEBs instead of total PEBs.
- There's no limit on the amount of PEBs UBI reserves for future bad
  eraseblock handling.

This patch changes the mechanism to overcome these flaws.

The desired level of PEBs reserved for bad PEB handling (beb_rsvd_level)
is set to the maximum expected bad eraseblocks (bad_peb_limit) minus the
existing number of bad eraseblocks (bad_peb_count).

The actual amount of PEBs reserved for bad PEB handling is usually set
to the desired level (but in some circumstances may be lower than the
desired level, e.g. when attaching to a device that has too few
available PEBs to satisfy the desired level).

In the case where the device has too many bad PEBs (above the expected
limit), then the desired level, and the actual amount of PEBs reserved
are set to zero. No PEBs will be set aside for future bad eraseblock
handling - even if some PEBs are made available (e.g. by shrinking a
volume).
If another PEB goes bad, and there are available PEBs, then the
eraseblock will be marked bad (consuming one available PEB). But if
there are no available PEBs, ubi will go into readonly mode.

Signed-off-by: Shmulik Ladkani &lt;shmulik.ladkani@gmail.com&gt;
</content>
</entry>
<entry>
<title>UBI: correct ubi_wl_flush locking</title>
<updated>2012-06-07T12:22:21Z</updated>
<author>
<name>Artem Bityutskiy</name>
</author>
<published>2012-06-07T12:15:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=12027f1b3fd69a4e9017e6b13c72547a99c6cf54'/>
<id>urn:sha1:12027f1b3fd69a4e9017e6b13c72547a99c6cf54</id>
<content type='text'>
Commit "62f38455 UBI: modify ubi_wl_flush function to clear work queue for a lnum"
takes the 'work_sem' semaphore in write mode for the entire loop, which is not
very good because it will block other workers for potentially long time. We do
not need to have it in write mode - read mode is enough, and we do not need to
hole it over the entire loop. So this patch turns changes the locking: takes
'work_sem' in read mode and pushes it down to the loop.

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