Serious bug in SDHC driver for WinEC7

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Serious bug in SDHC driver for WinEC7

1,903 次查看
AlexeyT
Contributor III

Hi,

 

I think found very serious  issue in EC7 SDHC driver.

In my case it leads to complete hang in SDHC driver in certain use cases.

It is being triggered by certain sequence of SD bus commands received by the CESDHCBase in common FSL code part..

The log from instrumented (traces added) version of that driver is attached to this message.

The issue was triggered by following command sequence

 

CMD25 non fast path

CMD12

CMD24 non fast path

 

After this sequence SDHC driver is dead.

The problem appears to be in global variable of current request.

It looks like we can have MORE then ONE current request because request processing code calls

new request add code FROM previous request's completion call so we have several requests on the stack.

Somewhere in that chain of calls/requests 'current request' global variable loses the ground and it makes driver hang.

 

Has anyone experienced this problem?

How can it be fixed?

 

FYI: this bug may affect all iMX drivers for WINEC7 because it is in common FSL code.

 

Attached: log from hung driver.

Original Attachment has been moved to: Log1---fail-2560-bytes.txt.zip

标签 (2)
标记 (2)
0 项奖励
回复
4 回复数

844 次查看
hedehodo
Contributor I

Hi All,

I faced with the similar issue. I am wondering if this problem is solved.

Thanks.

iy

0 项奖励
回复

844 次查看
karina_valencia
NXP Apps Support
NXP Apps Support

Deactivated user can you help on this case?

0 项奖励
回复

844 次查看
AlexeyT
Contributor III

Hello,

I hope I can help with this case.

I managed to work around it but my fix is ugly and

I am not sure that it fixes the issue completely.

Which information do you need?

I would recommend that we switch to private messages.

Best regards,

Alexey

0 项奖励
回复

844 次查看
karina_valencia
NXP Apps Support
NXP Apps Support

Adeneo Engineering Team do you have an update on this case?

0 项奖励
回复