linux icon indicating copy to clipboard operation
linux copied to clipboard

ASoC: SOF: Validate and correct the core id against the number of cores of the DSP

Open ujfalusi opened this issue 2 months ago • 2 comments

Generic development topologies can reference core id outside of the range of the number of DSP cores the device might have. Product families have different number of cores, for example: TGL has 4, TGL-H has 2, ADL has 4, ADL-S has 2, etc The development topologies are tuned for the higher end devices and in this case they will fail on DSP with less number of cores.

ujfalusi avatar Nov 20 '25 12:11 ujfalusi

Changes since v1:

  • typo fixed in first patch commit
  • Second patch's commit to include Intel as it is a generic code
  • move out of range core id to core 0
  • print as dev_info() about the core id override to be visible in kernel log.

ujfalusi avatar Nov 21 '25 12:11 ujfalusi

Changes since v2:

  • use SOF_DSP_PRIMARY_CORE instead of 0 when overriding the out of range core id

ujfalusi avatar Nov 24 '25 10:11 ujfalusi