Skip to content

ASoC: SOF: IPC client infrastructure

Peter Ujfalusi alsa-devel lkml 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 1 replyIn review
  2. v19 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Fix compilation error in sound/soc/sof/compress.c:
error: implicit declaration of function 'snd_sof_create_page_table' The patch introducing this is not in sof-dev, and I have missed cross compiling for aarch64.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9ASoC: SOF: Drop unused DSP power states: D3_HOT and D3_COLDsound/soc/sof/intel/hda-dsp.c sound/soc/sof/sof-priv.h+0 -80 replies
2/9ASoC: SOF: Move the definition of enum sof_dsp_power_states to global headerinclude/sound/sof.h sound/soc/sof/sof-priv.h+8 -80 replies
3/9ASoC: SOF: ipc: Read and pass the whole message to handlers for IPC eventssound/soc/sof/ipc.c+44 -410 replies
4/9ASoC: SOF: Split up utils.c into sof-utils and iomem-utilssound/soc/sof/Makefile sound/soc/sof/compress.c sound/soc/sof/iomem-utils.c +5 more+104 -650 replies
5/9ASoC: SOF: Introduce IPC SOF client supportsound/soc/sof/Kconfig sound/soc/sof/Makefile sound/soc/sof/core.c +4 more+540 -210 replies
6/9ASoC: SOF: sof-client: Add support for clients not managed by pm frameworksound/soc/sof/pm.c sound/soc/sof/sof-client.c sound/soc/sof/sof-priv.h+70 -10 replies
7/9ASoC: SOF: Convert the generic IPC flood test into SOF clientsound/soc/sof/Kconfig sound/soc/sof/Makefile sound/soc/sof/core.c +4 more+469 -2410 replies
8/9ASoC: SOF: Convert the generic IPC message injector into SOF clientsound/soc/sof/Kconfig sound/soc/sof/Makefile sound/soc/sof/debug.c +3 more+229 -1150 replies
9/9ASoC: SOF: Convert the generic probe support to SOF clientsound/soc/sof/Kconfig sound/soc/sof/Makefile sound/soc/sof/core.c +17 more+968 -8250 replies

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by.

PatchKai VehmanenPierre-Louis BossartRanjani Sridharan
1/9R-b R-b R-b
2/9R-b R-b R-b
3/9R-b R-b R-b
4/9R-b R-b R-b
5/9R-b R-b R-b
6/9R-b R-b R-b
7/9R-b R-b R-b
8/9R-b R-b R-b
9/9R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/9] ASoC: SOF: IPC client infrastructure

Hi,

Changes since v1:
- Fix compilation error in sound/soc/sof/compress.c:
error: implicit declaration of function 'snd_sof_create_page_table' The patch introducing this is not in sof-dev, and I have missed cross compiling for aarch64.

Original Cover letter

The Linux SOF implementation is historically monolithic in a sense that all features accessible in the firmware can be used via the snd_sof_dev struct in one way or another.

Support for features can not be added or removed runtime and with the current way of things it is hard if not impossible to implement support for dynamic feature support when based on the firmware manifest we can easily enable/access independent modules with the SOF.

In order to be able to support such modularity this series introduces a small framework within SOF for client support using the Auxiliary bus.

Client drivers can be removed runtime and later re-loaded if needed without affecting the core's behaviour, but it is the core's and the platform's duty to create the Auxiliary devices usable in the platform and via the firmware.

There is still a need for SOF manifest update to convey information about features to really make the full dynamic client device creation.

The series will introduce the core SOF client support and converts the generic ipc flood test, ipc message injector and the probes (Intel HDA only) to a client driver.

Regards,
Peter
---
Peter Ujfalusi (8):
ASoC: SOF: Drop unused DSP power states: D3_HOT and D3_COLD
ASoC: SOF: Move the definition of enum sof_dsp_power_states to global
header
ASoC: SOF: ipc: Read and pass the whole message to handlers for IPC
events
ASoC: SOF: Split up utils.c into sof-utils and iomem-utils
ASoC: SOF: Introduce IPC SOF client support
ASoC: SOF: sof-client: Add support for clients not managed by pm
framework
ASoC: SOF: Convert the generic IPC message injector into SOF client
ASoC: SOF: Convert the generic probe support to SOF client

Ranjani Sridharan (1):
ASoC: SOF: Convert the generic IPC flood test into SOF client

 include/sound/sof.h                         |   8 +
 sound/soc/sof/Kconfig                       |  33 +-
 sound/soc/sof/Makefile                      |  15 +-
 sound/soc/sof/compress.c                    |   1 +
 sound/soc/sof/core.c                        |  50 +-
 sound/soc/sof/debug.c                       | 565 --------------
 sound/soc/sof/intel/Kconfig                 |  19 +-
 sound/soc/sof/intel/apl.c                   |  13 +-
 sound/soc/sof/intel/cnl.c                   |  13 +-
 sound/soc/sof/intel/hda-dai.c               |  19 -
 sound/soc/sof/intel/hda-dsp.c               |   6 -
 sound/soc/sof/intel/hda-probes.c            |  72 +-
 sound/soc/sof/intel/hda.c                   |  10 +
 sound/soc/sof/intel/hda.h                   |  49 +-
 sound/soc/sof/intel/icl.c                   |  13 +-
 sound/soc/sof/intel/tgl.c                   |  13 +-
 sound/soc/sof/{utils.c => iomem-utils.c}    |  61 +-
 sound/soc/sof/ipc.c                         |  88 ++-
 sound/soc/sof/ops.h                         |  43 -
 sound/soc/sof/pcm.c                         |   7 +-
 sound/soc/sof/pm.c                          |  13 +-
 sound/soc/sof/sof-client-ipc-flood-test.c   | 396 ++++++++++
 sound/soc/sof/sof-client-ipc-msg-injector.c | 192 +++++
 sound/soc/sof/sof-client-probes.c           | 821 ++++++++++++++++++++
 sound/soc/sof/sof-client-probes.h           |  31 +
 sound/soc/sof/sof-client.c                  | 469 +++++++++++
 sound/soc/sof/sof-client.h                  |  67 ++
 sound/soc/sof/sof-priv.h                    | 139 ++--
 sound/soc/sof/sof-probes.c                  | 364 ---------
 sound/soc/sof/sof-probes.h                  |  38 -
 sound/soc/sof/sof-utils.c                   |  77 ++
 sound/soc/sof/sof-utils.h                   |  19 +
 sound/soc/sof/trace.c                       |   1 +
 33 files changed, 2416 insertions(+), 1309 deletions(-)
 rename sound/soc/sof/{utils.c => iomem-utils.c} (59%)
 create mode 100644 sound/soc/sof/sof-client-ipc-flood-test.c
 create mode 100644 sound/soc/sof/sof-client-ipc-msg-injector.c
 create mode 100644 sound/soc/sof/sof-client-probes.c
 create mode 100644 sound/soc/sof/sof-client-probes.h
 create mode 100644 sound/soc/sof/sof-client.c
 create mode 100644 sound/soc/sof/sof-client.h
 delete mode 100644 sound/soc/sof/sof-probes.c
 delete mode 100644 sound/soc/sof/sof-probes.h
 create mode 100644 sound/soc/sof/sof-utils.c
 create mode 100644 sound/soc/sof/sof-utils.h
Signature · 1 line
2.35.1