Serious bug in SDHC driver for WinEC7

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Serious bug in SDHC driver for WinEC7

1,568 Views
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

Labels (2)
Tags (2)
0 Kudos
4 Replies

509 Views
hedehodo
Contributor I

Hi All,

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

Thanks.

iy

0 Kudos

509 Views
karina_valencia
NXP Apps Support
NXP Apps Support

Deactivated user can you help on this case?

0 Kudos

509 Views
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 Kudos

509 Views
karina_valencia
NXP Apps Support
NXP Apps Support

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

0 Kudos