Skip to content

Commit

Permalink
surfman: Load plugins for non-primary devices.
Browse files Browse the repository at this point in the history
There is no guaranty on what device will be PCI_CLASS 0x300 or 0x380,
but the plugin should be loaded for this one anyway (plus restricting
to primary display was a hack for a defunct plugin).

It turns out to usually be the integrated one, also most firmware allows
that to be configured, but some platforms (e.g, HP 800 G1) will
__change__ the PCI class of the Intel device when a PCI(e) discrete card
is racked (0x300->0x380). Whatever happens next is unwanted.

Signed-off-by: Eric Chanudet <[email protected]>

OXT-967
  • Loading branch information
Eric Chanudet committed Mar 29, 2017
1 parent a75f8f7 commit 4bc4257
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions surfman/src/plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,15 +167,6 @@ pci_vendor_match (const char *vendors)
while ((device = pci_device_next(iter)))
{
pci_device_probe(device);
/* !! THE BLOC BELOW IS A NASTY HACK !! */
/* !! REMOVE IT WHEN AMD FIX THEIR PLUGIN !! */
if (!pci_device_is_boot_vga(device))
{
surfman_info(" - NOT using %04x:%04x at %02x:%02x.%02x, as it is NOT the primary adapter",
device->vendor_id, device->device_id,
device->bus, device->dev, device->func);
continue;
}
surfman_info (" - found %04x:%04x at %02x:%02x.%02x",
device->vendor_id, device->device_id,
device->bus, device->dev, device->func);
Expand Down

0 comments on commit 4bc4257

Please sign in to comment.