All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
Cc: alsa-devel@alsa-project.org, Libin Yang <libin.yang@linux.intel.com>
Subject: Re: New snd-hda warning spew
Date: Tue, 15 Mar 2016 18:22:56 +0100	[thread overview]
Message-ID: <s5hio0nejv3.wl-tiwai@suse.de> (raw)
In-Reply-To: <20160315160207.GY4329@intel.com>

On Tue, 15 Mar 2016 17:02:07 +0100,
Ville Syrjälä wrote:
> 
> We have a few new WARN spews from snd-hda causing some grief in i915 CI.
> 
> This one happens on ILK and BYT. Looks like it happens 100% of the time on driver load:
> [   18.809850] ------------[ cut here ]------------
> [   18.809866] WARNING: CPU: 0 PID: 39 at sound/hda/hdac_i915.c:129 pin2port+0x25/0x30 [snd_hda_core]()

This is bad.  Basically we had a naive assumption of the fixed mapping
between the port number and the HD-audio widget, but it doesn't apply
properly to pre-HSW models.

The patch attached below disables the audio binding for pre-HSW
models.  I'm going to queue to for-linus branch.

> This other one was seen at least on on SKL:
> [  124.808525] ------------[ cut here ]------------
> [  124.808545] WARNING: CPU: 3 PID: 173 at sound/hda/hdac_i915.c:91 snd_hdac_display_power+0xf1/0x110 [snd_hda_core]()

This is a different one, and it implies that the unbalanced power
refcount.  Might be related with the recent fix for the recursive
regmap deadlock.  I'll try later with a SKL machine here, too.

Didn't you see this before the recent tree, right?  Some good/bad
commits would be really helpful...


thanks,

Takashi

-- 8< --
From: Takashi Iwai <tiwai@suse.de>
Subject: [PATCH] ALSA: hda - Limit i915 HDMI binding only for HSW and later
MIME-Version: 1.0

It turned out that the pre-HSW Intel chips are incompatible with the
naive assumption we had -- the fixed mapping between the port and the
HD-audio widget.  This may result in the bad access, as captured by
the recent patch to add a WARN_ON() for the port mapping check.

As a quick workaround, disable the i915 audio component binding for
all pre-Haswell models.

Reported-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: <stable@vger.kernel.org> # v4.5
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 sound/pci/hda/patch_hdmi.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c
index 3fc259154c0b..cde9746cda8e 100644
--- a/sound/pci/hda/patch_hdmi.c
+++ b/sound/pci/hda/patch_hdmi.c
@@ -2243,9 +2243,10 @@ static int patch_generic_hdmi(struct hda_codec *codec)
 	codec->spec = spec;
 	hdmi_array_init(spec, 4);
 
-	/* Try to bind with i915 for any Intel codecs (if not done yet) */
+	/* Try to bind with i915 for Intel HSW+ codecs (if not done yet) */
 	if (!codec_has_acomp(codec) &&
-	    (codec->core.vendor_id >> 16) == 0x8086)
+	    (codec->core.vendor_id >> 16) == 0x8086 &&
+	    is_haswell_plus(codec))
 		if (!snd_hdac_i915_init(&codec->bus->core))
 			spec->i915_bound = true;
 
-- 
2.7.3


_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

  reply	other threads:[~2016-03-15 17:22 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-15 16:02 New snd-hda warning spew Ville Syrjälä
2016-03-15 17:22 ` Takashi Iwai [this message]
2016-03-16 14:04   ` Ville Syrjälä
2016-03-16 14:07     ` Takashi Iwai
2016-03-17  5:30       ` Libin Yang
2016-03-17 13:38     ` Takashi Iwai
2016-03-17 14:12       ` Takashi Iwai
2016-03-17 14:25         ` Ville Syrjälä
2016-03-17 14:39           ` Takashi Iwai
2016-03-18 13:54     ` Ville Syrjälä
2016-03-18 14:22       ` Takashi Iwai
2016-03-18 17:49         ` Ville Syrjälä
2016-03-18 18:51           ` Takashi Iwai
2016-03-18 18:56             ` Takashi Iwai
2016-03-18 19:07               ` Ville Syrjälä
2016-03-18 19:20                 ` Takashi Iwai
2016-03-18 19:10             ` Ville Syrjälä
2016-03-18 19:18               ` Takashi Iwai
2016-03-18 19:29                 ` Ville Syrjälä
2016-03-18 19:27               ` Ville Syrjälä
2016-03-18 20:26                 ` Takashi Iwai
2016-03-19 10:18   ` Takashi Iwai
2016-03-21 12:34     ` Imre Deak
2016-03-21 12:55       ` 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=s5hio0nejv3.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=libin.yang@linux.intel.com \
    --cc=ville.syrjala@linux.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.