<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [NVC1] HDMI audio device only visible after rescan"
href="https://bugs.freedesktop.org/show_bug.cgi?id=75985#c64">Comment # 64</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [NVC1] HDMI audio device only visible after rescan"
href="https://bugs.freedesktop.org/show_bug.cgi?id=75985">bug 75985</a>
from <span class="vcard"><a class="email" href="mailto:lukas@wunner.de" title="Lukas Wunner <lukas@wunner.de>"> <span class="fn">Lukas Wunner</span></a>
</span></b>
<pre>(In reply to Maik Freudenberg from <a href="show_bug.cgi?id=75985#c57">comment #57</a>)
<span class="quote">> (In reply to Ilia Mirkin from <a href="show_bug.cgi?id=75985#c55">comment #55</a>)
> > What's the downside for doing this always btw
> By 'this', you mean, always turning it on?
> This generates the errors from <a href="show_bug.cgi?id=75985#c42">comment #42</a> since those devices are not
> configured resource-wise, all zeros.</span >
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 bridge,
there may not be sufficient space available for it. I'd expect the situation 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 would
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 macro
("hda bios codec supported"). Would that be of any use? Or can we query via the
_DSM whether the GPU has any outputs?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>