diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-25 15:25:48 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-25 15:25:48 -0400 |
| commit | 7e97b28309edc5669ced2bb1371704e8f8d084e3 (patch) | |
| tree | 9605694b00b4233a730ad86ea6d395cf59efc905 /Documentation | |
| parent | 5421d059068341b3f21df1a21c2ba9175e55ebef (diff) | |
| parent | 3887ed5231fb6f339f36c3a0297c996cd1a1dad9 (diff) | |
Merge git://git.infradead.org/mtd-2.6
* git://git.infradead.org/mtd-2.6: (82 commits)
[MTD] m25p80: Add Support for ATMEL AT25DF641 64-Megabit SPI Flash
[MTD] m25p80: add FAST_READ access support to M25Pxx
[MTD] [NAND] bf5xx_nand: Avoid crash if bfin_mac is installed.
[MTD] [NAND] at91_nand: control NCE signal
[MTD] [NAND] AT91 hardware ECC compile fix for at91sam9263 / at91sam9260
[MTD] [NAND] Hardware ECC controller on at91sam9263 / at91sam9260
[JFFS2] Introduce dbg_readinode2 log level, use it to shut read_dnode() up
[JFFS2] Fix jffs2_reserve_space() when all blocks are pending erasure.
[JFFS2] Add erase_checking_list to hold blocks being marked.
UBI: add a message
[JFFS2] Return values of jffs2_block_check_erase error paths
[MTD] Clean up AR7 partition map support
[MTD] [NOR] Fix Intel CFI driver for collie flash
[JFFS2] Finally remove redundant ref->__totlen field.
[JFFS2] Honour TEST_TOTLEN macro in debugging code. ref->__totlen is going!
[JFFS2] Add paranoia debugging for superblock counts
[JFFS2] Fix free space leak with in-band cleanmarkers
[JFFS2] Self-sufficient #includes in jffs2_fs_i.h: include <linux/mutex.h>
[MTD] [NAND] Verify probe by retrying to checking the results match
[MTD] [NAND] S3C2410 Allow ECC disable to be specified by the board
...
Diffstat (limited to 'Documentation')
| -rw-r--r-- | Documentation/ABI/stable/sysfs-class-ubi | 212 | ||||
| -rw-r--r-- | Documentation/arm/Samsung-S3C24XX/NAND.txt | 30 | ||||
| -rw-r--r-- | Documentation/arm/Samsung-S3C24XX/Overview.txt | 2 |
3 files changed, 244 insertions, 0 deletions
diff --git a/Documentation/ABI/stable/sysfs-class-ubi b/Documentation/ABI/stable/sysfs-class-ubi new file mode 100644 index 000000000000..18d471d9faea --- /dev/null +++ b/Documentation/ABI/stable/sysfs-class-ubi | |||
| @@ -0,0 +1,212 @@ | |||
| 1 | What: /sys/class/ubi/ | ||
| 2 | Date: July 2006 | ||
| 3 | KernelVersion: 2.6.22 | ||
| 4 | Contact: Artem Bityutskiy <dedekind@infradead.org> | ||
| 5 | Description: | ||
| 6 | The ubi/ class sub-directory belongs to the UBI subsystem and | ||
| 7 | provides general UBI information, per-UBI device information | ||
| 8 | and per-UBI volume information. | ||
| 9 | |||
| 10 | What: /sys/class/ubi/version | ||
| 11 | Date: July 2006 | ||
| 12 | KernelVersion: 2.6.22 | ||
| 13 | Contact: Artem Bityutskiy <dedekind@infradead.org> | ||
| 14 | Description: | ||
| 15 | This file contains version of the latest supported UBI on-media | ||
| 16 | format. Currently it is 1, and there is no plan to change this. | ||
| 17 | However, if in the future UBI needs on-flash format changes | ||
| 18 | which cannot be done in a compatible manner, a new format | ||
| 19 | version will be added. So this is a mechanism for possible | ||
| 20 | future backward-compatible (but forward-incompatible) | ||
| 21 | improvements. | ||
| 22 | |||
| 23 | What: /sys/class/ubiX/ | ||
| 24 | Date: July 2006 | ||
| 25 | KernelVersion: 2.6.22 | ||
| 26 | Contact: Artem Bityutskiy <dedekind@infradead.org> | ||
| 27 | Description: | ||
| 28 | The /sys/class/ubi0, /sys/class/ubi1, etc directories describe | ||
| 29 | UBI devices (UBI device 0, 1, etc). They contain general UBI | ||
| 30 | device information and per UBI volume information (each UBI | ||
| 31 | device may have many UBI volumes) | ||
| 32 | |||
| 33 | What: /sys/class/ubi/ubiX/avail_eraseblocks | ||
| 34 | Date: July 2006 | ||
| 35 | KernelVersion: 2.6.22 | ||
| 36 | Contact: Artem Bityutskiy <dedekind@infradead.org> | ||
| 37 | Description: | ||
| 38 | Amount of available logical eraseblock. For example, one may | ||
| 39 | create a new UBI volume which has this amount of logical | ||
| 40 | eraseblocks. | ||
| 41 | |||
| 42 | What: /sys/class/ubi/ubiX/bad_peb_count | ||
| 43 | Date: July 2006 | ||
| 44 | KernelVersion: 2.6.22 | ||
| 45 | Contact: Artem Bityutskiy <dedekind@infradead.org> | ||
| 46 | Description: | ||
| 47 | Count of bad physical eraseblocks on the underlying MTD device. | ||
| 48 | |||
| 49 | What: /sys/class/ubi/ubiX/bgt_enabled | ||
| 50 | Date: July 2006 | ||
| 51 | KernelVersion: 2.6.22 | ||
| 52 | Contact: Artem Bityutskiy <dedekind@infradead.org> | ||
| 53 | Description: | ||
| 54 | Contains ASCII "0\n" if the UBI background thread is disabled, | ||
| 55 | and ASCII "1\n" if it is enabled. | ||
| 56 | |||
| 57 | What: /sys/class/ubi/ubiX/dev | ||
| 58 | Date: July 2006 | ||
| 59 | KernelVersion: 2.6.22 | ||
| 60 | Contact: Artem Bityutskiy <dedekind@infradead.org> | ||
| 61 | Description: | ||
| 62 | Major and minor numbers of the character device corresponding | ||
| 63 | to this UBI device (in <major>:<minor> format). | ||
| 64 | |||
| 65 | What: /sys/class/ubi/ubiX/eraseblock_size | ||
| 66 | Date: July 2006 | ||
| 67 | KernelVersion: 2.6.22 | ||
| 68 | Contact: Artem Bityutskiy <dedekind@infradead.org> | ||
| 69 | Description: | ||
| 70 | Maximum logical eraseblock size this UBI device may provide. UBI | ||
| 71 | volumes may have smaller logical eraseblock size because of their | ||
| 72 | alignment. | ||
| 73 | |||
| 74 | What: /sys/class/ubi/ubiX/max_ec | ||
| 75 | Date: July 2006 | ||
| 76 | KernelVersion: 2.6.22 | ||
| 77 | Contact: Artem Bityutskiy <dedekind@infradead.org> | ||
| 78 | Description: | ||
| 79 | Maximum physical eraseblock erase counter value. | ||
| 80 | |||
| 81 | What: /sys/class/ubi/ubiX/max_vol_count | ||
| 82 | Date: July 2006 | ||
| 83 | KernelVersion: 2.6.22 | ||
| 84 | Contact: Artem Bityutskiy <dedekind@infradead.org> | ||
| 85 | Description: | ||
| 86 | Maximum number of volumes which this UBI device may have. | ||
| 87 | |||
| 88 | What: /sys/class/ubi/ubiX/min_io_size | ||
| 89 | Date: July 2006 | ||
| 90 | KernelVersion: 2.6.22 | ||
| 91 | Contact: Artem Bityutskiy <dedekind@infradead.org> | ||
| 92 | Description: | ||
| 93 | Minimum input/output unit size. All the I/O may only be done | ||
| 94 | in fractions of the contained number. | ||
| 95 | |||
| 96 | What: /sys/class/ubi/ubiX/mtd_num | ||
| 97 | Date: January 2008 | ||
| 98 | KernelVersion: 2.6.25 | ||
| 99 | Contact: Artem Bityutskiy <dedekind@infradead.org> | ||
| 100 | Description: | ||
| 101 | Number of the underlying MTD device. | ||
| 102 | |||
| 103 | What: /sys/class/ubi/ubiX/reserved_for_bad | ||
| 104 | Date: July 2006 | ||
| 105 | KernelVersion: 2.6.22 | ||
| 106 | Contact: Artem Bityutskiy <dedekind@infradead.org> | ||
| 107 | Description: | ||
| 108 | Number of physical eraseblocks reserved for bad block handling. | ||
| 109 | |||
| 110 | What: /sys/class/ubi/ubiX/total_eraseblocks | ||
| 111 | Date: July 2006 | ||
| 112 | KernelVersion: 2.6.22 | ||
| 113 | Contact: Artem Bityutskiy <dedekind@infradead.org> | ||
| 114 | Description: | ||
| 115 | Total number of good (not marked as bad) physical eraseblocks on | ||
| 116 | the underlying MTD device. | ||
| 117 | |||
| 118 | What: /sys/class/ubi/ubiX/volumes_count | ||
| 119 | Date: July 2006 | ||
| 120 | KernelVersion: 2.6.22 | ||
| 121 | Contact: Artem Bityutskiy <dedekind@infradead.org> | ||
| 122 | Description: | ||
| 123 | Count of volumes on this UBI device. | ||
| 124 | |||
| 125 | What: /sys/class/ubi/ubiX/ubiX_Y/ | ||
| 126 | Date: July 2006 | ||
| 127 | KernelVersion: 2.6.22 | ||
| 128 | Contact: Artem Bityutskiy <dedekind@infradead.org> | ||
| 129 | Description: | ||
| 130 | The /sys/class/ubi/ubiX/ubiX_0/, /sys/class/ubi/ubiX/ubiX_1/, | ||
| 131 | etc directories describe UBI volumes on UBI device X (volumes | ||
| 132 | 0, 1, etc). | ||
| 133 | |||
| 134 | What: /sys/class/ubi/ubiX/ubiX_Y/alignment | ||
| 135 | Date: July 2006 | ||
| 136 | KernelVersion: 2.6.22 | ||
| 137 | Contact: Artem Bityutskiy <dedekind@infradead.org> | ||
| 138 | Description: | ||
| 139 | Volume alignment - the value the logical eraseblock size of | ||
| 140 | this volume has to be aligned on. For example, 2048 means that | ||
| 141 | logical eraseblock size is multiple of 2048. In other words, | ||
| 142 | volume logical eraseblock size is UBI device logical eraseblock | ||
| 143 | size aligned to the alignment value. | ||
| 144 | |||
| 145 | What: /sys/class/ubi/ubiX/ubiX_Y/corrupted | ||
| 146 | Date: July 2006 | ||
| 147 | KernelVersion: 2.6.22 | ||
| 148 | Contact: Artem Bityutskiy <dedekind@infradead.org> | ||
| 149 | Description: | ||
| 150 | Contains ASCII "0\n" if the UBI volume is OK, and ASCII "1\n" | ||
| 151 | if it is corrupted (e.g., due to an interrupted volume update). | ||
| 152 | |||
| 153 | What: /sys/class/ubi/ubiX/ubiX_Y/data_bytes | ||
| 154 | Date: July 2006 | ||
| 155 | KernelVersion: 2.6.22 | ||
| 156 | Contact: Artem Bityutskiy <dedekind@infradead.org> | ||
| 157 | Description: | ||
| 158 | The amount of data this volume contains. This value makes sense | ||
| 159 | only for static volumes, and for dynamic volume it equivalent | ||
| 160 | to the total volume size in bytes. | ||
| 161 | |||
| 162 | What: /sys/class/ubi/ubiX/ubiX_Y/dev | ||
| 163 | Date: July 2006 | ||
| 164 | KernelVersion: 2.6.22 | ||
| 165 | Contact: Artem Bityutskiy <dedekind@infradead.org> | ||
| 166 | Description: | ||
| 167 | Major and minor numbers of the character device corresponding | ||
| 168 | to this UBI volume (in <major>:<minor> format). | ||
| 169 | |||
| 170 | What: /sys/class/ubi/ubiX/ubiX_Y/name | ||
| 171 | Date: July 2006 | ||
| 172 | KernelVersion: 2.6.22 | ||
| 173 | Contact: Artem Bityutskiy <dedekind@infradead.org> | ||
| 174 | Description: | ||
| 175 | Volume name. | ||
| 176 | |||
| 177 | What: /sys/class/ubi/ubiX/ubiX_Y/reserved_ebs | ||
| 178 | Date: July 2006 | ||
| 179 | KernelVersion: 2.6.22 | ||
| 180 | Contact: Artem Bityutskiy <dedekind@infradead.org> | ||
| 181 | Description: | ||
| 182 | Count of physical eraseblock reserved for this volume. | ||
| 183 | Equivalent to the volume size in logical eraseblocks. | ||
| 184 | |||
| 185 | What: /sys/class/ubi/ubiX/ubiX_Y/type | ||
| 186 | Date: July 2006 | ||
| 187 | KernelVersion: 2.6.22 | ||
| 188 | Contact: Artem Bityutskiy <dedekind@infradead.org> | ||
| 189 | Description: | ||
| 190 | Volume type. Contains ASCII "dynamic\n" for dynamic volumes and | ||
| 191 | "static\n" for static volumes. | ||
| 192 | |||
| 193 | What: /sys/class/ubi/ubiX/ubiX_Y/upd_marker | ||
| 194 | Date: July 2006 | ||
| 195 | KernelVersion: 2.6.22 | ||
| 196 | Contact: Artem Bityutskiy <dedekind@infradead.org> | ||
| 197 | Description: | ||
| 198 | Contains ASCII "0\n" if the update marker is not set for this | ||
| 199 | volume, and "1\n" if it is set. The update marker is set when | ||
| 200 | volume update starts, and cleaned when it ends. So the presence | ||
| 201 | of the update marker indicates that the volume is being updated | ||
| 202 | at the moment of the update was interrupted. The later may be | ||
| 203 | checked using the "corrupted" sysfs file. | ||
| 204 | |||
| 205 | What: /sys/class/ubi/ubiX/ubiX_Y/usable_eb_size | ||
| 206 | Date: July 2006 | ||
| 207 | KernelVersion: 2.6.22 | ||
| 208 | Contact: Artem Bityutskiy <dedekind@infradead.org> | ||
| 209 | Description: | ||
| 210 | Logical eraseblock size of this volume. Equivalent to logical | ||
| 211 | eraseblock size of the device aligned on the volume alignment | ||
| 212 | value. | ||
diff --git a/Documentation/arm/Samsung-S3C24XX/NAND.txt b/Documentation/arm/Samsung-S3C24XX/NAND.txt new file mode 100644 index 000000000000..bc478a3409b8 --- /dev/null +++ b/Documentation/arm/Samsung-S3C24XX/NAND.txt | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | S3C24XX NAND Support | ||
| 2 | ==================== | ||
| 3 | |||
| 4 | Introduction | ||
| 5 | ------------ | ||
| 6 | |||
| 7 | Small Page NAND | ||
| 8 | --------------- | ||
| 9 | |||
| 10 | The driver uses a 512 byte (1 page) ECC code for this setup. The | ||
| 11 | ECC code is not directly compatible with the default kernel ECC | ||
| 12 | code, so the driver enforces its own OOB layout and ECC parameters | ||
| 13 | |||
| 14 | Large Page NAND | ||
| 15 | --------------- | ||
| 16 | |||
| 17 | The driver is capable of handling NAND flash with a 2KiB page | ||
| 18 | size, with support for hardware ECC generation and correction. | ||
| 19 | |||
| 20 | Unlike the 512byte page mode, the driver generates ECC data for | ||
| 21 | each 256 byte block in an 2KiB page. This means that more than | ||
| 22 | one error in a page can be rectified. It also means that the | ||
| 23 | OOB layout remains the default kernel layout for these flashes. | ||
| 24 | |||
| 25 | |||
| 26 | Document Author | ||
| 27 | --------------- | ||
| 28 | |||
| 29 | Ben Dooks, Copyright 2007 Simtec Electronics | ||
| 30 | |||
diff --git a/Documentation/arm/Samsung-S3C24XX/Overview.txt b/Documentation/arm/Samsung-S3C24XX/Overview.txt index c31b76fa66c4..d04e1e30c47f 100644 --- a/Documentation/arm/Samsung-S3C24XX/Overview.txt +++ b/Documentation/arm/Samsung-S3C24XX/Overview.txt | |||
| @@ -156,6 +156,8 @@ NAND | |||
| 156 | controller. If there are any problems the latest linux-mtd | 156 | controller. If there are any problems the latest linux-mtd |
| 157 | code can be found from http://www.linux-mtd.infradead.org/ | 157 | code can be found from http://www.linux-mtd.infradead.org/ |
| 158 | 158 | ||
| 159 | For more information see Documentation/arm/Samsung-S3C24XX/NAND.txt | ||
| 160 | |||
| 159 | 161 | ||
| 160 | Serial | 162 | Serial |
| 161 | ------ | 163 | ------ |
