From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 99881] Lockup/Freezes on Laptop with switchable graphics Date: Thu, 23 Feb 2017 04:03:39 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0544779035==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 328856E94E for ; Thu, 23 Feb 2017 04:03:39 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0544779035== Content-Type: multipart/alternative; boundary="14878226190.B3Ae5BBD.5310"; charset="UTF-8" --14878226190.B3Ae5BBD.5310 Date: Thu, 23 Feb 2017 04:03:39 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D99881 --- Comment #30 from Matthew Fox --- Just to confirm, the freezes and hard lockups still occur and the correspon= ding messages in dmesg which I also attached. This may be more sound related but I previously found in the kernel source (file http://lxr.free-electrons.com/source/sound/pci/hda/hda_intel.c?v=3D4.= 8): 1182 static int register_vga_switcheroo(struct azx *chip) 1183 { 1184 struct hda_intel *hda =3D container_of(chip, struct hda_intel, chip); 1185 int err; 1186=20 1187 if (!hda->use_vga_switcheroo) 1188 return 0; 1189 /* FIXME: currently only handling DIS controller 1190 * is there any machine with two switchable HDMI audio controllers? 1191 */ 1192 err =3D vga_switcheroo_register_audio_client(chip->pci, &azx_v= s_ops, 1193 VGA_SWITCHEROO_DIS); 1194 if (err < 0) 1195 return err; 1196 hda->vga_switcheroo_registered =3D 1; 1197=20 1198 /* register as an optimus hdmi audio power domain */ 1199 vga_switcheroo_init_domain_pm_optimus_hdmi_audio(chip->card->d= ev, 1200=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20 &hda->hdmi_pm_domain); 1201 return 0; 1202 }=20 In dmesg, these lines always appear along with the gpu init lines: snd_hda_intel 0000:02:00.1: Enabling via vga_switcheroo snd_hda_intel 0000:02:00.1: CORB reset timeout#2, CORBRP =3D 65535 snd_hda_intel 0000:02:00.1: Disabling via vga_switcheroo snd_hda_intel 0000:02:00.1: Cannot lock devices! 'CORB reset timeout#2, CORBRP =3D 65535' appears red in dmesg and 'Cannot lock devices!' appears white in dmesg. 0000:02:00.1 is the Discrete audio attached to the discrete GPU (the discre= te GPU is 02:00.0) >>From lspci, there's another audio device: 00:14.2 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA) [1002:4383] (rev 40) Now in the function above, it says '...is there any machine with two switch= able HDMI audio controllers?' - I wonder if that's the case here? Which might be causing problems and the associated sound messages in dmesg? --=20 You are receiving this mail because: You are the assignee for the bug.= --14878226190.B3Ae5BBD.5310 Date: Thu, 23 Feb 2017 04:03:39 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 30 on bug 99881<= /a> from <= span class=3D"fn">Matthew Fox
Just to confirm, the freezes and hard lockups still occur and =
the corresponding
messages in dmesg which I also attached.

This may be more sound related but I previously found in the kernel source
(file http://lxr.free-electrons.com/source/sound/pci/hda/hda_intel.=
c?v=3D4.8):

1182 static int register_vga_switcheroo(struct azx *chip)
1183 {
1184         struct hda_intel *hda =3D container_of(chip, struct hda_intel,
chip);
1185         int err;
1186=20
1187         if (!hda->use_vga_switcheroo)
1188                 return 0;
1189         /* FIXME: currently only handling DIS controller
1190          * is there any machine with two switchable HDMI audio
controllers?
1191          */
1192         err =3D vga_switcheroo_register_audio_client(chip->pci, &am=
p;azx_vs_ops,
1193                                                    VGA_SWITCHEROO_DIS);
1194         if (err < 0)
1195                 return err;
1196         hda->vga_switcheroo_registered =3D 1;
1197=20
1198         /* register as an optimus hdmi audio power domain */
1199         vga_switcheroo_init_domain_pm_optimus_hdmi_audio(chip->card=
->dev,
1200=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
&hda->hdmi_pm_domain);
1201         return 0;
1202 }=20

In dmesg, these lines always appear along with the gpu init lines:

snd_hda_intel 0000:02:00.1: Enabling via vga_switcheroo
snd_hda_intel 0000:02:00.1: CORB reset timeout#2, CORBRP =3D 65535
snd_hda_intel 0000:02:00.1: Disabling via vga_switcheroo
snd_hda_intel 0000:02:00.1: Cannot lock devices!

'CORB reset timeout#2, CORBRP =3D 65535' appears red in dmesg and
'Cannot lock devices!' appears white in dmesg.

0000:02:00.1 is the Discrete audio attached to the discrete GPU (the discre=
te
GPU is 02:00.0)

>>From lspci, there's another audio device:
00:14.2 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] SBx00
Azalia (Intel HDA) [1002:4383] (rev 40)

Now in the function above, it says '...is there any machine with two switch=
able
HDMI audio controllers?' - I wonder if that's the case here? Which might be
causing problems and the associated sound messages in dmesg?


You are receiving this mail because:
  • You are the assignee for the bug.
= --14878226190.B3Ae5BBD.5310-- --===============0544779035== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0544779035==--