]> 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)
commit3baf70e737a68e100bf0585febeeba58c7c0fb9f
treec4b30acc190c8b0f6faa675917b9663a7be34fbb
parent16d6345a065436e3023e1b91776b0d51ff165888
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