Skip to content

ASoC: SOF: ipc4-loader: Add debugfs file to list the firmware modules - #6060

Open
ujfalusi wants to merge 1 commit into
thesofproject:topic/sof-devfrom
ujfalusi:peter/sof/pr/debugfs-fw-libraries
Open

ujfalusi wants to merge 1 commit into
thesofproject:topic/sof-devfrom
ujfalusi:peter/sof/pr/debugfs-fw-libraries

Conversation

@ujfalusi

@ujfalusi ujfalusi commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Add a fw_modules debugfs file to list the library ID, module ID, UUID and name of the modules in the basefw and the loaded libraries.

Example:

  # cat /sys/kernel/debug/sof/fw_modules
  lib | module | UUID                                 | name
  0   | 0      | 2B79E4F3-4675-F649-89DF-3BC194A91AEB | BRNGUP
  0   | 1      | D406D134-C3C1-402C-8AEC-6821C0C2B0E6 | COLD
  ..
  0   | 12     | 0D116EA6-9150-46DE-98B8-B2B3A791DA29 | STFTPROC
  1   | 0      | B0CDCD9E-EF8B-404F-8480-0F287FC9D44D | IIR
  1   | 1      | 93446E12-1864-4E04-AFE0-3B1D778FFB79 | FIR
  1   | 2      | 99F7166D-372C-43EF-81F6-22007AA15F03 | ARIA
  ...

Add a fw_modules debugfs file to list the library ID, module ID, UUID
and name of the modules in the basefw and the loaded libraries.

Example:
  # cat /sys/kernel/debug/sof/fw_modules
  lib | module | UUID                                 | name
  0   | 0      | 2B79E4F3-4675-F649-89DF-3BC194A91AEB | BRNGUP
  0   | 1      | D406D134-C3C1-402C-8AEC-6821C0C2B0E6 | COLD
  ..
  0   | 12     | 0D116EA6-9150-46DE-98B8-B2B3A791DA29 | STFTPROC
  1   | 0      | B0CDCD9E-EF8B-404F-8480-0F287FC9D44D | IIR
  1   | 1      | 93446E12-1864-4E04-AFE0-3B1D778FFB79 | FIR
  1   | 2      | 99F7166D-372C-43EF-81F6-22007AA15F03 | ARIA
  ...

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Copilot AI balanced review requested due to automatic review settings November 24, 2026 16:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the read-only firmware module diagnostics change.

No open issues 🎉

What changed in this PR

Adds a read-only fw_modules debugfs file to the SOF IPC4 loader, making firmware module information available for diagnostics.

Changes:

  • Lists library IDs, module IDs, UUIDs, and names for the base firmware and loaded libraries.
  • Registers the file after base firmware initialization and uses the existing SOF debugfs cleanup.
File Description
sound/​soc/​sof/​ipc4-loader.c Adds module-list formatting and registers the fw_modules debugfs file.

Review effort: Balanced

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants