]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/gpu/vga/vgaarb.c
vgaarb: Don't disable resources that are not owned
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 15 Aug 2013 22:37:53 +0000 (16:37 -0600)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 3 Sep 2013 17:17:58 +0000 (19:17 +0200)
commitf22d776f3e280e605819fc09fc35db0d802d36ce
treec4b30acc190c8b0f6faa675917b9663a7be34fbb
parent5cfacdedb1a94efd29faeaab53f939554a3f5943
vgaarb: Don't disable resources that are not owned

If a device does not own a resource then we don't need to disable it.
This resolves the case where an Intel IGD device can be configured to
disable decode of VGA memory but we still need the arbiter to handle
VGA I/O port routing.  When the IGD device is in conflict, only
PCI_COMMAND_IO should be disabled since VGA memory does not require
arbitration on this device.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Cc: Dave Airlie <airlied@redhat.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/vga/vgaarb.c