Hi Miquel,

On 6/3/2026 2:12 PM, Michal Simek wrote:
> Hi Love,
> 
> On 6/2/26 12:28, Miquel Raynal (DAVE.eu) wrote:
>> This driver is deeply broken in many ways. I've tried to clean it up by:
>> - flagging the most hideous parts (where Micron on-die ECC support is
>>    hardcoded)
>> - enabling DT support, eg. for reading the ECC configuration
>> - fixing software ECC support
>> - aligning the software ECC OOB layout to the rest of the world and
>>    allow a working interoperability in Linux.
>>
>> Signed-off-by: Miquel Raynal (DAVE.eu) <[email protected]>
>> ---
>> Changes in v2:
>> - Fix the sponsor: s/DAVE/DAVE.eu/, no other change.
>> - Link to v1: 
>> https://lore.kernel.org/r/[email protected]
>>
>> ---
>> Miquel Raynal (DAVE.eu) (5):
>>        mtd: rawnand: zynq: Align the layout structures with the driver 
>> namespace
>>        mtd: rawnand: zynq: Add comments about very bad practices
>>        mtd: rawnand: zynq: Make sure an of node is attached
>>        mtd: rawnand: zynq: Do not fail the probe for no reason
>>        mtd: rawnand: zynq: Fix Software ECC engine support
>>
>>   drivers/mtd/nand/raw/zynq_nand.c | 115 
>> ++++++++++-----------------------------
>>   1 file changed, 28 insertions(+), 87 deletions(-)
>> ---
>> base-commit: 744cf5d4e398c5f657e5c3eeb44d00fa5175dc85
>> change-id: 20260522-dave-upstream-nand-fixes-60a5336517a2
>>
>> Best regards,
> 
> can you please test this and provide results?
> 
> Thanks,
> Michal

We are seeing issue with zynq-zc770-xm011 board with NAND write.

Below is the log snippet:

"""
U-Boot 2026.07-rc4-00024-gbc44b6a0aeb0 (Jun 10 2026 - 20:00:05 +0530)
 
CPU:   Zynq 7z020
Silicon: v3.1
Model: Xilinx ZC770 XM011 board
DRAM:  ECC disabled 1 GiB
Core:  20 devices, 15 uclasses, devicetree: board
Flash: 0 Bytes
NAND:  128 MiB
MMC:
Loading Environment from nowhere... OK
In:    serial@e0001000
Out:   serial@e0001000
Err:   serial@e0001000
Net:   No ethernet found.
U-Boot 2026.07-rc4-00024-gbc44b6a0aeb0 (Jun 10 2026 - 20:00:05 +0530)CPU:   
Zynq 7z020Silicon: v3.1Model: Xilinx ZC770 XM011 boardDRAM:  ECC disabled 1 
GiBCore:  20 devices, 15 uclasses, devicetree: boardFlash: 0 BytesNAND:  128 
MiBMMC:   Loading Environment from nowhere... OKIn:    serial@e0001000Out:   
serial@e0001000Err:   serial@e0001000Net:   No ethernet found.
Hit any key to stop autoboot: 2
Hit any key to stop autoboot: 0
Zynq> nand info
nand info
 
Device 0: nand0, sector size 128 KiB
  Page size         2048 b
  OOB size            64 b
  Erase size      131072 b
  ecc strength         0 bits
  ecc step size     2048 b
  subpagesize       2048 b
  options       0x00000000
Device 0: nand0, sector size 128 KiB  Page size         2048 b  OOB size        
    64 b  Erase size      131072 b  ecc strength         0 bits  ecc step size  
   2048 b  subpagesize       2048 b  options       0x00000000  bbt options   
0x00028000
Zynq> nand erase.spread 0 0x2000000
NAND erase.spread: device 0 offset 0x0, size 0x2000000
Erasing at 0x1fa0000 --  99% complete.
Erasing at 0x1fe0000 -- 100% complete.
OK
Zynq> nand write 0x80000 0 0x2000000
 
NAND write: device 0 offset 0x0, size 0x2000000
NAND write to offset 0 failed -5
"""

Please have a look.

Thanks,
Love Kumar


Reply via email to