<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/mtd/ubi/build.c, branch linux-3.2.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.2.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.2.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2016-11-20T01:01:29Z</updated>
<entry>
<title>ubi: Fix race condition between ubi device creation and udev</title>
<updated>2016-11-20T01:01:29Z</updated>
<author>
<name>Iosif Harutyunov</name>
</author>
<published>2016-07-22T23:22:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=016820bde3f0895d09fcad370415085ba0d1bd4a'/>
<id>urn:sha1:016820bde3f0895d09fcad370415085ba0d1bd4a</id>
<content type='text'>
commit 714fb87e8bc05ff78255afc0dca981e8c5242785 upstream.

Install the UBI device object before we arm sysfs.
Otherwise udev tries to read sysfs attributes before UBI is ready and
udev rules will not match.

Signed-off-by: Iosif Harutyunov &lt;iharutyunov@sonicwall.com&gt;
[rw: massaged commit message]
Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>UBI: fix autoresize handling in R/O mode</title>
<updated>2012-10-17T02:48:18Z</updated>
<author>
<name>Artem Bityutskiy</name>
</author>
<published>2012-08-18T12:11:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=aa85d9855447adcbc162705e922654ff4df96467'/>
<id>urn:sha1:aa85d9855447adcbc162705e922654ff4df96467</id>
<content type='text'>
commit abb3e01103eb4e2ea5c15e6fedbc74e08bd4cc2b upstream.

Currently UBI fails in autoresize when it is in R/O mode (e.g., because the
underlying MTD device is R/O). This patch fixes the issue - we just skip
autoresize and print a warning.

Reported-by: Pali Rohár &lt;pali.rohar@gmail.com&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>UBI: fix oops in error path</title>
<updated>2011-06-01T08:23:12Z</updated>
<author>
<name>Artem Bityutskiy</name>
</author>
<published>2011-05-18T15:08:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=01a4110d2b86b05918debf39c50867cbb9598491'/>
<id>urn:sha1:01a4110d2b86b05918debf39c50867cbb9598491</id>
<content type='text'>
This patch fixes an oops in the error path of 'ubi_attach_mtd_dev()'. If
anything after 'uif_init()' fails, we get an oops in 'cancel_pending()'. The
reason is that 'uif_close()' drops the last reference count for 'ubi-&gt;dev' and
whole 'struct ubi_device' is freed. And then
'ubi_wl_close()'-&gt;'cancel_pending()' tries to access the 'ubi' pointer and
problems begin.

Note, in 'ubi_detach_mtd_dev()' function we get a device reference to
work-around this issue. Do the same in the error path of
'ubi_attach_mtd_dev()'.

Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>UBI: use debugfs for the extra checks knobs</title>
<updated>2011-06-01T08:21:47Z</updated>
<author>
<name>Artem Bityutskiy</name>
</author>
<published>2011-05-18T11:53:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2a734bb8d502b645c061fa329e87c5d651498e68'/>
<id>urn:sha1:2a734bb8d502b645c061fa329e87c5d651498e68</id>
<content type='text'>
This patch introduces debugfs support to UBI. All the UBI stuff is kept in the
"ubi" debugfs directory, which contains per-UBI device "ubi/ubiX"
sub-directories, containing debugging files. This file also creates
"ubi/ubiX/chk_gen" and "ubi/ubiX/chk_io" knobs for switching general and I/O
extra checks on and off. And it removes the 'debug_chks' UBI module parameters.

Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'linux-next' of git://git.infradead.org/ubifs-2.6</title>
<updated>2011-03-18T17:50:27Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2011-03-18T17:50:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8f627a8a881481598c2591c3acc122fb9be7bac4'/>
<id>urn:sha1:8f627a8a881481598c2591c3acc122fb9be7bac4</id>
<content type='text'>
* 'linux-next' of git://git.infradead.org/ubifs-2.6: (25 commits)
  UBIFS: clean-up commentaries
  UBIFS: save 128KiB or more RAM
  UBIFS: allocate orphans scan buffer on demand
  UBIFS: allocate lpt dump buffer on demand
  UBIFS: allocate ltab checking buffer on demand
  UBIFS: allocate scanning buffer on demand
  UBIFS: allocate dump buffer on demand
  UBIFS: do not check data crc by default
  UBIFS: simplify UBIFS Kconfig menu
  UBIFS: print max. index node size
  UBIFS: handle allocation failures in UBIFS write path
  UBIFS: use max_write_size during recovery
  UBIFS: use max_write_size for write-buffers
  UBIFS: introduce write-buffer size field
  UBI: incorporate LEB offset information
  UBIFS: incorporate maximum write size
  UBI: provide LEB offset information
  UBI: incorporate maximum write size
  UBIFS: fix LEB number in printk
  UBIFS: restrict world-writable debugfs files
  ...
</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>
<entry>
<title>UBI: kill debugging buffer</title>
<updated>2011-03-16T11:50:16Z</updated>
<author>
<name>Artem Bityutskiy</name>
</author>
<published>2011-03-14T15:11:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6edb9793959fb547a15d5ffe6b142d9f0b3e41a6'/>
<id>urn:sha1:6edb9793959fb547a15d5ffe6b142d9f0b3e41a6</id>
<content type='text'>
This patch kills the 'ubi-&gt;dbg_peb_buf' debugging buffer and the
associated mutex, because all users of this buffer are now gone.
We are killing this buffer because we are going to switch to
dynamic debugging control, just like in UBIFS, which means that
CONFIG_MTD_UBI_DEBUG_PARANOID will be removed. In this case we'd
end up always allocating 'ubi-&gt;dbg_peb_buf', which is rather large
(128KiB or more), and this would be wasteful. Thus, we are just
killing it.

Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>UBI: incorporate maximum write size</title>
<updated>2011-03-08T08:12:48Z</updated>
<author>
<name>Artem Bityutskiy</name>
</author>
<published>2011-01-30T16:37:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=30b542ef453e6832ff682170b2db95d7bca2fe70'/>
<id>urn:sha1:30b542ef453e6832ff682170b2db95d7bca2fe70</id>
<content type='text'>
Incorporate MTD write buffer size into UBI device information
because UBIFS needs this field. UBI does not use it ATM, just
provides to upper layers in 'struct ubi_device_info'.

Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>UBI: add slab cache for ubi_scan_leb objects</title>
<updated>2011-02-06T17:19:23Z</updated>
<author>
<name>Artem Bityutskiy</name>
</author>
<published>2010-10-31T15:54:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6c1e875ca6f3a47b40dce715bd07fdfdb8388d55'/>
<id>urn:sha1:6c1e875ca6f3a47b40dce715bd07fdfdb8388d55</id>
<content type='text'>
During scanning UBI allocates one struct ubi_scan_leb object for each PEB,
so it can end up allocating thousands of them. Use slab cache to reduce
memory consumption for these 48-byte objects, because currently used
'kmalloc()' ends up allocating 64 bytes per object, instead of 48.

Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>UBI: cleanup LEB start calculations</title>
<updated>2011-01-26T08:14:17Z</updated>
<author>
<name>John Ogness</name>
</author>
<published>2011-01-21T14:39:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e8cfe009436f9ab6f4234e1f7c406c231747925c'/>
<id>urn:sha1:e8cfe009436f9ab6f4234e1f7c406c231747925c</id>
<content type='text'>
Wrong macro was used in calculating the data offset: UBI_EC_HDR_SIZE instead of
UBI_VID_HDR_SIZE. The data offset should be VID header offset + VID header size
(aligned to the minimum I/O unit).

This was not a bug only because currently UBI_EC_HDR_SIZE and UBI_VID_HDR_SIZE
have the same value of 64 bytes.

Commit message was amended by Artem.

Signed-off-by: John Ogness &lt;john.ogness@linutronix.de&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
</feed>
