sof-logger: add checksums to -d(ump_file) option#5110
sof-logger: add checksums to -d(ump_file) option#5110lgirdwood merged 3 commits intothesofproject:mainfrom
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.
What motivation stands behind this change ?
There was a problem hiding this comment.
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.
|
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.
Wait, I thought #5046 meant this is allowed now?
There was a problem hiding this comment.
Fine in the SPDX, but my pattern matching needs C style in the code.
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: