* [PATCH v3] ASoC: SOF: Intel: hda: Clear RIRB status before reading WP
@ 2020-06-12 10:50 ` Brent Lu
0 siblings, 0 replies; 10+ messages in thread
From: Brent Lu @ 2020-06-12 10:50 UTC (permalink / raw)
To: alsa-devel
Cc: Cezary Rojewski, linux-kernel, Kai Vehmanen, Liam Girdwood,
Bard Liao, Takashi Iwai, Keyon Jie, Ranjani Sridharan,
Pierre-Louis Bossart, Mark Brown, Daniel Baluta, Zhu Yingjiang,
Brent Lu, sound-open-firmware
Port commit 6d011d5057ff ("ALSA: hda: Clear RIRB status before reading
WP") from legacy HDA driver to fix the get response timeout issue.
Current SOF driver does not suffer from this issue because sync write
is enabled in hda_init. The issue will come back if the sync write is
disabled for some reason.
Signed-off-by: Brent Lu <brent.lu@intel.com>
---
sound/soc/sof/intel/hda-stream.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/sound/soc/sof/intel/hda-stream.c b/sound/soc/sof/intel/hda-stream.c
index 7f65dcc..1bda14c 100644
--- a/sound/soc/sof/intel/hda-stream.c
+++ b/sound/soc/sof/intel/hda-stream.c
@@ -653,11 +653,16 @@ irqreturn_t hda_dsp_stream_threaded_handler(int irq, void *context)
if (status & AZX_INT_CTRL_EN) {
rirb_status = snd_hdac_chip_readb(bus, RIRBSTS);
if (rirb_status & RIRB_INT_MASK) {
+ /*
+ * Clearing the interrupt status here ensures
+ * that no interrupt gets masked after the RIRB
+ * wp is read in snd_hdac_bus_update_rirb.
+ */
+ snd_hdac_chip_writeb(bus, RIRBSTS,
+ RIRB_INT_MASK);
active = true;
if (rirb_status & RIRB_INT_RESPONSE)
snd_hdac_bus_update_rirb(bus);
- snd_hdac_chip_writeb(bus, RIRBSTS,
- RIRB_INT_MASK);
}
}
#endif
--
2.7.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v3] ASoC: SOF: Intel: hda: Clear RIRB status before reading WP
@ 2020-06-12 10:50 ` Brent Lu
0 siblings, 0 replies; 10+ messages in thread
From: Brent Lu @ 2020-06-12 10:50 UTC (permalink / raw)
To: alsa-devel
Cc: Pierre-Louis Bossart, Liam Girdwood, Ranjani Sridharan,
Kai Vehmanen, Daniel Baluta, Mark Brown, Jaroslav Kysela,
Takashi Iwai, Cezary Rojewski, Zhu Yingjiang, Keyon Jie, Brent Lu,
Bard Liao, sound-open-firmware, linux-kernel
Port commit 6d011d5057ff ("ALSA: hda: Clear RIRB status before reading
WP") from legacy HDA driver to fix the get response timeout issue.
Current SOF driver does not suffer from this issue because sync write
is enabled in hda_init. The issue will come back if the sync write is
disabled for some reason.
Signed-off-by: Brent Lu <brent.lu@intel.com>
---
sound/soc/sof/intel/hda-stream.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/sound/soc/sof/intel/hda-stream.c b/sound/soc/sof/intel/hda-stream.c
index 7f65dcc..1bda14c 100644
--- a/sound/soc/sof/intel/hda-stream.c
+++ b/sound/soc/sof/intel/hda-stream.c
@@ -653,11 +653,16 @@ irqreturn_t hda_dsp_stream_threaded_handler(int irq, void *context)
if (status & AZX_INT_CTRL_EN) {
rirb_status = snd_hdac_chip_readb(bus, RIRBSTS);
if (rirb_status & RIRB_INT_MASK) {
+ /*
+ * Clearing the interrupt status here ensures
+ * that no interrupt gets masked after the RIRB
+ * wp is read in snd_hdac_bus_update_rirb.
+ */
+ snd_hdac_chip_writeb(bus, RIRBSTS,
+ RIRB_INT_MASK);
active = true;
if (rirb_status & RIRB_INT_RESPONSE)
snd_hdac_bus_update_rirb(bus);
- snd_hdac_chip_writeb(bus, RIRBSTS,
- RIRB_INT_MASK);
}
}
#endif
--
2.7.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH v3] ASoC: SOF: Intel: hda: Clear RIRB status before reading WP
2020-06-12 10:50 ` Brent Lu
@ 2020-06-12 11:01 ` Takashi Iwai
-1 siblings, 0 replies; 10+ messages in thread
From: Takashi Iwai @ 2020-06-12 11:01 UTC (permalink / raw)
To: Brent Lu
Cc: alsa-devel, Kai Vehmanen, Liam Girdwood, Bard Liao,
Cezary Rojewski, Takashi Iwai, Keyon Jie, Ranjani Sridharan,
Pierre-Louis Bossart, Mark Brown, Daniel Baluta, Zhu Yingjiang,
linux-kernel, sound-open-firmware
On Fri, 12 Jun 2020 12:50:48 +0200,
Brent Lu wrote:
>
> Port commit 6d011d5057ff ("ALSA: hda: Clear RIRB status before reading
> WP") from legacy HDA driver to fix the get response timeout issue.
> Current SOF driver does not suffer from this issue because sync write
> is enabled in hda_init. The issue will come back if the sync write is
> disabled for some reason.
>
> Signed-off-by: Brent Lu <brent.lu@intel.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Thanks!
Takashi
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v3] ASoC: SOF: Intel: hda: Clear RIRB status before reading WP
@ 2020-06-12 11:01 ` Takashi Iwai
0 siblings, 0 replies; 10+ messages in thread
From: Takashi Iwai @ 2020-06-12 11:01 UTC (permalink / raw)
To: Brent Lu
Cc: alsa-devel, Pierre-Louis Bossart, Liam Girdwood,
Ranjani Sridharan, Kai Vehmanen, Daniel Baluta, Mark Brown,
Jaroslav Kysela, Takashi Iwai, Cezary Rojewski, Zhu Yingjiang,
Keyon Jie, Bard Liao, sound-open-firmware, linux-kernel
On Fri, 12 Jun 2020 12:50:48 +0200,
Brent Lu wrote:
>
> Port commit 6d011d5057ff ("ALSA: hda: Clear RIRB status before reading
> WP") from legacy HDA driver to fix the get response timeout issue.
> Current SOF driver does not suffer from this issue because sync write
> is enabled in hda_init. The issue will come back if the sync write is
> disabled for some reason.
>
> Signed-off-by: Brent Lu <brent.lu@intel.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Thanks!
Takashi
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v3] ASoC: SOF: Intel: hda: Clear RIRB status before reading WP
2020-06-12 11:01 ` Takashi Iwai
@ 2020-06-12 12:24 ` Kai Vehmanen
-1 siblings, 0 replies; 10+ messages in thread
From: Kai Vehmanen @ 2020-06-12 12:24 UTC (permalink / raw)
To: Takashi Iwai
Cc: Pierre-Louis Bossart, alsa-devel, Kai Vehmanen, Bard Liao,
Cezary Rojewski, Takashi Iwai, Keyon Jie, Liam Girdwood,
Ranjani Sridharan, Mark Brown, Zhu Yingjiang, Daniel Baluta,
Brent Lu, linux-kernel, sound-open-firmware
Hey Brent,
On Fri, 12 Jun 2020, Takashi Iwai wrote:
> On Fri, 12 Jun 2020 12:50:48 +0200, Brent Lu wrote:
> >
> > Port commit 6d011d5057ff ("ALSA: hda: Clear RIRB status before reading
> > WP") from legacy HDA driver to fix the get response timeout issue.
> > Current SOF driver does not suffer from this issue because sync write
> > is enabled in hda_init. The issue will come back if the sync write is
> > disabled for some reason.
> >
> > Signed-off-by: Brent Lu <brent.lu@intel.com>
>
> Reviewed-by: Takashi Iwai <tiwai@suse.de>
thanks, looks good now:
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v3] ASoC: SOF: Intel: hda: Clear RIRB status before reading WP
@ 2020-06-12 12:24 ` Kai Vehmanen
0 siblings, 0 replies; 10+ messages in thread
From: Kai Vehmanen @ 2020-06-12 12:24 UTC (permalink / raw)
To: Takashi Iwai
Cc: Brent Lu, alsa-devel, Pierre-Louis Bossart, Liam Girdwood,
Ranjani Sridharan, Kai Vehmanen, Daniel Baluta, Mark Brown,
Jaroslav Kysela, Takashi Iwai, Cezary Rojewski, Zhu Yingjiang,
Keyon Jie, Bard Liao, sound-open-firmware, linux-kernel
Hey Brent,
On Fri, 12 Jun 2020, Takashi Iwai wrote:
> On Fri, 12 Jun 2020 12:50:48 +0200, Brent Lu wrote:
> >
> > Port commit 6d011d5057ff ("ALSA: hda: Clear RIRB status before reading
> > WP") from legacy HDA driver to fix the get response timeout issue.
> > Current SOF driver does not suffer from this issue because sync write
> > is enabled in hda_init. The issue will come back if the sync write is
> > disabled for some reason.
> >
> > Signed-off-by: Brent Lu <brent.lu@intel.com>
>
> Reviewed-by: Takashi Iwai <tiwai@suse.de>
thanks, looks good now:
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Sound-open-firmware] [PATCH v3] ASoC: SOF: Intel: hda: Clear RIRB status before reading WP
2020-06-12 12:24 ` Kai Vehmanen
@ 2020-06-12 14:45 ` Pierre-Louis Bossart
-1 siblings, 0 replies; 10+ messages in thread
From: Pierre-Louis Bossart @ 2020-06-12 14:45 UTC (permalink / raw)
To: Kai Vehmanen, Takashi Iwai
Cc: alsa-devel, linux-kernel, Daniel Baluta, Cezary Rojewski,
Keyon Jie, Liam Girdwood, Takashi Iwai, Mark Brown,
Ranjani Sridharan, Bard Liao, Zhu Yingjiang, Brent Lu,
sound-open-firmware
On 6/12/20 7:24 AM, Kai Vehmanen wrote:
> Hey Brent,
>
> On Fri, 12 Jun 2020, Takashi Iwai wrote:
>
>> On Fri, 12 Jun 2020 12:50:48 +0200, Brent Lu wrote:
>>>
>>> Port commit 6d011d5057ff ("ALSA: hda: Clear RIRB status before reading
>>> WP") from legacy HDA driver to fix the get response timeout issue.
>>> Current SOF driver does not suffer from this issue because sync write
>>> is enabled in hda_init. The issue will come back if the sync write is
>>> disabled for some reason.
>>>
>>> Signed-off-by: Brent Lu <brent.lu@intel.com>
>>
>> Reviewed-by: Takashi Iwai <tiwai@suse.de>
>
> thanks, looks good now:
>
> Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
CI results initiated by Kai don't show any regression and change looks
good so:
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thanks Brent!
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Sound-open-firmware] [PATCH v3] ASoC: SOF: Intel: hda: Clear RIRB status before reading WP
@ 2020-06-12 14:45 ` Pierre-Louis Bossart
0 siblings, 0 replies; 10+ messages in thread
From: Pierre-Louis Bossart @ 2020-06-12 14:45 UTC (permalink / raw)
To: Kai Vehmanen, Takashi Iwai
Cc: alsa-devel, Bard Liao, Cezary Rojewski, Takashi Iwai, Keyon Jie,
Liam Girdwood, Ranjani Sridharan, Mark Brown, Zhu Yingjiang,
Jaroslav Kysela, Daniel Baluta, Brent Lu, linux-kernel,
sound-open-firmware
On 6/12/20 7:24 AM, Kai Vehmanen wrote:
> Hey Brent,
>
> On Fri, 12 Jun 2020, Takashi Iwai wrote:
>
>> On Fri, 12 Jun 2020 12:50:48 +0200, Brent Lu wrote:
>>>
>>> Port commit 6d011d5057ff ("ALSA: hda: Clear RIRB status before reading
>>> WP") from legacy HDA driver to fix the get response timeout issue.
>>> Current SOF driver does not suffer from this issue because sync write
>>> is enabled in hda_init. The issue will come back if the sync write is
>>> disabled for some reason.
>>>
>>> Signed-off-by: Brent Lu <brent.lu@intel.com>
>>
>> Reviewed-by: Takashi Iwai <tiwai@suse.de>
>
> thanks, looks good now:
>
> Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
CI results initiated by Kai don't show any regression and change looks
good so:
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thanks Brent!
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v3] ASoC: SOF: Intel: hda: Clear RIRB status before reading WP
2020-06-12 10:50 ` Brent Lu
@ 2020-06-15 15:05 ` Mark Brown
-1 siblings, 0 replies; 10+ messages in thread
From: Mark Brown @ 2020-06-15 15:05 UTC (permalink / raw)
To: Brent Lu, alsa-devel
Cc: Pierre-Louis Bossart, Cezary Rojewski, Kai Vehmanen, Bard Liao,
Takashi Iwai, Keyon Jie, linux-kernel, Liam Girdwood,
Ranjani Sridharan, Daniel Baluta, Zhu Yingjiang,
sound-open-firmware
On Fri, 12 Jun 2020 18:50:48 +0800, Brent Lu wrote:
> Port commit 6d011d5057ff ("ALSA: hda: Clear RIRB status before reading
> WP") from legacy HDA driver to fix the get response timeout issue.
> Current SOF driver does not suffer from this issue because sync write
> is enabled in hda_init. The issue will come back if the sync write is
> disabled for some reason.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: SOF: Intel: hda: Clear RIRB status before reading WP
commit: 40e2c465894e5b79b49f55d9574dbcda4ac0f08f
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v3] ASoC: SOF: Intel: hda: Clear RIRB status before reading WP
@ 2020-06-15 15:05 ` Mark Brown
0 siblings, 0 replies; 10+ messages in thread
From: Mark Brown @ 2020-06-15 15:05 UTC (permalink / raw)
To: Brent Lu, alsa-devel
Cc: Cezary Rojewski, linux-kernel, Daniel Baluta, Liam Girdwood,
Keyon Jie, sound-open-firmware, Zhu Yingjiang, Kai Vehmanen,
Pierre-Louis Bossart, Takashi Iwai, Bard Liao, Ranjani Sridharan
On Fri, 12 Jun 2020 18:50:48 +0800, Brent Lu wrote:
> Port commit 6d011d5057ff ("ALSA: hda: Clear RIRB status before reading
> WP") from legacy HDA driver to fix the get response timeout issue.
> Current SOF driver does not suffer from this issue because sync write
> is enabled in hda_init. The issue will come back if the sync write is
> disabled for some reason.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: SOF: Intel: hda: Clear RIRB status before reading WP
commit: 40e2c465894e5b79b49f55d9574dbcda4ac0f08f
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
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2020-06-15 15:08 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-12 10:50 [PATCH v3] ASoC: SOF: Intel: hda: Clear RIRB status before reading WP Brent Lu
2020-06-12 10:50 ` Brent Lu
2020-06-12 11:01 ` Takashi Iwai
2020-06-12 11:01 ` Takashi Iwai
2020-06-12 12:24 ` Kai Vehmanen
2020-06-12 12:24 ` Kai Vehmanen
2020-06-12 14:45 ` [Sound-open-firmware] " Pierre-Louis Bossart
2020-06-12 14:45 ` Pierre-Louis Bossart
2020-06-15 15:05 ` Mark Brown
2020-06-15 15:05 ` 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.