mmc: dw_mmc: Add hardware lock error (HLE) to the CMD error flag
Quoted 20 lines
------- Original Message -------
Sender : Jaehoon Chung<[email protected]> S4/Engineer/System S/W Lab./Samsung Electronics Date : Oct 07, 2013 13:34 (GMT+09:00)
Title : Re: [PATCH] mmc:dw_mmc: Add hardware lock error (HLE) to the CMD error flagQuoted 12 lines · ALIM AKHTAR
Hi Jaehoon,
Quoted 3 lines
------- Original Message -------
Sender : Jaehoon Chung S4/Engineer/System S/W Lab./Samsung Electronics Date : Oct 06, 2013 17:28 (GMT+09:00)Title : Re: [PATCH] mmc:
dw_mmc: Add hardware lock error (HLE) to the CMD error flagHi Alim,
Quoted 2 lines · alim akhtar
From: Alim Akhtar
Quoted 8 lines
Quoted 6 lines
Quoted 5 lines
Hardware locked error set when the
dw_mmccontroller cannot load a command issued by software. When software sets thestart_cmdbit in the CMD register, the controller tries to load the command. If the command buffer is already filled with a command, this error is raised. Currently driver does not handle HLE interrupt, which results in a system hang.When
SDMMC_INT_HLEis set into CMD_ERROR_FLAGS,.then could driver handle the HLE interrupt?Yes, this will be handled as a part of
DW_MCI_CMD_ERROR_FLAGSerror handling. Could some command or data be lost?
No, Data and command will not be lost as they are not send out.
Quoted 27 lines
Quoted 27 lines
Quoted 27 lines
Best Regards,
Jaehoon ChungHLE can be simulated by quickly inserting and removing sd card in card slot (30 ~ 40 times in say 20 secs)
Reviewed-by Doug AndersonSigned-off-by Alim Akhtar--- drivers/mmc/host/dw_mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/mmc/host/dw_mmc.c +1
-1@@ -44,7 +44,7 @@ SDMMC_INT_HTO | SDMMC_INT_SBE | \ SDMMC_INT_EBE)#define DW_MCI_CMD_ERROR_FLAGS (SDMMC_INT_RTO | SDMMC_INT_RCRC | \ - SDMMC_INT_RESP_ERR) + SDMMC_INT_RESP_ERR | SDMMC_INT_HLE)#define DW_MCI_ERROR_FLAGS (DW_MCI_DATA_ERROR_FLAGS | \ DW_MCI_CMD_ERROR_FLAGS | SDMMC_INT_HLE)#define DW_MCI_SEND_STATUS 1N‹§²æìr¸›yúèšØb²X¬¶Ç§vØ^–)Þº{.nÇ+‰·¥Š{±šg"žØ^n‡r¡ö¦zË?ëh™¨èÚ&¢ø®G«?éh®(階ŠÝ¢j"?ú¶m§ÿï?êäz¹Þ–Šàþf£¢·hšˆ§~ˆmml==
Hi, Alim.
Quoted 25 lines · ALIM AKHTAR
Quoted 25 lines
------- Original Message -------
Sender : Jaehoon Chung<[email protected]> S4/Engineer/System S/W Lab./Samsung Electronics Date : Oct 07, 2013 13:34 (GMT+09:00)
Title : Re: [PATCH] mmc:dw_mmc: Add hardware lock error (HLE) to the CMD error flagQuoted 17 lines · ALIM AKHTAR
Hi Jaehoon,
Quoted 3 lines
------- Original Message -------
Sender : Jaehoon Chung S4/Engineer/System S/W Lab./Samsung Electronics Date : Oct 06, 2013 17:28 (GMT+09:00)Title : Re: [PATCH] mmc:
dw_mmc: Add hardware lock error (HLE) to the CMD error flagHi Alim,
Quoted 7 lines · alim akhtar
From: Alim Akhtar
Hardware locked error set when the
dw_mmccontroller cannot load a command issued by software. When software sets thestart_cmdbit in the CMD register, the controller tries to load the command. If the command buffer is already filled with a command, this error is raised. Currently driver does not handle HLE interrupt, which results in a system hang.
Quoted 4 lines
Quoted 3 lines
Quoted 1 line
When
SDMMC_INT_HLEis set into CMD_ERROR_FLAGS,.then could driver handle the HLE interrupt?Yes, this will be handled as a part of
DW_MCI_CMD_ERROR_FLAGSerror handling. Could some command or data be lost?No, Data and command will not be lost as they are not send out.
Maybe it needs to discuss how recovery the command/data, when HLE interrupt is occured. I want to know, do you have the recovery method when HLE interrupt is occured?
As you mentioned, this patch controlled the HLE error and can't send the any command/data. Patch like this had already posted at mailing list.
But we also need to control after occurred the HLE.
In SD-card's case, card can be inserted/removed. but in case of eMMC, can't it. It should be maintained the hardware lock status.
Best Regards,
Jaehoon Chung
Quoted 27 lines
Quoted 27 lines
Quoted 27 lines
Quoted 27 lines
Best Regards,
Jaehoon ChungHLE can be simulated by quickly inserting and removing sd card in card slot (30 ~ 40 times in say 20 secs)
Reviewed-by Doug AndersonSigned-off-by Alim Akhtar--- drivers/mmc/host/dw_mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/mmc/host/dw_mmc.c +1
-1@@ -44,7 +44,7 @@ SDMMC_INT_HTO | SDMMC_INT_SBE | \ SDMMC_INT_EBE)#define DW_MCI_CMD_ERROR_FLAGS (SDMMC_INT_RTO | SDMMC_INT_RCRC | \ - SDMMC_INT_RESP_ERR) + SDMMC_INT_RESP_ERR | SDMMC_INT_HLE)#define DW_MCI_ERROR_FLAGS (DW_MCI_DATA_ERROR_FLAGS | \ DW_MCI_CMD_ERROR_FLAGS | SDMMC_INT_HLE)#define DW_MCI_SEND_STATUS 1N‹§²æìr¸›yúèšØb²X¬¶Ç§vØ^–)Þº{.nÇ+‰·¥Š{±šg"žØ^n‡r¡ö¦zË?ëh™¨èÚ&¢ø®G«?éh®(階ŠÝ¢j"?ú¶m§ÿï?êäz¹Þ–Šàþf£¢·hšˆ§~ˆmml==