* [PATCH] ASoC: Intel: Skylake: Disable clock gating during firmware and library download
@ 2018-01-02 9:29 Guneshwor Singh
2018-01-02 10:44 ` Vinod Koul
2018-01-03 12:12 ` Applied "ASoC: Intel: Skylake: Disable clock gating during firmware and library download" to the asoc tree Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Guneshwor Singh @ 2018-01-02 9:29 UTC (permalink / raw)
To: ALSA, Mark Brown
Cc: Takashi Iwai, Pardha Saradhi K, Guneshwor Singh, Patches Audio,
Liam Girdwood, Vinod Koul, Sanyog Kale
From: Pardha Saradhi K <pardha.saradhi.kesapragada@intel.com>
During firmware and library download, sometimes it is observed that
firmware and library download is timed-out resulting into probe failure.
This patch disables dynamic clock gating while firmware and library
download.
Signed-off-by: Pardha Saradhi K <pardha.saradhi.kesapragada@intel.com>
Signed-off-by: Sanyog Kale <sanyog.r.kale@intel.com>
Signed-off-by: Guneshwor Singh <guneshwor.o.singh@intel.com>
---
sound/soc/intel/skylake/skl-messages.c | 4 ++++
sound/soc/intel/skylake/skl-pcm.c | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/sound/soc/intel/skylake/skl-messages.c b/sound/soc/intel/skylake/skl-messages.c
index 81ee1118ed71..8cbf080c38b3 100644
--- a/sound/soc/intel/skylake/skl-messages.c
+++ b/sound/soc/intel/skylake/skl-messages.c
@@ -417,7 +417,11 @@ int skl_resume_dsp(struct skl *skl)
if (skl->skl_sst->is_first_boot == true)
return 0;
+ /* disable dynamic clock gating during fw and lib download */
+ ctx->enable_miscbdcge(ctx->dev, false);
+
ret = skl_dsp_wake(ctx->dsp);
+ ctx->enable_miscbdcge(ctx->dev, true);
if (ret < 0)
return ret;
diff --git a/sound/soc/intel/skylake/skl-pcm.c b/sound/soc/intel/skylake/skl-pcm.c
index 8d0895b409b5..e46828533826 100644
--- a/sound/soc/intel/skylake/skl-pcm.c
+++ b/sound/soc/intel/skylake/skl-pcm.c
@@ -1343,7 +1343,11 @@ static int skl_platform_soc_probe(struct snd_soc_platform *platform)
return -EIO;
}
+ /* disable dynamic clock gating during fw and lib download */
+ skl->skl_sst->enable_miscbdcge(platform->dev, false);
+
ret = ops->init_fw(platform->dev, skl->skl_sst);
+ skl->skl_sst->enable_miscbdcge(platform->dev, true);
if (ret < 0) {
dev_err(platform->dev, "Failed to boot first fw: %d\n", ret);
return ret;
--
2.15.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] ASoC: Intel: Skylake: Disable clock gating during firmware and library download
2018-01-02 9:29 [PATCH] ASoC: Intel: Skylake: Disable clock gating during firmware and library download Guneshwor Singh
@ 2018-01-02 10:44 ` Vinod Koul
2018-01-03 12:12 ` Applied "ASoC: Intel: Skylake: Disable clock gating during firmware and library download" to the asoc tree Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Vinod Koul @ 2018-01-02 10:44 UTC (permalink / raw)
To: Guneshwor Singh
Cc: ALSA, Takashi Iwai, Pardha Saradhi K, Liam Girdwood,
Patches Audio, Mark Brown, Sanyog Kale
On Tue, Jan 02, 2018 at 02:59:57PM +0530, Guneshwor Singh wrote:
> From: Pardha Saradhi K <pardha.saradhi.kesapragada@intel.com>
>
> During firmware and library download, sometimes it is observed that
> firmware and library download is timed-out resulting into probe failure.
>
> This patch disables dynamic clock gating while firmware and library
> download.
>
> Signed-off-by: Pardha Saradhi K <pardha.saradhi.kesapragada@intel.com>
> Signed-off-by: Sanyog Kale <sanyog.r.kale@intel.com>
> Signed-off-by: Guneshwor Singh <guneshwor.o.singh@intel.com>
Acked-By: Vinod Koul <vinod.koul@intel.com>
> ---
> sound/soc/intel/skylake/skl-messages.c | 4 ++++
> sound/soc/intel/skylake/skl-pcm.c | 4 ++++
> 2 files changed, 8 insertions(+)
>
> diff --git a/sound/soc/intel/skylake/skl-messages.c b/sound/soc/intel/skylake/skl-messages.c
> index 81ee1118ed71..8cbf080c38b3 100644
> --- a/sound/soc/intel/skylake/skl-messages.c
> +++ b/sound/soc/intel/skylake/skl-messages.c
> @@ -417,7 +417,11 @@ int skl_resume_dsp(struct skl *skl)
> if (skl->skl_sst->is_first_boot == true)
> return 0;
>
> + /* disable dynamic clock gating during fw and lib download */
> + ctx->enable_miscbdcge(ctx->dev, false);
> +
> ret = skl_dsp_wake(ctx->dsp);
> + ctx->enable_miscbdcge(ctx->dev, true);
> if (ret < 0)
> return ret;
>
> diff --git a/sound/soc/intel/skylake/skl-pcm.c b/sound/soc/intel/skylake/skl-pcm.c
> index 8d0895b409b5..e46828533826 100644
> --- a/sound/soc/intel/skylake/skl-pcm.c
> +++ b/sound/soc/intel/skylake/skl-pcm.c
> @@ -1343,7 +1343,11 @@ static int skl_platform_soc_probe(struct snd_soc_platform *platform)
> return -EIO;
> }
>
> + /* disable dynamic clock gating during fw and lib download */
> + skl->skl_sst->enable_miscbdcge(platform->dev, false);
> +
> ret = ops->init_fw(platform->dev, skl->skl_sst);
> + skl->skl_sst->enable_miscbdcge(platform->dev, true);
> if (ret < 0) {
> dev_err(platform->dev, "Failed to boot first fw: %d\n", ret);
> return ret;
> --
> 2.15.1
>
--
~Vinod
^ permalink raw reply [flat|nested] 3+ messages in thread* Applied "ASoC: Intel: Skylake: Disable clock gating during firmware and library download" to the asoc tree
2018-01-02 9:29 [PATCH] ASoC: Intel: Skylake: Disable clock gating during firmware and library download Guneshwor Singh
2018-01-02 10:44 ` Vinod Koul
@ 2018-01-03 12:12 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2018-01-03 12:12 UTC (permalink / raw)
To: Pardha Saradhi K
Cc: alsa-devel, Takashi Iwai, Guneshwor Singh, Liam Girdwood,
Patches Audio, Mark Brown, Sanyog Kale, Vinod Koul
The patch
ASoC: Intel: Skylake: Disable clock gating during firmware and library download
has been applied to the asoc tree at
https://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
>From d5cc0a1fcbb5ddbef9fdd4c4a978da3254ddbf37 Mon Sep 17 00:00:00 2001
From: Pardha Saradhi K <pardha.saradhi.kesapragada@intel.com>
Date: Tue, 2 Jan 2018 14:59:57 +0530
Subject: [PATCH] ASoC: Intel: Skylake: Disable clock gating during firmware
and library download
During firmware and library download, sometimes it is observed that
firmware and library download is timed-out resulting into probe failure.
This patch disables dynamic clock gating while firmware and library
download.
Signed-off-by: Pardha Saradhi K <pardha.saradhi.kesapragada@intel.com>
Signed-off-by: Sanyog Kale <sanyog.r.kale@intel.com>
Signed-off-by: Guneshwor Singh <guneshwor.o.singh@intel.com>
Acked-By: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
sound/soc/intel/skylake/skl-messages.c | 4 ++++
sound/soc/intel/skylake/skl-pcm.c | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/sound/soc/intel/skylake/skl-messages.c b/sound/soc/intel/skylake/skl-messages.c
index 4e63213a8d55..933c1fbb222f 100644
--- a/sound/soc/intel/skylake/skl-messages.c
+++ b/sound/soc/intel/skylake/skl-messages.c
@@ -417,7 +417,11 @@ int skl_resume_dsp(struct skl *skl)
if (skl->skl_sst->is_first_boot == true)
return 0;
+ /* disable dynamic clock gating during fw and lib download */
+ ctx->enable_miscbdcge(ctx->dev, false);
+
ret = skl_dsp_wake(ctx->dsp);
+ ctx->enable_miscbdcge(ctx->dev, true);
if (ret < 0)
return ret;
diff --git a/sound/soc/intel/skylake/skl-pcm.c b/sound/soc/intel/skylake/skl-pcm.c
index cc6535ab84d1..b45a9cd5f058 100644
--- a/sound/soc/intel/skylake/skl-pcm.c
+++ b/sound/soc/intel/skylake/skl-pcm.c
@@ -1342,7 +1342,11 @@ static int skl_platform_soc_probe(struct snd_soc_platform *platform)
return -EIO;
}
+ /* disable dynamic clock gating during fw and lib download */
+ skl->skl_sst->enable_miscbdcge(platform->dev, false);
+
ret = ops->init_fw(platform->dev, skl->skl_sst);
+ skl->skl_sst->enable_miscbdcge(platform->dev, true);
if (ret < 0) {
dev_err(platform->dev, "Failed to boot first fw: %d\n", ret);
return ret;
--
2.15.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-01-03 12:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-02 9:29 [PATCH] ASoC: Intel: Skylake: Disable clock gating during firmware and library download Guneshwor Singh
2018-01-02 10:44 ` Vinod Koul
2018-01-03 12:12 ` Applied "ASoC: Intel: Skylake: Disable clock gating during firmware and library download" to the asoc tree Mark Brown
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.