Skip to content

Tags: zhouzhongsource/linux

Tags

archive/v5.1-endless

Toggle archive/v5.1-endless's commit message
PCI: Enable NVIDIA HDA controllers

Many NVIDIA GPUs can be configured as either a single-function video device
or a multi-function device with video at function 0 and an HDA audio
controller at function 1.  The HDA controller can be enabled or disabled by
a bit in the function 0 config space.

Some BIOSes leave the HDA disabled, which means the HDMI connector from the
NVIDIA GPU may not work.  Sometimes the BIOS enables the HDA if an HDMI
cable is connected at boot time, but that doesn't handle hotplug cases.

Enable the HDA controller on device enumeration and resume and re-read the
header type, which tells us whether the GPU is a multi-function device.

This quirk is limited to NVIDIA PCI devices with the VGA Controller device
class.  This is expected to correspond to product configurations where the
NVIDIA GPU has connectors attached.  Other products where the device class
is 3D Controller are expected to correspond to configurations where the
NVIDIA GPU is dedicated (dGPU) and has no connectors.  See original post
(URL below) for more details.

This commit takes inspiration from an earlier patch by Daniel Drake.

Link: https://lore.kernel.org/r/20190708051744.24039-1-drake@endlessm.com
Link: https://devtalk.nvidia.com/default/topic/1024022
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75985
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Daniel Drake <drake@endlessm.com>
[bhelgaas: commit log, log message, return early if already enabled]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Aaron Plattner <aplattner@nvidia.com>
Cc: Peter Wu <peter@lekensteyn.nl>
Cc: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: Karol Herbst <kherbst@redhat.com>
Cc: Maik Freudenberg <hhfeuer@gmx.de>

Version_5.2.0-8.9

Toggle Version_5.2.0-8.9's commit message
Ubuntu-5.2.0-8.9

Release_3.6.1

Toggle Release_3.6.1's commit message
General improvements, fixes and new features to the 3.6 stable series

Version_5.0.0-17.18

Toggle Version_5.0.0-17.18's commit message
Ubuntu-5.0.0-17.18

Version_5.0.0-16.17

Toggle Version_5.0.0-16.17's commit message
Ubuntu-5.0.0-16.17

Release_3.6.0

Toggle Release_3.6.0's commit message
This is the 3.6.0 major release, bringing new features and fixes to t…

…he Endless OS 3 series.

Verified

This tag was signed with the committer’s verified signature. The key has expired.
smb49 Stefan Bader

archive/v5.0-endless

Toggle archive/v5.0-endless's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request endlessm#474 from endlessm/T25948

drm/i915: HDCP state handling in ddi_update_pipe

Version_5.1.0-2.2

Toggle Version_5.1.0-2.2's commit message
Ubuntu-5.1.0-2.2

Version_5.0.0-15.16

Toggle Version_5.0.0-15.16's commit message
Ubuntu-5.0.0-15.16