Skip to content

[BUG] sof-logger -e option is broken: firmware/debug ABI confusion #3243

Closed

Description

@plbossart

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

  1. 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;
        }

Activity

  1. added
    bugSomething isn't working as expected
    on Jul 28, 2020
  2. lgirdwood commented on Aug 3, 2020

    @lgirdwood
    Member

    @slawblauciak can we close now ?

  3. marc-hb commented on Aug 4, 2020

    @marc-hb
    Collaborator

    A pointer to the fix would not hurt.

  4. added
    BSWBraswell
    and removed on Aug 10, 2020
  5. slawblauciak commented on Aug 10, 2020

    @slawblauciak
    Collaborator

    @lgirdwood I'd leave it open until the PR gets merged.
    @marc-hb apologies, it's the PR mentioned above, #3195

  6. slawblauciak commented on Aug 18, 2020

    @slawblauciak
    Collaborator

    @plbossart PR has been merged, can you please verify?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BSWBraswellFix confirmedFix for the issue has been found and verifiedbugSomething isn't working as expected

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions