Dan Ehrenberg | 27 Mar 20:24 2015

[PATCH v3 0/3] Improve MTD dynamic partitioning support

The goal of this patchset is to make mtd dynamic partitioning work
better.
- First, a new config option is added to allow the master device to
  coexist with partitions, which allows partitions to be created or
  removed based on the master even if other partitions exist.
- Second, to identify partitions and improve visibility, 
- Third, remove overlap checks for partitions, which had a bug
  in them and don't seem necessary since static partitions don't
  have overlap checks.

This patchset has gone through a few iterations, initially based on
using one partition as a stand-in for the master, then adding the
master coexisting, and now in this iteration, bringing back the patch
to remove overlap checks, as testing discovered that the overlap
checks were buggy. This version also makes some style improvements.

Dan Ehrenberg (3):
  mtd: part: Create the master device node when partitioned
  mtd: part: Add sysfs variable for offset of partition
  mtd: part: Remove partition overlap checks

 drivers/mtd/Kconfig   | 13 +++++++++++
 drivers/mtd/mtdcore.c | 52 ++++++++++++++++++++++++++++-------------
 drivers/mtd/mtdpart.c | 64 ++++++++++++++++++++++++++++++++++-----------------
 3 files changed, 92 insertions(+), 37 deletions(-)

--

-- 
2.2.0.rc0.207.ga3a616c

______________________________________________________
(Continue reading)

Richard Weinberger | 27 Mar 16:50 2015
Picon

Re: UBIFS corruption and UBI + unstable bit questions

Am 27.03.2015 um 14:30 schrieb Morand, Guy:
> Hi,
> 
> Thanks for clarifying!
> 
>> But it depends on the type of the corruption.
> What do you mean by "type of the corruption". Is it about a PEB containing the 
> volume table corrupting every volumes on the MTD device? I can't imagine a PEB
> containing "regular data" corrupting the whole MTD device or correct me if I'm 
> wrong! I guess this should be extremely rare as we don't update the volume table 
> every day ...

We save the volume table twice. But you can't expect that UBI or UBIFS will
survive perfectly fine if random PEBs tun out of the sudden bad.

>> Okay. That's what I thought. I've never seen the issue on serious hardware.
> Serious hardware, does that mean with seriously select components?

Yes.

Thanks,
//richard

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

Martin Strbačka | 27 Mar 15:13 2015
Picon

Missing support for ECC_SOFT_BCH in fsl-elbc-nand

Hello,

in our product we have Freescale P2020 SoC together with Micron
MT29F2G08ABAEAWP NAND. Lately we discovered that the internal driver
(fsl-elbc-nand) supports only 1-bit HW ECC. So we would like to switch
to ECC_SOFT_BCH (or on-die ECC as I saw some patches in this list
recently). Do you know if anybody works on this or are there any patches
already?

I tried some hacks already because I found that ECC_SOFT is a fallback
option if HW ECC is not available. But it seems that there are few bits
missing. At least an implemetation of NAND_CMD_RNDOUT. Or am I missing
something?

Best Regards,
Martin Strbacka

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

Nick Krause | 27 Mar 14:22 2015
Picon

Help Out

Greetings All,
I have been reading this list for the last few weeks and was wondering
how I can start contributing.
Further more I have some understanding of kernel internals and file
systems related to Linux so
helping out would be no problem, if there are any requests for where I
should start please let me
known.
Thanks,
Nick

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

Shengzhou Liu | 27 Mar 10:38 2015

[PATCH] mtd/spi: support en25s64 device

Add support for EON en25s64 spi device.

Signed-off-by: Shengzhou Liu <Shengzhou.Liu <at> freescale.com>
---
 drivers/mtd/spi-nor/spi-nor.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
index 0f8ec3c..f8acef7 100644
--- a/drivers/mtd/spi-nor/spi-nor.c
+++ b/drivers/mtd/spi-nor/spi-nor.c
 <at>  <at>  -524,6 +524,7  <at>  <at>  static const struct spi_device_id spi_nor_ids[] = {
 	{ "en25q64",    INFO(0x1c3017, 0, 64 * 1024,  128, SECT_4K) },
 	{ "en25qh128",  INFO(0x1c7018, 0, 64 * 1024,  256, 0) },
 	{ "en25qh256",  INFO(0x1c7019, 0, 64 * 1024,  512, 0) },
+	{ "en25s64",	INFO(0x1c3817, 0, 64 * 1024,  128, 0) },

 	/* ESMT */
 	{ "f25l32pa", INFO(0x8c2016, 0, 64 * 1024, 64, SECT_4K) },
--

-- 
2.1.0.27.g96db324

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

david.oberhollenzer | 26 Mar 23:59 2015
Picon

[PATCH V2] UBI: power cut emulation for testing

Emulate random power cuts by switching device to ro after a number of
writes to allow simple power cut testing with nand-sim.

Maximum and minimum number of successful writes before power cut and
what kind of writes (EC header, VID header or none) to interrupt
configurable via debugfs.

Signed-off-by: David Oberhollenzer <david.oberhollenzer <at> sigma-star.at>
---
V2: Remove broken check to prevent multiple triggering
---
 drivers/mtd/ubi/debug.c | 89 +++++++++++++++++++++++++++++++++++++++++++++++--
 drivers/mtd/ubi/debug.h |  2 ++
 drivers/mtd/ubi/io.c    |  6 ++++
 drivers/mtd/ubi/ubi.h   | 25 ++++++++++++++
 4 files changed, 120 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/ubi/debug.c b/drivers/mtd/ubi/debug.c
index 7335c9f..aa9deca 100644
--- a/drivers/mtd/ubi/debug.c
+++ b/drivers/mtd/ubi/debug.c
 <at>  <at>  -263,7 +263,7  <at>  <at>  static ssize_t dfs_file_read(struct file *file, char __user *user_buf,
 	struct dentry *dent = file->f_path.dentry;
 	struct ubi_device *ubi;
 	struct ubi_debug_info *d;
-	char buf[3];
+	char buf[8];
 	int val;

 	ubi = ubi_get_device(ubi_num);
(Continue reading)

Gabor Juhos | 26 Mar 23:58 2015

[PATCH] mtd: spi-nor: add support for the Winbond W25X05 flash

Signed-off-by: Gabor Juhos <juhosg <at> openwrt.org>
Signed-off-by: Luka Perkov <luka <at> openwrt.org>
---
 drivers/mtd/spi-nor/spi-nor.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
index b6a5a0c..1f51924 100644
--- a/drivers/mtd/spi-nor/spi-nor.c
+++ b/drivers/mtd/spi-nor/spi-nor.c
 <at>  <at>  -648,6 +648,7  <at>  <at>  static const struct spi_device_id spi_nor_ids[] = {
 	{ "m25px80",    INFO(0x207114,  0, 64 * 1024, 16, 0) },

 	/* Winbond -- w25x "blocks" are 64K, "sectors" are 4KiB */
+	{ "w25x05", INFO(0xef3010, 0, 64 * 1024,  1,  SECT_4K) },
 	{ "w25x10", INFO(0xef3011, 0, 64 * 1024,  2,  SECT_4K) },
 	{ "w25x20", INFO(0xef3012, 0, 64 * 1024,  4,  SECT_4K) },
 	{ "w25x40", INFO(0xef3013, 0, 64 * 1024,  8,  SECT_4K) },
--

-- 
2.3.3

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

Richard Weinberger | 26 Mar 19:17 2015
Picon

Re: UBIFS corruption and UBI + unstable bit questions

Hi!

Am 26.03.2015 um 18:18 schrieb Morand, Guy:
>> Can you please be more specific.
>> What exactly do you mean by "only the partition"?
>> Also what do you mean by "corrupted"?
> 
> Sorry, nomenclature problem ... I mean by a volume the layer on top of the MTD 
> device (UBI):
> ubiformat /dev/mtd1
> ubiattach /dev/ubi_ctrl -m 1
> 
> By partition, I mean actually a volume on top of UBI (UBIFS):
> ubimkvol /dev/ubi0 -N partition1 -s 64MiB
> ubimkvol /dev/ubi0 -N partition2 -m

So, an UBI volume. :-)

> Then if there is a "unstable bit" on partition1, is also the partition2 
> corrupted? This means there is nothing I can do to restore it.

No, UBI tries hard to preserve data.
But it depends on the type of the corruption.

>> UBI/FS is not a magic bullet. People who *really* care about power cut safety
>> attack the problem also with their hardware.
> Yieah right, I understand... I've seen some hardware with super caps that gives 
> some time to Linux to shutdown correctly, I really love it!

It is not really Linux which needs time to shutdown, mostly other hardware components.
(Continue reading)

Morand, Guy | 26 Mar 17:00 2015
Picon

UBIFS corruption and UBI + unstable bit questions

Hello UBI developers,

I was wondering what happens to the UBI volume if an UBIFS partition gets 
corrupted:
* Is only the partition corrupted?
* Is the whole volume corrupted?

Moreover, about this "Unstable bit issue" ... 
* Does it still make sense to use UBI/UBIFS as it doesn't seem to be fully 
  power cut failsafe?
* Have you planned to fix this issue?

Best regards,

Guy

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

益小姐 | 26 Mar 06:35 2015

中层管理者在企业里应承担的责任;益小姐

gmane.linux.drivers.mtd
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
Sheng Yong | 25 Mar 12:46 2015

[RFC PATCH 0/3] UBIFS: add ACL support

UBIFS ACL is based on xattr. Three structures, ubifs_acl_header,
ubifs_acl_entry, and ubifs_acl_entry_short are used to format the ACL
value on flash.

ACL format between in-memory and on-flash is switched before writting
it to flash and after reading it from flash. The writting and reading
operations are implemented by generic set/get xattr functions. ACL of
a new file is inheritted from the parent directory when creating new
inode.

For xattr, generic functions of setting and getting xattr are splited
from original ubifs_setxattr and ubifs_getxattr so that ACL could use
them.

Thanks,
Sheng

Sheng Yong (3):
  UBIFS: xattr: splite generic set/get xattr functions from
    ubifs_set/getxattr
  UBIFS: ACL: add ACL support
  UBIFS: ACL: add ACL config option

 fs/ubifs/Kconfig  |  11 ++
 fs/ubifs/Makefile |   1 +
 fs/ubifs/acl.c    | 316 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 fs/ubifs/dir.c    |   7 ++
 fs/ubifs/file.c   |  14 +++
 fs/ubifs/super.c  |  15 +++
 fs/ubifs/ubifs.h  |   7 ++
(Continue reading)


Gmane