Part Number: DRA744
HI TI Team,
Platform: TOI DRA74x SOC
eMMC : samsung
We have one problem when we are issuing "sanitize" operation from host to eMMc device. Once we issue Sanitize operation the response can take up to 4min(240 sec) according to eMMC standard . But Ti has one errata (snippet is attached below) where maximum time out is always 700 ms when host is running at 192MHZ. For to over come this Ti has already added software timer(which is coming approx 3 sec in our hardware) for the response. This time out is applicable for all the responses, if the response comes in less than 4sec timer is deleted, but sanitize requires more time (240 sec) according to specs. We have observed that once we issue sanitize operation CMD6 is send from host will wait for 4 sec( 700ms from H/W time out + 3 sec from S/W timer) to get respnse, If response is not with in 4 secs driver will HPI interrupt to interrupt sanitize operation using CMD13 untill it is success. We have observed that system will go for hang after certain time due to RCU lock. To over come this sanitize time out We have tried some experiments by increased time out to 240 sec in "omap_hsmmc_do_irq()" in drivers/mmc/host/omap_hsmmc.c. After applying the below change We observed that response(for CMD6 sanitize) is coming after 12 seconds . As we cannot pre-determine for response we have to wait for 4mins max accoding to standard.
omap_hsmmc_do_irq(){
Above is the highlighted we have added for experimental purpose.
Errata:
Thanks and Regards,
Vivek