Re: [RFC PATCH] mmc: dw_mmc: avoid race condition of cpu and IDMAC

2016-08-19 Thread Shawn Lin
在 2016/8/17 17:52, Jaehoon Chung 写道: Hi Shawn, On 08/16/2016 12:23 PM, Shawn Lin wrote: We could see an obvious race condition by test that the former write operation by IDMAC aiming to clear OWN bit reach right after the later configuration of the same desc, which makes the IDMAC be in

Re: [RFC PATCH] mmc: dw_mmc: avoid race condition of cpu and IDMAC

2016-08-19 Thread Shawn Lin
在 2016/8/17 17:52, Jaehoon Chung 写道: Hi Shawn, On 08/16/2016 12:23 PM, Shawn Lin wrote: We could see an obvious race condition by test that the former write operation by IDMAC aiming to clear OWN bit reach right after the later configuration of the same desc, which makes the IDMAC be in

Re: [RFC PATCH] mmc: dw_mmc: avoid race condition of cpu and IDMAC

2016-08-17 Thread Jaehoon Chung
Hi Shawn, On 08/16/2016 12:23 PM, Shawn Lin wrote: > We could see an obvious race condition by test that > the former write operation by IDMAC aiming to clear > OWN bit reach right after the later configuration of > the same desc, which makes the IDMAC be in SUSPEND > state as the OWN bit was

Re: [RFC PATCH] mmc: dw_mmc: avoid race condition of cpu and IDMAC

2016-08-17 Thread Jaehoon Chung
Hi Shawn, On 08/16/2016 12:23 PM, Shawn Lin wrote: > We could see an obvious race condition by test that > the former write operation by IDMAC aiming to clear > OWN bit reach right after the later configuration of > the same desc, which makes the IDMAC be in SUSPEND > state as the OWN bit was

[RFC PATCH] mmc: dw_mmc: avoid race condition of cpu and IDMAC

2016-08-15 Thread Shawn Lin
We could see an obvious race condition by test that the former write operation by IDMAC aiming to clear OWN bit reach right after the later configuration of the same desc, which makes the IDMAC be in SUSPEND state as the OWN bit was cleared by the asynchronous write operation of IDMAC. The bug can

[RFC PATCH] mmc: dw_mmc: avoid race condition of cpu and IDMAC

2016-08-15 Thread Shawn Lin
We could see an obvious race condition by test that the former write operation by IDMAC aiming to clear OWN bit reach right after the later configuration of the same desc, which makes the IDMAC be in SUSPEND state as the OWN bit was cleared by the asynchronous write operation of IDMAC. The bug can