Skip to content

[FEATURE] Improve reporting about memory allocation through IPC4 #10570

@wjablon1

Description

@wjablon1

While handling LARGE_CONFIG_GET->MEMORY_STATE_INFO_GET, SOF FW always reports the total amount of pages (compile time constants) instead of the current usage. Usefulness of this information is limited. It would be nice to have the real data that gets updated after topology load. Benefits:

  1. Allow HW/Architecture teams to optimize memory (size/provision)
  2. Allow clients (e.g. Topology designers) to experiment and assess memory footprints of individual components/features
  3. Check for memory leaks (e.g. reloading topology in a loop and checking the allocation size)

I discovered this gap some time ago. But recently there was an ask about SOF memory footprint. So maybe it's time to properly handle this IPC.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions