19 Jul 2012 17:12
[RESEND PATCH v10] mmc: support BKOPS feature for eMMC
Jaehoon Chung <jh80.chung <at> samsung.com>
2012-07-19 15:12:05 GMT
2012-07-19 15:12:05 GMT
Enable eMMC background operations (BKOPS) feature. If URGENT_BKOPS is set after a response, note that BKOPS are required. Immediately run BKOPS if required. read/write operations should be requested during BKOPS(LEVEL-1), then issue HPI to interrupt the ongoing BKOPS and service the foreground operation. (This patch is only control the LEVEL2/3.) If you want to enable this feature, set MMC_CAP2_BKOPS. When repeating the writing 1GB data, at a certain time, performance is decreased. At that time, card is also triggered the Level-3 or Level-2. After running bkops, performance is recovered. Future considerations * Check BKOPS_LEVEL=1 and start BKOPS in a preventive manner. * Interrupt ongoing BKOPS before powering off the card. * How get BKOPS_STATUS value.(periodically send ext_csd command?) * If use periodic bkops, also consider runtime_pm control. Signed-off-by: Jaehoon Chung <jh80.chung <at> samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park <at> samsung.com> Signed-off-by: Konstantin Dorfman <kdorfman <at> codeaurora.org> Signed-off-by: Maya Erez <merez <at> codeaurora.org> --- Changelog v10: - Based on latest mmc-next - Only control the level-2/3. : If triggered upper than level2, immediately start bkops.(Continue reading)
RSS Feed