Skip to content

ASoC: SOF: Abstract away the 'bar' usage (mostly)

Peter Ujfalusi alsa-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12ASoC: SOF: Intel: bdw: Set the mailbox offset directly in bdw_probesound/soc/sof/intel/bdw.c+2 -20 replies
2/12ASoC: SOF: ipc: Remove snd_sof_dsp_mailbox_init()sound/soc/sof/ipc.c sound/soc/sof/loader.c sound/soc/sof/sof-priv.h+6 -210 replies
3/12ASoC: SOF: imx: Do not initialize the snd_sof_dsp_ops.read64sound/soc/sof/imx/imx8.c sound/soc/sof/imx/imx8m.c+0 -90 replies
4/12ASoC: SOF: imx: imx8: Bar index is only valid for IRAM and SRAM typessound/soc/sof/imx/imx8.c+8 -12 replies
5/12ASoC: SOF: imx: imx8m: Bar index is only valid for IRAM and SRAM typessound/soc/sof/imx/imx8m.c+8 -10 replies
6/12ASoC: SOF: loader: No need to export snd_sof_fw_parse_ext_data()sound/soc/sof/loader.c sound/soc/sof/sof-priv.h+1 -30 replies
7/12ASoC: SOF: core: Do not use 'bar' as parameter for block_read/writesound/soc/sof/ipc.c sound/soc/sof/loader.c sound/soc/sof/ops.h +2 more+78 -640 replies
8/12ASoC: SOF: debug: Add generic API and ops for DSP regionssound/soc/sof/debug.c sound/soc/sof/ops.h sound/soc/sof/sof-priv.h+43 -100 replies
9/12ASoC: SOF: imx: Provide debugfs_add_region_item ops for coresound/soc/sof/imx/imx8.c sound/soc/sof/imx/imx8m.c+3 -00 replies
10/12ASoC: SOF: Intel: Provide debugfs_add_region_item ops for coresound/soc/sof/intel/apl.c sound/soc/sof/intel/bdw.c sound/soc/sof/intel/byt.c +4 more+8 -00 replies
11/12ASoC: SOF: loader: Use the generic ops for region debugfs handlingsound/soc/sof/loader.c+28 -400 replies
12/12ASoC: SOF: debug: No need to export the snd_sof_debugfs_io_item()sound/soc/sof/debug.c sound/soc/sof/sof-priv.h+4 -90 replies

Reviews trailers per patch

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

PatchGuennadi LiakhovetskiKai VehmanenPierre-Louis BossartRanjani SridharanDaniel BalutaBard Liao
1/12R-b R-b R-b R-b
2/12R-b R-b R-b R-b
3/12R-b R-b R-b
4/12R-b R-b R-b
5/12R-b R-b R-b
6/12R-b R-b R-b
7/12R-b R-b R-b
8/12R-b R-b R-b
9/12R-b R-b R-b
10/12R-b R-b R-b
11/12R-b R-b R-b
12/12R-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 6 reviewers.

Read the v1 thread

Cover letter [PATCH 00/12] ASoC: SOF: Abstract away the 'bar' usage (mostly)

Hi,

The direct use of 'bar' as address regions in SOF can limit portability and makes assumption that all platforms are using memory mapped regions or BARs to communicate with the DSP.

The core API should not use 'bar' in it's parameter lists or make assumption that the platform needs to comply with this system integration.

Use the region type as an ID in core and translate that in platform dependent code to a way to access registers, mailbox or DSP memory.

Regards,
Peter
---
Peter Ujfalusi (12):
ASoC: SOF: Intel: bdw: Set the mailbox offset directly in bdw_probe
ASoC: SOF: ipc: Remove snd_sof_dsp_mailbox_init()
ASoC: SOF: imx: Do not initialize the snd_sof_dsp_ops.read64
ASoC: SOF: imx: imx8: Bar index is only valid for IRAM and SRAM types
ASoC: SOF: imx: imx8m: Bar index is only valid for IRAM and SRAM types
ASoC: SOF: loader: No need to export snd_sof_fw_parse_ext_data()
ASoC: SOF: core: Do not use 'bar' as parameter for block_read/write
ASoC: SOF: debug: Add generic API and ops for DSP regions
ASoC: SOF: imx: Provide debugfs_add_region_item ops for core
ASoC: SOF: Intel: Provide debugfs_add_region_item ops for core
ASoC: SOF: loader: Use the generic ops for region debugfs handling
ASoC: SOF: debug: No need to export the snd_sof_debugfs_io_item()

 sound/soc/sof/debug.c         |  24 ++++--
 sound/soc/sof/imx/imx8.c      |  17 +++--
 sound/soc/sof/imx/imx8m.c     |  13 +++-
 sound/soc/sof/intel/apl.c     |   1 +
 sound/soc/sof/intel/bdw.c     |   5 +-
 sound/soc/sof/intel/byt.c     |   2 +
 sound/soc/sof/intel/cnl.c     |   1 +
 sound/soc/sof/intel/icl.c     |   1 +
 sound/soc/sof/intel/pci-tng.c |   1 +
 sound/soc/sof/intel/tgl.c     |   1 +
 sound/soc/sof/ipc.c           |  34 +++------
 sound/soc/sof/loader.c        | 137 +++++++++++++++-------------------
 sound/soc/sof/ops.h           |  25 +++++--
 sound/soc/sof/sof-priv.h      |  55 +++++++-------
 sound/soc/sof/utils.c         |  28 +++++--
 15 files changed, 187 insertions(+), 158 deletions(-)
Signature · 1 line
2.33.0