-
Notifications
You must be signed in to change notification settings - Fork 323
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
logger: Enable LDC and FW compatibility check by default #3326
Conversation
What would be the results if the two firmware binary and ldc are not aligned? |
It depends how much both of them are misaligned, it may be just point wrong line in a trace source location (when a few lines in source code will be added / deleted) or when some trace will be added/deleted, then it may be complete mess-up.
In general, this option is usable when there is no access to version file and for developers for fast FW validation after some quick-fix, From #3195 (review):
|
ok, so not for someone like me... |
@ktrzcinx btw what is the lookup mechanism used in LDC files ? are we using the binary address as a lookup into the LDC string table ? It may be more consistent if we were to hash the dir, file, line and use this lookup as this would survive binary changes. |
Even better would be to hash dir + file and trace string. |
each tr_xxx() is forwarded to
hash used to verification LDC and FW compatibility is calculated from source code, so any FW change will be reported. |
@ktrzcinx thanks for the info ! I guess this is something we could look at over the long term so that tooling can be more robust for non technical users. |
SOFCI TEST |
@ktrzcinx think we are good to merge once rebased. |
By default user should use compatible files. Signed-off-by: Karol Trzcinski <[email protected]>
It may be needed for situation when user have firmware after small fixes without updated ldc file or fw_ready file is not accessible. Option dedicated for advanced users. Signed-off-by: Karol Trzcinski <[email protected]>
8bee00e
to
6846267
Compare
@lgirdwood already rebased and tested by CI |
By default user should use compatible files but forcing no check also should be possible.