forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'linux-next' of git://git.infradead.org/ubi-2.6
* 'linux-next' of git://git.infradead.org/ubi-2.6: UBI: tighten the corrupted PEB criteria UBI: fix check_data_ff return code UBI: remember copy_flag while scanning UBI: preserve corrupted PEBs UBI: add truly corrupted PEBs to corrupted list UBI: introduce debugging helper function UBI: make check_pattern function non-static UBI: do not put eraseblocks to the corrupted list unnecessarily UBI: separate out corrupted list UBI: change cascade of ifs to switch statements UBI: rename a local variable UBI: handle bit-flips when no header found UBI: remove duplicate IO error codes UBI: rename IO error code UBI: fix small 80 characters limit style issue UBI: cleanup and simplify Kconfig
- Loading branch information
Showing
13 changed files
with
419 additions
and
286 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,94 +1,73 @@ | ||
comment "UBI debugging options" | ||
depends on MTD_UBI | ||
|
||
config MTD_UBI_DEBUG | ||
bool "UBI debugging" | ||
depends on SYSFS | ||
depends on MTD_UBI | ||
select DEBUG_FS | ||
select KALLSYMS_ALL if KALLSYMS && DEBUG_KERNEL | ||
help | ||
This option enables UBI debugging. | ||
|
||
if MTD_UBI_DEBUG | ||
|
||
config MTD_UBI_DEBUG_MSG | ||
bool "UBI debugging messages" | ||
depends on MTD_UBI_DEBUG | ||
default n | ||
help | ||
This option enables UBI debugging messages. | ||
|
||
config MTD_UBI_DEBUG_PARANOID | ||
bool "Extra self-checks" | ||
default n | ||
depends on MTD_UBI_DEBUG | ||
help | ||
This option enables extra checks in UBI code. Note this slows UBI down | ||
significantly. | ||
|
||
config MTD_UBI_DEBUG_DISABLE_BGT | ||
bool "Do not enable the UBI background thread" | ||
depends on MTD_UBI_DEBUG | ||
default n | ||
help | ||
This option switches the background thread off by default. The thread | ||
may be also be enabled/disabled via UBI sysfs. | ||
|
||
config MTD_UBI_DEBUG_EMULATE_BITFLIPS | ||
bool "Emulate flash bit-flips" | ||
depends on MTD_UBI_DEBUG | ||
default n | ||
help | ||
This option emulates bit-flips with probability 1/50, which in turn | ||
causes scrubbing. Useful for debugging and stressing UBI. | ||
|
||
config MTD_UBI_DEBUG_EMULATE_WRITE_FAILURES | ||
bool "Emulate flash write failures" | ||
depends on MTD_UBI_DEBUG | ||
default n | ||
help | ||
This option emulates write failures with probability 1/100. Useful for | ||
debugging and testing how UBI handlines errors. | ||
|
||
config MTD_UBI_DEBUG_EMULATE_ERASE_FAILURES | ||
bool "Emulate flash erase failures" | ||
depends on MTD_UBI_DEBUG | ||
default n | ||
help | ||
This option emulates erase failures with probability 1/100. Useful for | ||
debugging and testing how UBI handlines errors. | ||
|
||
menu "Additional UBI debugging messages" | ||
depends on MTD_UBI_DEBUG | ||
comment "Additional UBI debugging messages" | ||
|
||
config MTD_UBI_DEBUG_MSG_BLD | ||
bool "Additional UBI initialization and build messages" | ||
default n | ||
depends on MTD_UBI_DEBUG | ||
help | ||
This option enables detailed UBI initialization and device build | ||
debugging messages. | ||
|
||
config MTD_UBI_DEBUG_MSG_EBA | ||
bool "Eraseblock association unit messages" | ||
default n | ||
depends on MTD_UBI_DEBUG | ||
help | ||
This option enables debugging messages from the UBI eraseblock | ||
association unit. | ||
|
||
config MTD_UBI_DEBUG_MSG_WL | ||
bool "Wear-leveling unit messages" | ||
default n | ||
depends on MTD_UBI_DEBUG | ||
help | ||
This option enables debugging messages from the UBI wear-leveling | ||
unit. | ||
|
||
config MTD_UBI_DEBUG_MSG_IO | ||
bool "Input/output unit messages" | ||
default n | ||
depends on MTD_UBI_DEBUG | ||
help | ||
This option enables debugging messages from the UBI input/output unit. | ||
|
||
endmenu # UBI debugging messages | ||
endif # MTD_UBI_DEBUG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.