[Nouveau] [Bug 75985] [NVC1] HDMI audio device only visible after rescan

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Mar 3 10:41:53 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=75985

--- Comment #37 from Lukas Wunner <lukas at wunner.de> ---
Related to this issue, I've just posted v2 of my patch set to use a device link
for power management of GPU-integrated HDA controllers:
https://lists.freedesktop.org/archives/dri-devel/2018-March/168012.html

It would be great if more people could test it. There's a 4.15-based branch
available at:
https://github.com/l1k/linux/commits/switcheroo_devlink_v2

Crucially, this patch lets the HDA controller autosuspend at its own
descretion, rather than forcing it on whenever the GPU is on. It looks like
writing to bit 25 of config space dword 0x488 powergates the HDA controller. We
could leverage that to runtime suspend the HDA controller to D3cold. I'll see
to it that I cook up a patch.

As to the bit being cleared on boot, I think this should be done in a "header"
PCI quirk rather than in nouveau. If you look at pci_scan_slot() and next_fn()
in drivers/pci/probe.c, you'll notice that device functions are scanned from 0
upwards. So the GPU is always scanned first. Just add a PCI quirk which gets
executed for the GPU, sets the bit and then reinitializes the multifunction
flag in the GPU's struct pci_dev, that may already be sufficient. The PCI core
should do all the rest. See quirk_jmicron_ata() for an example.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/nouveau/attachments/20180303/f9c91578/attachment.html>


More information about the Nouveau mailing list