ASoC: Intel: Clenaup SST initialization
Status from this message: NAK.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/35 | ASoC: Intel: Skylake: Put FW runtime params defs in one placesound/ sound/ | +7 | 0 replies | |
| 2/35 | ASoC: Intel: Skylake: Add FIRMWARE_CONFIG IPC requestsound/ sound/ sound/ | +195 | 4 replies | |
| 3/35 | ASoC: Intel: Skylake: Add HARDWARE_CONFIG IPC requestsound/ sound/ sound/ +1 more | +135 | 2 replies | |
| 4/35 | ASoC: Intel: Skylake: Unify firmware loading mechanismsound/ sound/ sound/ +6 more | +40 | 4 replies | |
| 5/35 | ASoC: Intel: Skylake: Reload libraries on D0 entry for CNLsound/ sound/ sound/ | +15 | 0 replies | |
| 6/35 | ASoC: Intel: Skylake: Unhardcode dsp cores numbersound/ sound/ sound/ +2 more | +26 | 0 replies | |
| 7/35 | ASoC: Intel: Skylake: Update interrupt disabling routinesound/ | +2 | 0 replies | |
| 8/35 | ASoC: Intel: Skylake: Inline ipc free operationssound/ sound/ sound/ +5 more | +9 | 0 replies | |
| 9/35 | ASoC: Intel: Skylake: Unify driver cleanup mechanismsound/ sound/ sound/ +4 more | +14 | 0 replies | |
| 10/35 | ASoC: Intel: Relocate irq thread header to sst_opssound/ sound/ sound/ +10 more | +26 | 0 replies | |
| 11/35 | ASoC: Intel: Merge sst_dsp_device into sst_pdatasound/ sound/ sound/ +9 more | +27 | 2 replies | |
| 12/35 | ASoC: Intel: Skylake: Reuse sst_dsp_freesound/ sound/ sound/ | +1 | 2 replies | |
| 13/35 | ASoC: Intel: Skylake: Reuse sst_dsp_newsound/ sound/ sound/ +3 more | +8 | 2 replies | |
| 14/35 | ASoC: Intel: Skylake: Remove skl_dsp_acquire_irqsound/ sound/ | +0 | 0 replies | |
| 15/35 | ASoC: Intel: Skylake: Use dsp loading functions directlysound/ sound/ sound/ +2 more | +33 | 2 replies | |
| 16/35 | ASoC: Intel: Skylake: Make dsp_ops::stream_tag obsoletesound/ sound/ | +12 | 0 replies | |
| 17/35 | ASoC: Intel: Skylake: Remove skl_dsp_loader_opssound/ sound/ sound/ +6 more | +12 | 2 replies | |
| 18/35 | ASoC: Intel: Skylake: Remove window0 sst_addr fieldssound/ sound/ sound/ +3 more | +2 | 2 replies | |
| 19/35 | ASoC: Intel: Skylake: Remove redundant W0 and W1 macrossound/ sound/ sound/ +3 more | +18 | 3 replies | |
| 20/35 | ASoC: Intel: Skylake: Remove redundant SRAM fieldssound/ sound/ sound/ +1 more | +0 | 0 replies | |
| 21/35 | ASoC: Intel: Expose ACPI loading memberssound/ sound/ | +25 | 2 replies | |
| 22/35 | ASoC: Intel: Haswell: Define separate ACPI loadersound/ sound/ sound/ +1 more | +70 | 2 replies | |
| 23/35 | ASoC: Intel: Baytrail: Define separate ACPI loadersound/ sound/ sound/ +3 more | +49 | 1 reply | |
| 24/35 | ASoC: Intel: Refactor probing of ACPI devicessound/ sound/ sound/ +3 more | +82 | 2 replies | |
| 25/35 | ASoC: Intel: Skylake: Simplify skl_sst_ctx_init declarationsound/ sound/ sound/ +3 more | +15 | 0 replies | |
| 26/35 | ASoC: Intel: Skylake: Simplify all sst_dsp_init declarationssound/ sound/ sound/ +4 more | +37 | 0 replies | |
| 27/35 | ASoC: Intel: Skylake: Define platform descriptorssound/ sound/ sound/ +2 more | +46 | 5 replies | |
| 28/35 | ASoC: Intel: Skylake: Update skl_ids tablesound/ | +11 | 1 reply | |
| 29/35 | ASoC: Intel: Skylake: Flip SST initialization ordersound/ sound/ sound/ +5 more | +20 | 4 replies | |
| 30/35 | ASoC: Intel: Reuse sst_pdata::fw_name fieldsound/ sound/ sound/ +3 more | +6 | 2 replies | |
| 31/35 | ASoC: Intel: Reuse sst_pdata::fw fieldsound/ sound/ sound/ | +30 | 0 replies | |
| 32/35 | ASoC: Intel: Skylake: Remove skl_dsp_opssound/ sound/ | +0 | 0 replies | |
| 33/35 | ASoC: Intel: Skylake: Privatize SST init handlerssound/ sound/ sound/ +2 more | +35 | 2 replies | |
| 34/35 | ASoC: Intel: Skylake: Merge skl_sst_ctx_init into skl_init_dspsound/ sound/ sound/ | +15 | 0 replies | |
| 35/35 | ASoC: Intel: Remove obsolete firmware fieldssound/ sound/ sound/ +8 more | +0 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/35] ASoC: Intel: Clenaup SST initialization
This segment targets initialization procedures for all SST drivers. For legacy:
- it concentrates on updating ACPI loader so generic DSP framework is not fed any platform specific data. sst-acpi module ceases to exist and is replaced by hsw-acpi and byt-acpi
For cAVS (Skylake+):
- Repairs what is currently an initialization mess, given the order of invocation of engaged handlers and sheer amount of them.
- provides interface to offload hardware-specifics away from driver
Following is the order of Skylake initialization currently:
- skl_probe
-> schedule skl_probe_work
- skl_first_init
- skl_create
-> skl_init_dsp
--> skl/ bxt/ cnl_sst_dsp_init
---> skl_sst_ctx_init
----> skl_dsp_ctx_init
-----> sst_dsp_new
------> sst_ops::init (invoked but unimplemented!)
Listing all the types engaged together with the naming chosen for the above paints an even darker picture. Code is unreadable and hides initialization for diffenret members is various handlers. Moreover, due to existing ill relationship between skl_dev, sst_dsp and sst_generic_ipc, one must be extra careful when accessing so called "dsp/ thread_context" as they all don't get initialized immediately before object is yield for further processing. However, 100/100 series is nonsense and thus cleanups have been divided into chunks and prioritized.
Code seen here is part of new Skylake fundament, located at the very bottom of internal mainline. Said mainline is tested constantly on at least sigle platform from every cAVS bucket (description below). This week, BDW has been added to the CI family and was essential in validating legacy changes. Baytrail platform is still missing. Changes for BYT directly mirror HSW/ BDW but due to current lack of platform were untested.
Boards engaged in testing: rt286, rt298, rt274.
!!! IMPORTANT !!!
Some upstream FW binaries are not compatible with existing /skylake driver while changes found here (HARDWARE_CONFIG/ FIRMWARE_CONFIG) make use of firmware ability to offload hardware-specifics away from driver. These and more are core part of any cAVS design and are to be implemented and used by host. This too is missing on Linux upstream.
As explanined once, five main FW branches are available:
- kbl, 1.5 cAVS (supports SKL, KBL, KBL-R, ABL, more..)
- apl_auto, 1.5+ cAVS (supports APL, GLK)
- cnl, 1.8 cAVS (supports CNL, CFL, WHL, CML)
- icl, 2.0 cAVS (supports ICL, LKF)
- master, 2.5 cAVS (supports TGL, EHL and everything above)
SKL FW binary existing on upstream is a descendant of old spt branch, obsoleted for 4-5 years now. That FW is a stub, quickly replaced by kbl which is to be used on all 1.5 cAVS platforms.
The same story goes with bxtn binary, a descendant of apl branch, replaced by apl_auto 2-3 years ago. All vendors, entire validation and development is located on apl_auto.
Message: all FW binaries are to be updated as we cannot guarantee these are still functional. Given the fact that all vendors are fed with new binaries on regular basis from all main branches, it's highly probable some scenarios fail with existing FWs. In consequence, linux-firmware patch will be provided with fresh, updated binaries, soon. Once more, please note, we do not support, nor test platforms using obsolete FW binaries. That includes all platforms, not just SKL or APL.
Amadeusz Sławiński (1):
ASoC: Intel: Skylake: Put FW runtime params defs in one place
Cezary Rojewski (34):
ASoC: Intel: Skylake: Add FIRMWARE_CONFIG IPC request
ASoC: Intel: Skylake: Add HARDWARE_CONFIG IPC request
ASoC: Intel: Skylake: Unify firmware loading mechanism
ASoC: Intel: Skylake: Reload libraries on D0 entry for CNL
ASoC: Intel: Skylake: Unhardcode dsp cores number
ASoC: Intel: Skylake: Update interrupt disabling routine
ASoC: Intel: Skylake: Inline ipc free operations
ASoC: Intel: Skylake: Unify driver cleanup mechanism
ASoC: Intel: Relocate irq thread header to sst_ops
ASoC: Intel: Merge sst_dsp_device into sst_pdata
ASoC: Intel: Skylake: Reuse sst_dsp_free
ASoC: Intel: Skylake: Reuse sst_dsp_new
ASoC: Intel: Skylake: Remove skl_dsp_acquire_irq
ASoC: Intel: Skylake: Use dsp loading functions directly
ASoC: Intel: Skylake: Make dsp_ops::stream_tag obsolete
ASoC: Intel: Skylake: Remove skl_dsp_loader_ops
ASoC: Intel: Skylake: Remove window0 sst_addr fields
ASoC: Intel: Skylake: Remove redundant W0 and W1 macros
ASoC: Intel: Skylake: Remove redundant SRAM fields
ASoC: Intel: Expose ACPI loading members
ASoC: Intel: Haswell: Define separate ACPI loader
ASoC: Intel: Baytrail: Define separate ACPI loader
ASoC: Intel: Refactor probing of ACPI devices
ASoC: Intel: Skylake: Simplify skl_sst_ctx_init declaration
ASoC: Intel: Skylake: Simplify all sst_dsp_init declarations
ASoC: Intel: Skylake: Define platform descriptors
ASoC: Intel: Skylake: Update skl_ids table
ASoC: Intel: Skylake: Flip SST initialization order
ASoC: Intel: Reuse sst_pdata::fw_name field
ASoC: Intel: Reuse sst_pdata::fw field
ASoC: Intel: Skylake: Remove skl_dsp_ops
ASoC: Intel: Skylake: Privatize SST init handlers
ASoC: Intel: Skylake: Merge skl_sst_ctx_init into skl_init_dsp
ASoC: Intel: Remove obsolete firmware fields
sound/soc/intel/Kconfig | 14 +- sound/soc/intel/baytrail/Makefile | 2 + sound/soc/intel/baytrail/acpi.c | 64 +++++ sound/soc/intel/baytrail/sst-baytrail-dsp.c | 2 +- sound/soc/intel/baytrail/sst-baytrail-ipc.c | 13 +- sound/soc/intel/baytrail/sst-baytrail-ipc.h | 2 + sound/soc/intel/common/Makefile | 4 +- .../intel/common/soc-acpi-intel-bxt-match.c | 2 - .../intel/common/soc-acpi-intel-byt-match.c | 2 - .../intel/common/soc-acpi-intel-cnl-match.c | 1 - .../intel/common/soc-acpi-intel-glk-match.c | 3 - .../intel/common/soc-acpi-intel-hda-match.c | 2 - .../common/soc-acpi-intel-hsw-bdw-match.c | 4 - .../intel/common/soc-acpi-intel-icl-match.c | 1 - .../intel/common/soc-acpi-intel-kbl-match.c | 12 - .../intel/common/soc-acpi-intel-skl-match.c | 3 - sound/soc/intel/common/sst-acpi.c | 117 +-------- sound/soc/intel/common/sst-dsp-priv.h | 8 +- sound/soc/intel/common/sst-dsp.h | 37 +-- sound/soc/intel/common/sst-firmware.c | 13 +- sound/soc/intel/haswell/Makefile | 2 + sound/soc/intel/haswell/acpi.c | 78 ++++++ sound/soc/intel/haswell/sst-haswell-dsp.c | 1 + sound/soc/intel/haswell/sst-haswell-ipc.c | 13 +- sound/soc/intel/haswell/sst-haswell-ipc.h | 2 + sound/soc/intel/skylake/bxt-sst.c | 143 ++++------- sound/soc/intel/skylake/cnl-sst-dsp.c | 13 +- sound/soc/intel/skylake/cnl-sst-dsp.h | 15 +- sound/soc/intel/skylake/cnl-sst.c | 142 ++++------- sound/soc/intel/skylake/skl-debug.c | 2 +- sound/soc/intel/skylake/skl-messages.c | 194 ++------------ sound/soc/intel/skylake/skl-pcm.c | 22 +- sound/soc/intel/skylake/skl-sst-cldma.c | 10 +- sound/soc/intel/skylake/skl-sst-dsp.c | 79 ++---- sound/soc/intel/skylake/skl-sst-dsp.h | 55 ++-- sound/soc/intel/skylake/skl-sst-ipc.c | 238 ++++++++++++++++-- sound/soc/intel/skylake/skl-sst-ipc.h | 124 ++++++++- sound/soc/intel/skylake/skl-sst-utils.c | 28 +-- sound/soc/intel/skylake/skl-sst.c | 150 ++++++----- sound/soc/intel/skylake/skl.c | 65 +++-- sound/soc/intel/skylake/skl.h | 26 +- 41 files changed, 877 insertions(+), 831 deletions(-) create mode 100644 sound/soc/intel/baytrail/acpi.c create mode 100644 sound/soc/intel/haswell/acpi.c
Signature · 6 lines
2.17.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel