NAND data randomization
NAND data randomization reversibly transforms bit patterns before programming to reduce pattern-dependent errors, with matching settings required for readback.
Pattern control: Balancing bits along a wordline does not ensure balanced patterns along a vertical NAND string. A 2021 TLC study uses two linked shift registers to control both directions; its stress results concern the tested memory, not a universal endurance multiplier. [1]
Readback: In the Linux v6.12 sunxi driver, state selection depends on page address and block geometry; spare-area state also depends on ECC step size. Its two-byte marker helper has address-dependent XOR masks. These software transforms are not physical marker values or a complete page decoder. [2] [6]
Erased pages: A documented GPMI erratum distinguishes erased from programmed reads when randomization is enabled. The generic Linux erased-chunk check separately counts deviations from FF across supplied data, ECC and extra OOB; a successful check normalizes the supplied buffers. Omitting ECC can change that decision. [4] [3]
Configuration: Some NAND feature bits controlling randomization and its coverage return to power-on defaults. Preserve the device-specific settings with the image; matching payload bytes alone does not establish a compatible raw relocation. [5]
Relations
- related
- NAND copyback, NAND spare area
Limitations
Citations
- Favalli et al. A Scalable Bidimensional Randomization Scheme for TLC 3D NAND Flash Memories. Micromachines 12(7):759, 2021, sections 2-4.
- Linux v6.12 sunxi_nand.c: randomizer state selection and software bad-block-marker transform.
- Linux v6.12 nand_base.c: nand_check_erased_ecc_chunk and its data/ECC/OOB budget.
- NXP. i.MX 6SoloX Chip Errata, Rev. 2, February 2019, ERR008650, p. 79.
- Macronix. AN1051 Rev. 1, 2 November 2023: randomizer configuration and coverage, sections 1, 2 and 4.
- Hesela. NAND randomizer: pinned source-helper execution, exact results and reproduction instructions.
Sources & caveats
- The 2021 full paper compares randomizers under endurance and retention stress; no performance or lifetime result is reproduced. [1]
- NXP ERR008650 and Macronix AN1051 describe different device families. They are not general claims about current NAND products. [4] [5]
- Publishing-session replay of five pinned Linux helpers matched the frozen results. Constructed buffers are not asserted to be valid ECC codewords; no NAND hardware, whole-page decoder or copyback command was exercised. [6]