ASoC: Intel: Skylake - Add IPC routines
Subsystems (3)
v3 cover ASoC: Intel: Skylake - Add IPC routines
The SKL aDSP needs to send and receive IPCs to and from aDSP. To aid this we add IPC and aDSP management routines as a library for driver to use. For most of IPC handling we use the common IPC Intel code in place and add the messaging and message parsing bits on top.
First 2 patches are against common IPC code and can be applied independently Last two add IPC handling and aDSP management routines
v3 changes:
- sst_dsp_register_poll uses opportunistic polling and polls for first few instances using mdelay and later sleeps
- s/skl_ipc_reply_find_msg/skl_ipc_reply_get_msg
- return IRQ_NONE when interrupt in not handled
- removed trace_printk and superfluous cast to/from void *
Subhransu S. Prusty (4):
ASoC: Intel: Add helper to poll register for DSP status
ASoC: Intel: Add helper to update register bits with attr RWC
ASoC: Intel: Add Skylake IPC library
ASoC: Intel: Add DSP init and boot up functionality for SKL
sound/soc/intel/Kconfig | 1 + sound/soc/intel/common/sst-dsp-priv.h | 8 + sound/soc/intel/common/sst-dsp.c | 71 ++++ sound/soc/intel/common/sst-dsp.h | 6 + sound/soc/intel/skylake/Makefile | 5 + sound/soc/intel/skylake/skl-sst-dsp.c | 337 +++++++++++++++ sound/soc/intel/skylake/skl-sst-dsp.h | 57 +++ sound/soc/intel/skylake/skl-sst-ipc.c | 760 ++++++++++++++++++++++++++++++++++ sound/soc/intel/skylake/skl-sst-ipc.h | 125 ++++++ 9 files changed, 1370 insertions(+) create mode 100644 sound/soc/intel/skylake/skl-sst-dsp.c create mode 100644 sound/soc/intel/skylake/skl-sst-ipc.c create mode 100644 sound/soc/intel/skylake/skl-sst-ipc.h
Signature · 1 line
1.9.1
PATCH v3 1/4 ASoC: Intel: Add helper to poll register for DSP status
From: "Subhransu S. Prusty" <[email protected]>
This patch adds helper to poll register for DSP status.
--- sound/soc/intel/common/sst-dsp.c | 43 ++++++++++++++++++++++++++++++++++++++++ sound/soc/intel/common/sst-dsp.h | 2 ++ 2 files changed, 45 insertions(+)
sound/soc/intel/common/sst-dsp.c +43 -0
@@ -20,6 +20,7 @@#include <linux/module.h> #include <linux/platform_device.h> #include <linux/io.h> +#include <linux/delay.h> #include "sst-dsp.h" #include "sst-dsp-priv.h"
@@ -222,6 +223,48 @@ int sst_dsp_shim_update_bits64(struct sst_dsp *sst, u32 offset, }EXPORT_SYMBOL_GPL (sst_dsp_shim_update_bits64); +int sst_dsp_register_poll (struct sst_dsp *ctx,u32 offset,u32 mask, +u32 target,u32 timeout,char *operation) +{ +int time, ret; +u32 reg; +bool done = false; + +/* +* we will poll for couple of ms using mdelay, if not successful +* then go to longer sleep using usleep_range +*/ + +/* check if set state successful */ +for (time =0 ; time <5 ; time++) { +if ((sst_dsp_shim_read_unlocked (ctx, offset) & mask) == target) { + done = true; +break ; + } +mdelay (1 ); + } + +if (done == false) { +/* sleeping in 10ms steps so adjust timeout value */ + timeout /=10 ; + +for (time =0 ; time < timeout; time++) { +if ((sst_dsp_shim_read_unlocked (ctx, offset) & mask) == target) +break ; + +usleep_range (5000 ,10000 ); + } + } + + reg =sst_dsp_shim_read_unlocked (ctx, offset); +dev_info (ctx->dev,"FW Poll Status: reg=%#x %s %s\n" , reg, operation, + (time < timeout) ?"successful" :"timedout" ); + ret = time < timeout ?0 : -ETIME ; + +return ret; +} +EXPORT_SYMBOL_GPL (sst_dsp_register_poll); +void sst_dsp_dump (struct sst_dsp *sst) {if (sst->ops->dump)
sound/soc/intel/common/sst-dsp.h +2 -0
@@ -278,6 +278,8 @@ void sst_dsp_inbox_read(struct sst_dsp *dsp, void *message, size_t bytes);void sst_dsp_outbox_write (struct sst_dsp *dsp,void *message,size_t bytes);void sst_dsp_outbox_read (struct sst_dsp *dsp,void *message,size_t bytes);void sst_dsp_mailbox_dump (struct sst_dsp *dsp,size_t bytes); +int sst_dsp_register_poll (struct sst_dsp *dsp,u32 offset,u32 mask, +u32 expected_value,u32 timeout,char *operation);/* Debug */ void sst_dsp_dump (struct sst_dsp *sst);
Signature · 1 line
1.9.1
Mark Brown
maintainerApplied "ASoC: Intel: Add helper to poll register for DSP status" to the asoc tree
The patch
ASoC: Intel: Add helper to poll register for DSP status
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
7a2c52b61fd71eddda3385006962630444d15b9eMon Sep 17 00:00:00 2001
From: "Subhransu S. Prusty" <[email protected]>
Date: Thu, 9 Jul 2015 21:38:52 +0530
Subject: [PATCH] ASoC: Intel: Add helper to poll register for DSP status
This patch adds helper to poll register for DSP status.
--- sound/soc/intel/common/sst-dsp.c | 43 ++++++++++++++++++++++++++++++++++++++++ sound/soc/intel/common/sst-dsp.h | 2 ++ 2 files changed, 45 insertions(+)
sound/soc/intel/common/sst-dsp.c +43 -0
@@ -20,6 +20,7 @@#include <linux/module.h> #include <linux/platform_device.h> #include <linux/io.h> +#include <linux/delay.h> #include "sst-dsp.h" #include "sst-dsp-priv.h"
@@ -222,6 +223,48 @@ int sst_dsp_shim_update_bits64(struct sst_dsp *sst, u32 offset, }EXPORT_SYMBOL_GPL (sst_dsp_shim_update_bits64); +int sst_dsp_register_poll (struct sst_dsp *ctx,u32 offset,u32 mask, +u32 target,u32 timeout,char *operation) +{ +int time, ret; +u32 reg; +bool done = false; + +/* +* we will poll for couple of ms using mdelay, if not successful +* then go to longer sleep using usleep_range +*/ + +/* check if set state successful */ +for (time =0 ; time <5 ; time++) { +if ((sst_dsp_shim_read_unlocked (ctx, offset) & mask) == target) { + done = true; +break ; + } +mdelay (1 ); + } + +if (done == false) { +/* sleeping in 10ms steps so adjust timeout value */ + timeout /=10 ; + +for (time =0 ; time < timeout; time++) { +if ((sst_dsp_shim_read_unlocked (ctx, offset) & mask) == target) +break ; + +usleep_range (5000 ,10000 ); + } + } + + reg =sst_dsp_shim_read_unlocked (ctx, offset); +dev_info (ctx->dev,"FW Poll Status: reg=%#x %s %s\n" , reg, operation, + (time < timeout) ?"successful" :"timedout" ); + ret = time < timeout ?0 : -ETIME ; + +return ret; +} +EXPORT_SYMBOL_GPL (sst_dsp_register_poll); +void sst_dsp_dump (struct sst_dsp *sst) {if (sst->ops->dump)
sound/soc/intel/common/sst-dsp.h +2 -0
@@ -278,6 +278,8 @@ void sst_dsp_inbox_read(struct sst_dsp *dsp, void *message, size_t bytes);void sst_dsp_outbox_write (struct sst_dsp *dsp,void *message,size_t bytes);void sst_dsp_outbox_read (struct sst_dsp *dsp,void *message,size_t bytes);void sst_dsp_mailbox_dump (struct sst_dsp *dsp,size_t bytes); +int sst_dsp_register_poll (struct sst_dsp *dsp,u32 offset,u32 mask, +u32 expected_value,u32 timeout,char *operation);/* Debug */ void sst_dsp_dump (struct sst_dsp *sst);
Signature · 1 line
2.1.4
PATCH v3 2/4 ASoC: Intel: Add helper to update register bits with attr RWC
In reply to Vinod KoulFrom: "Subhransu S. Prusty" <[email protected]>
For SKL IPC, we have some register bits with attribute RWC. So we need to force update them. Add helper to force update this type of registers bits.
--- sound/soc/intel/common/sst-dsp.c | 28 ++++++++++++++++++++++++++++ sound/soc/intel/common/sst-dsp.h | 4 ++++ 2 files changed, 32 insertions(+)
sound/soc/intel/common/sst-dsp.c +28 -0
@@ -197,6 +197,22 @@ int sst_dsp_shim_update_bits64_unlocked(struct sst_dsp *sst, u32 offset, }EXPORT_SYMBOL_GPL (sst_dsp_shim_update_bits64_unlocked); +/* This is for registers bits with attribute RWC */ +void sst_dsp_shim_update_bits_forced_unlocked (struct sst_dsp *sst,u32 offset, +u32 mask,u32 value) +{ +unsigned int old, new; +u32 ret; + + ret =sst_dsp_shim_read_unlocked (sst, offset); + + old = ret; + new = (old & (~mask)) | (value & mask); + +sst_dsp_shim_write_unlocked (sst, offset, new); +} +EXPORT_SYMBOL_GPL (sst_dsp_shim_update_bits_forced_unlocked); +int sst_dsp_shim_update_bits (struct sst_dsp *sst,u32 offset,u32 mask,u32 value) {
@@ -223,6 +239,18 @@ int sst_dsp_shim_update_bits64(struct sst_dsp *sst, u32 offset, }EXPORT_SYMBOL_GPL (sst_dsp_shim_update_bits64); +/* This is for registers bits with attribute RWC */ +void sst_dsp_shim_update_bits_forced (struct sst_dsp *sst,u32 offset, +u32 mask,u32 value) +{ +unsigned long flags; + +spin_lock_irqsave (&sst->spinlock, flags); +sst_dsp_shim_update_bits_forced_unlocked (sst, offset, mask, value); +spin_unlock_irqrestore (&sst->spinlock, flags); +} +EXPORT_SYMBOL_GPL (sst_dsp_shim_update_bits_forced); +int sst_dsp_register_poll (struct sst_dsp *ctx,u32 offset,u32 mask,u32 target,u32 timeout,char *operation) {
sound/soc/intel/common/sst-dsp.h +4 -0
@@ -230,6 +230,8 @@ void sst_dsp_shim_write64(struct sst_dsp *sst, u32 offset, u64 value);u64 sst_dsp_shim_read64 (struct sst_dsp *sst,u32 offset);int sst_dsp_shim_update_bits64 (struct sst_dsp *sst,u32 offset,u64 mask,u64 value); +void sst_dsp_shim_update_bits_forced (struct sst_dsp *sst,u32 offset, +u32 mask,u32 value);/* SHIM Read / Write Unlocked for callers already holding sst lock */ void sst_dsp_shim_write_unlocked (struct sst_dsp *sst,u32 offset,u32 value);
@@ -240,6 +242,8 @@ void sst_dsp_shim_write64_unlocked(struct sst_dsp *sst, u32 offset, u64 value);u64 sst_dsp_shim_read64_unlocked (struct sst_dsp *sst,u32 offset);int sst_dsp_shim_update_bits64_unlocked (struct sst_dsp *sst,u32 offset,u64 mask,u64 value); +void sst_dsp_shim_update_bits_forced_unlocked (struct sst_dsp *sst,u32 offset, +u32 mask,u32 value);/* Internal generic low-level SST IO functions - can be overidden */ void sst_shim32_write (void __iomem *addr,u32 offset,u32 value);
Signature · 1 line
1.9.1
Mark Brown
maintainerApplied "ASoC: Intel: Add helper to update register bits with attr RWC" to the asoc tree
The patch
ASoC: Intel: Add helper to update register bits with attr RWC
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
d15b1ae17c79f682760483b56074e980720f52ebMon Sep 17 00:00:00 2001
From: "Subhransu S. Prusty" <[email protected]>
Date: Thu, 9 Jul 2015 21:38:53 +0530
Subject: [PATCH] ASoC: Intel: Add helper to update register bits with attr RWC
For SKL IPC, we have some register bits with attribute RWC. So we need to force update them. Add helper to force update this type of registers bits.
--- sound/soc/intel/common/sst-dsp.c | 28 ++++++++++++++++++++++++++++ sound/soc/intel/common/sst-dsp.h | 4 ++++ 2 files changed, 32 insertions(+)
sound/soc/intel/common/sst-dsp.c +28 -0
@@ -197,6 +197,22 @@ int sst_dsp_shim_update_bits64_unlocked(struct sst_dsp *sst, u32 offset, }EXPORT_SYMBOL_GPL (sst_dsp_shim_update_bits64_unlocked); +/* This is for registers bits with attribute RWC */ +void sst_dsp_shim_update_bits_forced_unlocked (struct sst_dsp *sst,u32 offset, +u32 mask,u32 value) +{ +unsigned int old, new; +u32 ret; + + ret =sst_dsp_shim_read_unlocked (sst, offset); + + old = ret; + new = (old & (~mask)) | (value & mask); + +sst_dsp_shim_write_unlocked (sst, offset, new); +} +EXPORT_SYMBOL_GPL (sst_dsp_shim_update_bits_forced_unlocked); +int sst_dsp_shim_update_bits (struct sst_dsp *sst,u32 offset,u32 mask,u32 value) {
@@ -223,6 +239,18 @@ int sst_dsp_shim_update_bits64(struct sst_dsp *sst, u32 offset, }EXPORT_SYMBOL_GPL (sst_dsp_shim_update_bits64); +/* This is for registers bits with attribute RWC */ +void sst_dsp_shim_update_bits_forced (struct sst_dsp *sst,u32 offset, +u32 mask,u32 value) +{ +unsigned long flags; + +spin_lock_irqsave (&sst->spinlock, flags); +sst_dsp_shim_update_bits_forced_unlocked (sst, offset, mask, value); +spin_unlock_irqrestore (&sst->spinlock, flags); +} +EXPORT_SYMBOL_GPL (sst_dsp_shim_update_bits_forced); +int sst_dsp_register_poll (struct sst_dsp *ctx,u32 offset,u32 mask,u32 target,u32 timeout,char *operation) {
sound/soc/intel/common/sst-dsp.h +4 -0
@@ -230,6 +230,8 @@ void sst_dsp_shim_write64(struct sst_dsp *sst, u32 offset, u64 value);u64 sst_dsp_shim_read64 (struct sst_dsp *sst,u32 offset);int sst_dsp_shim_update_bits64 (struct sst_dsp *sst,u32 offset,u64 mask,u64 value); +void sst_dsp_shim_update_bits_forced (struct sst_dsp *sst,u32 offset, +u32 mask,u32 value);/* SHIM Read / Write Unlocked for callers already holding sst lock */ void sst_dsp_shim_write_unlocked (struct sst_dsp *sst,u32 offset,u32 value);
@@ -240,6 +242,8 @@ void sst_dsp_shim_write64_unlocked(struct sst_dsp *sst, u32 offset, u64 value);u64 sst_dsp_shim_read64_unlocked (struct sst_dsp *sst,u32 offset);int sst_dsp_shim_update_bits64_unlocked (struct sst_dsp *sst,u32 offset,u64 mask,u64 value); +void sst_dsp_shim_update_bits_forced_unlocked (struct sst_dsp *sst,u32 offset, +u32 mask,u32 value);/* Internal generic low-level SST IO functions - can be overidden */ void sst_shim32_write (void __iomem *addr,u32 offset,u32 value);
Signature · 1 line
2.1.4
PATCH v3 3/4 ASoC: Intel: Add Skylake IPC library
In reply to Vinod KoulFrom: "Subhransu S. Prusty" <[email protected]>
This adds base SKL IPC library which uses common SST IPC lib. Here we add definition for IPC types, sending and receiving IPC messages from aDSP, handling interrupt, sending different types of messages etc
--- sound/soc/intel/Kconfig | 1 + sound/soc/intel/common/sst-dsp-priv.h | 4 + sound/soc/intel/skylake/Makefile | 5 + sound/soc/intel/skylake/skl-sst-ipc.c | 760 ++++++++++++++++++++++++++++++++++ sound/soc/intel/skylake/skl-sst-ipc.h | 125 ++++++ 5 files changed, 895 insertions(+) create mode 100644 sound/soc/intel/skylake/skl-sst-ipc.c create mode 100644 sound/soc/intel/skylake/skl-sst-ipc.h
sound/soc/intel/Kconfig +1 -0
@@ -138,3 +138,4 @@ config SND_SOC_INTEL_CHT_BSW_MAX98090_TI_MACH config SND_SOC_INTEL_SKYLAKE tristate select SND_HDA_EXT_CORE + select SND_SOC_INTEL_SST
sound/soc/intel/common/sst-dsp-priv.h +4 -0
@@ -303,6 +303,10 @@ struct sst_dsp {/* DMA FW loading */ struct sst_dma *dma;bool fw_use_dma; + +/* SKL data */ + +u32 intr_status; };/* Size optimised DRAM/IRAM memcpy */
sound/soc/intel/skylake/Makefile +5 -0
@@ -1,3 +1,8 @@ snd-soc-skl-objs := skl.o skl-pcm.o obj-$(CONFIG_SND_SOC_INTEL_SKYLAKE) += snd-soc-skl.o + +# Skylake IPC Support +snd-soc-skl-ipc-objs := skl-sst-ipc.o + +obj-$(CONFIG_SND_SOC_INTEL_SKYLAKE) += snd-soc-skl-ipc.o
sound/soc/intel/skylake/skl-sst-ipc.c new file +760 -0
760 lines not on this page · raw message
sound/soc/intel/skylake/skl-sst-ipc.h new file +125 -0
125 lines not on this page · raw message
Signature · 1 line
1.9.1
Mark Brown
maintainerApplied "ASoC: Intel: Add Skylake IPC library" to the asoc tree
The patch
ASoC: Intel: Add Skylake IPC library
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
b81fd26359f04370f3c972652302717498f8790cMon Sep 17 00:00:00 2001
From: "Subhransu S. Prusty" <[email protected]>
Date: Thu, 9 Jul 2015 21:38:54 +0530
Subject: [PATCH] ASoC: Intel: Add Skylake IPC library
This adds base SKL IPC library which uses common SST IPC lib. Here we add definition for IPC types, sending and receiving IPC messages from aDSP, handling interrupt, sending different types of messages etc
--- sound/soc/intel/Kconfig | 1 + sound/soc/intel/common/sst-dsp-priv.h | 4 + sound/soc/intel/skylake/Makefile | 5 + sound/soc/intel/skylake/skl-sst-ipc.c | 760 ++++++++++++++++++++++++++++++++++ sound/soc/intel/skylake/skl-sst-ipc.h | 125 ++++++ 5 files changed, 895 insertions(+) create mode 100644 sound/soc/intel/skylake/skl-sst-ipc.c create mode 100644 sound/soc/intel/skylake/skl-sst-ipc.h
sound/soc/intel/Kconfig +1 -0
@@ -138,3 +138,4 @@ config SND_SOC_INTEL_CHT_BSW_MAX98090_TI_MACH config SND_SOC_INTEL_SKYLAKE tristate select SND_HDA_EXT_CORE + select SND_SOC_INTEL_SST
sound/soc/intel/common/sst-dsp-priv.h +4 -0
@@ -303,6 +303,10 @@ struct sst_dsp {/* DMA FW loading */ struct sst_dma *dma;bool fw_use_dma; + +/* SKL data */ + +u32 intr_status; };/* Size optimised DRAM/IRAM memcpy */
sound/soc/intel/skylake/Makefile +5 -0
@@ -1,3 +1,8 @@ snd-soc-skl-objs := skl.o skl-pcm.o obj-$(CONFIG_SND_SOC_INTEL_SKYLAKE) += snd-soc-skl.o + +# Skylake IPC Support +snd-soc-skl-ipc-objs := skl-sst-ipc.o + +obj-$(CONFIG_SND_SOC_INTEL_SKYLAKE) += snd-soc-skl-ipc.o
sound/soc/intel/skylake/skl-sst-ipc.c new file +760 -0
760 lines not on this page · raw message
sound/soc/intel/skylake/skl-sst-ipc.h new file +125 -0
125 lines not on this page · raw message
Signature · 1 line
2.1.4
PATCH v3 4/4 ASoC: Intel: Add DSP init and boot up functionality for SKL
In reply to Vinod KoulFrom: "Subhransu S. Prusty" <[email protected]>
This patch adds code to enable, disable and boot DSP core. Also provide some helpers to reset and power up/down the core.
--- sound/soc/intel/common/sst-dsp-priv.h | 4 + sound/soc/intel/skylake/Makefile | 2 +- sound/soc/intel/skylake/skl-sst-dsp.c | 337 ++++++++++++++++++++++++++++++++++ sound/soc/intel/skylake/skl-sst-dsp.h | 57 ++++++ 4 files changed, 399 insertions(+), 1 deletion(-) create mode 100644 sound/soc/intel/skylake/skl-sst-dsp.c
sound/soc/intel/common/sst-dsp-priv.h +4 -0
@@ -22,6 +22,8 @@#include <linux/interrupt.h> #include <linux/firmware.h> +#include "../skylake/skl-sst-dsp.h" +struct sst_mem_block ;struct sst_module ;struct sst_fw ;
@@ -306,6 +308,8 @@ struct sst_dsp {/* SKL data */ +struct skl_dsp_fw_ops fw_ops; +int sst_state;u32 intr_status; };
sound/soc/intel/skylake/Makefile +1 -1
@@ -3,6 +3,6 @@ snd-soc-skl-objs := skl.o skl-pcm.o obj-$(CONFIG_SND_SOC_INTEL_SKYLAKE) += snd-soc-skl.o # Skylake IPC Support -snd-soc-skl-ipc-objs := skl-sst-ipc.o +snd-soc-skl-ipc-objs := skl-sst-ipc.o skl-sst-dsp.o obj-$(CONFIG_SND_SOC_INTEL_SKYLAKE) += snd-soc-skl-ipc.o
sound/soc/intel/skylake/skl-sst-dsp.c new file +337 -0
337 lines not on this page · raw message
sound/soc/intel/skylake/skl-sst-dsp.h +57 -0
67 lines not on this page · raw message
Signature · 1 line
1.9.1
Mark Brown
maintainerApplied "ASoC: Intel: Add DSP init and boot up functionality for SKL" to the asoc tree
The patch
ASoC: Intel: Add DSP init and boot up functionality for SKL
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
e973e31a02c32fc830986e62f82e69934134f5ceMon Sep 17 00:00:00 2001
From: "Subhransu S. Prusty" <[email protected]>
Date: Thu, 9 Jul 2015 21:38:55 +0530
Subject: [PATCH] ASoC: Intel: Add DSP init and boot up functionality for SKL
This patch adds code to enable, disable and boot DSP core. Also provide some helpers to reset and power up/down the core.
--- sound/soc/intel/common/sst-dsp-priv.h | 4 + sound/soc/intel/skylake/Makefile | 2 +- sound/soc/intel/skylake/skl-sst-dsp.c | 337 ++++++++++++++++++++++++++++++++++ sound/soc/intel/skylake/skl-sst-dsp.h | 57 ++++++ 4 files changed, 399 insertions(+), 1 deletion(-) create mode 100644 sound/soc/intel/skylake/skl-sst-dsp.c
sound/soc/intel/common/sst-dsp-priv.h +4 -0
@@ -22,6 +22,8 @@#include <linux/interrupt.h> #include <linux/firmware.h> +#include "../skylake/skl-sst-dsp.h" +struct sst_mem_block ;struct sst_module ;struct sst_fw ;
@@ -306,6 +308,8 @@ struct sst_dsp {/* SKL data */ +struct skl_dsp_fw_ops fw_ops; +int sst_state;u32 intr_status; };
sound/soc/intel/skylake/Makefile +1 -1
@@ -3,6 +3,6 @@ snd-soc-skl-objs := skl.o skl-pcm.o obj-$(CONFIG_SND_SOC_INTEL_SKYLAKE) += snd-soc-skl.o # Skylake IPC Support -snd-soc-skl-ipc-objs := skl-sst-ipc.o +snd-soc-skl-ipc-objs := skl-sst-ipc.o skl-sst-dsp.o obj-$(CONFIG_SND_SOC_INTEL_SKYLAKE) += snd-soc-skl-ipc.o
sound/soc/intel/skylake/skl-sst-dsp.c new file +337 -0
337 lines not on this page · raw message
sound/soc/intel/skylake/skl-sst-dsp.h +57 -0
67 lines not on this page · raw message
Signature · 1 line
2.1.4