]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaf3995068521229fe0b9aedebc8735a676a19c5e
treec4b30acc190c8b0f6faa675917b9663a7be34fbb
parent2dfd84263c995727c5d8271b98b281bfc0647f7d
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