-
Notifications
You must be signed in to change notification settings - Fork 349
Closed
Labels
BSWBraswellBraswellFix confirmedFix for the issue has been found and verifiedFix for the issue has been found and verifiedbugSomething isn't working as expectedSomething isn't working as expected
Description
Describe the bug
the sof-logger error checks are broken:
root@chrx:~# ./sof-logger -e -l sof-cht.ldc
error: fw version in sof-cht.ldc file does not coincide with fw version in /sys/kernel/debug/sof/fw_version file.
error: version_file ABI Version is 3:17:0
error: snd ABI Version is 5:0:0
This is obvious confusion between firmware and debug ABI
To Reproduce
use sof-logger -e option
Environment
- Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
firmware master 1c53b8e
plus added patch to show the issue:
diff --git a/tools/logger/convert.c b/tools/logger/convert.c
index 1f26e4411..94d24f29b 100644
--- a/tools/logger/convert.c
+++ b/tools/logger/convert.c
@@ -678,6 +678,19 @@ static int verify_fw_ver(const struct convert_config *config,
log_err(config->out_fd,
"fw version in %s file does not coincide with fw version in %s file.\n",
config->ldc_file, config->version_file);
+
+ log_err(config->out_fd,
+ "version_file ABI Version is %d:%d:%d\n",
+ SOF_ABI_VERSION_MAJOR(ver.abi_version),
+ SOF_ABI_VERSION_MINOR(ver.abi_version),
+ SOF_ABI_VERSION_PATCH(ver.abi_version));
+
+ log_err(config->out_fd,
+ "snd ABI Version is %d:%d:%d\n",
+ SOF_ABI_VERSION_MAJOR(snd->version.abi_version),
+ SOF_ABI_VERSION_MINOR(snd->version.abi_version),
+ SOF_ABI_VERSION_PATCH(snd->version.abi_version));
+
return -EINVAL;
}
Metadata
Metadata
Assignees
Labels
BSWBraswellBraswellFix confirmedFix for the issue has been found and verifiedFix for the issue has been found and verifiedbugSomething isn't working as expectedSomething isn't working as expected