From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org Subject: [Bug 75985] [NVC1] HDMI audio device only visible after rescan Date: Sat, 10 Mar 2018 06:36:40 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1410697481==" 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 --===============1410697481== Content-Type: multipart/alternative; boundary="15206638064.Cd86dbB5b.10419" Content-Transfer-Encoding: 7bit --15206638064.Cd86dbB5b.10419 Date: Sat, 10 Mar 2018 06:36:46 +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 #64 from Lukas Wunner --- (In reply to Maik Freudenberg from comment #57) > (In reply to Ilia Mirkin from comment #55) > > What's the downside for doing this always btw=20 > By 'this', you mean, always turning it on? > This generates the errors from comment #42 since those devices are not > configured resource-wise, all zeros. I would assume the BAR is all zeroes because there was insufficient space to accommodate the additional 4K for it. AFAIUI, the kernel assigns only the minimal amount of space to the bridge window that is necessary to accomodate the devices below. Hence, if a device is added after the fact below the bri= dge, there may not be sufficient space available for it. I'd expect the situatio= n to be different if the device is already present on enumeration, as is done by= the "header" PCI quirk. Then the bridge window can be sized appropriately. Could you verify that on the machine in question? It occurred to me that we could at least check presence of the Optimus _DSM= in the PCI quirk. That would be sufficiently small for a quirk. That way it wo= uld be constrained to Optimus laptops, but sadly we'd still expose an audio function if the GPU has no outputs at all. However I notice that drivers/gpu/drm/nouveau/nouveau_acpi.c defines a OPTIMUS_HDA_CODEC_MASK mac= ro ("hda bios codec supported"). Would that be of any use? Or can we query via= the _DSM whether the GPU has any outputs? --=20 You are receiving this mail because: You are the assignee for the bug.= --15206638064.Cd86dbB5b.10419 Date: Sat, 10 Mar 2018 06:36:46 +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 # 64 on bug 75985<= /a> from Lukas Wunner
(In reply to Maik Freudenberg from comment #57)
> (In reply to Ilia Mirkin from comment #55)
> > What's the downside for doing this always btw=20
> By 'this', you mean, always turning it on?
> This generates the errors from comment #42 since those devices are not
> configured resource-wise, all zeros.

I would assume the BAR is all zeroes because there was insufficient space to
accommodate the additional 4K for it. AFAIUI, the kernel assigns only the
minimal amount of space to the bridge window that is necessary to accomodate
the devices below. Hence, if a device is added after the fact below the bri=
dge,
there may not be sufficient space available for it. I'd expect the situatio=
n to
be different if the device is already present on enumeration, as is done by=
 the
"header" PCI quirk. Then the bridge window can be sized appropria=
tely. Could
you verify that on the machine in question?

It occurred to me that we could at least check presence of the Optimus _DSM=
 in
the PCI quirk. That would be sufficiently small for a quirk. That way it wo=
uld
be constrained to Optimus laptops, but sadly we'd still expose an audio
function if the GPU has no outputs at all. However I notice that
drivers/gpu/drm/nouveau/nouveau_acpi.c defines a OPTIMUS_HDA_CODEC_MASK mac=
ro
("hda bios codec supported"). Would that be of any use? Or can we=
 query via the
_DSM whether the GPU has any outputs?


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