]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
UBUNTU: SAUCE: PCI: Support hibmc VGA cards behind a misbehaving HiSilicon bridge
authorDaniel Axtens <daniel.axtens@canonical.com>
Thu, 29 Jun 2017 03:45:44 +0000 (13:45 +1000)
committerSeth Forshee <seth.forshee@canonical.com>
Tue, 5 Sep 2017 12:33:54 +0000 (07:33 -0500)
commit4417ec7a7c8dc0c637597ed1ceb64dc1cfad5584
tree0aef0bc3ff713f6fa316a813b59fd78a9b4952ce
parent5b5f25caa1d83b50ff695495aac8c8cb89b5a98b
UBUNTU: SAUCE: PCI: Support hibmc VGA cards behind a misbehaving HiSilicon bridge

BugLink: https://bugs.launchpad.net/bugs/1698706
The HiSilicon D05 board has some PCI bridges (PCI ID 19e5:1610) that
are not spec-compliant: the VGA Enable bit is set to 0 in hardware
and writes do not change it.

This stops VGA arbitrartion from marking a VGA card behind the bridge
as a boot device, and therefore breaks Xorg auto-configuration.

The hibmc VGA card (PCI ID 19e5:1711) is known to work when behind
these bridges.

Provide a quirk so that this combination of bridge and card is eligible
to be the default VGA card.

This fixes Xorg auto-detection.

Cc: Xinliang Liu <z.liuxinliang@hisilicon.com>
Cc: Rongrong Zou <zourongrong@gmail.com>
Signed-off-by: Daniel Axtens <daniel.axtens@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
[saf: Adjusted context for 4.12]
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/pci/quirks.c