From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org Subject: [Bug 75985] [NVC1] HDMI audio device only visible after rescan Date: Sat, 10 Mar 2018 19:42:15 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0921728768==" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Sender: "Nouveau" To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org List-Id: nouveau.vger.kernel.org --===============0921728768== Content-Type: multipart/alternative; boundary="15207109352.5aa12e2E.5490" Content-Transfer-Encoding: 7bit --15207109352.5aa12e2E.5490 Date: Sat, 10 Mar 2018 19:42:15 +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=3D75985 --- Comment #66 from Lukas Wunner --- (In reply to Maik Freudenberg from comment #65) > Now with the acpi bug fixed, I applied both of your v2 patchsets with some > nip/tuck to a 4.16rc4+ kernel and ran into the next oddity: while the pci > quirk in general works, re-reading the header type will always return 0x00 > so the hda device is not added. > lspci confirms that the quirk is otherwise working: > 00: de 10 92 12 07 00 10 00 a1 00 02 03 00 00 80 00 > 480: 00 00 00 00 17 00 00 00 00 00 00 02 00 00 00 00 Hm, the multifunction bit is set. Try adding an msleep(100) after setting t= he bit at offset 0x488 and before re-reading the header type register. 100 ms = is likely way too much, this is just to ensure it's not too short. Also, try changing DECLARE_PCI_FIXUP_CLASS_HEADER to DECLARE_PCI_FIXUP_CLASS_EARLY. Shouldn't make a difference but maybe I miss= ed something. Does it work if you just set gpu->multifunction =3D 1? --=20 You are receiving this mail because: You are the assignee for the bug.= --15207109352.5aa12e2E.5490 Date: Sat, 10 Mar 2018 19:42:15 +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 # 66 on bug 75985<= /a> from Lukas Wunner
(In reply to Maik Freudenberg from comment #65)
> Now with the acpi bug fixed, I applied both of y=
our v2 patchsets with some
> nip/tuck to a 4.16rc4+ kernel and ran into the next oddity: while the =
pci
> quirk in general works, re-reading the header type will always return =
0x00
> so the hda device is not added.
> lspci confirms that the quirk is otherwise working:
> 00: de 10 92 12 07 00 10 00 a1 00 02 03 00 00 80 00
> 480: 00 00 00 00 17 00 00 00 00 00 00 02 00 00 00 00

Hm, the multifunction bit is set. Try adding an msleep(100) after setting t=
he
bit at offset 0x488 and before re-reading the header type register. 100 ms =
is
likely way too much, this is just to ensure it's not too short.

Also, try changing DECLARE_PCI_FIXUP_CLASS_HEADER to
DECLARE_PCI_FIXUP_CLASS_EARLY. Shouldn't make a difference but maybe I miss=
ed
something.

Does it work if you just set gpu->multifunction =3D 1?


You are receiving this mail because:
  • You are the assignee for the bug.
= --15207109352.5aa12e2E.5490-- --===============0921728768== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KTm91dmVhdSBt YWlsaW5nIGxpc3QKTm91dmVhdUBsaXN0cy5mcmVlZGVza3RvcC5vcmcKaHR0cHM6Ly9saXN0cy5m cmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9ub3V2ZWF1Cg== --===============0921728768==--