-
Notifications
You must be signed in to change notification settings - Fork 349
sof-logger: add checksums to -d(ump_file) option #5110
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
Conversation
|
Everything is green except this checkpatch warning which was already there before this PR: I suspect the purpose of this warning is to make sure error messages can be |
tools/logger/logger.c
Outdated
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.
What motivation stands behind this change ?
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.
Thanks @ktrzcinx for reviewing this PR, really appreciated.
This is what allows the -d ldc_file option to ALSO show the checksum expected by the firmware - when and only when a firmware is running. See sample output in the description. I suggest looking at each commit independently if you have looked only at the entire diff for now.
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.
Ok, I've got it!
|
Does the duplicated checksum gives anything for the user? Would not be better to print a single line of the two checksum matches: If there is a mismatch between the two checksum then: |
I don't think so because a single line is also printed when the firmware is not loaded.
I personally prefer having the checksums close to each other: ... and this makes the code simpler because it does not have to compare them. |
tools/logger/convert.c
Outdated
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.
C style
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.
Wait, I thought #5046 meant this is allowed now?
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.
Fine in the SPDX, but my pattern matching needs C style in the code.
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.
Done.
Fixes commit 901f991 ("logger: Validate by src_hash instead of abi version from fw_ready") that changed the feature without updating the name. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
Since commit 901f991 ("logger: Validate by src_hash instead of abi version from fw_ready") the dictionary checksum has become the most important information. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
Sample output: logger ABI Version is 5:3:0 ldc_file ABI Version is 5:3:0 ldc_file src checksum 0x07d4f1ad Loaded FW expects chksum 0x07d4f1ad <=== NEW! Components uuid dictionary size: 2400 bytes Components uuid base address: 0x1fffa000 ... Signed-off-by: Marc Herbert <marc.herbert@intel.com>
3ae60b7 to
3c870ca
Compare
|
Unusual, isolated and totally unrelated timeout in https://sof-ci.01.org/sofpr/PR5110/build11443/devicetest/?model=ADLP_RVP_NOCODEC&testcase=check-pause-resume-capture-10, everything else is green. |
3 commits
Sample output: