diff options
author | Bjorn Helgaas <[email protected]> | 2017-10-12 22:47:29 -0500 |
---|---|---|
committer | Daniel Vetter <[email protected]> | 2017-10-18 10:04:56 +0200 |
commit | 505a1b571711a977b7d069dec3c14381521e9683 (patch) | |
tree | 8b74843c99dda03db00dec7b4f59ccfe1da49f64 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | a37c0f48950b56f6ef2ee637ba597855504e3056 (diff) |
vgaarb: Factor out EFI and fallback default device selection
The default VGA device is normally set in vga_arbiter_add_pci_device() when
we call it for the first enabled device that can be accessed with the
legacy VGA resources ([mem 0xa0000-0xbffff], etc.)
That default device can be overridden by an EFI device that owns the boot
framebuffer. As a fallback, we can also select a VGA device that can't be
accessed via legacy VGA resources, or a VGA device that isn't even enabled.
Factor out this EFI and fallback selection from vga_arb_device_init() into
a separate vga_arb_select_default_device() function. This doesn't change
any behavior, but it untangles the "bridge control possible" checking and
messages from the default device selection.
Tested-by: Zhou Wang <[email protected]> # D05 Hisi Hip07, Hip08
Signed-off-by: Bjorn Helgaas <[email protected]>
Acked-by: Ard Biesheuvel <[email protected]>
Reviewed-by: Daniel Axtens <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/20171013034729.14630.30419.stgit@bhelgaas-glaptop.roam.corp.google.com
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions