AnsweredAssumed Answered

emmc trim support in P5040 and kernel 3.4

Question asked by Jerry Duan on Oct 26, 2014
Latest reply on Nov 13, 2014 by Jerry Duan

Hi,

 

I am using P5040 (eSDHC vendor version is 0x13)and linux 3.4 for our project. When I test the TRIM feature, I got the following:

$fstrim /mnt/mymmc/

fstrim: /mnt/mymmc/: FITRIM ioctl failed: Operation not supported

$cat /sys/class/block/mmc/queue/discard_max_bytes

0


But, I am using a Micron eMMC 4.41 chip, I believe that it supports TRIM. Since kernel upgrade is not an option for our project, just wonder if there is any simple patch I can apply to enable my eMMC trim.

 

Thanks for helping me out.

 

Jerry

 

Outcomes