From: Takashi Iwai <tiwai@suse.de>
To: Sriram Periyasamy <sriramx.periyasamy@intel.com>
Cc: Liam Girdwood <liam.r.girdwood@linux.intel.com>,
Patches Audio <patches.audio@intel.com>,
ALSA ML <alsa-devel@alsa-project.org>,
Mark Brown <broonie@kernel.org>,
Pardha Saradhi K <pardha.saradhi.kesapragada@intel.com>
Subject: Re: [PATCH 3/4] ALSA: hda: Log HDA Hardware related errors
Date: Tue, 15 May 2018 09:43:42 +0200 [thread overview]
Message-ID: <s5hr2md4b4h.wl-tiwai@suse.de> (raw)
In-Reply-To: <1526366456-20470-4-git-send-email-sriramx.periyasamy@intel.com>
On Tue, 15 May 2018 08:40:55 +0200,
Sriram Periyasamy wrote:
>
> From: Pardha Saradhi K <pardha.saradhi.kesapragada@intel.com>
>
> Detect the timeout while modifying HDA DMA related Registers
> for stream reset and print them to console for user information
>
> Signed-off-by: Pardha Saradhi K <pardha.saradhi.kesapragada@intel.com>
> Signed-off-by: Sriram Periyasamy <sriramx.periyasamy@intel.com>
> ---
> sound/hda/hdac_stream.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/sound/hda/hdac_stream.c b/sound/hda/hdac_stream.c
> index 33c8ced528f6..aa8a2884289f 100644
> --- a/sound/hda/hdac_stream.c
> +++ b/sound/hda/hdac_stream.c
> @@ -144,6 +144,10 @@ void snd_hdac_stream_reset(struct hdac_stream *azx_dev)
> if (val)
> break;
> } while (--timeout);
> +
> + if (!timeout)
> + dev_err(azx_dev->bus->dev, "timeout on stream reset entry\n");
> +
> val &= ~SD_CTL_STREAM_RESET;
> snd_hdac_stream_writeb(azx_dev, SD_CTL, val);
> udelay(3);
> @@ -157,6 +161,9 @@ void snd_hdac_stream_reset(struct hdac_stream *azx_dev)
> break;
> } while (--timeout);
>
> + if (!timeout)
> + dev_err(azx_dev->bus->dev, "timeout on stream reset exit\n");
Just from curiosity: did you ever hit these? Or just because of
consistency?
Takashi
next prev parent reply other threads:[~2018-05-15 7:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-15 6:40 [PATCH 0/4] ALSA: hda: Bug fixes Sriram Periyasamy
2018-05-15 6:40 ` [PATCH 1/4] ALSA: hda: Make sure DMA is stopped by reading back the RUN bit Sriram Periyasamy
2018-05-15 7:34 ` Takashi Iwai
2018-05-15 6:40 ` [PATCH 2/4] ALSA: hda: Make sure DMA is started " Sriram Periyasamy
2018-05-15 7:36 ` Takashi Iwai
2018-05-15 6:40 ` [PATCH 3/4] ALSA: hda: Log HDA Hardware related errors Sriram Periyasamy
2018-05-15 7:43 ` Takashi Iwai [this message]
2018-05-15 6:40 ` [PATCH 4/4] ALSA: hda: check if stream is stopped in snd_hdac_stream_clear Sriram Periyasamy
2018-05-15 7:41 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s5hr2md4b4h.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=liam.r.girdwood@linux.intel.com \
--cc=pardha.saradhi.kesapragada@intel.com \
--cc=patches.audio@intel.com \
--cc=sriramx.periyasamy@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.