mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-02 07:31:11 +01:00
Some of the newer nand parts can have bit flips in an erased page due to the process technology used. In this case, ipq nand controller is not able to identify that page as an erased page. In case of bitflips, the ECC engine tries to correct the data and then it generates the uncorrectable error. Now, this data is not equal to original raw data. Following logic is being added to identify the erased codeword bitflips. 1. Maintain the bitmasks for the codewords which generated uncorrectable error. 2. Read the raw data again in temp buffer and count the number of zeros. Since spare bytes are unused in ECC layout and won’t affect ECC correctability so no need to count number of zero in spare bytes. 3. If the number of zero is below ECC correctability then it can be treated as erased CW. In this case, make all the data/oob of actual user buffers as 0xff. Change-Id: I5a80cd371a926efa36c40b4db68e78ed78c30536 Signed-off-by: Abhishek Sahu <absahu@codeaurora.org> |
||
|---|---|---|
| .. | ||
| adc | ||
| bios_emulator | ||
| block | ||
| bootcount | ||
| clk | ||
| core | ||
| cpu | ||
| crypto | ||
| ddr | ||
| demo | ||
| dfu | ||
| dma | ||
| fpga | ||
| gpio | ||
| hwmon | ||
| i2c | ||
| input | ||
| led | ||
| memory | ||
| misc | ||
| mmc | ||
| mtd | ||
| net | ||
| pci | ||
| pcmcia | ||
| pinctrl | ||
| power | ||
| pwm | ||
| qe | ||
| ram | ||
| remoteproc | ||
| rtc | ||
| serial | ||
| soc | ||
| sound | ||
| spi | ||
| thermal | ||
| timer | ||
| tpm | ||
| twserial | ||
| usb | ||
| video | ||
| watchdog | ||
| Kconfig | ||
| Makefile | ||