-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SFDP: Move Sector Map Parameter Table parsing under SFDP module #12318
Conversation
I think testing only 1 QSPI memory is not enough... |
@kyle-cypress The failures seen here with CY8CPROTO_062_4343W are reproducible with Mbed OS master - commit |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
I have a bug somewhere in here. I'll let you you know once I find it and fix it. |
I have been unable to reproduce the issue and I'm pretty certain that the issue I saw with SPIF might have been a glitch which isn't related to my changes. I had following test suite running over night without any issues - 27 iterations this far:
|
This far all SFDP Sector Map Table related data has been found in small pieces inside QSPIFBlockDevice. Purpose was to consolidate the data under one SFDP structure where all the information gathered from SFDP tables is stored. Parsing a Sector Map Table was made more generic so that later it can be moved under SFDP module. Once that is done it can be shared with SPIFBlockDevice to avoid code duplication.
This far all SFDP Sector Map Table related data has been found in small pieces inside SPIFBlockDevice. Purpose was to consolidate the data under one SFDP structure where all the information gathered from SFDP tables is stored. More generic version of a function used for parsing a Sector Map Table was taken into use to avoid duplicate code. The implementation taken into use is the one which got split from QSPIFBlockDevice and resides now under the SFDP module.
Rebased, should be easier to review. |
CI started |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Greentea storage tests pass on CY8CPROTO_062_4343W
Test run: FAILEDSummary: 1 of 11 test jobs failed Failed test jobs:
|
The device LPC55S69 doesn't have a SPIF- or QSPIF-module so I can't see how my changes would cause any issues with it - logs.
@0xc0170 Would you please rerun the tests. |
@0xc0170 Would you please restart the tests. |
CI rerun (it might fail, we are investigating internal compiler error) |
Test run: FAILEDSummary: 1 of 4 test jobs failed Failed test jobs:
|
Master should be fixed, lets see |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Summary of changes
Depends on PR #12270. That one should go in before you start reviewing this one.Purpose of this PR is to consolidate SFDP Sector Map Parameter Table parsing and make the QSPIF- and SPIFBlockDevices to use the same shared implementation. Before this PR almost the same code was found from both of the components.Impact of changes
Migration actions required
Documentation
Pull request type
Test results
SPIF compilation
QSPIF compilation
Reviewers
@SeppoTakalo
@michalpasztamobica