From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [PATCH 3/4] ALSA: hda: Log HDA Hardware related errors Date: Tue, 15 May 2018 09:43:42 +0200 Message-ID: References: <1526366456-20470-1-git-send-email-sriramx.periyasamy@intel.com> <1526366456-20470-4-git-send-email-sriramx.periyasamy@intel.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 2F152266F0F for ; Tue, 15 May 2018 09:43:42 +0200 (CEST) In-Reply-To: <1526366456-20470-4-git-send-email-sriramx.periyasamy@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Sriram Periyasamy Cc: Liam Girdwood , Patches Audio , ALSA ML , Mark Brown , Pardha Saradhi K List-Id: alsa-devel@alsa-project.org On Tue, 15 May 2018 08:40:55 +0200, Sriram Periyasamy wrote: > > From: Pardha Saradhi K > > 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 > Signed-off-by: Sriram Periyasamy > --- > 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