-
Notifications
You must be signed in to change notification settings - Fork 19
logger: add firmware verification capability #118
logger: add firmware verification capability #118
Conversation
| -c Set timestamp clock in MHz | ||
| -e Enable checking firmware version with default verification file | ||
| "/sys/kernel/debug/sof/fw_version" | ||
| -v ver_file Enable checking firmware version with ver_file file, |
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.
Version check be done by default, this option should optionally disable it. Btw, why do we need a file here ? I thought version would be added to ldc file and read from sysfs ?
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.
As discussed in #111 we decided to introduce this feature in 2 stages, to allow for parallel implementation from FW and kernel sides and to ensure that behaviour doesn't break anything in case of misalignment.
After verification of proper behaviour we'll change it to enable verification by default.
The version file is there to allow custom path to file dumped by driver, as our diagnostic driver on Windows uses different path than kernel one.
03616d0 to
8c63e0f
Compare
lgirdwood
left a comment
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.
Also need to address the header file, this may be a day or so before submodules working so it may be worth while also adding the component names into logger e.g. VOLUME1.1, VOLUME1.0 etc.
This means we should be able to catch all updates with one PR rather than several.
| @@ -0,0 +1,1020 @@ | |||
| /* | |||
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.
Why are we duplicating this header ? @cujomalainey will be creating some git sub modules so we should have a local version of this header in the next day or so.
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 will update including headers, when the submodules are ready
84f03e1 to
5d29941
Compare
I've added two logger flags for firmware version verification: -e - enables checking fw version with default file -v ver_file - enables checking fw version with ver_file file Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
5d29941 to
c6546c3
Compare
|
@lgirdwood @akloniex @xiulipan |
adc634c to
a5d628a
Compare
lgirdwood
left a comment
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.
Minor change flagged by github. Btw any chance you paste some example output in the commit message to show improvement.
rmbox/sof/uapi/logging.h
Outdated
| } __attribute__((__packed__)); | ||
|
|
||
| #endif //#ifndef __INCLUDE_LOGGING__ | ||
| #endif //#ifndef __INCLUDE_LOGGING__ |
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.
Need newline (github flags this automatically)
lgirdwood
left a comment
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.
Minor change flagged by github. Btw any chance you paste some example output in the commit message to show improvement.
f8c8eea to
3ced9d3
Compare
|
@lgirdwood I've updated github issue and commit message. |
lgirdwood
left a comment
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, is there any PRs for this driver or can both this and the FW patch now be merged ?
|
@lgirdwood @xiulipan @akloniex |
3ced9d3 to
1ecd8ca
Compare
|
@lgirdwood |
@bkokoszx we can't redefine types as it will silently break other things. Once fixed, can you submit FW PR to topic/abi branch (we will do all ABI updates in a single merge) |
|
@lgirdwood |
1ecd8ca to
c7002ae
Compare
|
@bkokoszx We cant do this 32bit build either, host build trace should just revert to printf directly (so pointers are not needed to lookup anyway). i.e. host will not use the trace mechanism. You can use an #ifdef in trace.h to separate DSP trace from host trace if needed. |
I've added printing component topology number (i.e. pipeline_id.component_id). If id's are not defined logger will not print any values. e.g.: CORE LEVEL COMP_ID TIMESTAMP ... 0 2 HOST 487048.229167 ... (not defined id's) 0 2 PIPE 1.3 591235.052083 ... (defined id's) Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
c7002ae to
105b9b5
Compare
|
@lgirdwood |
|
@bkokoszx will be merging ABI kernel and FW updates today. Will do it all in one big update to minimize disruption. |
|
@lgirdwood |
|
@lgirdwood |
I've added two logger flags for firmware version verification:
-e - enables checking fw version with default file
-v ver_file - enables checking fw version with ver_file file
Signed-off-by: Bartosz Kokoszko bartoszx.kokoszko@linux.intel.com