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.

Slow NAND performance on DM

Other Parts Discussed in Thread: AM3505

Hi Ti,

We are working on AM3505 and DM8148 EVM based custom board for our customer.Both Soc`s have below Micron nand :

AM : MT29F8G16ADADAH4

DM : MT29F4G08ABADAH4

but the performance is faster in AM and DM NAND is slower.So, can you please tell me how i increase the speed of DM NAND?


Thank You,

Dhaval Radiya.

  • Hi Dhaval,

    Refer to the below links:

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/t/191923.aspx

    http://processors.wiki.ti.com/index.php/TI81XX_PSP_04.04.00.02_Feature_Performance_Guide#NAND_Driver

    http://processors.wiki.ti.com/index.php/EZSDK_Fast_Boot_Streaming_Video

    http://processors.wiki.ti.com/index.php/EZSDK_Fast_Boot

    http://processors.wiki.ti.com/index.php/Sitara_Linux_Training:_Boot_Time_Reduction

    http://processors.wiki.ti.com/index.php/Optimize_Linux_Boot_Time

    http://processors.wiki.ti.com/index.php/All_This_For_1_Second_Boot

    BR
    Pavel

  • Hi Pavel,


    thanks for your reply, But How can i improve my DM NAND Performance using drivers in kernel against with AM NAND? what changes i do in drivers please give any suggestion ?

    Thank You,

    Dhaval Radiya.

  • Dhaval,

    Is your DM814x NAND driver performance same as in below link or slower?

    http://processors.wiki.ti.com/index.php/TI81XX_PSP_04.04.00.02_Feature_Performance_Guide#NAND_Driver

    Radiya Dhaval said:
    But How can i improve my DM NAND Performance using drivers in kernel against with AM NAND?

    You can compare the NAND drivers and GPMC settings between DM814x and AM3505, and apply the differences in DM814x code base.

    BR
    Pavel

  • Hi Pavel,

    This is my test case on nand in both socs.and there is wast difference in both nand performance.so how can i increase my DM nand performance?

    -------------------------------------------------------
               DM NAND speedtest results
    -------------------------------------------------------
     
    =================================================
    mtd_speedtest: MTD device: 4
    mtd_speedtest: MTD device size 525860864, eraseblock size 131072, page size 2048, count of eraseblocks 4012, pages per eraseblock 64, OOB size 64
    mtd_speedtest: scanning for bad eraseblocks
    mtd_speedtest: scanned 4012 eraseblocks, 0 are bad
    mtd_speedtest: testing eraseblock write speed
     
    mtd_speedtest: eraseblock write speed is 2003 KiB/s
    mtd_speedtest: testing eraseblock read speed
    mtd_speedtest: eraseblock read speed is 2257 KiB/s
    mtd_speedtest: testing page write speed
    mtd_speedtest: page write speed is 1999 KiB/s
    mtd_speedtest: testing page read speed
    mtd_speedtest: page read speed is 2256 KiB/s
    mtd_speedtest: testing 2 page write speed
    mtd_speedtest: 2 page write speed is 2001 KiB/s
    mtd_speedtest: testing 2 page read speed
    mtd_speedtest: 2 page read speed is 2257 KiB/s
    mtd_speedtest: Testing erase speed
    mtd_speedtest: erase speed is 156422 KiB/s
    mtd_speedtest: finished
    =================================================
     
    -----------------------------------------------------
               AM NAND speedtest results
    -----------------------------------------------------
     
    mtd_speedtest: MTD device: 5
    mtd_speedtest: MTD device size 419430400, eraseblock size 131072, page size 2048, count of eraseblocks 3200, pages per eraseblock 64, OOB size 64
    mtd_speedtest: scanning for bad eraseblocks
    mtd_speedtest: scanned 3200 eraseblocks, 0 are bad
    mtd_speedtest: testing eraseblock write speed
    mtd_speedtest: eraseblock write speed is 6537 KiB/s
    mtd_speedtest: testing eraseblock read speed
    mtd_speedtest: eraseblock read speed is 10698 KiB/s
    mtd_speedtest: testing page write speed
    mtd_speedtest: page write speed is 6191 KiB/s
    mtd_speedtest: testing page read speed
    mtd_speedtest: page read speed is 9857 KiB/s
    mtd_speedtest: testing 2 page write speed
    mtd_speedtest: 2 page write speed is 6365 KiB/s
    mtd_speedtest: testing 2 page read speed
    mtd_speedtest: 2 page read speed is 10256 KiB/s
    mtd_speedtest: Testing erase speed
    mtd_speedtest: erase speed is 149162 KiB/s
    mtd_speedtest: finished

    =================================================

    Thank You,

    Dhaval Radiya.

  • Dhaval,

    Do you have the below patch in your code base?

    http://e2e.ti.com/support/embedded/linux/f/354/p/128433/540886.aspx#540886

    BR
    Pavel

  • Dhaval,

    Could you please also share details on how you generate the mtd_speedtest.ko module, load and run it in the DM814x board?

    BR
    Pavel

  • Hi Pavel,

    We configure mtd_speedtest as module by MTD_TESTS=m in kernel and compile kernel modules by below commands.

    # make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm modules

    We run this by below commands on system.

    # cat /proc/mtd
    dev:    size   erasesize  name
    mtd0: 00080000 00020000 "xloader"
    mtd1: 001c0000 00020000 "uboot"
    mtd2: 00040000 00020000 "uboot-env"
    mtd3: 00500000 00020000 "factory-kernel"
    mtd4: 00500000 00020000 "kernel"
    mtd5: 19000000 00020000 "factory-filesystem"
    mtd6: 26380000 00020000 "filesystem"

    #insmod mtd_stresstest.ko dev=6

    Thanks,

    Kulbhushan