]> git.baikalelectronics.ru Git - kernel.git/commit
vfio/pci: Bypass IGD init in case of -ENODEV
authorFred Gao <fred.gao@intel.com>
Mon, 2 Nov 2020 18:01:20 +0000 (02:01 +0800)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 3 Nov 2020 18:07:40 +0000 (11:07 -0700)
commit166f245e6382815cc9a48aadcddc3d3e9f9804fa
tree561446c090984cd13fd888ab25db5abbd7a11988
parentbcffb1413a8f1c7bcd84e07ef20e8303d774dd38
vfio/pci: Bypass IGD init in case of -ENODEV

Bypass the IGD initialization when -ENODEV returns,
that should be the case if opregion is not available for IGD
or within discrete graphics device's option ROM,
or host/lpc bridge is not found.

Then use of -ENODEV here means no special device resources found
which needs special care for VFIO, but we still allow other normal
device resource access.

Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Cc: Xiong Zhang <xiong.y.zhang@intel.com>
Cc: Hang Yuan <hang.yuan@linux.intel.com>
Cc: Stuart Summers <stuart.summers@intel.com>
Signed-off-by: Fred Gao <fred.gao@intel.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/vfio_pci.c