This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

NAND/ MTD is very slow in kernel 2.6.35.9

Hi

I have just upgraded the linux kernel for daVinci DM6467 from 2.6.23 to 2.6.35.9 (from kernel.org). The board is booting now, but all access to NAND are slow. The NAND is 1Gbyte and scanning for bad blocks takes about 1 minute. I have both NOR and NAND on this board, booting from NOR. Both U-boot and the old kernel scans the same NAND in a much shorter time.

OProfile give me the below, when copy a file from NAND to /dev/null:

CPU: CPU with timer interrupt, speed 0 MHz (estimated)

Profiling through timer interrupt

samples  %        app name                 symbol name

33       19.4118  vmlinux                  cfi_qry_mode_on

32       18.8235  bash                     /bin/bash

31       18.2353  vmlinux                  mtd_unlocked_ioctl

I'm not sure if that add any information at all. Seem strange that most of the time is used in an ioctl call.
Copy a file from RAMFS to /dev/null takes expected and much shorter time.
Anyone had the same experience? Any ideas where to continue to debug this?
Best regards,
Kjetil Aamodt