Uh oh!
There was an error while loading. Please reload this page.
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.
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.
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
8c63e0fCompare
lgirdwood
left a comment
There was a problem hiding this comment.
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.
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.
Ok, I will update including headers, when the submodules are ready
Uh oh!
There was an error while loading. Please reload this page.
84f03e1 to
5d29941CompareI'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
c6546c3Comparebkokoszx
commented
Nov 5, 2018
@lgirdwood@akloniex@xiulipan |
adc634c to
a5d628aCompare
lgirdwood
left a comment
There was a problem hiding this comment.
Minor change flagged by github. Btw any chance you paste some example output in the commit message to show improvement.
| } __attribute__((__packed__)); | ||
| #endif //#ifndef __INCLUDE_LOGGING__ | ||
| #endif //#ifndef __INCLUDE_LOGGING__ No newline at end of file |
There was a problem hiding this comment.
Need newline (github flags this automatically)
lgirdwood
left a comment
There was a problem hiding this comment.
Minor change flagged by github. Btw any chance you paste some example output in the commit message to show improvement.
f8c8eea to
3ced9d3Compare@lgirdwood I've updated github issue and commit message. |
lgirdwood
left a comment
There was a problem hiding this comment.
Ok, is there any PRs for this driver or can both this and the FW patch now be merged ?
bkokoszx
commented
Nov 6, 2018
@lgirdwood@xiulipan@akloniex |
3ced9d3 to
1ecd8caComparebkokoszx
commented
Nov 6, 2018
@lgirdwood |
lgirdwood
commented
Nov 6, 2018
@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) |
bkokoszx
commented
Nov 7, 2018
@lgirdwood |
1ecd8ca to
c7002aeComparelgirdwood
commented
Nov 7, 2018
@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
105b9b5Comparebkokoszx
commented
Nov 8, 2018
@lgirdwood |
lgirdwood
commented
Nov 8, 2018
@bkokoszx will be merging ABI kernel and FW updates today. Will do it all in one big update to minimize disruption. |
bkokoszx
commented
Nov 8, 2018
@lgirdwood |
bkokoszx
commented
Nov 9, 2018
@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